body {
    overflow-x: hidden; /* Zabrání horizontálnímu scrollu na celé stránce */
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    background-image: url(../Obrazky/output-onlinepngtools.png);
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: #333;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    overflow-y: auto;
}

/* Menu fixní vlevo */
.menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 10vw;
    min-width: 170px;
    max-width: 270px;
    height: 100%;
    background-color: #2c3e50;
    color: #fff;
    display: flex;
    flex-direction: column;
    padding-top: 20px;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
    z-index: 1002;
}

/* Hlavní obsah vedle menu */
.main-content {
    margin-left: 10vw;
    width: calc(100vw - 10vw);
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 2em;
    box-sizing: border-box;
    min-height: 400px;
    padding: 0;
    position: relative;
    z-index: 2;
}

/* Text vlevo */
.text-container {
    flex: 7 1 0;
    display: flex;
    flex-direction: column;
    min-width: 240px;
    box-sizing: border-box;
    padding-right: 1.5vw;
    justify-content: flex-start;
}

#logo {
    width: 50%;
    max-width: 500px;
    height: auto;
    border-radius: 1%;
    margin-bottom: 1%;
}

.text-box {
    background-color: #ffffff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
    font-size: 1.2em;
    text-align: left;
    margin-bottom: 18px;
    margin-top: 8px;
}

/* Obrázky vpravo */
.side-images {
    flex: 3 1 0;
    display: flex;
    flex-direction: column;
    justify-content: stretch;
    align-items: stretch;
    gap: 30px;
    min-width: 170px;
    max-width: 500px;
    box-sizing: border-box;
    padding-top: 0;
    padding-right: 2vw;
}

.side-img {
    flex: 1 1 0;
    width: 100%;
    min-height: 160px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.10);
    transition: transform 0.2s;
    background: #fff;
}

/* Galerie pod hlavním obsahem, zarovnaná s pravým okrajem menu */
.bottom-gallery {
    margin-left: 10vw;
    width: calc(100vw - 10vw);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
    grid-gap: 20px;
    padding: 18px 0 28px 0;
    background: rgba(255,255,255,0.13);
    box-sizing: border-box;
    z-index: 3;
    position: relative;
    justify-items: center;
    align-items: center;
    /* žádné overflow-x! */
}

.gallery-img {
    width: 80%;
    max-width: 340px;
    height: 270px;
    border-radius: 14px;
    transition: box-shadow 0.2s, transform 0.2s;
    cursor: pointer;
    box-shadow: 0 1px 14px rgba(0,0,0,0.11);
    object-fit: cover;
    background: #fff;
}

.gallery-img:hover,
.side-img:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.13);
    transform: scale(1.05);
}

/* Responsivita */
@media (max-width: 1000px) {
    .bottom-gallery {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: repeat(3, 1fr);
    }
    .gallery-img {
        height: 150px;
        max-width: 92vw;
    }
}
@media (max-width: 650px) {
    .bottom-gallery {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(6, 1fr);
        grid-gap: 10px;
        padding: 12px 0 20px 0;
    }
    .gallery-img {
        height: 80px;
        max-width: 97vw;
        width: 97vw;
    }
}