.gallery-page {
    --gallery-ink: #102b3b;
    --gallery-deep: #071f2b;
    --gallery-gold: #e1ae35;
    --gallery-cream: #f5f1e7;
    background: var(--gallery-cream);
    color: var(--gallery-ink);
}

.gallery-page .navbar {
    background: rgba(7, 31, 43, .72);
    border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.gallery-shell {
    margin: 0 auto;
    max-width: 1240px;
    padding-left: 28px;
    padding-right: 28px;
    position: relative;
    width: 100%;
    z-index: 1;
}

.gallery-hero {
    background: var(--gallery-deep);
    color: #fff;
    min-height: 760px;
    overflow: hidden;
    padding: 185px 0 116px;
    position: relative;
}

.gallery-hero::before {
    background-image: linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px);
    background-size: 84px 84px;
    content: '';
    inset: 0;
    opacity: .45;
    position: absolute;
}

.gallery-hero__inner {
    align-items: center;
    display: grid;
    gap: 70px;
    grid-template-columns: minmax(0, .82fr) minmax(420px, .95fr);
}

.gallery-hero__copy {
    max-width: 540px;
}

.gallery-eyebrow {
    color: var(--gallery-gold);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .2em;
    margin: 0 0 19px;
    text-transform: uppercase;
}

.gallery-hero h1 {
    color: #fff;
    font-size: clamp(3.4rem, 6vw, 6.2rem);
    font-weight: 400;
    letter-spacing: -.065em;
    line-height: .97;
    margin: 0;
    max-width: 610px;
}

.gallery-hero h1 span,
.gallery-intro h2 em,
.gallery-section-heading h2 em {
    color: var(--gallery-gold);
    font-style: normal;
}

.gallery-hero__lede {
    color: rgba(255, 255, 255, .68);
    font-size: 18px;
    line-height: 1.65 !important;
    margin: 30px 0 34px;
    max-width: 430px;
}

.gallery-button {
    align-items: center;
    display: inline-flex;
    font-size: 13px;
    font-weight: 800;
    gap: 22px;
    letter-spacing: .08em;
    padding: 16px 22px;
    text-decoration: none;
    text-transform: uppercase;
    transition: background .25s ease, color .25s ease, transform .25s ease;
}

.gallery-button:hover,
.gallery-button:focus {
    text-decoration: none;
    transform: translateY(-2px);
}

.gallery-button--gold {
    background: var(--gallery-gold);
    color: var(--gallery-deep);
}

.gallery-button--gold:hover,
.gallery-button--gold:focus {
    background: #f3ce79;
    color: var(--gallery-deep);
}

.gallery-hero__visual {
    height: 520px;
    position: relative;
}

.gallery-hero__portrait {
    background: #173b4b;
    box-shadow: 0 28px 70px rgba(0, 0, 0, .35);
    height: 465px;
    margin: 0;
    overflow: hidden;
    position: absolute;
    width: 335px;
}

.gallery-hero__portrait img {
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.gallery-hero__portrait--back {
    right: 8%;
    top: 0;
    transform: rotate(5deg);
}

.gallery-hero__portrait--front {
    left: 8%;
    top: 44px;
    transform: rotate(-5deg);
    z-index: 1;
}

.gallery-hero__portrait--front::after {
    border: 1px solid rgba(225, 174, 53, .7);
    content: '';
    inset: 13px;
    pointer-events: none;
    position: absolute;
}

.gallery-hero__marker {
    align-items: center;
    bottom: 5px;
    color: var(--gallery-gold);
    display: flex;
    font-size: 11px;
    font-weight: 800;
    gap: 10px;
    letter-spacing: .15em;
    position: absolute;
    right: 4%;
}

.gallery-hero__marker i {
    background: var(--gallery-gold);
    display: block;
    height: 1px;
    width: 46px;
}

.gallery-hero__glow {
    background: var(--gallery-gold);
    border-radius: 50%;
    bottom: -250px;
    filter: blur(100px);
    height: 440px;
    opacity: .12;
    position: absolute;
    right: -100px;
    width: 440px;
}

.gallery-intro {
    background: var(--gallery-cream);
    padding: 110px 0 92px;
}

.gallery-intro__inner {
    display: grid;
    grid-template-columns: .7fr 1.3fr;
}

.gallery-intro__heading {
    align-items: end;
    display: grid;
    gap: 50px;
    grid-template-columns: minmax(0, 1fr) 260px;
}

.gallery-intro h2,
.gallery-section-heading h2,
.gallery-cta h2 {
    color: var(--gallery-ink);
    font-size: clamp(2.5rem, 4.3vw, 4.6rem);
    font-weight: 400;
    letter-spacing: -.055em;
    line-height: .98;
    margin: 0;
}

.gallery-intro__heading p,
.gallery-section-heading > p:last-child {
    color: #5d6e73;
    font-size: 16px;
    line-height: 1.65 !important;
    margin: 0 0 3px;
}

.gallery-grid-section {
    background: #fff;
    padding: 104px 0 124px;
}

.gallery-grid-section--archive {
    background: var(--gallery-cream);
    padding-top: 92px;
}

.gallery-section-heading {
    align-items: end;
    display: grid;
    grid-template-columns: 1fr 1.2fr 220px;
    margin-bottom: 48px;
}

.gallery-section-heading .gallery-eyebrow {
    align-self: start;
    margin-top: 8px;
}

.gallery-section-heading h2 {
    font-size: clamp(2.35rem, 4vw, 4.2rem);
}

.gallery-section-heading--archive {
    grid-template-columns: 1fr 1.2fr auto;
}

.gallery-archive-link {
    align-items: center;
    border-bottom: 1px solid rgba(16, 43, 59, .35);
    color: var(--gallery-ink);
    display: inline-flex;
    font-size: 12px;
    font-weight: 800;
    gap: 17px;
    justify-self: end;
    letter-spacing: .1em;
    padding-bottom: 8px;
    text-decoration: none;
    text-transform: uppercase;
    transition: border-color .2s ease, color .2s ease;
}

.gallery-archive-link:hover,
.gallery-archive-link:focus {
    border-color: var(--gallery-gold);
    color: #9b7118;
    text-decoration: none;
}

.gallery-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(12, minmax(0, 1fr));
}

.gallery-grid--archive {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.gallery-card {
    background: var(--gallery-deep);
    border: 0;
    cursor: pointer;
    display: block;
    overflow: hidden;
    padding: 0;
    position: relative;
    text-align: left;
}

.gallery-card:focus-visible {
    outline: 3px solid var(--gallery-gold);
    outline-offset: 4px;
}

.gallery-card img {
    display: block;
    height: 100%;
    object-fit: cover;
    transition: transform .65s cubic-bezier(.2, .65, .2, 1), filter .65s ease;
    width: 100%;
}

.gallery-card:hover img,
.gallery-card:focus img {
    filter: saturate(1.08);
    transform: scale(1.045);
}

.gallery-card::after {
    background: linear-gradient(180deg, transparent 42%, rgba(7, 31, 43, .92) 100%);
    content: '';
    inset: 0;
    pointer-events: none;
    position: absolute;
}

.gallery-card--portrait {
    grid-column: span 4;
    height: 570px;
}

.gallery-card--portrait img {
    object-position: center top;
}

.gallery-card--wide {
    grid-column: span 8;
    height: 270px;
}

.gallery-card--wide img {
    object-position: center 42%;
}

.gallery-card--banner {
    grid-column: span 4;
    height: 188px;
}

.gallery-card--banner img {
    object-fit: contain;
    object-position: center;
}

.gallery-card--archive {
    aspect-ratio: 900 / 637;
    grid-column: span 1;
    height: auto;
}

.gallery-card--archive img {
    object-position: center;
}

.gallery-card__caption {
    bottom: 23px;
    color: #fff;
    display: flex;
    flex-direction: column;
    gap: 4px;
    left: 24px;
    position: absolute;
    right: 24px;
    z-index: 1;
}

.gallery-card__caption small {
    color: var(--gallery-gold);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.gallery-card__caption strong {
    font-size: 20px;
    font-weight: 400;
}

.gallery-card--banner .gallery-card__caption strong {
    font-size: 16px;
}

.gallery-cta {
    background: var(--gallery-deep);
    color: #fff;
    padding: 78px 0;
}

.gallery-cta__inner {
    align-items: center;
    display: flex;
    justify-content: space-between;
}

.gallery-cta h2 {
    color: #fff;
    font-size: clamp(2.1rem, 4vw, 4rem);
}

.gallery-button--outline {
    border: 1px solid var(--gallery-gold);
    color: #fff;
}

.gallery-button--outline:hover,
.gallery-button--outline:focus {
    background: var(--gallery-gold);
    color: var(--gallery-deep);
}

.gallery-lightbox {
    align-items: center;
    display: flex;
    inset: 0;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    position: fixed;
    transition: opacity .25s ease;
    z-index: 11000;
}

.gallery-lightbox.is-open {
    opacity: 1;
    pointer-events: auto;
}

.gallery-lightbox__backdrop {
    background: rgba(3, 15, 22, .94);
    inset: 0;
    position: absolute;
}

.gallery-lightbox__panel {
    align-items: center;
    display: flex;
    max-height: 92vh;
    max-width: 1160px;
    padding: 40px 70px;
    position: relative;
    width: 100%;
}

.gallery-lightbox__panel figure {
    margin: 0 auto;
    max-height: 82vh;
    max-width: 930px;
    position: relative;
}

.gallery-lightbox__panel img {
    display: block;
    max-height: 72vh;
    max-width: 100%;
    object-fit: contain;
}

.gallery-lightbox__panel figcaption {
    background: linear-gradient(180deg, transparent, rgba(3, 15, 22, .9));
    bottom: 0;
    color: #fff;
    display: flex;
    flex-direction: column;
    gap: 4px;
    left: 0;
    padding: 48px 25px 20px;
    position: absolute;
    right: 0;
}

.gallery-lightbox__panel figcaption span {
    color: var(--gallery-gold);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.gallery-lightbox__panel figcaption strong {
    font-size: 22px;
    font-weight: 400;
}

.gallery-lightbox__close,
.gallery-lightbox__nav {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, .4);
    color: #fff;
    cursor: pointer;
    font-size: 26px;
    height: 46px;
    line-height: 1;
    position: absolute;
    transition: background .2s ease, border-color .2s ease;
    width: 46px;
    z-index: 1;
}

.gallery-lightbox__close:hover,
.gallery-lightbox__close:focus,
.gallery-lightbox__nav:hover,
.gallery-lightbox__nav:focus {
    background: var(--gallery-gold);
    border-color: var(--gallery-gold);
    color: var(--gallery-deep);
    outline: 0;
}

.gallery-lightbox__close {
    right: 12px;
    top: 0;
}

.gallery-lightbox__nav--prev {
    left: 8px;
}

.gallery-lightbox__nav--next {
    right: 8px;
}

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

@media (max-width: 900px) {
    .gallery-hero__inner {
        gap: 40px;
        grid-template-columns: 1fr;
    }

    .gallery-hero {
        padding-top: 150px;
    }

    .gallery-hero__copy {
        max-width: 680px;
    }

    .gallery-hero__visual {
        height: 490px;
        margin: 0 auto;
        max-width: 580px;
        width: 100%;
    }

    .gallery-intro__inner,
    .gallery-section-heading {
        grid-template-columns: 1fr;
    }

    .gallery-intro__heading {
        gap: 24px;
        grid-template-columns: 1fr 280px;
    }

    .gallery-section-heading {
        gap: 14px;
    }

    .gallery-section-heading .gallery-eyebrow {
        margin: 0;
    }

    .gallery-card--portrait {
        grid-column: span 6;
    }

    .gallery-card--wide,
    .gallery-card--banner {
        grid-column: span 6;
    }

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

@media (max-width: 600px) {
    .gallery-shell {
        padding-left: 20px;
        padding-right: 20px;
    }

    .gallery-hero {
        min-height: 0;
        padding: 135px 0 80px;
    }

    .gallery-hero h1 {
        font-size: 3.55rem;
    }

    .gallery-hero__lede {
        font-size: 16px;
    }

    .gallery-hero__visual {
        height: 380px;
    }

    .gallery-hero__portrait {
        height: 345px;
        width: 235px;
    }

    .gallery-hero__portrait--back {
        right: 2%;
    }

    .gallery-hero__portrait--front {
        left: 2%;
        top: 34px;
    }

    .gallery-hero__marker {
        bottom: -10px;
        right: 2%;
    }

    .gallery-intro,
    .gallery-grid-section {
        padding: 72px 0;
    }

    .gallery-intro__heading {
        display: block;
    }

    .gallery-intro__heading p {
        margin-top: 26px;
    }

    .gallery-grid {
        gap: 12px;
    }

    .gallery-card--portrait,
    .gallery-card--wide,
    .gallery-card--banner {
        grid-column: 1 / -1;
    }

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

    .gallery-card--archive {
        grid-column: 1 / -1;
    }

    .gallery-card--portrait {
        height: 480px;
    }

    .gallery-card--wide {
        height: 210px;
    }

    .gallery-card--banner {
        height: 160px;
    }

    .gallery-cta {
        padding: 58px 0;
    }

    .gallery-cta__inner {
        align-items: flex-start;
        flex-direction: column;
        gap: 28px;
    }

    .gallery-lightbox__panel {
        padding: 42px 12px 20px;
    }

    .gallery-lightbox__nav {
        bottom: 0;
        position: fixed;
    }

    .gallery-lightbox__nav--prev {
        left: calc(50% - 54px);
    }

    .gallery-lightbox__nav--next {
        right: calc(50% - 54px);
    }

    .gallery-lightbox__close {
        right: 12px;
        top: 8px;
    }
}
