.venue-gallery-jump {
    display: none !important;
}

.venue-gallery-intro {
    max-width: 62rem !important;
    margin: 0 auto clamp(2.5rem, 5vw, 5rem) !important;
    text-align: center;
}

.venue-gallery-intro h2 {
    margin: .85rem 0 1.15rem !important;
    font-size: clamp(2.65rem, 4.5vw, 4.75rem) !important;
    line-height: 1 !important;
}

.venue-gallery-intro > p:last-child {
    max-width: 43rem;
    margin: 0 auto !important;
    font-size: clamp(1rem, 1.25vw, 1.2rem) !important;
    line-height: 1.75 !important;
}

.venue-gallery-intro .eyebrow {
    margin-bottom: 0 !important;
}

.venue-gallery {
    display: grid;
    gap: clamp(1.25rem, 3vw, 2.5rem);
    margin-top: clamp(3rem, 7vw, 6rem);
}

.venue-gallery__section {
    display: grid;
    grid-template-columns: minmax(17rem, .72fr) minmax(0, 1.55fr) !important;
    min-height: 0;
    overflow: hidden;
    border: 1px solid rgba(34, 45, 37, .14);
    background: #f8f5ef;
}

.venue-gallery__section > header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 1.35rem;
    padding: clamp(2rem, 5vw, 4.75rem);
    order: 1 !important;
}

.venue-gallery__section > header > span {
    display: none !important;
}

.venue-gallery__section > header h2 {
    margin: .55rem 0 .9rem;
    font-size: clamp(2.75rem, 5vw, 5rem);
    line-height: .94;
}

.venue-gallery__section > header p:last-child {
    max-width: 25rem;
    line-height: 1.8;
}

.venue-gallery__section > header::after {
    content: none;
}

.chapel-gallery-trigger {
    margin-top: .5rem;
    padding: .35rem 0;
    border: 0;
    color: #b88a4d;
    background: transparent;
    font-family: "Manrope", sans-serif;
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    cursor: pointer;
}

.chapel-gallery-trigger:hover,
.chapel-gallery-trigger:focus-visible {
    color: #806038;
    text-decoration: underline;
    text-underline-offset: .35rem;
}

.venue-gallery__grid {
    position: relative;
    min-height: 0;
    aspect-ratio: 3 / 2;
    order: 2 !important;
    cursor: zoom-in;
}

.venue-gallery__item {
    display: none !important;
}

.venue-gallery__item:first-child {
    position: absolute;
    inset: 0;
    display: block !important;
    margin: 0;
}

.venue-gallery__item:first-child::after {
    position: absolute;
    inset: 0;
    content: "";
    background: linear-gradient(180deg, transparent 60%, rgba(16, 22, 18, .24));
    opacity: 0;
    transition: opacity .35s ease;
}

.venue-gallery__grid:hover .venue-gallery__item:first-child::after {
    opacity: 1;
}

.venue-gallery__item:first-child img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform .7s cubic-bezier(.2, .7, .2, 1);
}

#after-dark .venue-gallery__item:first-child {
    background: #151914;
}

#after-dark .venue-gallery__item:first-child img {
    object-fit: contain !important;
    transform: scale(.94) !important;
}

#after-dark .venue-gallery__grid:hover .venue-gallery__item:first-child img {
    transform: scale(.965) !important;
}

.venue-gallery__grid:hover .venue-gallery__item:first-child img {
    transform: scale(1.025);
}

.venue-gallery__grid:focus-visible {
    outline: 3px solid #b88a4d;
    outline-offset: 4px;
}

.chapel-lightbox {
    position: fixed;
    z-index: 100000;
    inset: 0;
    display: grid;
    place-items: center;
    padding: clamp(1rem, 3vw, 2.5rem);
    color: #fff;
    background: rgba(11, 15, 12, .96);
}

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

.chapel-lightbox__figure {
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    width: min(92vw, 88rem);
    height: min(86vh, 56rem);
    margin: 0;
}

.chapel-lightbox__image {
    width: 100%;
    height: 100%;
    min-height: 0;
    object-fit: contain;
}

.chapel-lightbox__caption {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding-top: 1rem;
    font-family: "Manrope", sans-serif;
    font-size: .75rem;
    letter-spacing: .08em;
}

.chapel-lightbox button {
    position: absolute;
    display: grid;
    place-items: center;
    width: 3rem;
    height: 3rem;
    border: 1px solid rgba(255,255,255,.35);
    border-radius: 50%;
    color: #fff;
    background: rgba(0,0,0,.25);
    cursor: pointer;
    font: 400 1.45rem/1 "Manrope", sans-serif;
}

.chapel-lightbox button:hover,
.chapel-lightbox button:focus-visible {
    border-color: #d4b07d;
    background: #b88a4d;
    outline: none;
}

.chapel-lightbox__close { top: 1.25rem; right: 1.25rem; }
.chapel-lightbox__previous { top: 50%; left: 1.25rem; transform: translateY(-50%); }
.chapel-lightbox__next { top: 50%; right: 1.25rem; transform: translateY(-50%); }

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

@media (max-width: 800px) {
    .venue-gallery-intro {
        margin-bottom: 2.5rem !important;
    }

    .venue-gallery-intro h2 {
        font-size: clamp(2.35rem, 11vw, 3.5rem) !important;
    }

    .venue-gallery__section,
    .venue-gallery__section:nth-child(even) {
        grid-template-columns: 1fr !important;
        min-height: 0;
    }

    .venue-gallery__section > header,
    .venue-gallery__section:nth-child(even) > header {
        order: 1;
        padding: 2.25rem 1.5rem;
    }

    .venue-gallery__section > .venue-gallery__grid,
    .venue-gallery__section:nth-child(even) > .venue-gallery__grid {
        order: 2;
        min-height: 0;
        aspect-ratio: 3 / 2;
    }

    .chapel-lightbox__previous { left: .5rem; }
    .chapel-lightbox__next { right: .5rem; }
    .chapel-lightbox__close { top: .5rem; right: .5rem; }
}

@media (prefers-reduced-motion: reduce) {
    .venue-gallery__item:first-child img { transition: none; }
}
