html {
    scroll-behavior: smooth;
    scrollbar-width: none;
}

body {
    background-color: black;
    font-family:'Segoe-UI-4', sans-serif;
    margin: 0;
}

/* Zpráva pro malé obrazovky */
/* .small-screen-message {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: black;
    color: white;
    justify-content: center;
    align-items: center;
    z-index: 9999;
} */
.small-screen-message h1 {
    font-size: 3em;
    text-align: center;
    margin: 0;
}

.main-container {
    width: 100%;
    max-width: 1920px;
    margin: 0 auto;
    background-image: 
        url(../photos/mainPhoto.avif),   
        url(../photos/mainPhoto2.avif),
        linear-gradient(rgb(0, 0, 0));
    background-size: contain, 100% auto, cover;
    background-position: top center, center var(--hero-bg-offset, 0px), top;
    background-repeat: no-repeat, repeat-y, no-repeat;
    position: relative;
    display: flex;
    flex-direction: column;
}

.navbar {
    width: 100%;
    max-width: 1920px;
    height: 110px;
    display: flex;
    justify-content: space-between;
    padding: 0 40px;
    box-sizing: border-box;
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    background-color: rgba(0, 0, 0, 0.4);
    transition: top 0.3s ease;
}

.navbar--hidden {
    top: -120px;
}

.logo img {
    height: 100px;
    width: auto;
    transform: translateY(5px);
}

.nav-links {
    display: flex;
    gap: 40px;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: white;
    font-size: 1.5em;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #666;
}

.panel1, .panel2, .panel3, .panel4 {
    width: 100%;
    height: 100vh;
    max-height: 1080px;
    min-height: 750px;
    margin: 0;
    padding: 0;
    display: flex;
}

.panel1 {
    position: relative;
}

.panel1-txt {
    display: flex;
    width: 100%;
    height: 22%;
    position: absolute;
    top: 100%;
    transform: translateY(-100%);
    color: white;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    h1 {
        font-size: 2em;
        margin: 0;
    }
    h2 {
        font-size: 4em;
        margin: 0;
    }
}
.panel2 {
    display: flex;
    justify-content: center;
    align-items: center;
}

.gallery-grid {
    display: flex;
    grid-template-columns: 9.2fr 10.15fr 9.2fr;
    gap: 16px;
    width: 90%;
}

.gallery-item {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.gallery-center {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.gallery-photo {
    width: 100%;
    height: 100%;
    position: relative;
    object-fit: cover;
    display: flex;
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-photo {
    transform: scale(1.05);
    transition: transform 0.3s ease;
}

.gallery-item:hover .photo-label {
    transform: scale(1.05);
    transition: transform 0.3s ease;
}

.photo-label {
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 2.5em;
    font-weight: bold;
    z-index: 10;
}

.label-left-center {
    display: flex;
    justify-content: center;
    align-items: center;
    bottom: 20px;
}

.label-top-right {
    display: flex;
    justify-content: center;
    align-items: center;
    bottom: 20px;
    right: 20px;
}

.label-bottom-left {
    display: flex;
    justify-content: center;
    align-items: center;
    bottom: 20px;
    left: 20px;
}

.label-right-center {
    display: flex;
    justify-content: center;
    align-items: center;
    bottom: 20px;
}
.panel3 {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.matej-photo {
    display: flex;
    height: 90%;
    width: auto;
    position: absolute;
    right: 3%;
    bottom: 0;
}
.panel3-txt {
    width: 50%;
    height: 100%;
    left: 3%;
    position: absolute;
    color: white;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: center;
    h2 {
        font-size: 7em;
        margin: 0;
        text-align: left;
        margin-bottom: 20px;
    }
    p {
        font-size: 2em;
        margin: 0;
    }
}
.panel4 {
    position: relative;
    display: flex;
}

.panel4-txt {
    width: 50%;
    height: 100%;
    left: 5%;
    position: absolute;
    color: white;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: center;
    h2 {
        font-size: 4.5em;
        margin: 0;
        text-align: left;
        margin-bottom: 40px;
        margin-left: 10px;
    }
    p {
        font-size: 2.5em;
        margin: 0;
        text-align: left;
        margin-bottom: -10px;
        margin-left: 40px;
    }
    p2{
        font-size: 1.5em;
        margin: 0;
        margin-bottom: 30px;
        margin-left: 40px;
    }
}

.social-links {
    display: flex;
    gap: 20px;
    margin-left: 30px;
}

.social-links a {
    display: inline-block;
}

.social-links img {
    width: 100px;
    height: auto;
}

.contact-form-container {
    width: 40%;
    height: 100%;
    right: 5%;
    position: absolute;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.contact-form-container h2 {
    font-size: 2.5em;
    margin: 0 0 30px 0;
    text-align: left;
    color: white;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 1.2em;
    color: white;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 15px;
    font-size: 1.1em;
    border: 2px solid #333;
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    transition: border-color 0.3s ease, background-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: white;
    background-color: rgba(255, 255, 255, 0.15);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.form-group select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding-right: 40px;
}

.form-group select option {
    background-color: #333;
    color: white;
    padding: 10px;
}

.submit-btn {
    padding: 15px 30px;
    font-size: 1.3em;
    font-weight: bold;
    background-color: transparent;
    color: white;
    border: 2px solid white;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.submit-btn:hover {
    background-color: white;
    color: black;
}

.submit-btn:active {
    transform: translateY(2px);
}

/* Stav úspěšného odeslání */
.submit-btn--success {
    background-color: #2ecc71;
    border-color: #2ecc71;
    color: black;
}
.submit-btn--success:hover {
    background-color: #27ae60;
    border-color: #27ae60;
    color: black;
}

/* Krátké červené zvýraznění při nevalidním formuláři */
.submit-btn--error {
    background-color: #e74c3c;
    border-color: #e74c3c;
    color: black;
}
.submit-btn--error:hover {
    background-color: #c0392b;
    border-color: #c0392b;
    color: black;
}

/* Lightbox styly */
.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    overflow: auto;
}

/* Zabraňuje horizontálnímu posunu lightboxů na mobilu a scroll chainingu */
.lightbox, .fullscreen-modal {
    overscroll-behavior: none;
    touch-action: pan-y;
    overflow-x: hidden;
}
.lightbox-content, .gallery-container {
    overflow-x: hidden;
}

.lightbox-content {
    position: relative;
    margin: 5% auto;
    padding: 20px;
    width: 90%;
    max-width: 1400px;
}

.close-lightbox {
    position: absolute;
    top: 15px;
    right: 35px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 2001;
}

.close-lightbox:hover {
    color: #ccc;
}

.gallery-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
    justify-content: center;
    min-height: 80vh;
}

.gallery-row {
    display: flex;
    gap: 24px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.gallery-thumb {
    width: 240px;
    height: 240px;
    border-radius: 10px;
    overflow: hidden;
    display: inline-block;
}

.gallery-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: inherit;
    cursor: pointer;
    transition: transform 0.3s ease;
}

/* Zoom efekt: zvětšuje se jen obrázek uvnitř pevného rámečku */
.lightbox .gallery-thumb:hover .gallery-thumbnail {
    transform: scale(1.05);
}

/* V lightboxu použij stejný "hover" efekt jako na hlavní galerii (bez stínu a rámu) */
.lightbox .gallery-thumbnail {
    transition: transform 0.3s ease;
}
.lightbox .gallery-thumbnail:hover {
    transform: scale(1.05);
    box-shadow: none;
    border-color: transparent;
}

@media (max-width: 900px) {
    .lightbox-content {
        width: 95%;
        max-width: 95%;
    }
    .gallery-thumb {
        width: 200px;
        height: 200px;
    }
}

/* Fullscreen modal */
.fullscreen-modal {
    display: none;
    position: fixed;
    z-index: 3000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    overflow: auto;
}

.close-fullscreen {
    position: absolute;
    top: 20px;
    right: 40px;
    color: white;
    font-size: 50px;
    font-weight: bold;
    cursor: pointer;
    z-index: 3001;
}

.close-fullscreen:hover {
    color: #ccc;
}

#fullscreen-image {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 95%;
    max-height: 95%;
    object-fit: contain;
    will-change: transform, opacity;
}

/* Jemná a plynulejší animace při přepnutí obrázku swipem (GPU-friendly) */
@keyframes swipeInFromRight {
    from { transform: translate(-50%, -50%) translateX(24px); opacity: 0.7; }
    to   { transform: translate(-50%, -50%) translateX(0);     opacity: 1; }
}
@keyframes swipeInFromLeft {
    from { transform: translate(-50%, -50%) translateX(-24px); opacity: 0.7; }
    to   { transform: translate(-50%, -50%) translateX(0);      opacity: 1; }
}
#fullscreen-image.animate-next {
    animation: swipeInFromRight 260ms cubic-bezier(0.22, 0.61, 0.36, 1);
}
#fullscreen-image.animate-prev {
    animation: swipeInFromLeft 260ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* Navigační šipky */
.nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 60px;
    font-weight: bold;
    cursor: pointer;
    z-index: 3002;
    padding: 20px;
    user-select: none;
    transition: color 0.3s ease, background-color 0.3s ease;
    border-radius: 50%;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-arrow:hover {
    color: #ccc;
    background-color: rgba(255, 255, 255, 0.1);
}

.nav-left {
    left: 30px;
}

.nav-right {
    right: 30px;
}

/* Media query pro obrazovky menší než 1440px */
@media (max-width: 1439px) {
    .panel1, .panel2, .panel3, .panel4 {
        min-height: 600px;
    }
    .matej-photo {
        height: 80%;
    }
    .panel3-txt {
        width: 40%;
        h2 {
            font-size: 5em;
        }
        p {
            font-size: 1.5em;
        }
    }
    .panel4-txt {
        h2 {
            font-size: 3em;
        }
        p {
            font-size: 1.5em;
        }
        p2 {
            font-size: 1em;
        }
    }
    .contact-form-container {
        width: 40%;
        padding: 10px;
    }

    .contact-form-container h2 {
        font-size: 2em;
        margin: 0 0 15px 0;
    }

    .contact-form {
        gap: 10px;
    }

    .form-group {
        gap: 4px;
    }

    .form-group label {
        font-size: 1em;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 8px 10px;
        font-size: 1em;
    }

    .submit-btn {
        padding: 10px 20px;
        font-size: 1.1em;
        margin-top: 5px;
    }
    
}

@media (max-width: 1230px) {
    .panel3-txt {
        width: 38%;
        h2 {
            font-size: 4em;
        }
        p {
            font-size: 1.3em;
        }
    }
    .matej-photo {
        height: 70%;
    }
}
@media (max-width: 1050px) {
    .panel3-txt {
        width: 45%;
        h2 {
            font-size: 3em;
        }
        p {
            font-size: 1em;
        }
    }
    

}

@media (max-width: 600px) {
    .navbar {
        display: none;
    }
    .panel1, .panel3 {
        height: 800px;

    }
    .panel1-txt {
        top: 50%;
        transform: translate(0, -50%);
        text-align: center;
        display: flex;
        flex-direction: column;
        justify-content: center;
        h1 {
            font-size: 2em;
            margin: 0;
        }
        h2 {
            font-size: 4em;
            margin: 0;
        }
    }
    .panel3-txt {
        left: 10%;
        width: 80%;
        h2 {
            font-size: 4em;
            text-align: center;
        }
        p {
            font-size: 1.5em;
            text-align: center;
        }
    }
    .matej-photo {
        display: none;
    }
    .panel2 {
        height: 1500px;
        max-height: none;
        min-height: none;
    }
    .gallery-grid {
        flex-direction: column;
        gap: 20px;
    }
    .gallery-grid img {
        width: 100%;
        height: auto;
    }
    .panel4{
        height: 1500px;
        max-height: 1500px;
        min-height: 1500px;
    }
    .panel4-txt {
        height: 50%;
        top: 0;
        width: 80%;
        left: 10%;
        h2 {
            text-align: center;
            margin-left: 0;
        }
        p {
            margin-left: 0;
            margin-bottom: 5px;
        }
        p2 {
            text-align: center;
            margin-left: 0;
        }
     }
     .social-links {
         justify-content: center;
         margin-left: 0;
         margin-top: 20px;
     }
    .contact-form-container {
        height: 50%;
        top: 50%;
        width: 80%;
        left: 10%;
    }
    /* Skryje šipky ve fullscreen režimu na mobilu */
    .nav-arrow { display: none; }
}

@media (max-width: 425px) {
    .navbar {
        display: none;
    }
    .panel1 {
        height: 600px;
    }
    .panel3 {
        height: 800px;

    }
    .panel1-txt {
        top: 70%;
        transform: translate(0, -50%);
        text-align: center;
        display: flex;
        flex-direction: column;
        justify-content: center;
        h1 {
            font-size: 2em;
            margin: 0;
        }
        h2 {
            font-size: 4em;
            margin: 0;
        }
    }
    .panel3-txt {
        left: 10%;
        width: 80%;
        h2 {
            font-size: 4em;
            text-align: center;
        }
        p {
            font-size: 1.5em;
            text-align: justify;
        }
    }
    .matej-photo {
        display: none;
    }
    .panel2 {
        height: 1200px;
        max-height: none;
        min-height: none;
    }
    .gallery-grid {
        flex-direction: column;
        gap: 20px;
    }
    .gallery-grid img {
        width: 100%;
        height: auto;
    }
    .panel4{
        height: 1500px;
    }
    .panel4-txt {
        height: 50%;
        top: 0;
        width: 80%;
        left: 10%;
        h2 {
            text-align: center;
            margin-left: 0;
        }
        p {
            margin-left: 0;
            margin-bottom: 5px;
        }
        p2 {
            text-align: center;
            margin-left: 0;
        }
     }
     .social-links {
         justify-content: center;
         margin-left: 0;
         margin-top: 20px;
     }
    .contact-form-container {
        height: 50%;
        top: 50%;
        width: 80%;
        left: 10%;
    }
    /* Skryje šipky ve fullscreen režimu na mobilu */
    .nav-arrow { display: none; }
}