*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

body{
    background:#080B10;
    color:#F5F5F5;
    font-family:'Inter',sans-serif;
    overflow-x:hidden;
}

body.no-scroll{
    overflow:hidden;
}

img{
    max-width:100%;
}

:focus-visible{
    outline:2px solid #C9A227;
    outline-offset:3px;
}

::-webkit-scrollbar{
    width:10px;
}

::-webkit-scrollbar-track{
    background:#111;
}

::-webkit-scrollbar-thumb{
    background:#C9A227;
    border-radius:50px;
}


#navbar{
    position:fixed;
    top:0;
    left:0;
    width:100%;
    padding:28px 70px;
    display:flex;
    justify-content:space-between;
    align-items:center;
    transition:.6s;
    z-index:9999;
}

#navbar.scrolled{
    background:rgba(8,11,16,.75);
    backdrop-filter:blur(18px);
    box-shadow:0 8px 30px rgba(0,0,0,.35);
    padding:16px 70px;
}

.logo{
    display:block;
    color:#fff;
    text-decoration:none;
}

.logo img{
    display:block;
    width:70px;
    height:70px;
    border-radius:50%;
    object-fit:cover;
    border:2px solid rgba(201,162,39,.6);
    transition:.6s;
}

#navbar.scrolled .logo img{
    width:58px;
    height:58px;
}

#navMenu{
    display:flex;
    gap:38px;
    list-style:none;
}

#navMenu a{
    position:relative;
    color:white;
    text-decoration:none;
    font-size:15px;
    letter-spacing:2px;
    transition:.4s;
}

#navMenu a:hover,
#navMenu a.active{
    color:#C9A227;
}

#navMenu a::after{
    content:"";
    position:absolute;
    left:0;
    bottom:-8px;
    width:0;
    height:2px;
    background:#C9A227;
    transition:.4s;
}

#navMenu a:hover::after{
    width:100%;
}

#menuBtn{
    display:none;
    width:48px;
    height:48px;
    background:none;
    border:0;
    color:#fff;
    font-size:30px;
    line-height:1;
    cursor:pointer;
}


.gallery-hero{
    min-height:70vh;
    padding:150px 8% 80px;
    display:flex;
    align-items:center;
    justify-content:center;
    text-align:center;

    /* Change the picture with --hero in gallery.html */
    background:
        linear-gradient(rgba(0,0,0,.5), rgba(0,0,0,.85)),
        radial-gradient(circle at center, rgba(201,162,39,.15), transparent 60%),
        var(--hero, none) center/cover no-repeat,
        #0d0b09;
}

.gallery-hero-content{
    max-width:900px;
}

.gallery-hero.in .eyebrow,
.gallery-hero.in h1,
.gallery-hero.in .hero-tagline,
.gallery-hero.in .hero-description{
    animation:fadeUp 1.2s ease backwards;
}

.gallery-hero.in h1{ animation-delay:.2s; }
.gallery-hero.in .hero-tagline{ animation-delay:.5s; }
.gallery-hero.in .hero-description{ animation-delay:.8s; }

.eyebrow{
    color:#C9A227;
    font-size:14px;
    letter-spacing:5px;
    text-transform:uppercase;
    margin-bottom:20px;
}

.gallery-hero h1{
    font-family:'Cinzel',serif;
    font-size:5.5rem;
    letter-spacing:6px;
    line-height:1.05;
    margin-bottom:15px;
    text-shadow:
        0 0 20px rgba(255,255,255,.2),
        0 0 50px rgba(201,162,39,.4);
}

.hero-tagline{
    color:#C9A227;
    font-size:1.6rem;
    font-weight:300;
    margin-bottom:30px;
}

.hero-description{
    max-width:720px;
    margin:0 auto;
    color:#ddd;
    font-size:1.15rem;
    line-height:2;
}



.gallery-section{
    padding:90px 6% 70px;
}

.gallery-container{
    max-width:1200px;
    margin:auto;
}

.filters{
    display:flex;
    flex-wrap:wrap;
    justify-content:center;
    gap:12px;
}

.chip{
    display:inline-flex;
    align-items:center;
    gap:10px;
    min-height:46px;
    padding:10px 24px;
    background:rgba(255,255,255,.05);
    border:1px solid rgba(255,255,255,.12);
    border-radius:40px;
    color:white;
    font:inherit;
    font-size:15px;
    letter-spacing:1px;
    cursor:pointer;
    transition:.35s;
}

.chip small{
    font-size:12px;
    color:#C9A227;
    transition:.35s;
}

.chip:hover{
    border-color:#C9A227;
    background:rgba(201,162,39,.15);
}

.chip.active{
    background:#C9A227;
    border-color:#C9A227;
    color:#000;
    font-weight:600;
}

.chip.active small{
    color:#000;
}

.photo-count{
    margin:28px 0 35px;
    text-align:center;
    color:#999;
    font-size:14px;
    letter-spacing:2px;
    text-transform:uppercase;
}

.gallery-grid{
    display:grid;
    grid-template-columns:repeat(auto-fill, minmax(300px, 1fr));
    gap:25px;
}

.photo[hidden]{
    display:none;
}

.photo{
    animation:fadeIn .6s ease;
}

.photo-btn{
    position:relative;
    display:block;
    width:100%;
    padding:0;
    overflow:hidden;
    background:#111;
    border:1px solid rgba(255,255,255,.08);
    border-radius:18px;
    cursor:pointer;
    transition:.4s;
}

.photo-btn img{
    display:block;
    width:100%;
    aspect-ratio:4 / 3;
    object-fit:cover;
    transition:.6s;
}

.photo-overlay{
    position:absolute;
    inset:0;
    display:flex;
    flex-direction:column;
    justify-content:flex-end;
    gap:4px;
    padding:22px;
    text-align:left;
    background:linear-gradient(transparent 45%, rgba(0,0,0,.85));
    opacity:0;
    transition:.4s;
}

.photo-title{
    font-family:'Cinzel',serif;
    font-size:1.25rem;
    color:white;
}

.photo-cat{
    color:#C9A227;
    font-size:12px;
    letter-spacing:3px;
    text-transform:uppercase;
}

.photo-btn:hover,
.photo-btn:focus-visible{
    transform:translateY(-10px);
    border-color:rgba(201,162,39,.5);
    box-shadow:0 20px 40px rgba(0,0,0,.45);
}

.photo-btn:hover img,
.photo-btn:focus-visible img{
    transform:scale(1.08);
}

.photo-btn:hover .photo-overlay,
.photo-btn:focus-visible .photo-overlay{
    opacity:1;
}

.js .reveal{
    opacity:0;
    transform:translateY(50px);
    transition:opacity .9s ease, transform .9s ease;
}

.js .reveal.show{
    opacity:1;
    transform:none;
}



.back-wrap{
    margin-top:80px;
    text-align:center;
}

.btn{
    display:inline-block;
    padding:18px 45px;
    border:2px solid #C9A227;
    border-radius:40px;
    color:white;
    text-decoration:none;
    letter-spacing:2px;
    transition:.4s;
}

.btn:hover{
    background:#C9A227;
    color:#000;
    transform:translateY(-5px);
}

footer{
    padding:70px 10%;
    text-align:center;
    background:#050608;
    border-top:1px solid rgba(201,162,39,.2);
}

footer h2{
    font-family:'Cinzel',serif;
    letter-spacing:5px;
    margin-bottom:20px;
}

footer p{
    margin-top:10px;
    color:#999;
}

#topBtn{
    position:fixed;
    right:30px;
    bottom:30px;
    width:55px;
    height:55px;
    border:none;
    border-radius:50%;
    background:#C9A227;
    color:#000;
    font-size:24px;
    cursor:pointer;
    opacity:0;
    pointer-events:none;
    transition:.4s;
    z-index:999;
}

#topBtn.visible{
    opacity:1;
    pointer-events:auto;
}

#topBtn:hover{
    transform:translateY(-5px);
}



#lightbox{
    position:fixed;
    inset:0;
    display:flex;
    justify-content:center;
    align-items:center;
    gap:20px;
    padding:70px 90px;
    background:rgba(0,0,0,.97);
    opacity:0;
    visibility:hidden;
    transition:.4s;
    z-index:99999;
}

#lightbox.show{
    opacity:1;
    visibility:visible;
}

.lb-figure{
    display:flex;
    flex-direction:column;
    align-items:center;
    max-width:100%;
    max-height:100%;
}

#lbImage{
    max-width:100%;
    max-height:calc(100vh - 220px);
    max-height:calc(100dvh - 220px);
    border-radius:15px;
    box-shadow:0 25px 60px rgba(0,0,0,.5);
    transition:opacity .3s;
}

#lbImage.loading{
    opacity:0;
}

.lb-figure figcaption{
    margin-top:22px;
    text-align:center;
}

#lbTitle{
    display:block;
    font-family:'Cinzel',serif;
    font-size:1.4rem;
}

#lbMeta{
    display:block;
    margin-top:8px;
    color:#C9A227;
    font-size:13px;
    letter-spacing:3px;
    text-transform:uppercase;
}

#lbClose{
    position:absolute;
    top:22px;
    right:34px;
    width:50px;
    height:50px;
    background:none;
    border:0;
    color:white;
    font-size:45px;
    line-height:1;
    cursor:pointer;
}

#lbPrev,
#lbNext{
    position:absolute;
    top:50%;
    transform:translateY(-50%);
    width:60px;
    height:60px;
    border:none;
    border-radius:50%;
    background:rgba(255,255,255,.15);
    color:white;
    font-size:28px;
    cursor:pointer;
    transition:.3s;
}

#lbPrev:hover,
#lbNext:hover{
    background:#C9A227;
}

#lbPrev{ left:30px;  }
#lbNext{ right:30px; }



@keyframes fadeUp{
    from{ opacity:0; transform:translateY(40px); }
    to  { opacity:1; transform:translateY(0);    }
}

@keyframes fadeIn{
    from{ opacity:0; }
    to  { opacity:1; }
}



/* ---------- Tablets + phones: menu button ---------- */
@media(max-width:900px){

    #navbar,
    #navbar.scrolled{
        padding:12px 20px;
        padding-top:max(12px, env(safe-area-inset-top));
    }

    body.no-scroll #navbar{
        background:#080B10;
    }

    .logo img,
    #navbar.scrolled .logo img{
        width:46px;
        height:46px;
    }

    #menuBtn{
        display:block;
    }

    #navMenu{
        position:absolute;
        top:100%;
        left:0;
        width:100%;
        display:none;
        flex-direction:column;
        gap:0;
        padding:8px 20px;
        background:#080B10;
        max-height:calc(100vh - 72px);
        max-height:calc(100dvh - 72px);
        overflow-y:auto;
    }

    #navMenu.show{
        display:flex;
    }

    #navMenu a{
        display:block;
        padding:16px 0;
        font-size:17px;
        border-bottom:1px solid rgba(255,255,255,.08);
    }

    #navMenu a::after{
        display:none;
    }

    .gallery-grid{
        grid-template-columns:repeat(auto-fill, minmax(240px, 1fr));
        gap:18px;
    }

    #lightbox{
        padding:70px 70px;
    }
}


/* ---------- Phones ---------- */
@media(max-width:768px){

    .gallery-hero{
        min-height:75vh;
        min-height:75svh;
        padding:110px 22px 60px;
    }

    .gallery-hero h1{
        font-size:clamp(2.4rem, 13vw, 3.6rem);
        letter-spacing:3px;
    }

    .hero-tagline{
        font-size:1.2rem;
        margin-bottom:22px;
    }

    .hero-description{
        font-size:1rem;
        line-height:1.8;
    }

    .eyebrow{
        font-size:12px;
        letter-spacing:3px;
    }

    .gallery-section{
        padding:55px 4% 50px;
    }

    .filters{
        flex-wrap:nowrap;
        justify-content:flex-start;
        overflow-x:auto;
        margin:0 -4%;
        padding:4px 4% 10px;
        scrollbar-width:none;
    }

    .filters::-webkit-scrollbar{
        display:none;
    }

    .chip{
        flex:0 0 auto;
        padding:10px 20px;
    }

    .photo-count{
        margin:14px 0 24px;
        font-size:12px;
    }

    .gallery-grid{
        grid-template-columns:1fr 1fr;
        gap:10px;
    }

    .photo-btn{
        border-radius:12px;
    }

    .photo-btn img{
        aspect-ratio:1 / 1;
    }

    .photo-overlay{
        opacity:1;
        padding:12px;
        background:linear-gradient(transparent 55%, rgba(0,0,0,.8));
    }

    .photo-title{
        font-size:.95rem;
    }

    .photo-cat{
        font-size:10px;
        letter-spacing:2px;
    }

    .back-wrap{
        margin-top:50px;
    }

    .btn{
        padding:16px 34px;
    }

    footer{
        padding:50px 6%;
    }

    #topBtn{
        right:16px;
        bottom:calc(16px + env(safe-area-inset-bottom));
        width:48px;
        height:48px;
    }

    #lightbox{
        padding:64px 10px 40px;
    }

    #lbImage{
        max-height:calc(100vh - 190px);
        max-height:calc(100dvh - 190px);
    }

    #lbClose{
        top:max(10px, env(safe-area-inset-top));
        right:12px;
    }

    #lbPrev,
    #lbNext{
        top:auto;
        bottom:calc(20px + env(safe-area-inset-bottom));
        transform:none;
        width:48px;
        height:48px;
        font-size:22px;
        background:rgba(255,255,255,.2);
    }

    #lbPrev{ left:20px;  }
    #lbNext{ right:20px; }

    .lb-figure figcaption{
        margin-top:16px;
        padding:0 60px;
    }

    #lbTitle{
        font-size:1.15rem;
    }
}


@media(hover:none){

    .photo-btn:hover,
    .btn:hover,
    #topBtn:hover{
        transform:none;
    }

    .photo-btn:hover img{
        transform:none;
    }
}


@media(prefers-reduced-motion:reduce){

    *{
        transition-duration:.01ms !important;
        animation-duration:.01ms !important;
        animation-delay:0s !important;
    }

    .js .reveal{
        opacity:1;
        transform:none;
    }
}
