.rk-gallery {
    --gallery-green: #07552d;
    --gallery-ink: #102d20;
    background: #fcfaf4;
    color: var(--gallery-ink);
    font-family: 'DM Sans', sans-serif
}

.gallery-wrap {
    width: 92%;
    max-width: 1380px;
    margin: auto
}

.rk-gallery h1,
.rk-gallery h2,
.gallery-lightbox h2 {
    font-family: Georgia, serif;
    letter-spacing: -1.3px;
    color: var(--gallery-ink);
    line-height: 1.08
}

.rk-gallery h1 {
    font-size: clamp(40px, 4.6vw, 68px);
    margin: 0 0 22px;
    max-width: 660px
}

.rk-gallery h2 {
    font-size: clamp(30px, 3.1vw, 45px);
    margin: 0 0 10px
}

.rk-gallery p {
    color: #4e5c52;
    line-height: 1.5;
    margin: 0 0 18px
}

.rk-gallery .gallery-eyebrow {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2.7px;
    color: #ad7b32;
    margin-bottom: 15px
}

.gallery-eyebrow a {
    color: inherit
}

.gallery-hero {
    padding: 45px 0 80px;
    background: linear-gradient(90deg, #00180eef, #00180e8a 48%, #00180e05), url('../img/gallery-hero.webp') right center/cover;
    color: #fff
}

.gallery-hero .gallery-breadcrumb {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 40px;
    font: 400 14px/1.5 'DM Sans', sans-serif;
    color: #fff
}

.gallery-breadcrumb a {
    color: inherit
}

.gallery-breadcrumb a:hover {
    text-decoration: underline;
    text-underline-offset: 3px
}

.gallery-hero .gallery-eyebrow {
    font-size: 12px;
    letter-spacing: 1.8px;
    color: #f2d788;
    margin-bottom: 14px;
    line-height: 1.65
}

.gallery-hero h1 {
    font: 500 clamp(48px, 6.2vw, 86px)/1.06 Georgia, serif;
    color: #fff;
    max-width: none;
    margin: 0 0 24px;
    letter-spacing: -2px
}

.gallery-hero h1 span {
    color: #e9bd66
}

.gallery-hero p:last-child {
    max-width: 690px;
    color: #fff;
    font-size: 18px;
    line-height: 1.65;
    margin: 0
}

.gallery-button {
    display: inline-flex;
    gap: 26px;
    align-items: center;
    padding: 13px 25px;
    background: #07552d;
    color: white;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600
}

.gallery-button:hover {
    background: #147a44;
    color: #fff
}

.gallery-button span {
    font-size: 20px
}

.gallery-collection {
    padding-top: 26px;
    scroll-margin-top: 110px
}

.gallery-filters {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 24px
}

.gallery-filters button {
    flex: 1;
    white-space: nowrap;
    background: #fffdf8;
    border: 1px solid #e5e2d5;
    border-radius: 30px;
    padding: 11px 17px;
    font-size: 13px;
    color: #263d2e;
    cursor: pointer
}

.gallery-filters button[aria-pressed=true] {
    background: #07552d;
    color: white;
    border-color: #07552d;
    box-shadow: 0 3px 10px #07552d22
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-rows: auto;
    align-items: start;
    gap: 12px
}

.gallery-tile {
    position: relative;
    display: block;
    padding: 0;
    border: 0;
    overflow: hidden;
    border-radius: 12px;
    text-align: left;
    background: #e5eadc;
    cursor: pointer;
    min-width: 0;
    color: #fff
}

.gallery-tile>img {
    width: 100%;
    height: auto;
    display: block
}

.gallery-caption {
    position: relative;
    padding: 15px 17px;
    background: #102d20;
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 10px
}

.gallery-caption strong {
    display: block;
    font-size: 14px;
    line-height: 1.3
}

.gallery-caption small {
    display: block;
    font-size: 12px;
    color: #eceee6;
    margin-top: 3px
}

.gallery-arrow {
    border: 1px solid #e9f0de;
    border-radius: 50%;
    width: 29px;
    height: 29px;
    text-align: center;
    line-height: 27px;
    flex-shrink: 0;
    background: #063821a6
}

.rk-gallery .gallery-note {
    font-size: 12px;
    color: #687468;
    margin: 13px 0 0
}

.gallery-section {
    padding-top: 44px
}

.gallery-section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    margin-bottom: 20px
}

.gallery-section-heading p:last-child {
    margin: 0
}

.gallery-section-heading>a,
.gallery-social-links a {
    color: #07552d;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap
}

.gallery-stories,
.gallery-videos {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px
}

.gallery-story {
    padding: 0;
    border: 1px solid #eeebdf;
    background: #fff;
    text-align: left;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px #18271008;
    cursor: pointer;
    color: #143e27
}

.gallery-story>img {
    width: 100%;
    height: auto;
    display: block
}

.gallery-story>span {
    display: block;
    padding: 20px
}

.gallery-story strong {
    font: 600 23px/1.15 Georgia, serif;
    display: block;
    max-width: 250px
}

.gallery-story small {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    font-size: 12px;
    color: #22613c
}

.gallery-videos video {
    display: block;
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    background: #153524;
    border-radius: 12px
}

.gallery-videos h3 {
    font-size: 15px;
    margin: 12px 0 0;
    font-weight: 600;
    color: #183d27
}

.gallery-social-links {
    display: flex;
    gap: 20px
}

.gallery-social-links i {
    margin-right: 6px;
    font-size: 19px
}

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

.gallery-social-card {
    display: block;
    position: relative;
    aspect-ratio: 1;
    border-radius: 12px;
    overflow: hidden;
    background: #e9eade;
    color: white
}

.gallery-social-card img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block
}

.gallery-social-card>span {
    position: absolute;
    inset: auto 0 0;
    padding: 25px 10px 10px;
    font-size: 12px;
    background: linear-gradient(transparent, #001b10de);
    color: white
}

.gallery-social-card .social-action {
    display: block;
    font-size: 11px;
    margin-top: 4px
}

.gallery-skeleton {
    aspect-ratio: 1;
    border-radius: 12px;
    background: linear-gradient(100deg, #eaeade 20%, #f6f5ec 45%, #eaeade 70%);
    background-size: 200% 100%;
    animation: gallery-shimmer 1.6s infinite
}

@keyframes gallery-shimmer {
    to {
        background-position: -200% 0
    }
}

.gallery-cta {
    margin-top: 45px;
    padding: 65px 0;
    background: linear-gradient(90deg, #053822f5 10%, #063d26e8 48%, #063d2633), url('../img/services/private-family-functions.webp') center/cover
}

.gallery-cta h2,
.gallery-cta p {
    color: white
}

.gallery-cta .gallery-button {
    background: #fffdf0;
    color: #07552d;
    margin-top: 8px
}

.gallery-lightbox {
    border: 0;
    border-radius: 14px;
    padding: 16px;
    background: #fcfaf4;
    width: min(1000px, 94vw);
    max-height: 94dvh;
    overflow: auto;
    box-shadow: 0 15px 90px #0008
}

.gallery-lightbox::backdrop {
    background: #001c13df
}

.lightbox-picture {
    height: min(65vh, 680px);
    overflow: hidden;
    background: #0b2217;
    border-radius: 8px
}

.lightbox-picture>img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain
}

.lightbox-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding-top: 18px
}

.gallery-lightbox h2 {
    font-size: 23px;
    margin: 0;
    text-align: center;
    color: #153e29
}

.lightbox-bar button,
.lightbox-close {
    border: 0;
    border-radius: 50%;
    background: #07552d;
    color: white;
    width: 42px;
    height: 42px;
    font-size: 24px;
    cursor: pointer;
    flex-shrink: 0
}

.lightbox-close {
    position: absolute;
    right: 23px;
    top: 23px;
    z-index: 1;
    box-shadow: 0 0 0 2px #fff
}

.gallery-sr-only,
.gallery-skip:not(:focus) {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%)
}

.gallery-skip:focus {
    display: block;
    padding: 12px
}

.rk-gallery [hidden] {
    display: none !important
}

.rk-gallery button:focus-visible,
.rk-gallery a:focus-visible,
.gallery-lightbox button:focus-visible {
    outline: 3px solid #bd8a34;
    outline-offset: 4px
}

body.gallery-modal-open {
    overflow: hidden
}

@media(max-width:991px) {
    .gallery-story strong {
        font-size: 20px
    }

    .gallery-social-grid {
        grid-template-columns: repeat(3, 1fr)
    }

    .gallery-filters button {
        flex: auto
    }

    .gallery-section-heading {
        align-items: start
    }

    .gallery-social-links {
        flex-direction: column;
        gap: 12px
    }
}

@media(max-width:600px) {
    .gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px
    }

    .gallery-caption {
        padding: 12px
    }

    .gallery-caption strong {
        font-size: 13px
    }

    .gallery-caption small {
        font-size: 11px
    }

    .gallery-arrow {
        display: none
    }

    .gallery-section-heading {
        flex-direction: column;
        gap: 12px
    }

    .gallery-stories,
    .gallery-videos {
        grid-template-columns: 1fr;
        gap: 20px
    }

    .gallery-story strong {
        max-width: none
    }

    .gallery-social-links {
        flex-direction: row
    }

    .gallery-social-grid {
        gap: 8px
    }

    .gallery-social-card>span {
        font-size: 10px
    }

    .gallery-social-card .social-action {
        font-size: 9px
    }

    .gallery-filters {
        gap: 7px
    }

    .gallery-filters button {
        font-size: 12px;
        padding: 9px 12px
    }

    .gallery-section {
        padding-top: 34px
    }

    .gallery-cta {
        padding: 45px 0
    }

    .lightbox-picture {
        height: auto;
        min-height: 180px
    }

    .lightbox-picture>img {
        height: auto;
        max-height: 70vh
    }

    .gallery-lightbox h2 {
        font-size: 19px
    }
}

@media(prefers-reduced-motion:reduce) {
    .gallery-skeleton {
        animation: none
    }
}

@media(max-width:767px) {
    .gallery-hero {
        padding: 30px 0 50px
    }

    .gallery-hero h1 {
        letter-spacing: -1px
    }

    .gallery-hero p:last-child {
        font-size: 16px
    }
}
