/* Gallery page */
.hero-gallery-page{
    min-height:70vh;
    background:
        linear-gradient(90deg,rgba(0,0,0,.88),rgba(0,0,0,.48),rgba(0,0,0,.18)),
        var(--gallery-hero) center/cover no-repeat;
}

.gallery-intro-section{
    position:relative;
}

.gallery-stats{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:16px;
    max-width:1180px;
    margin:-45px auto 70px;
    position:relative;
    z-index:3;
}

.gallery-stat-box{
    background:#fff;
    color:#111;
    border:1px solid rgba(0,0,0,.08);
    border-radius:22px;
    padding:24px;
    box-shadow:0 22px 55px rgba(15,23,42,.12);
}

.gallery-stat-box strong{
    display:block;
    font-size:30px;
    line-height:1;
    color:#111;
    margin-bottom:8px;
}

.gallery-stat-box span{
    color:#69717d;
    font-weight:800;
    font-size:13px;
    text-transform:uppercase;
    letter-spacing:.06em;
}

.gallery-title-block{
    margin-bottom:46px;
}

.gallery-title-block .dark{
    color:#111;
}

.gallery-title-block .dark:before{
    background:var(--red);
}

.gallery-masonry{
    max-width:1180px;
    margin:0 auto;
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:16px;
}

.gallery-thumb{
    position:relative;
    min-height:250px;
    border:0;
    border-radius:24px;
    overflow:hidden;
    padding:0;
    background:#111;
    cursor:pointer;
    box-shadow:0 22px 55px rgba(15,23,42,.16);
}

.gallery-thumb:nth-child(6n+1),
.gallery-thumb:nth-child(6n+4){
    grid-column:span 2;
    min-height:340px;
}

.gallery-thumb img{
    width:100%;
    height:100%;
    object-fit:cover;
    transition:transform .55s ease, filter .55s ease;
}

.gallery-thumb:hover img{
    transform:scale(1.08);
    filter:saturate(1.15) contrast(1.05);
}

.gallery-thumb-overlay{
    position:absolute;
    inset:auto 18px 18px 18px;
    display:flex;
    flex-direction:column;
    align-items:flex-start;
    gap:4px;
    padding:16px 18px;
    border-radius:18px;
    background:rgba(0,0,0,.62);
    backdrop-filter:blur(10px);
    color:#fff;
    opacity:0;
    transform:translateY(14px);
    transition:.3s ease;
    text-align:left;
}

.gallery-thumb:hover .gallery-thumb-overlay{
    opacity:1;
    transform:translateY(0);
}

.gallery-thumb-overlay span{
    font-weight:900;
    font-size:15px;
}

.gallery-thumb-overlay small{
    color:#d7dce5;
    font-weight:700;
}

.gallery-empty{
    max-width:760px;
    margin:0 auto;
    padding:40px;
    border-radius:26px;
    background:#fff;
    color:#111;
    text-align:center;
    box-shadow:0 22px 55px rgba(15,23,42,.12);
}

/* Guest gallery section */
.guest-gallery-section{
    background:
        radial-gradient(circle at top left,rgba(225,6,19,.18),transparent 34%),
        linear-gradient(180deg,#080a0f,#050609);
}

.guest-gallery-wrap{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:34px;
    align-items:center;
    max-width:1180px;
    margin:0 auto;
}

.guest-gallery-content h2{
    font-size:clamp(38px,4vw,62px);
    line-height:.95;
    margin:16px 0 18px;
    text-transform:uppercase;
    letter-spacing:-.05em;
}

.guest-gallery-content p,
.guest-gallery-content li{
    color:#c3c9d2;
    line-height:1.8;
}

.guest-gallery-content ul{
    margin:24px 0 0;
    padding-left:20px;
}

.guest-gallery-form{
    background:#fff;
    color:#111;
    border-radius:28px;
    padding:32px;
    box-shadow:0 30px 80px rgba(0,0,0,.28);
}

.guest-gallery-form h3{
    margin:0 0 18px;
    font-size:28px;
}

.form-row{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:12px;
}

.guest-gallery-form input[type="text"],
.guest-gallery-form input[type="email"],
.guest-gallery-form textarea{
    width:100%;
    border:1px solid #d8dce3;
    border-radius:14px;
    padding:14px 15px;
    margin-bottom:12px;
    font:inherit;
}

.guest-gallery-form textarea{
    min-height:120px;
    resize:vertical;
}

.upload-box{
    display:block;
    border:2px dashed #cfd4dc;
    border-radius:18px;
    padding:22px;
    margin-bottom:16px;
    background:#f7f8fa;
    cursor:pointer;
}

.upload-box span{
    display:block;
    font-weight:900;
    margin-bottom:4px;
}

.upload-box small{
    display:block;
    color:#69717d;
    margin-bottom:12px;
}

.upload-box input{
    width:100%;
}

.privacy-check{
    display:flex;
    gap:10px;
    align-items:flex-start;
    color:#58606d;
    font-size:13px;
    line-height:1.55;
    margin-bottom:18px;
}

.privacy-check input{
    margin-top:3px;
}

/* Slideshow */
.gallery-modal{
    position:fixed;
    inset:0;
    z-index:9999;
    display:none;
    align-items:center;
    justify-content:center;
    background:rgba(0,0,0,.94);
    padding:24px;
}

.gallery-modal.open{
    display:flex;
}

.gallery-modal-inner{
    position:relative;
    width:min(1180px,100%);
    height:min(760px,90vh);
    display:grid;
    place-items:center;
}

.gallery-modal img{
    max-width:100%;
    max-height:100%;
    border-radius:22px;
    box-shadow:0 30px 80px rgba(0,0,0,.55);
}

.gallery-modal-title{
    position:absolute;
    left:50%;
    bottom:18px;
    transform:translateX(-50%);
    background:rgba(0,0,0,.64);
    color:#fff;
    border-radius:999px;
    padding:10px 18px;
    font-weight:800;
    backdrop-filter:blur(10px);
    max-width:80%;
    text-align:center;
}

.gallery-modal-close,
.gallery-modal-prev,
.gallery-modal-next{
    position:absolute;
    border:0;
    background:rgba(255,255,255,.08);
    color:#fff;
    cursor:pointer;
    display:grid;
    place-items:center;
    transition:.2s ease;
}

.gallery-modal-close:hover,
.gallery-modal-prev:hover,
.gallery-modal-next:hover{
    background:var(--red);
}

.gallery-modal-close{
    top:18px;
    right:18px;
    width:48px;
    height:48px;
    border-radius:50%;
    font-size:28px;
}

.gallery-modal-prev,
.gallery-modal-next{
    top:50%;
    transform:translateY(-50%);
    width:58px;
    height:58px;
    border-radius:50%;
    font-size:34px;
}

.gallery-modal-prev{
    left:18px;
}

.gallery-modal-next{
    right:18px;
}

.gallery-counter{
    position:absolute;
    top:22px;
    left:22px;
    color:#fff;
    background:rgba(255,255,255,.08);
    border-radius:999px;
    padding:9px 14px;
    font-weight:900;
}

@media(max-width:900px){
    .gallery-stats,
    .guest-gallery-wrap{
        grid-template-columns:1fr;
    }

    .gallery-masonry{
        grid-template-columns:repeat(2,1fr);
    }

    .gallery-thumb:nth-child(6n+1),
    .gallery-thumb:nth-child(6n+4){
        grid-column:span 1;
        min-height:250px;
    }

    .form-row{
        grid-template-columns:1fr;
    }
}

@media(max-width:560px){
    .gallery-stats{
        margin-top:-25px;
    }

    .gallery-masonry{
        grid-template-columns:1fr;
    }

    .gallery-thumb{
        min-height:260px;
    }

    .gallery-modal-prev,
    .gallery-modal-next{
        width:46px;
        height:46px;
        font-size:28px;
    }

    .gallery-modal-title{
        bottom:12px;
        max-width:92%;
        border-radius:18px;
    }
}
