html{
    scroll-padding-top:104px;
}

.gallery-page-body{
    min-height:100vh;
    background:
        radial-gradient(circle at top left, rgba(49,231,211,.12), transparent 28%),
        radial-gradient(circle at 80% 10%, rgba(255,159,67,.12), transparent 24%),
        #050706;
}

.gallery-header{
    background:rgba(5,7,6,.94);
    backdrop-filter:none;
    -webkit-backdrop-filter:none;
}

.gallery-main{
    overflow:hidden;
}

.gallery-hero{
    position:relative;
    min-height:620px;
    display:flex;
    align-items:end;
    padding:130px 0 62px;
    border-bottom:1px solid rgba(255,255,255,.08);
    isolation:isolate;
}

.gallery-hero-bg,
.gallery-hero-overlay{
    position:absolute;
    inset:0;
    z-index:-2;
}

.gallery-hero-bg{
    background-position:center;
    background-size:cover;
    transform:scale(1.02);
    filter:saturate(.92) brightness(.72);
}

.gallery-hero-overlay{
    z-index:-1;
    background:
        linear-gradient(90deg, rgba(5,7,6,.92), rgba(5,7,6,.56) 52%, rgba(5,7,6,.76)),
        linear-gradient(180deg, rgba(5,7,6,.1), #050706 100%);
}

.gallery-hero-grid{
    display:grid;
    grid-template-columns:minmax(0,1fr) minmax(300px,430px);
    gap:34px;
    align-items:end;
}

.gallery-hero-copy h1{
    max-width:10ch;
    font-size:clamp(48px,7vw,106px);
    line-height:.86;
    letter-spacing:-.075em;
    text-transform:none;
    margin-bottom:20px;
}

.gallery-hero-copy .lead{
    max-width:780px;
    color:#d6e5df;
}

.gallery-hero-actions{
    display:flex;
    gap:14px;
    flex-wrap:wrap;
    margin-top:28px;
}

.gallery-hero-card{
    border:1px solid rgba(255,255,255,.12);
    background:linear-gradient(180deg,rgba(255,255,255,.1),rgba(255,255,255,.045));
    border-radius:28px;
    padding:24px 26px;
    box-shadow:0 32px 90px rgba(0,0,0,.28);
}

.gallery-hero-card span{
    display:block;
    margin-bottom:12px;
    color:var(--accent);
    font-size:12px;
    font-weight:900;
    text-transform:uppercase;
    letter-spacing:.18em;
}

.gallery-hero-card p{
    margin:0;
    color:#c8d9d2;
    line-height:1.7;
}

.gallery-hero-card b{
    color:#fff;
    font-weight:800;
    white-space:nowrap;
}

.gallery-anchor-strip{
    position:sticky;
    top:76px;
    z-index:15;
    padding:12px 0;
    background:rgba(5,7,6,.94);
    border-bottom:1px solid rgba(255,255,255,.08);
}

.gallery-anchor-list{
    display:flex;
    gap:10px;
    overflow-x:auto;
    scrollbar-width:none;
}

.gallery-anchor-list::-webkit-scrollbar{display:none}

.gallery-anchor-list a{
    display:inline-flex;
    align-items:center;
    gap:9px;
    flex:0 0 auto;
    padding:11px 14px;
    border-radius:999px;
    border:1px solid rgba(255,255,255,.12);
    background:rgba(255,255,255,.045);
    color:#d6e3dd;
    text-decoration:none;
    font-size:13px;
    font-weight:800;
    letter-spacing:.06em;
    text-transform:uppercase;
}

.gallery-anchor-list a:hover{
    border-color:rgba(49,231,211,.5);
    background:rgba(49,231,211,.1);
    color:#effffc;
}

.gallery-anchor-list span{
    color:var(--accent);
    letter-spacing:.16em;
}

.gallery-place-section{
    padding:82px 0;
    background:
        radial-gradient(circle at 14% 8%, rgba(49,231,211,.08), transparent 26%),
        #050706;
    border-bottom:1px solid rgba(255,255,255,.07);
}

.gallery-place-section:nth-of-type(even){
    background:
        radial-gradient(circle at 86% 12%, rgba(255,159,67,.08), transparent 24%),
        #060807;
}

.gallery-section-head{
    display:grid;
    grid-template-columns:minmax(0,1fr) auto;
    gap:24px;
    align-items:end;
    margin-bottom:26px;
}

.gallery-section-head h2{
    max-width:none;
    font-size:clamp(34px,5vw,66px);
    line-height:.9;
    letter-spacing:-.06em;
    text-transform:none;
    margin-bottom:12px;
}

.gallery-section-head p:not(.eyebrow){
    max-width:760px;
    margin:0;
    color:#c4d6cf;
    font-size:18px;
    line-height:1.65;
}

.gallery-anchor-code{
    min-width:220px;
    justify-self:end;
    padding:16px 18px;
    border-radius:20px;
    border:1px solid rgba(49,231,211,.25);
    background:rgba(49,231,211,.08);
    color:#e8fffb;
    text-decoration:none;
}

.gallery-anchor-code span{
    display:block;
    margin-bottom:7px;
    color:#8fa39b;
    font-size:12px;
    font-weight:800;
    letter-spacing:.12em;
    text-transform:uppercase;
}

.gallery-anchor-code code{
    color:var(--accent);
    font-family:inherit;
    font-size:15px;
    font-weight:900;
}

.place-gallery-grid{
    display:grid;
    grid-template-columns:1.2fr .9fr .9fr;
    grid-auto-rows:250px;
    gap:14px;
}

.place-photo{
    position:relative;
    display:block;
    overflow:hidden;
    min-width:0;
    border-radius:26px;
    border:1px solid rgba(255,255,255,.1);
    background:rgba(255,255,255,.04);
    box-shadow:0 26px 80px rgba(0,0,0,.22);
    text-decoration:none;
    color:white;
}

.place-photo.is-large{
    grid-row:span 2;
}

.gallery-place-section.is-reverse .place-photo.is-large{
    grid-column:3;
    grid-row:span 2;
}

.gallery-place-section.is-reverse .place-photo:nth-child(2){grid-column:1}
.gallery-place-section.is-reverse .place-photo:nth-child(3){grid-column:2}
.gallery-place-section.is-reverse .place-photo:nth-child(4){grid-column:1}
.gallery-place-section.is-reverse .place-photo:nth-child(5){grid-column:2}

.place-photo img{
    width:100%;
    height:100%;
    display:block;
    object-fit:cover;
    transform:scale(1.01);
    transition:transform .45s ease, filter .45s ease;
}

.place-photo:after{
    content:"";
    position:absolute;
    inset:0;
    background:linear-gradient(180deg, transparent 48%, rgba(0,0,0,.72));
    pointer-events:none;
}

.place-photo span{
    position:absolute;
    left:18px;
    right:18px;
    bottom:16px;
    z-index:2;
    color:#fff;
    font-size:17px;
    font-weight:900;
    line-height:1.2;
    text-shadow:0 6px 24px rgba(0,0,0,.45);
}

.place-photo:hover img{
    transform:scale(1.055);
    filter:saturate(1.04) brightness(1.05);
}

.gallery-bottom-cta{
    padding:30px 0 88px;
    background:#050706;
}

.gallery-bottom-card{
    display:grid;
    grid-template-columns:minmax(0,1fr) auto;
    gap:24px;
    align-items:center;
    padding:30px 34px;
    border-radius:32px;
    border:1px solid rgba(49,231,211,.24);
    background:linear-gradient(120deg,rgba(49,231,211,.12),rgba(255,255,255,.04));
}

.gallery-bottom-card h2{
    max-width:none;
    font-size:clamp(30px,4vw,50px);
    line-height:.95;
    letter-spacing:-.05em;
    text-transform:none;
    margin-bottom:10px;
}

.gallery-bottom-card p:not(.eyebrow){
    margin:0;
    color:#c7d9d2;
    line-height:1.6;
}

@media (max-width:1180px){
    .gallery-hero-grid,
    .gallery-section-head,
    .gallery-bottom-card{
        grid-template-columns:1fr;
    }

    .gallery-hero-card,
    .gallery-anchor-code{
        justify-self:start;
    }

    .place-gallery-grid{
        grid-auto-rows:220px;
    }
}

@media (max-width:860px){
    html{scroll-padding-top:92px}

    .gallery-hero{
        min-height:auto;
        padding:118px 0 48px;
    }

    .gallery-hero-copy h1{
        font-size:clamp(40px,14vw,72px);
        max-width:8ch;
    }

    .gallery-anchor-strip{
        top:70px;
    }

    .gallery-place-section{
        padding:58px 0;
    }

    .gallery-section-head p:not(.eyebrow){
        font-size:16px;
    }

    .place-gallery-grid{
        grid-template-columns:1fr 1fr;
        grid-auto-rows:210px;
    }

    .place-photo.is-large,
    .gallery-place-section.is-reverse .place-photo.is-large{
        grid-column:1 / -1;
        grid-row:span 1;
    }

    .gallery-place-section.is-reverse .place-photo:nth-child(n){
        grid-column:auto;
    }
}

@media (max-width:560px){
    .gallery-hero-actions{
        flex-direction:column;
        align-items:stretch;
    }

    .gallery-hero-actions .btn,
    .gallery-bottom-card .btn{
        width:100%;
    }

    .gallery-anchor-code{
        width:100%;
        min-width:0;
    }

    .place-gallery-grid{
        grid-template-columns:1fr;
        grid-auto-rows:260px;
        gap:12px;
    }

    .place-photo{
        border-radius:22px;
    }

    .gallery-bottom-card{
        padding:24px;
    }
}
