:root {
    --gallery-ink: #173942;
    --gallery-blue: #2b5a6a;
    --gallery-sand: #d4c5a6;
    --gallery-cream: #f5f1e8;
}

.gallery-page-hero {
    position: relative;
    display: grid;
    min-height: min(760px, 82vh);
    place-items: center;
    overflow: hidden;
    background: var(--gallery-ink);
    color: #fff;
}

.gallery-page-hero__image,
.gallery-page-hero__overlay {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.gallery-page-hero__image {
    object-fit: cover;
    object-position: center;
    animation: galleryHeroScale 14s ease-out both;
}

.gallery-page-hero__overlay {
    background: linear-gradient(180deg, rgba(9, 28, 33, .28), rgba(9, 28, 33, .72));
}

.gallery-page-hero__content {
    position: relative;
    z-index: 1;
    width: min(760px, calc(100% - 40px));
    padding: 150px 0 90px;
    text-align: center;
}

.gallery-page-hero__content > span,
.gallery-page__eyebrow {
    display: block;
    margin-bottom: 20px;
    color: var(--gallery-sand);
    font: 600 11px/1.4 Montserrat, sans-serif;
    letter-spacing: .28em;
    text-transform: uppercase;
}

.gallery-page-hero h1 {
    margin: 0 0 22px;
    font: 400 clamp(64px, 11vw, 132px)/.9 "Playfair Display", serif;
    letter-spacing: -.035em;
}

.gallery-page-hero p {
    max-width: 650px;
    margin: 0 auto 36px;
    color: rgba(255, 255, 255, .9);
    font: 300 clamp(15px, 2vw, 18px)/1.8 Montserrat, sans-serif;
}

.gallery-page-hero a {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, .55);
    padding: 8px 2px;
    color: #fff;
    font: 600 11px/1.4 Montserrat, sans-serif;
    letter-spacing: .2em;
    text-decoration: none;
    text-transform: uppercase;
    transition: border-color .3s ease, color .3s ease;
}

.gallery-page-hero a:hover {
    border-color: var(--gallery-sand);
    color: var(--gallery-sand);
}

.gallery-page {
    background: var(--gallery-cream);
    padding: clamp(80px, 10vw, 140px) clamp(18px, 4vw, 64px) 140px;
}

.gallery-page__intro {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, .7fr);
    gap: clamp(40px, 8vw, 130px);
    align-items: end;
    max-width: 1500px;
    margin: 0 auto 60px;
}

.gallery-page__eyebrow {
    margin-bottom: 16px;
    color: var(--gallery-blue);
}

.gallery-page__intro h2 {
    max-width: 760px;
    color: var(--gallery-ink);
    font: 400 clamp(40px, 6vw, 74px)/1.04 "Playfair Display", serif;
    letter-spacing: -.025em;
}

.gallery-page__intro h2 em {
    color: var(--gallery-blue);
    font-weight: 400;
}

.gallery-page__intro p {
    max-width: 520px;
    color: #5e6769;
    font: 300 16px/1.8 Montserrat, sans-serif;
}

.gallery-page__filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    max-width: 1500px;
    margin: 0 auto 18px;
    padding-top: 30px;
    border-top: 1px solid rgba(23, 57, 66, .15);
}

.gallery-filter {
    border: 1px solid rgba(23, 57, 66, .18);
    border-radius: 0;
    background: transparent;
    padding: 13px 18px;
    color: var(--gallery-ink);
    cursor: pointer;
    font: 600 10px/1.2 Montserrat, sans-serif;
    letter-spacing: .15em;
    text-transform: uppercase;
    transition: background .25s ease, border-color .25s ease, color .25s ease;
}

.gallery-filter span {
    margin-left: 7px;
    opacity: .55;
}

.gallery-filter:hover,
.gallery-filter.is-active {
    border-color: var(--gallery-blue);
    background: var(--gallery-blue);
    color: #fff;
}

.gallery-results {
    max-width: 1500px;
    margin: 0 auto 30px;
    color: #7a8081;
    font: 500 11px/1.5 Montserrat, sans-serif;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.gallery-mosaic {
    max-width: 1500px;
    margin: 0 auto;
    column-count: 4;
    column-gap: 16px;
}

.gallery-mosaic__entry {
    margin: 0 0 16px;
    break-inside: avoid;
}

.gallery-mosaic__entry[hidden] {
    display: none;
}

.gallery-mosaic__item {
    position: relative;
    display: block;
    width: 100%;
    overflow: hidden;
    border: 0;
    border-radius: 0;
    background: #d9d7cf;
    color: #fff;
    cursor: zoom-in;
    text-align: left;
}

.gallery-mosaic__item img {
    display: block;
    width: 100%;
    height: auto;
    transition: transform .7s cubic-bezier(.2, .7, .2, 1), filter .5s ease;
}

.gallery-mosaic__shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 45%, rgba(7, 22, 26, .8));
    opacity: .65;
    transition: opacity .35s ease;
}

.gallery-mosaic__caption {
    position: absolute;
    right: 22px;
    bottom: 20px;
    left: 22px;
    transform: translateY(8px);
    opacity: 0;
    font: 400 13px/1.45 Montserrat, sans-serif;
    transition: opacity .35s ease, transform .35s ease;
}

.gallery-mosaic__caption small {
    display: block;
    margin-bottom: 5px;
    color: var(--gallery-sand);
    font-size: 9px;
    font-weight: 600;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.gallery-mosaic__zoom {
    position: absolute;
    top: 18px;
    right: 18px;
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .55);
    background: rgba(9, 28, 33, .2);
    opacity: 0;
    backdrop-filter: blur(8px);
    transition: opacity .35s ease, transform .35s ease;
}

.gallery-mosaic__zoom svg {
    width: 20px;
    height: 20px;
}

.gallery-mosaic__item:hover img,
.gallery-mosaic__item:focus-visible img {
    transform: scale(1.045);
    filter: saturate(1.04);
}

.gallery-mosaic__item:hover .gallery-mosaic__shade,
.gallery-mosaic__item:focus-visible .gallery-mosaic__shade {
    opacity: 1;
}

.gallery-mosaic__item:hover .gallery-mosaic__caption,
.gallery-mosaic__item:focus-visible .gallery-mosaic__caption,
.gallery-mosaic__item:hover .gallery-mosaic__zoom,
.gallery-mosaic__item:focus-visible .gallery-mosaic__zoom {
    transform: translateY(0);
    opacity: 1;
}

.gallery-mosaic__item:focus-visible,
.gallery-filter:focus-visible,
.vz-gallery-lightbox button:focus-visible {
    outline: 3px solid var(--gallery-sand);
    outline-offset: 3px;
}

.vz-gallery-lightbox {
    position: fixed;
    inset: 0;
    z-index: 20000;
    display: grid;
    place-items: center;
    opacity: 0;
    transition: opacity .25s ease;
}

.vz-gallery-lightbox[hidden] {
    display: none;
}

.vz-gallery-lightbox.is-open {
    opacity: 1;
}

.vz-gallery-lightbox__backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    background: rgba(5, 17, 20, .96);
    cursor: zoom-out;
}

.vz-gallery-lightbox__stage {
    position: relative;
    z-index: 1;
    display: grid;
    width: 100%;
    height: 100%;
    place-items: center;
    padding: 76px 100px 62px;
    pointer-events: none;
}

.vz-gallery-lightbox__figure {
    display: grid;
    max-width: 100%;
    max-height: 100%;
    place-items: center;
    pointer-events: auto;
}

.vz-gallery-lightbox__figure img {
    display: block;
    max-width: 100%;
    max-height: calc(100vh - 170px);
    object-fit: contain;
    box-shadow: 0 30px 90px rgba(0, 0, 0, .42);
}

.vz-gallery-lightbox__figure figcaption {
    max-width: 760px;
    padding: 16px 20px 0;
    color: rgba(255, 255, 255, .86);
    font: 400 13px/1.5 Montserrat, sans-serif;
    text-align: center;
}

.vz-gallery-lightbox__close,
.vz-gallery-lightbox__nav {
    position: absolute;
    z-index: 2;
    display: grid;
    width: 50px;
    height: 50px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .35);
    background: rgba(255, 255, 255, .08);
    color: #fff;
    cursor: pointer;
    pointer-events: auto;
    transition: background .25s ease, border-color .25s ease, transform .25s ease;
}

.vz-gallery-lightbox__close:hover,
.vz-gallery-lightbox__nav:hover {
    border-color: var(--gallery-sand);
    background: rgba(212, 197, 166, .18);
}

.vz-gallery-lightbox__close {
    top: 24px;
    right: 28px;
}

.vz-gallery-lightbox__close svg,
.vz-gallery-lightbox__nav svg {
    width: 24px;
    height: 24px;
}

.vz-gallery-lightbox__nav {
    top: 50%;
    transform: translateY(-50%);
}

.vz-gallery-lightbox__nav:hover {
    transform: translateY(-50%) scale(1.06);
}

.vz-gallery-lightbox__nav--prev {
    left: 28px;
}

.vz-gallery-lightbox__nav--next {
    right: 28px;
}

.vz-gallery-lightbox__counter {
    position: absolute;
    right: 0;
    bottom: 24px;
    left: 0;
    color: rgba(255, 255, 255, .7);
    font: 500 11px/1.4 Montserrat, sans-serif;
    letter-spacing: .18em;
    text-align: center;
}

body.gallery-lightbox-open {
    overflow: hidden;
}

@keyframes galleryHeroScale {
    from { transform: scale(1.06); }
    to { transform: scale(1); }
}

@media (max-width: 1180px) {
    .gallery-mosaic { column-count: 3; }
}

@media (max-width: 820px) {
    .gallery-page-hero { min-height: 680px; }
    .gallery-page__intro { grid-template-columns: 1fr; gap: 26px; }
    .gallery-page__intro p { max-width: 680px; }
    .gallery-mosaic { column-count: 2; column-gap: 10px; }
    .gallery-mosaic__entry { margin-bottom: 10px; }
    .gallery-mosaic__caption { right: 14px; bottom: 14px; left: 14px; opacity: 1; transform: none; font-size: 11px; }
    .gallery-mosaic__shade { opacity: .85; }
    .gallery-mosaic__zoom { display: none; }
    .vz-gallery-lightbox__stage { padding: 74px 16px 86px; }
    .vz-gallery-lightbox__figure img { max-height: calc(100vh - 190px); }
    .vz-gallery-lightbox__nav { top: auto; bottom: 20px; transform: none; }
    .vz-gallery-lightbox__nav:hover { transform: scale(1.06); }
    .vz-gallery-lightbox__nav--prev { left: 18px; }
    .vz-gallery-lightbox__nav--next { right: 18px; }
    .vz-gallery-lightbox__counter { bottom: 36px; }
}

@media (max-width: 520px) {
    .gallery-page { padding-right: 12px; padding-left: 12px; }
    .gallery-page__intro,
    .gallery-page__filters,
    .gallery-results { padding-right: 6px; padding-left: 6px; }
    .gallery-page__filters { flex-wrap: nowrap; margin-right: -12px; margin-left: -12px; padding-right: 18px; padding-left: 18px; overflow-x: auto; scrollbar-width: none; }
    .gallery-page__filters::-webkit-scrollbar { display: none; }
    .gallery-filter { flex: 0 0 auto; }
    .gallery-mosaic { column-count: 1; }
}

@media (prefers-reduced-motion: reduce) {
    .gallery-page-hero__image { animation: none; }
    .gallery-mosaic__item img,
    .gallery-mosaic__caption,
    .gallery-mosaic__zoom,
    .vz-gallery-lightbox { transition: none; }
}
