/* ==========================================================
   ICX PHOTO GALLERY INNER UX V4
========================================================== */

.icx-gallery-library-v4,
.icx-gallery-single-v4 {
    color: var(--icx-navy-dark, #061f31);
    background: #f5f8f9;
}

.icx-gallery-kicker-v4 {
    display: flex;
    gap: 9px;
    align-items: center;
    color: var(--icx-blue, #14658f);
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.icx-gallery-kicker-v4::before {
    content: "";
    width: 26px;
    height: 2px;
    background: var(--icx-orange, #f58220);
}

.icx-gallery-section-head-v4 {
    display: flex;
    justify-content: space-between;
    gap: 32px;
    align-items: end;
    margin-bottom: 26px;
}

.icx-gallery-section-head-v4 h2 {
    max-width: 760px;
    margin: 9px 0 0;
    font-family:
        var(--icx-font-display, "Fraunces"),
        Georgia,
        serif;
    font-size: clamp(2.2rem, 3.8vw, 3.55rem);
    line-height: 1;
    letter-spacing: -.035em;
}

.icx-gallery-section-head-v4 > a {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    color: var(--icx-blue, #14658f);
    font-size: .75rem;
    font-weight: 700;
    text-decoration: none;
}

/* ----------------------------------------------------------
   ARCHIVE HERO
---------------------------------------------------------- */

.icx-gallery-library-v4__hero {
    color: #fff;
    background:
        radial-gradient(
            circle at 88% 16%,
            rgba(20, 101, 143, .34),
            transparent 27%
        ),
        linear-gradient(
            125deg,
            #052d45,
            #073f5d 58%,
            #0d5a7d
        );
    padding: clamp(44px, 5vw, 66px) 0;
}

.icx-gallery-library-v4__hero
.icx-gallery-kicker-v4 {
    color: #d2e5ec;
}

.icx-gallery-library-v4__hero-grid {
    display: grid;
    grid-template-columns:
        minmax(0, 1fr)
        minmax(280px, .58fr);
    gap: 52px;
    align-items: end;
    margin-top: 12px;
}

.icx-gallery-library-v4__hero h1 {
    margin: 0;
    font-family:
        var(--icx-font-display, "Fraunces"),
        Georgia,
        serif;
    font-size: clamp(3.2rem, 6vw, 5.4rem);
    line-height: .95;
    letter-spacing: -.045em;
}

.icx-gallery-library-v4__hero p {
    margin: 0;
    color: #d3e4eb;
    line-height: 1.68;
}

/* ----------------------------------------------------------
   CATEGORY CARDS
---------------------------------------------------------- */

.icx-gallery-categories-v4 {
    padding: clamp(44px, 5vw, 64px) 0 24px;
    background: #f5f8f9;
}

.icx-gallery-category-grid-v4 {
    display: grid;
    grid-template-columns:
        repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.icx-gallery-category-card-v4 {
    min-width: 0;
    overflow: hidden;
    border-radius: 2px 22px 2px 2px;
    background: var(--icx-navy, #07344f);
}

.icx-gallery-category-card-v4 > a {
    position: relative;
    display: block;
    min-height: 285px;
    overflow: hidden;
    color: #fff;
    text-decoration: none;
}

.icx-gallery-category-card-v4__image,
.icx-gallery-category-card-v4__shade {
    position: absolute;
    inset: 0;
    display: block;
}

.icx-gallery-category-card-v4__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 14%;
    transition: transform 230ms ease;
}

.icx-gallery-category-card-v4__shade {
    background:
        linear-gradient(
            180deg,
            rgba(2, 28, 43, .06) 30%,
            rgba(2, 28, 43, .9) 100%
        );
}

.icx-gallery-category-card-v4:hover img,
.icx-gallery-category-card-v4:focus-within img {
    transform: scale(1.025);
}

.icx-gallery-category-card-v4__copy {
    position: absolute;
    right: 20px;
    bottom: 18px;
    left: 20px;
    z-index: 2;
    display: grid;
    grid-template-columns:
        minmax(0, 1fr)
        auto;
    gap: 5px 14px;
    align-items: end;
}

.icx-gallery-category-card-v4__copy strong {
    grid-column: 1;
    font-family:
        var(--icx-font-display, "Fraunces"),
        Georgia,
        serif;
    font-size: clamp(1.45rem, 2.1vw, 2rem);
    line-height: 1.08;
}

.icx-gallery-category-card-v4__copy > span:not(
    .icx-gallery-category-card-v4__arrow
) {
    grid-column: 1;
    color: #cfe0e7;
    font-size: .69rem;
    font-weight: 700;
}

.icx-gallery-category-card-v4__arrow {
    grid-column: 2;
    grid-row: 1 / span 2;
    color: #ffd2ad;
    font-size: 1.25rem;
}

/* ----------------------------------------------------------
   ARCHIVE GALLERY LIST
---------------------------------------------------------- */

.icx-gallery-list-v4 {
    padding: 34px 0 clamp(72px, 8vw, 104px);
}

.icx-gallery-list-v4__head {
    display: flex;
    justify-content: space-between;
    gap: 28px;
    align-items: end;
    margin-bottom: 24px;
}

.icx-gallery-list-v4__head h2 {
    margin: 9px 0 0;
    font-family:
        var(--icx-font-display, "Fraunces"),
        Georgia,
        serif;
    font-size: clamp(2.2rem, 3.8vw, 3.5rem);
    line-height: 1;
    letter-spacing: -.035em;
}

.icx-gallery-list-v4__all {
    color: var(--icx-blue, #14658f);
    font-size: .74rem;
    font-weight: 700;
    text-decoration: none;
}

.icx-gallery-cards-v4 {
    display: grid;
    grid-template-columns:
        repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.icx-gallery-card-v4 {
    min-width: 0;
    overflow: hidden;
    border: 1px solid rgba(7,52,79,.1);
    border-radius: 2px 22px 2px 2px;
    background: #fff;
}

.icx-gallery-card-v4 > a {
    display: grid;
    height: 100%;
    grid-template-columns:
        minmax(220px, .9fr)
        minmax(0, 1.1fr);
    color: inherit;
    text-decoration: none;
}

.icx-gallery-card-v4__image {
    position: relative;
    display: block;
    min-height: 260px;
    overflow: hidden;
    background: #dbe5e9;
}

.icx-gallery-card-v4__image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 14%;
    transition: transform 220ms ease;
}

.icx-gallery-card-v4:hover img,
.icx-gallery-card-v4:focus-within img {
    transform: scale(1.025);
}

.icx-gallery-card-v4__count {
    position: absolute;
    right: 10px;
    bottom: 10px;
    padding: 6px 9px;
    border-radius: 999px;
    color: #fff;
    background: rgba(2,28,43,.78);
    font-size: .66rem;
    font-weight: 700;
}

.icx-gallery-card-v4__body {
    display: flex;
    min-width: 0;
    flex-direction: column;
    justify-content: center;
    padding: 22px;
}

.icx-gallery-card-v4__meta {
    display: flex;
    gap: 8px 14px;
    flex-wrap: wrap;
    color: #697e88;
    font-size: .68rem;
}

.icx-gallery-card-v4__meta small {
    color: var(--icx-orange, #f58220);
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.icx-gallery-card-v4__body > strong {
    display: block;
    margin-top: 10px;
    font-family:
        var(--icx-font-display, "Fraunces"),
        Georgia,
        serif;
    font-size: clamp(1.4rem, 2vw, 1.85rem);
    line-height: 1.18;
    letter-spacing: -.025em;
}

.icx-gallery-card-v4__open {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    margin-top: 18px;
    padding-top: 12px;
    border-top: 1px solid rgba(7,52,79,.1);
    color: var(--icx-blue, #14658f);
    font-size: .72rem;
    font-weight: 700;
}

.icx-gallery-empty-v4 {
    padding: 38px;
    border: 1px dashed rgba(7,52,79,.22);
    background: #fff;
    text-align: center;
}

/* ----------------------------------------------------------
   SINGLE HERO
---------------------------------------------------------- */

.icx-gallery-single-v4__hero {
    color: #fff;
    background:
        radial-gradient(
            circle at 88% 15%,
            rgba(20,101,143,.34),
            transparent 28%
        ),
        linear-gradient(
            125deg,
            #052d45,
            #073f5d 58%,
            #0d5a7d
        );
    padding: 28px 0 36px;
}

.icx-gallery-breadcrumb-v4 {
    display: flex;
    gap: 9px;
    align-items: center;
    color: #bfd6df;
    font-size: .69rem;
    font-weight: 700;
}

.icx-gallery-breadcrumb-v4 a {
    color: inherit;
    text-decoration: none;
}

.icx-gallery-breadcrumb-v4 a:hover,
.icx-gallery-breadcrumb-v4 a:focus-visible {
    color: #fff;
    text-decoration: underline;
    text-decoration-color: var(--icx-orange, #f58220);
}

.icx-gallery-single-v4__hero-grid {
    display: grid;
    grid-template-columns:
        minmax(0, 1fr)
        auto;
    gap: 42px;
    align-items: end;
    margin-top: 24px;
}

.icx-gallery-single-v4__category {
    display: inline-flex;
    color: #ffd0aa;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .09em;
    text-decoration: none;
    text-transform: uppercase;
}

.icx-gallery-single-v4 h1 {
    max-width: 980px;
    margin: 9px 0 0;
    font-family:
        var(--icx-font-display, "Fraunces"),
        Georgia,
        serif;
    font-size: clamp(2.35rem, 4.6vw, 4.25rem);
    line-height: .98;
    letter-spacing: -.04em;
}

.icx-gallery-single-v4__facts {
    display: flex;
    gap: 28px;
    padding-bottom: 5px;
}

.icx-gallery-single-v4__facts span {
    min-width: 92px;
}

.icx-gallery-single-v4__facts small {
    display: block;
    margin-bottom: 4px;
    color: #bcd4de;
    font-size: .62rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.icx-gallery-single-v4__facts strong,
.icx-gallery-single-v4__facts time {
    color: #fff;
    font-size: .81rem;
    font-weight: 700;
}

/* ----------------------------------------------------------
   MAIN VIEWER
---------------------------------------------------------- */

.icx-gallery-viewer-v4 {
    padding: 22px 0 38px;
    background: #edf3f5;
}

.icx-gallery-viewer-v4__stage {
    position: relative;
    overflow: hidden;
    border-radius: 2px 22px 2px 2px;
    background: #041d2c;
    box-shadow: 0 14px 38px rgba(3,28,43,.1);
    outline: none;
    touch-action: pan-y;
}

.icx-gallery-viewer-v4__stage:focus-visible {
    outline: 4px solid var(--icx-orange, #f58220);
    outline-offset: 4px;
}

.icx-gallery-viewer-v4__track {
    display: flex;
    will-change: transform;
    transition: transform 320ms cubic-bezier(.22,.75,.25,1);
}

.icx-gallery-viewer-v4__slide {
    display: grid;
    min-width: 100%;
    height: min(72vh, 760px);
    place-items: center;
    margin: 0;
    background: #041d2c;
}

.icx-gallery-viewer-v4__slide img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.icx-gallery-viewer-v4__arrow {
    position: absolute;
    top: 50%;
    z-index: 4;
    display: grid;
    width: 52px;
    height: 52px;
    place-items: center;
    border: 1px solid rgba(255,255,255,.3);
    border-radius: 50%;
    color: #fff;
    background: rgba(2,28,43,.72);
    cursor: pointer;
    transform: translateY(-50%);
    backdrop-filter: blur(4px);
}

.icx-gallery-viewer-v4__arrow--prev {
    left: 16px;
}

.icx-gallery-viewer-v4__arrow--next {
    right: 16px;
}

.icx-gallery-viewer-v4__arrow:hover,
.icx-gallery-viewer-v4__arrow:focus-visible {
    border-color: var(--icx-orange, #f58220);
    background: var(--icx-orange, #f58220);
}

.icx-gallery-viewer-v4__counter {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 4;
    display: flex;
    gap: 4px;
    padding: 7px 10px;
    border-radius: 999px;
    color: #dbe8ed;
    background: rgba(2,28,43,.76);
    font-size: .69rem;
    font-weight: 700;
}

.icx-gallery-viewer-v4__counter strong {
    color: #fff;
}

.icx-gallery-viewer-v4__category-link {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 4;
    padding: 7px 10px;
    border-radius: 999px;
    color: #fff;
    background: rgba(2,28,43,.76);
    font-size: .65rem;
    font-weight: 700;
    letter-spacing: .05em;
    text-decoration: none;
    text-transform: uppercase;
}

.icx-gallery-viewer-v4__category-link:hover,
.icx-gallery-viewer-v4__category-link:focus-visible {
    background: var(--icx-orange, #f58220);
}

.icx-gallery-viewer-v4__thumbs {
    display: flex;
    gap: 7px;
    margin-top: 10px;
    overflow-x: auto;
    scrollbar-width: thin;
    padding-bottom: 7px;
}

.icx-gallery-viewer-v4__thumbs button {
    width: 88px;
    height: 64px;
    flex: 0 0 88px;
    padding: 0;
    overflow: hidden;
    border: 2px solid transparent;
    border-radius: 2px 8px 2px 2px;
    background: #d6e1e5;
    cursor: pointer;
    opacity: .68;
}

.icx-gallery-viewer-v4__thumbs button.is-active {
    border-color: var(--icx-orange, #f58220);
    opacity: 1;
}

.icx-gallery-viewer-v4__thumbs img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 14%;
}

/* ----------------------------------------------------------
   RELATED / CATEGORY LINKS
---------------------------------------------------------- */

.icx-gallery-related-v4 {
    padding: clamp(52px, 6vw, 76px) 0;
    background: #fff;
}

.icx-gallery-related-v4__grid {
    display: grid;
    grid-template-columns:
        repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.icx-gallery-related-card-v4 {
    min-width: 0;
    overflow: hidden;
    border: 1px solid rgba(7,52,79,.1);
    border-radius: 2px 18px 2px 2px;
}

.icx-gallery-related-card-v4 > a {
    display: block;
    color: inherit;
    text-decoration: none;
}

.icx-gallery-related-card-v4__image {
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #dbe5e9;
}

.icx-gallery-related-card-v4__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 14%;
    transition: transform 220ms ease;
}

.icx-gallery-related-card-v4:hover img,
.icx-gallery-related-card-v4:focus-within img {
    transform: scale(1.025);
}

.icx-gallery-related-card-v4__copy {
    display: block;
    padding: 17px;
}

.icx-gallery-related-card-v4__copy time {
    color: var(--icx-orange, #f58220);
    font-size: .65rem;
    font-weight: 700;
}

.icx-gallery-related-card-v4__copy strong {
    display: block;
    margin-top: 6px;
    font-family:
        var(--icx-font-display, "Fraunces"),
        Georgia,
        serif;
    font-size: 1.18rem;
    line-height: 1.2;
}

.icx-gallery-related-card-v4__copy > span {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 12px;
    color: var(--icx-blue, #14658f);
    font-size: .68rem;
    font-weight: 700;
}

.icx-gallery-explore-v4 {
    padding: 30px 0 38px;
    border-top: 1px solid rgba(7,52,79,.08);
    background: #fff;
}

.icx-gallery-explore-v4__links {
    display: flex;
    gap: 9px;
    flex-wrap: wrap;
    margin-top: 14px;
}

.icx-gallery-explore-v4__links a {
    display: inline-flex;
    min-height: 40px;
    align-items: center;
    padding: 8px 14px;
    border: 1px solid rgba(7,52,79,.14);
    border-radius: 999px;
    color: var(--icx-navy, #07344f);
    background: #fff;
    font-size: .72rem;
    font-weight: 700;
    text-decoration: none;
}

.icx-gallery-explore-v4__links a:hover,
.icx-gallery-explore-v4__links a:focus-visible,
.icx-gallery-explore-v4__links a.is-current {
    border-color: var(--icx-orange, #f58220);
    color: #fff;
    background: var(--icx-navy, #07344f);
}

/* ----------------------------------------------------------
   CONTINUATION NAV — NO DEAD END
---------------------------------------------------------- */

.icx-gallery-continuation-v4 {
    padding: 28px 0;
    border-top: 1px solid rgba(7,52,79,.12);
    background: #f0f5f7;
}

.icx-gallery-continuation-v4__grid {
    display: grid;
    grid-template-columns:
        minmax(0, 1fr)
        auto
        minmax(0, 1fr);
    gap: 14px;
    align-items: stretch;
}

.icx-gallery-continuation-v4__item {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: center;
    min-width: 0;
    padding: 18px 20px;
    border: 1px solid rgba(7,52,79,.1);
    border-radius: 2px 16px 2px 2px;
    color: inherit;
    background: #fff;
    text-decoration: none;
}

.icx-gallery-continuation-v4__item--next {
    text-align: right;
}

.icx-gallery-continuation-v4__item small {
    display: block;
    color: var(--icx-orange, #f58220);
    font-size: .61rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.icx-gallery-continuation-v4__item strong {
    display: block;
    margin-top: 5px;
    font-family:
        var(--icx-font-display, "Fraunces"),
        Georgia,
        serif;
    font-size: 1rem;
    line-height: 1.2;
}

.icx-gallery-continuation-v4__item > span:last-child {
    flex: 0 0 auto;
    color: var(--icx-blue, #14658f);
}

.icx-gallery-continuation-v4__all {
    display: grid;
    min-width: 110px;
    place-items: center;
    padding: 12px 14px;
    color: #fff;
    background: var(--icx-navy, #07344f);
    font-size: .7rem;
    font-weight: 700;
    text-decoration: none;
}

/* ----------------------------------------------------------
   RESPONSIVE
---------------------------------------------------------- */

@media (max-width: 980px) {
    .icx-gallery-library-v4__hero-grid,
    .icx-gallery-single-v4__hero-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

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

    .icx-gallery-cards-v4 {
        grid-template-columns: 1fr;
    }

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

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

    .icx-gallery-continuation-v4__all {
        grid-column: 1 / -1;
        grid-row: 2;
        min-height: 44px;
    }
}

@media (max-width: 680px) {
    .icx-gallery-library-v4__hero {
        padding: 38px 0 42px;
    }

    .icx-gallery-library-v4__hero h1 {
        font-size: clamp(
            2.9rem,
            14vw,
            4.1rem
        );
    }

    .icx-gallery-section-head-v4,
    .icx-gallery-list-v4__head {
        display: block;
    }

    .icx-gallery-section-head-v4 > a,
    .icx-gallery-list-v4__all {
        display: inline-flex;
        margin-top: 14px;
    }

    .icx-gallery-category-grid-v4 {
        grid-template-columns: 1fr;
    }

    .icx-gallery-category-card-v4 > a {
        min-height: 230px;
    }

    .icx-gallery-card-v4 > a {
        grid-template-columns: 1fr;
    }

    .icx-gallery-card-v4__image {
        min-height: 0;
        aspect-ratio: 16 / 10;
    }

    .icx-gallery-single-v4__hero {
        padding: 25px 0 30px;
    }

    .icx-gallery-single-v4__hero-grid {
        margin-top: 18px;
    }

    .icx-gallery-single-v4 h1 {
        font-size: clamp(
            2.15rem,
            10vw,
            2.95rem
        );
    }

    .icx-gallery-single-v4__facts {
        gap: 20px;
    }

    .icx-gallery-viewer-v4 {
        padding-top: 12px;
    }

    .icx-gallery-viewer-v4__stage {
        border-radius: 2px 16px 2px 2px;
    }

    .icx-gallery-viewer-v4__slide {
        height: min(58vh, 480px);
    }

    .icx-gallery-viewer-v4__arrow {
        width: 40px;
        height: 40px;
    }

    .icx-gallery-viewer-v4__arrow--prev {
        left: 7px;
    }

    .icx-gallery-viewer-v4__arrow--next {
        right: 7px;
    }

    .icx-gallery-viewer-v4__category-link {
        top: 8px;
        left: 8px;
        max-width: 55%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .icx-gallery-viewer-v4__counter {
        top: 8px;
        right: 8px;
    }

    .icx-gallery-viewer-v4__thumbs button {
        width: 72px;
        height: 54px;
        flex-basis: 72px;
    }

    .icx-gallery-related-v4__grid {
        grid-template-columns: 1fr;
    }

    .icx-gallery-explore-v4__links {
        flex-wrap: nowrap;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .icx-gallery-explore-v4__links a {
        flex: 0 0 auto;
    }

    .icx-gallery-continuation-v4__grid {
        grid-template-columns: 1fr;
    }

    .icx-gallery-continuation-v4__all {
        grid-column: auto;
        grid-row: auto;
    }

    .icx-gallery-continuation-v4__item {
        min-height: 76px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .icx-gallery-viewer-v4__track,
    .icx-gallery-category-card-v4 img,
    .icx-gallery-card-v4 img,
    .icx-gallery-related-card-v4 img {
        transition: none;
    }
}

/* ==========================================================
   ICX PHOTO GALLERY ARCHIVE — APPROVED RESTORE V1
   Archive-only namespace. Does not alter single gallery pages.
========================================================== */

.icx-gallery-archive-approved {
    background: #f2f7f8;
    color: var(--icx-navy-dark, #061f31);
}

.icx-gallery-archive-approved__hero {
    position: relative;
    overflow: hidden;
    min-height: 198px;
    padding: 46px 0 50px;
    color: #fff;
    background:
        radial-gradient(
            circle at 86% 12%,
            rgba(20, 101, 143, .28),
            transparent 30%
        ),
        linear-gradient(
            115deg,
            #06334c 0%,
            #064a69 56%,
            #0b668b 100%
        );
}

.icx-gallery-archive-approved__eyebrow {
    display: flex;
    gap: 10px;
    align-items: center;
    color: #d5e5eb;
    font-size: .69rem;
    font-weight: 700;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.icx-gallery-archive-approved__eyebrow::before {
    content: "";
    width: 27px;
    height: 2px;
    background: var(--icx-orange, #f58220);
}

.icx-gallery-archive-approved__hero-grid {
    position: relative;
    display: grid;
    grid-template-columns:
        minmax(0, 1fr)
        minmax(290px, .53fr);
    gap: 60px;
    align-items: center;
    min-height: 92px;
    margin-top: 6px;
}

.icx-gallery-archive-approved__title-wrap {
    position: relative;
    min-height: 90px;
    overflow: hidden;
}

.icx-gallery-archive-approved__title-wrap span {
    position: absolute;
    top: 4px;
    left: 0;
    color: rgba(1, 39, 58, .16);
    font-family:
        var(--icx-font-display, "Fraunces"),
        Georgia,
        serif;
    font-size: clamp(4rem, 7.3vw, 7.5rem);
    font-weight: 700;
    line-height: .9;
    letter-spacing: -.055em;
    white-space: nowrap;
}

.icx-gallery-archive-approved__hero p {
    position: relative;
    z-index: 2;
    max-width: 390px;
    margin: 0;
    color: #d6e6ec;
    font-size: .98rem;
    line-height: 1.58;
}

.icx-gallery-archive-approved__library {
    padding: 48px 0 clamp(74px, 8vw, 108px);
}

.icx-gallery-archive-approved__filters {
    display: flex;
    gap: 9px;
    flex-wrap: wrap;
    margin-bottom: 27px;
}

.icx-gallery-archive-approved__filters a {
    display: inline-flex;
    min-height: 39px;
    align-items: center;
    padding: 7px 15px;
    border: 1px solid rgba(7, 52, 79, .14);
    border-radius: 999px;
    color: var(--icx-navy, #07344f);
    background: #fff;
    font-size: .73rem;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(4, 35, 53, .025);
}

.icx-gallery-archive-approved__filters a:hover,
.icx-gallery-archive-approved__filters a:focus-visible,
.icx-gallery-archive-approved__filters a.is-active {
    border-color: var(--icx-navy, #07344f);
    color: #fff;
    background: var(--icx-navy, #07344f);
}

.icx-gallery-archive-approved__filters a:focus-visible {
    outline: 3px solid rgba(245, 130, 32, .38);
    outline-offset: 3px;
}

.icx-gallery-archive-approved__grid {
    display: grid;
    grid-template-columns:
        repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.icx-gallery-archive-approved__card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid rgba(7, 52, 79, .09);
    border-radius: 2px 20px 2px 2px;
    background: #fff;
    box-shadow: 0 9px 28px rgba(4, 35, 53, .035);
}

.icx-gallery-archive-approved__card > a {
    display: grid;
    height: 100%;
    min-height: 267px;
    grid-template-columns:
        44% minmax(0, 56%);
    color: inherit;
    text-decoration: none;
}

.icx-gallery-archive-approved__image {
    display: block;
    min-width: 0;
    min-height: 267px;
    overflow: hidden;
    background: #dce6ea;
}

.icx-gallery-archive-approved__image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 15%;
    transition: transform 220ms ease;
}

.icx-gallery-archive-approved__card:hover img,
.icx-gallery-archive-approved__card:focus-within img {
    transform: scale(1.018);
}

.icx-gallery-archive-approved__card > a:focus-visible {
    outline: 4px solid var(--icx-orange, #f58220);
    outline-offset: -4px;
}

.icx-gallery-archive-approved__body {
    display: flex;
    min-width: 0;
    flex-direction: column;
    justify-content: center;
    padding: 24px 24px 20px;
}

.icx-gallery-archive-approved__meta {
    display: flex;
    gap: 8px 14px;
    flex-wrap: wrap;
    align-items: center;
    color: #7b8d95;
    font-size: .66rem;
}

.icx-gallery-archive-approved__meta small {
    color: #dc892e;
    font-size: inherit;
    font-weight: 700;
    letter-spacing: .055em;
    text-transform: uppercase;
}

.icx-gallery-archive-approved__body > strong {
    display: block;
    max-width: 390px;
    margin-top: 10px;
    color: #052f47;
    font-family:
        var(--icx-font-display, "Fraunces"),
        Georgia,
        serif;
    font-size: clamp(1.45rem, 2.2vw, 2.05rem);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -.025em;
}

.icx-gallery-archive-approved__footer {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    margin-top: auto;
    padding-top: 17px;
    border-top: 1px solid rgba(7, 52, 79, .08);
    color: #187097;
    font-size: .69rem;
    font-weight: 700;
}

.icx-gallery-archive-approved__footer > span:last-child {
    color: #187097;
    font-size: .9rem;
}

.icx-gallery-archive-approved__empty {
    padding: 42px;
    border: 1px dashed rgba(7, 52, 79, .2);
    background: #fff;
    color: #617680;
    text-align: center;
}

@media (max-width: 980px) {
    .icx-gallery-archive-approved__hero-grid {
        grid-template-columns: 1fr;
        gap: 2px;
    }

    .icx-gallery-archive-approved__hero p {
        max-width: 620px;
    }

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

    .icx-gallery-archive-approved__card > a {
        min-height: 250px;
    }
}

@media (max-width: 680px) {
    .icx-gallery-archive-approved__hero {
        min-height: 0;
        padding: 38px 0 42px;
    }

    .icx-gallery-archive-approved__hero-grid {
        min-height: 0;
    }

    .icx-gallery-archive-approved__title-wrap {
        min-height: 65px;
    }

    .icx-gallery-archive-approved__title-wrap span {
        font-size: clamp(3.3rem, 16vw, 4.7rem);
    }

    .icx-gallery-archive-approved__hero p {
        margin-top: 4px;
        font-size: .92rem;
    }

    .icx-gallery-archive-approved__library {
        padding-top: 34px;
    }

    .icx-gallery-archive-approved__filters {
        flex-wrap: nowrap;
        overflow-x: auto;
        scrollbar-width: none;
        padding-bottom: 4px;
    }

    .icx-gallery-archive-approved__filters::-webkit-scrollbar {
        display: none;
    }

    .icx-gallery-archive-approved__filters a {
        flex: 0 0 auto;
    }

    .icx-gallery-archive-approved__grid {
        gap: 13px;
    }

    .icx-gallery-archive-approved__card > a {
        display: block;
        min-height: 0;
    }

    .icx-gallery-archive-approved__image {
        min-height: 0;
        aspect-ratio: 16 / 10;
    }

    .icx-gallery-archive-approved__body {
        min-height: 190px;
        padding: 19px 19px 18px;
    }

    .icx-gallery-archive-approved__body > strong {
        font-size: clamp(1.42rem, 7vw, 1.8rem);
    }
}

@media (prefers-reduced-motion: reduce) {
    .icx-gallery-archive-approved__image img {
        transition: none;
    }
}

/* ==========================================================
   ICX INDIVIDUAL PHOTO GALLERY V5
   Natural-ratio gallery + uncropped modal viewer
========================================================== */

.icx-gallery-single-v5 {
    background: #f5f8f9;
    color: var(--icx-navy-dark, #061f31);
}

/* Hero */
.icx-gallery-single-v5__hero {
    padding: 27px 0 34px;
    color: #fff;
    background:
        radial-gradient(
            circle at 88% 12%,
            rgba(20,101,143,.33),
            transparent 28%
        ),
        linear-gradient(
            125deg,
            #052d45,
            #073f5d 58%,
            #0d5a7d
        );
}

.icx-gallery-single-v5__breadcrumb {
    display: flex;
    gap: 9px;
    align-items: center;
    color: #c9dde5;
    font-size: .69rem;
    font-weight: 700;
}

.icx-gallery-single-v5__breadcrumb a {
    color: inherit;
    text-decoration: none;
}

.icx-gallery-single-v5__breadcrumb a:hover,
.icx-gallery-single-v5__breadcrumb a:focus-visible {
    color: #fff;
    text-decoration: underline;
    text-decoration-color: var(--icx-orange, #f58220);
}

.icx-gallery-single-v5__heading {
    display: grid;
    grid-template-columns:
        minmax(0, 1fr)
        auto;
    gap: 42px;
    align-items: end;
    margin-top: 22px;
}

.icx-gallery-single-v5__category {
    display: inline-flex;
    color: #ffd0aa;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-decoration: none;
    text-transform: uppercase;
}

.icx-gallery-single-v5 h1 {
    max-width: 950px;
    margin: 9px 0 0;
    font-family:
        var(--icx-font-display, "Fraunces"),
        Georgia,
        serif;
    font-size: clamp(2.3rem, 4.45vw, 4.05rem);
    line-height: .98;
    letter-spacing: -.04em;
}

.icx-gallery-single-v5__facts {
    display: flex;
    gap: 28px;
    align-items: end;
}

.icx-gallery-single-v5__facts span {
    min-width: 86px;
}

.icx-gallery-single-v5__facts small {
    display: block;
    margin-bottom: 4px;
    color: #bcd3dd;
    font-size: .61rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.icx-gallery-single-v5__facts strong,
.icx-gallery-single-v5__facts time {
    color: #fff;
    font-size: .8rem;
    font-weight: 700;
}

/* Natural-ratio grid */
.icx-gallery-single-v5__photos {
    padding: clamp(30px, 4.5vw, 54px) 0
        clamp(60px, 7vw, 88px);
}

.icx-gallery-natural-grid-v5 {
    columns: 4;
    column-gap: 9px;
}

.icx-gallery-natural-grid-v5__photo {
    position: relative;
    display: block;
    width: 100%;
    margin: 0 0 9px;
    padding: 0;
    overflow: hidden;
    border: 0;
    background: #e0e8eb;
    break-inside: avoid;
    cursor: zoom-in;
}

.icx-gallery-natural-grid-v5__photo img {
    display: block;
    width: 100%;
    height: auto;
    max-width: 100%;
    object-fit: unset;
    object-position: unset;
    transition:
        transform 180ms ease,
        opacity 180ms ease;
}

.icx-gallery-natural-grid-v5__photo:hover img,
.icx-gallery-natural-grid-v5__photo:focus-visible img {
    transform: scale(1.012);
    opacity: .96;
}

.icx-gallery-natural-grid-v5__photo:focus-visible {
    outline: 4px solid var(--icx-orange, #f58220);
    outline-offset: 3px;
}

.icx-gallery-natural-grid-v5__index {
    position: absolute;
    right: 8px;
    bottom: 8px;
    display: grid;
    min-width: 28px;
    height: 28px;
    place-items: center;
    border-radius: 999px;
    color: #fff;
    background: rgba(2,28,43,.72);
    font-size: .63rem;
    font-weight: 700;
    opacity: 0;
    transition: opacity 150ms ease;
}

.icx-gallery-natural-grid-v5__photo:hover
.icx-gallery-natural-grid-v5__index,
.icx-gallery-natural-grid-v5__photo:focus-visible
.icx-gallery-natural-grid-v5__index {
    opacity: 1;
}

/* Full-screen modal */
.icx-gallery-modal-v5 {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: none;
    background: rgba(1, 14, 22, .97);
}

.icx-gallery-modal-v5.is-open {
    display: block;
}

body.icx-gallery-modal-v5-open {
    overflow: hidden;
}

.icx-gallery-modal-v5__backdrop {
    position: absolute;
    inset: 0;
}

.icx-gallery-modal-v5__shell {
    position: relative;
    z-index: 2;
    display: grid;
    width: 100%;
    height: 100%;
    grid-template-rows:
        auto
        minmax(0, 1fr)
        auto;
}

.icx-gallery-modal-v5__topbar {
    display: grid;
    grid-template-columns:
        minmax(0, 1fr)
        auto
        auto;
    gap: 16px;
    align-items: center;
    min-height: 62px;
    padding: 9px 18px;
    border-bottom: 1px solid rgba(255,255,255,.1);
    color: #fff;
    background: rgba(1,19,29,.92);
}

.icx-gallery-modal-v5__category {
    width: fit-content;
    color: #ffd0aa;
    font-size: .66rem;
    font-weight: 700;
    letter-spacing: .07em;
    text-decoration: none;
    text-transform: uppercase;
}

.icx-gallery-modal-v5__counter {
    display: flex;
    gap: 4px;
    color: #cbdde5;
    font-size: .7rem;
    font-weight: 700;
}

.icx-gallery-modal-v5__counter strong {
    color: #fff;
}

.icx-gallery-modal-v5__close {
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    padding: 0;
    border: 1px solid rgba(255,255,255,.25);
    border-radius: 50%;
    color: #fff;
    background: transparent;
    font-size: 1.55rem;
    line-height: 1;
    cursor: pointer;
}

.icx-gallery-modal-v5__close:hover,
.icx-gallery-modal-v5__close:focus-visible {
    border-color: var(--icx-orange, #f58220);
    background: var(--icx-orange, #f58220);
}

.icx-gallery-modal-v5__stage {
    position: relative;
    display: grid;
    min-height: 0;
    grid-template-columns:
        72px
        minmax(0, 1fr)
        72px;
    align-items: center;
    outline: none;
    touch-action: pan-y;
}

.icx-gallery-modal-v5__figure {
    display: grid;
    width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 0;
    grid-column: 2;
    place-items: center;
    margin: 0;
    padding: 12px 20px;
}

/*
 * CRITICAL:
 * Never crop the full photo.
 *
 * Landscape photographs naturally become wide.
 * Portrait photographs naturally become tall/narrow.
 */
.icx-gallery-modal-v5__figure img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: calc(100vh - 154px);
    object-fit: contain;
    object-position: center center;
}

.icx-gallery-modal-v5__arrow {
    z-index: 3;
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    justify-self: center;
    padding: 0;
    border: 1px solid rgba(255,255,255,.26);
    border-radius: 50%;
    color: #fff;
    background: rgba(3,35,51,.72);
    cursor: pointer;
    backdrop-filter: blur(4px);
}

.icx-gallery-modal-v5__arrow--prev {
    grid-column: 1;
}

.icx-gallery-modal-v5__arrow--next {
    grid-column: 3;
}

.icx-gallery-modal-v5__arrow:hover,
.icx-gallery-modal-v5__arrow:focus-visible {
    border-color: var(--icx-orange, #f58220);
    background: var(--icx-orange, #f58220);
}

.icx-gallery-modal-v5__thumbs {
    display: flex;
    gap: 6px;
    min-height: 78px;
    padding: 8px 14px;
    overflow-x: auto;
    border-top: 1px solid rgba(255,255,255,.09);
    background: rgba(1,19,29,.92);
    scrollbar-width: thin;
}

.icx-gallery-modal-v5__thumbs button {
    width: 74px;
    height: 56px;
    flex: 0 0 74px;
    padding: 0;
    overflow: hidden;
    border: 2px solid transparent;
    background: #0a3146;
    cursor: pointer;
    opacity: .62;
}

.icx-gallery-modal-v5__thumbs button.is-active {
    border-color: var(--icx-orange, #f58220);
    opacity: 1;
}

.icx-gallery-modal-v5__thumbs img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 15%;
}

/* Continuation */
.icx-gallery-single-v5__continuation {
    padding: 28px 0;
    border-top: 1px solid rgba(7,52,79,.1);
    background: #edf3f5;
}

.icx-gallery-single-v5__continuation-grid {
    display: grid;
    grid-template-columns:
        minmax(0, 1fr)
        auto
        minmax(0, 1fr);
    gap: 13px;
}

.icx-gallery-single-v5__continuation-grid > a {
    display: flex;
    gap: 16px;
    align-items: center;
    min-width: 0;
    padding: 17px 19px;
    border: 1px solid rgba(7,52,79,.1);
    color: inherit;
    background: #fff;
    text-decoration: none;
}

.icx-gallery-single-v5__continuation-grid
> a:last-child {
    justify-content: flex-end;
    text-align: right;
}

.icx-gallery-single-v5__continuation-grid small {
    display: block;
    color: var(--icx-orange, #f58220);
    font-size: .6rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.icx-gallery-single-v5__continuation-grid strong {
    display: block;
    margin-top: 4px;
    font-family:
        var(--icx-font-display, "Fraunces"),
        Georgia,
        serif;
    font-size: .98rem;
    line-height: 1.2;
}

.icx-gallery-single-v5__all {
    display: grid !important;
    min-width: 106px !important;
    place-items: center !important;
    padding: 12px 14px !important;
    color: #fff !important;
    background: var(--icx-navy, #07344f) !important;
    font-size: .68rem !important;
    font-weight: 700 !important;
    text-align: center !important;
}

@media (max-width: 1100px) {
    .icx-gallery-natural-grid-v5 {
        columns: 3;
    }
}

@media (max-width: 780px) {
    .icx-gallery-single-v5__heading {
        grid-template-columns: 1fr;
        gap: 17px;
    }

    .icx-gallery-natural-grid-v5 {
        columns: 2;
    }

    .icx-gallery-modal-v5__stage {
        grid-template-columns:
            54px
            minmax(0, 1fr)
            54px;
    }

    .icx-gallery-modal-v5__figure {
        padding: 8px 6px;
    }

    .icx-gallery-modal-v5__arrow {
        width: 40px;
        height: 40px;
    }

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

    .icx-gallery-single-v5__all {
        grid-column: 1 / -1;
        grid-row: 2;
    }
}

@media (max-width: 560px) {
    .icx-gallery-single-v5__hero {
        padding: 24px 0 29px;
    }

    .icx-gallery-single-v5 h1 {
        font-size: clamp(
            2.08rem,
            10vw,
            2.85rem
        );
    }

    .icx-gallery-natural-grid-v5 {
        columns: 1;
        column-gap: 0;
    }

    .icx-gallery-natural-grid-v5__photo {
        margin-bottom: 8px;
    }

    .icx-gallery-natural-grid-v5__index {
        opacity: .9;
    }

    .icx-gallery-modal-v5__topbar {
        grid-template-columns:
            minmax(0, 1fr)
            auto
            auto;
        min-height: 56px;
        padding: 7px 9px;
    }

    .icx-gallery-modal-v5__category {
        max-width: 45vw;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .icx-gallery-modal-v5__stage {
        grid-template-columns:
            42px
            minmax(0, 1fr)
            42px;
    }

    .icx-gallery-modal-v5__figure {
        padding: 5px 1px;
    }

    .icx-gallery-modal-v5__figure img {
        max-width: 100%;
        max-height: calc(100vh - 140px);
    }

    .icx-gallery-modal-v5__arrow {
        width: 36px;
        height: 36px;
    }

    .icx-gallery-modal-v5__thumbs {
        min-height: 70px;
        padding: 7px 8px;
    }

    .icx-gallery-modal-v5__thumbs button {
        width: 64px;
        height: 48px;
        flex-basis: 64px;
    }

    .icx-gallery-single-v5__continuation-grid {
        grid-template-columns: 1fr;
    }

    .icx-gallery-single-v5__all {
        grid-column: auto;
        grid-row: auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    .icx-gallery-natural-grid-v5__photo img {
        transition: none;
    }
}
