.sne-event-gallery-page #masthead .ast-primary-header-bar {
    background-color: #fbf3dc !important;
    border-bottom-color: #e5d8bb !important;
}

.sne-event-gallery-page #masthead .custom-logo {
    filter: brightness(.68) contrast(1.2) saturate(1.6);
    opacity: 1;
}

.sne-event-gallery-page #masthead .main-header-menu > .menu-item > .menu-link,
.sne-event-gallery-page #masthead .ast-header-button-1 .menu-link {
    color: #173653 !important;
    text-shadow: none !important;
}

.sne-event-gallery-page #masthead .main-header-menu > .menu-item > .menu-link:hover,
.sne-event-gallery-page #masthead .main-header-menu > .menu-item > .menu-link:focus-visible,
.sne-event-gallery-page #masthead .main-header-menu > .current-menu-item > .menu-link {
    color: #b9531d !important;
}

.sne-event-gallery-page #masthead .ast-custom-button {
    background-color: #e98122 !important;
    color: #102b45 !important;
}

.sne-event-gallery-page #masthead .ast-custom-button:hover,
.sne-event-gallery-page #masthead .ast-custom-button-link:focus-visible .ast-custom-button {
    background-color: #173653 !important;
    color: #fff !important;
}

.sne-event-gallery-page #masthead .main-header-menu-toggle {
    color: #173653 !important;
}

.sne-event-gallery-page #masthead .ast-mobile-header-content {
    background-color: #fffdf7;
}

.sne-gallery {
    --sne-navy: #173653;
    --sne-navy-deep: #102b45;
    --sne-orange: #d66b2c;
    --sne-cream: #f7f2ea;
    --sne-line: #e3ded6;
    --sne-muted: #627083;
    color: var(--sne-navy-deep);
    margin: 0 auto 4rem;
    max-width: 1280px;
    box-sizing: border-box;
}

.sne-gallery *,
.sne-gallery *::before,
.sne-gallery *::after {
    box-sizing: border-box;
}

.sne-gallery__intro {
    align-items: end;
    display: grid;
    gap: .65rem 3rem;
    grid-template-columns: minmax(0, 1.15fr) minmax(18rem, .85fr);
    margin: 0 0 2rem;
    padding: .35rem 0 .5rem;
}

.sne-gallery__intro p {
    color: var(--sne-muted);
    font-size: 1.05rem;
    line-height: 1.65;
    margin: 0;
}

.sne-gallery__intro .sne-gallery__eyebrow {
    color: var(--sne-orange);
    font-size: .8rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.sne-gallery__toolbar {
    align-items: end;
    background: var(--sne-cream);
    border: 1px solid var(--sne-line);
    border-radius: 18px;
    display: grid;
    gap: .8rem;
    grid-template-columns: minmax(15rem, 1.5fr) minmax(9rem, .65fr) minmax(12rem, .85fr);
    padding: 1rem;
}

.sne-gallery__toolbar label {
    color: var(--sne-navy);
    display: grid;
    font-size: .73rem;
    font-weight: 800;
    gap: .35rem;
    letter-spacing: .06em;
    margin: 0;
    text-transform: uppercase;
}

.sne-gallery__toolbar > * {
    min-width: 0;
}

.sne-gallery__toolbar input,
.sne-gallery__toolbar select {
    appearance: none;
    background: #fff;
    border: 1px solid #d6d1c9;
    border-radius: 12px;
    color: var(--sne-navy-deep);
    font-family: inherit;
    font-size: .95rem;
    font-weight: 500;
    height: 3rem;
    margin: 0;
    outline: 0;
    padding: 0 .9rem;
    text-transform: none;
    transition: border-color .18s ease, box-shadow .18s ease;
    width: 100%;
}

.sne-gallery__toolbar select {
    background-image:
        linear-gradient(45deg, transparent 50%, var(--sne-navy) 50%),
        linear-gradient(135deg, var(--sne-navy) 50%, transparent 50%);
    background-position:
        calc(100% - 17px) 50%,
        calc(100% - 12px) 50%;
    background-repeat: no-repeat;
    background-size: 5px 5px, 5px 5px;
    padding-right: 2.4rem;
}

.sne-gallery__toolbar input:focus,
.sne-gallery__toolbar select:focus {
    border-color: var(--sne-orange);
    box-shadow: 0 0 0 3px rgb(214 107 44 / 16%);
}

.sne-gallery__search {
    position: relative;
}

.sne-gallery__search svg {
    bottom: .87rem;
    fill: none;
    left: .9rem;
    pointer-events: none;
    position: absolute;
    stroke: var(--sne-muted);
    stroke-linecap: round;
    stroke-width: 1.8;
}

.sne-gallery__search input {
    padding-left: 2.75rem;
}

.sne-gallery__summary {
    align-items: center;
    color: var(--sne-muted);
    display: flex;
    font-size: .9rem;
    justify-content: space-between;
    min-height: 3.5rem;
    padding: .7rem .15rem;
}

.sne-gallery__clear {
    background: transparent;
    border: 0;
    color: var(--sne-orange);
    cursor: pointer;
    font: inherit;
    font-weight: 700;
    padding: .35rem 0;
    text-decoration: underline;
    text-underline-offset: .2em;
}

.sne-gallery__grid {
    display: grid;
    gap: 1.45rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.sne-gallery-card {
    background: #fff;
    border: 1px solid var(--sne-line);
    border-radius: 16px;
    box-shadow: 0 8px 28px rgb(16 43 69 / 6%);
    min-width: 0;
    overflow: hidden;
    transition: box-shadow .22s ease, transform .22s ease;
}

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

.sne-gallery-card:hover {
    box-shadow: 0 16px 38px rgb(16 43 69 / 14%);
    transform: translateY(-4px);
}

.sne-gallery-card__link {
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none !important;
}

.sne-gallery-card__link:focus-visible {
    outline: 3px solid var(--sne-orange);
    outline-offset: -3px;
}

.sne-gallery-card__media {
    aspect-ratio: 5 / 4;
    background: #e9e3da;
    overflow: hidden;
    position: relative;
}

.sne-gallery-card__image {
    height: 100%;
    object-fit: cover;
    transition: transform .45s ease;
    width: 100%;
}

.sne-gallery-card:hover .sne-gallery-card__image {
    transform: scale(1.035);
}

.sne-gallery-card__fallback {
    align-items: center;
    background:
        radial-gradient(circle at 20% 20%, rgb(255 255 255 / 58%), transparent 30%),
        linear-gradient(135deg, #f1dfca, #cad8e4);
    display: flex;
    height: 100%;
    justify-content: center;
    width: 100%;
}

.sne-gallery-card__fallback svg {
    fill: none;
    opacity: .43;
    stroke: var(--sne-navy);
    stroke-width: 2.5;
    width: 4rem;
}

.sne-gallery-card__open {
    align-items: center;
    background: #fff;
    border-radius: 999px;
    bottom: .85rem;
    box-shadow: 0 4px 14px rgb(16 43 69 / 18%);
    display: flex;
    height: 2.55rem;
    justify-content: center;
    opacity: 0;
    position: absolute;
    right: .85rem;
    transform: translateX(-.45rem);
    transition: opacity .22s ease, transform .22s ease;
    width: 2.55rem;
}

.sne-gallery-card:hover .sne-gallery-card__open,
.sne-gallery-card__link:focus-visible .sne-gallery-card__open {
    opacity: 1;
    transform: translateX(0);
}

.sne-gallery-card__open svg {
    fill: none;
    height: 1.25rem;
    stroke: var(--sne-orange);
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
    width: 1.25rem;
}

.sne-gallery-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 1.15rem 1.2rem 1.25rem;
}

.sne-gallery-card__meta {
    align-items: center;
    color: var(--sne-orange);
    display: flex;
    flex-wrap: wrap;
    font-size: .74rem;
    font-weight: 800;
    gap: .35rem;
    letter-spacing: .035em;
    line-height: 1.35;
    text-transform: uppercase;
}

.sne-gallery-card h2 {
    color: var(--sne-navy-deep);
    font-size: clamp(1.05rem, 1.4vw, 1.25rem);
    line-height: 1.28;
    margin: .6rem 0 .85rem;
}

.sne-gallery-card__action {
    align-items: center;
    color: var(--sne-navy);
    display: inline-flex;
    font-size: .86rem;
    font-weight: 700;
    margin-top: auto;
}

.sne-gallery-card__action::after {
    content: "→";
    margin-left: .4rem;
    transition: transform .18s ease;
}

.sne-gallery-card:hover .sne-gallery-card__action::after {
    transform: translateX(.25rem);
}

.sne-gallery__sentinel {
    height: 1px;
    margin-top: 2rem;
    width: 100%;
}

.sne-gallery__empty {
    color: var(--sne-muted);
    padding: 4rem 1rem;
    text-align: center;
}

.sne-gallery__empty svg {
    fill: none;
    opacity: .5;
    stroke: var(--sne-navy);
    stroke-width: 2;
    width: 3.5rem;
}

.sne-gallery__empty h2 {
    color: var(--sne-navy-deep);
    font-size: 1.35rem;
    margin: .9rem 0 .3rem;
}

.sne-gallery__empty p {
    margin: 0;
}

.sne-legacy-gallery {
    --sne-navy: #173653;
    --sne-orange: #d66b2c;
    --sne-line: #e3ded6;
    margin: 2.5rem auto 4rem;
    max-width: 1280px;
    box-sizing: border-box;
}

.sne-legacy-gallery *,
.sne-legacy-gallery *::before,
.sne-legacy-gallery *::after {
    box-sizing: border-box;
}

.sne-legacy-gallery__heading {
    align-items: end;
    display: flex;
    flex-wrap: wrap;
    gap: .2rem 1rem;
    justify-content: space-between;
    margin-bottom: 1.25rem;
}

.sne-legacy-gallery__heading h2,
.sne-legacy-gallery__heading p {
    margin: 0;
}

.sne-legacy-gallery__heading h2 {
    color: var(--sne-navy);
    font-size: clamp(1.45rem, 3vw, 2rem);
    width: 100%;
}

.sne-legacy-gallery__heading p {
    color: #627083;
}

.sne-legacy-gallery__heading .sne-legacy-gallery__eyebrow {
    color: var(--sne-orange);
    font-size: .75rem;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.sne-legacy-gallery__grid {
    display: grid;
    gap: .85rem;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.sne-legacy-gallery__item {
    aspect-ratio: 4 / 3;
    background: #f2eee8;
    border: 1px solid var(--sne-line);
    border-radius: 10px;
    display: block;
    overflow: hidden;
}

.sne-legacy-gallery__item:focus-visible {
    outline: 3px solid var(--sne-orange);
    outline-offset: 2px;
}

.sne-legacy-gallery__item img {
    height: 100%;
    object-fit: cover;
    transition: transform .25s ease;
    width: 100%;
}

.sne-legacy-gallery__item:hover img {
    transform: scale(1.025);
}

.entry-content .sne-lightbox-trigger {
    cursor: zoom-in;
}

.entry-content .sne-lightbox-trigger:focus-visible {
    outline: 3px solid #d66b2c;
    outline-offset: 3px;
}

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

.sne-lightbox {
    align-items: center;
    background: rgb(7 18 29 / 94%);
    display: grid;
    grid-template-columns: minmax(3.25rem, 7vw) minmax(0, 1fr) minmax(3.25rem, 7vw);
    inset: 0;
    justify-items: center;
    opacity: 0;
    padding: 1.25rem;
    position: fixed;
    transition: opacity .16s ease;
    z-index: 999999;
}

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

.sne-lightbox--visible {
    opacity: 1;
}

.sne-lightbox__figure {
    align-items: center;
    display: flex;
    flex-direction: column;
    grid-column: 2;
    height: 100%;
    justify-content: center;
    margin: 0;
    min-height: 0;
    min-width: 0;
    width: 100%;
}

.sne-lightbox__stage {
    align-items: center;
    display: flex;
    flex: 1;
    justify-content: center;
    min-height: 0;
    position: relative;
    width: 100%;
}

.sne-lightbox__image {
    border-radius: 4px;
    box-shadow: 0 12px 48px rgb(0 0 0 / 45%);
    display: block;
    max-height: calc(100vh - 5.5rem);
    max-width: 100%;
    object-fit: contain;
    opacity: 1;
    transition: opacity .15s ease;
}

.sne-lightbox--loading .sne-lightbox__image {
    opacity: 0;
}

.sne-lightbox__loader {
    animation: sne-lightbox-spin .75s linear infinite;
    border: 3px solid rgb(255 255 255 / 25%);
    border-radius: 50%;
    border-top-color: #fff;
    height: 2.25rem;
    opacity: 0;
    position: absolute;
    width: 2.25rem;
}

.sne-lightbox--loading .sne-lightbox__loader {
    opacity: 1;
}

.sne-lightbox__counter {
    color: #fff;
    flex: 0 0 auto;
    font-size: .88rem;
    font-weight: 700;
    letter-spacing: .08em;
    min-height: 2rem;
    padding-top: .7rem;
}

.sne-lightbox button {
    align-items: center;
    background: rgb(255 255 255 / 12%);
    border: 1px solid rgb(255 255 255 / 28%);
    border-radius: 999px;
    color: #fff;
    cursor: pointer;
    display: flex;
    height: 3rem;
    justify-content: center;
    padding: 0;
    transition: background .16s ease, transform .16s ease;
    width: 3rem;
}

.sne-lightbox button:hover,
.sne-lightbox button:focus-visible {
    background: #d66b2c;
    outline: 0;
    transform: scale(1.06);
}

.sne-lightbox button svg {
    fill: none;
    height: 1.5rem;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
    width: 1.5rem;
}

.sne-lightbox__close {
    position: absolute;
    right: 1.25rem;
    top: 1.25rem;
}

.sne-lightbox__navigation {
    position: relative;
}

.sne-lightbox__previous {
    grid-column: 1;
}

.sne-lightbox__next {
    grid-column: 3;
}

@keyframes sne-lightbox-spin {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 960px) {
    .sne-gallery__intro {
        grid-template-columns: 1fr;
    }

    .sne-gallery__toolbar {
        grid-template-columns: 1fr 1fr;
    }

    .sne-gallery__search {
        grid-column: 1 / -1;
    }

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

    .sne-legacy-gallery__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 620px) {
    .sne-event-gallery-page .site-content {
        padding-top: 3rem;
    }

    .sne-gallery {
        margin-bottom: 2.5rem;
        margin-left: calc(50% - 50vw);
        margin-right: calc(50% - 50vw);
        max-width: 100vw;
        padding-left: 1rem;
        padding-right: 1rem;
        width: 100vw;
    }

    .sne-gallery__intro {
        margin-bottom: 1.35rem;
    }

    .sne-gallery__toolbar {
        border-radius: 14px;
        grid-template-columns: 1fr;
    }

    .sne-gallery__search {
        grid-column: auto;
    }

    .sne-gallery__grid {
        gap: 1rem;
        grid-template-columns: 1fr;
    }

    .sne-gallery-card {
        border-radius: 14px;
    }

    .sne-legacy-gallery__grid {
        gap: .55rem;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .sne-legacy-gallery {
        margin-left: calc(50% - 50vw);
        margin-right: calc(50% - 50vw);
        max-width: 100vw;
        padding-left: 1rem;
        padding-right: 1rem;
        width: 100vw;
    }

    .sne-lightbox {
        grid-template-columns: 3rem minmax(0, 1fr) 3rem;
        padding: 3.75rem .35rem .75rem;
    }

    .sne-lightbox__close {
        right: .75rem;
        top: .65rem;
    }

    .sne-lightbox button {
        height: 2.65rem;
        width: 2.65rem;
    }

    .sne-lightbox__image {
        max-height: calc(100vh - 7rem);
    }
}

@media (prefers-reduced-motion: reduce) {
    .sne-gallery-card,
    .sne-gallery-card__image,
    .sne-gallery-card__open,
    .sne-gallery-card__action::after,
    .sne-legacy-gallery__item img,
    .sne-lightbox,
    .sne-lightbox__image,
    .sne-lightbox button {
        transition: none;
    }

    .sne-lightbox__loader {
        animation: none;
    }
}
