.gallery-page-intro h1 span {
    /* color: #ffcb05; */
}

.gallery-page-intro h1 {
    text-align: center;
    max-width: 70%;
}

.gallery-page {
    padding-top: 64px;
}

.gallery-event-list {
    display: grid;
    gap: 44px;
}

.gallery-event__mobile {
    display: none;
}

.gallery-event__grid {
    display: grid;
    grid-template-columns: 1.05fr 1fr 1fr;
    grid-template-rows: repeat(2, minmax(0, 350px));
    gap: 14px;
}

.gallery-event--reverse .gallery-event__grid {
    grid-template-columns: 1fr 1fr 1.05fr;
}

.gallery-card {
    position: relative;
    overflow: hidden;
    border: 0;
    padding: 0;
    cursor: pointer;
    border-radius: 25px;
}

.gallery-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.gallery-card:hover img {
    transform: scale(1.04);
}

.gallery-card--feature {
    grid-row: 1 / span 2;
}

.gallery-event:not(.gallery-event--reverse) .gallery-card--feature {
    grid-column: 1;
}

.gallery-event--reverse .gallery-card--feature {
    grid-column: 3;
}

.gallery-card__overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: end;
    gap: 10px;
    padding: 28px 28px 24px;
    /* color: #111; */
    /* background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.05) 20%, rgba(255, 255, 255, 0.7) 100%); */
    background:
        linear-gradient(180deg, rgba(8, 45, 19, 0.05) 20%, rgba(8, 45, 19, 0.8) 100%);
}

/* 
.site-footer {
    position: relative;
    margin-top: -1px;
    padding: 0;
    color: #ffffff;
    background: linear-gradient(180deg, rgba(8, 45, 19, 0.88), rgba(8, 45, 19, 0.82)),
        url('../images/footer-img.jpg') bottom center/cover no-repeat;
} */

.gallery-card__overlay h2 {
    margin: 0;
    font-style: normal;
    font-weight: 700;
    font-size: 20px;
    color: #EDC500;
    text-align: left;
}

.gallery-card__overlay p {
    max-width: 360px;
    /* font-weight: 400;
    font-size: 14px; */
    text-align: left;
    color: #ffffff;
}

.gallery-card__count {
    position: absolute;
    right: 18px;
    bottom: 18px;
    min-width: 68px;
    min-height: 48px;
    padding: 8px 14px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(8, 28, 13, 0.84);
    color: #fff;
    font-weight: 800;
    box-shadow: 0 12px 24px rgba(6, 26, 15, 0.18);
}

.gallery-modal {
    position: fixed;
    inset: 0;
    display: none;
    z-index: 100000;
}

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

.gallery-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(6, 26, 15, 0.86);
    backdrop-filter: blur(8px);
}

.gallery-modal__dialog {
    position: relative;
    width: min(1120px, calc(100% - 48px));
    margin: 4vh auto;
    max-height: 92vh;
    overflow: hidden;
    border-radius: 28px;
    padding: 26px;
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr) auto;
    gap: 18px 24px;
    background: linear-gradient(180deg, #ffffff 0%, #f1f1f1 100%);
    color: #154420;
    box-shadow: 0 32px 60px rgba(70, 62, 62, 0.34);
}

.gallery-modal__close {
    position: absolute;
    top: 14px;
    right: 16px;
    z-index: 2;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #921913;
    color: #ffffff;
    cursor: pointer;
}

/* .gallery-modal__close:hover {
    background: rgba(255, 203, 5, 0.16);
    color: #ffcb05;
} */

.gallery-modal__close span {
    font-size: 1.8rem;
    line-height: 1;
}

.gallery-modal__meta {
    grid-column: 1;
    grid-row: 1 / span 3;
    padding: 8px 4px 8px 4px;
}

.gallery-modal__meta h2 {
    margin: 0 0 18px;
    font-size: 2rem;
    line-height: 1.08;
    font-weight: 700;
}

.gallery-modal__description {
    color: rgba(0, 0, 0, 0.84);
    /* line-height: 1.75; */
}

.gallery-modal__viewer {
    grid-column: 2;
    grid-row: 1 / span 2;
    position: relative;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 58px;
}

.gallery-modal__image {
    max-width: 100%;
    max-height: 62vh;
    border-radius: 18px;
    object-fit: contain;
    background: #fff;
}

.gallery-modal__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 999px;
    background: #154420;
    color: #fff;
    cursor: pointer;
}

/* .gallery-modal__arrow:hover {
    background: rgba(255, 203, 5, 0.16);
    color: #ffcb05;
} */

.gallery-modal__arrow span {
    font-size: 2rem;
    line-height: 1;
}

.gallery-modal__arrow--prev {
    left: 4px;
}

.gallery-modal__arrow--next {
    right: 4px;
}

.gallery-modal__thumbnails {
    grid-column: 2;
    display: flex;
    gap: 14px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.gallery-modal__thumb {
    width: 96px;
    height: 96px;
    flex: 0 0 96px;
    border-radius: 16px;
    overflow: hidden;
    border: 2px solid transparent;
    padding: 0;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.08);
}

.gallery-modal__thumb.is-active {
    border-color: #ffcb05;
}

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

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

@media (max-width: 1080px) {
    .gallery-event__grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: repeat(3, minmax(0, 220px));
    }

    .gallery-card--feature,
    .gallery-event--reverse .gallery-card--feature,
    .gallery-event:not(.gallery-event--reverse) .gallery-card--feature {
        grid-column: 1 / -1;
        /* grid-row: auto; */
    }

    .gallery-modal__dialog {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
        width: min(960px, calc(100% - 32px));
    }

    .gallery-modal__meta,
    .gallery-modal__viewer,
    .gallery-modal__thumbnails {
        grid-column: 1;
        grid-row: auto;
    }

    .gallery-modal__meta {
        padding-right: 40px;
    }

    .gallery-event--reverse .gallery-event__grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: repeat(3, minmax(0, 220px));
    }

    .gallery-page-intro h1 {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .gallery-page {
        padding-top: 34px;
    }

    .gallery-event-list {
        gap: 28px;
    }

    .gallery-event__desktop {
        display: none;
    }

    .gallery-event__mobile {
        display: grid;
        gap: 16px;
    }

    .gallery-event__mobile-copy h2 {
        margin: 0 0 8px;
        color: #154420;
        font-size: 1.65rem;
        line-height: 1.08;
    }

    .gallery-event__mobile-copy p {
        color: #334c3f;
        line-height: 1.62;
    }

    .gallery-event__mobile-track {
        display: flex;
        gap: 12px;
        overflow-x: auto;
        padding-bottom: 6px;
        scroll-snap-type: x proximity;
    }

    .gallery-mobile-card {
        flex: 0 0 min(82vw, 310px);
        scroll-snap-align: start;
        border-radius: 15px;
        overflow: hidden;
        background: #d9d9d9;
        box-shadow: 0 18px 28px rgba(6, 26, 15, 0.1);
    }

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

    .gallery-modal {
        display: none !important;
    }
}