.gallery-page {
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(56, 176, 157, 0.12), transparent 28%),
        linear-gradient(135deg, #f7fffd 0%, #ffffff 48%, #f2fbf8 100%);
}

.gallery-hero-section {
    position: relative;
    min-height: 340px;
    display: flex;
    align-items: center;
    background:
        radial-gradient(circle at top left, rgba(56, 176, 157, 0.18), transparent 32%),
        linear-gradient(135deg, #ecfffb 0%, #ffffff 55%, #f5fffd 100%);
    overflow: hidden;
    border-bottom: 1px solid rgba(56, 176, 157, 0.08);
}

.gallery-hero-container {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.gallery-bg-circle {
    position: absolute;
    border-radius: 50%;
    background: rgba(56, 176, 157, 0.09);
    pointer-events: none;
}

.gallery-bg-circle.circle-one {
    width: 270px;
    height: 270px;
    right: -80px;
    top: 25px;
}

.gallery-bg-circle.circle-two {
    width: 180px;
    height: 180px;
    left: -60px;
    bottom: -60px;
}

.gallery-kicker,
.gallery-section-kicker {
    display: inline-block;
    padding: 0.42rem 0.9rem;
    border-radius: 999px;
    background: rgba(56, 176, 157, 0.11);
    color: #2b9b8a;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-size: 0.72rem;
    margin-bottom: 0.85rem;
}

.gallery-main-title {
    font-family: "Outfit", sans-serif;
    color: #172033;
    font-size: clamp(2.25rem, 3.8vw, 4rem);
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.05em;
    margin-bottom: 0.75rem;
}

.gallery-hero-subtitle {
    max-width: 760px;
    margin: 0 auto;
    color: #697386;
    font-size: 0.98rem;
    line-height: 1.75;
    font-weight: 500;
}

.gallery-stats-grid {
    max-width: 760px;
    margin: 1.6rem auto 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.85rem;
}

.gallery-stat-card {
    background: rgba(255, 255, 255, 0.84);
    border: 1px solid rgba(56, 176, 157, 0.12);
    border-radius: 1rem;
    padding: 0.95rem;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.055);
}

.gallery-stat-card strong {
    display: block;
    font-family: "Outfit", sans-serif;
    color: #172033;
    font-size: 1.35rem;
    font-weight: 900;
    line-height: 1;
}

.gallery-stat-card span {
    display: block;
    color: #697386;
    font-size: 0.72rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-top: 0.35rem;
}

.gallery-container {
    padding-top: 2.25rem;
    padding-bottom: 5rem;
}

.gallery-filter-wrapper {
    position: sticky;
    top: 76px;
    z-index: 20;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.65rem;
    max-width: 720px;
    margin: 0 auto 1.8rem;
    padding: 0.6rem;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(56, 176, 157, 0.12);
    border-radius: 999px;
    backdrop-filter: blur(14px);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.055);
}

.gallery-filter {
    border: 1px solid rgba(56, 176, 157, 0.18);
    background: #ffffff;
    color: #2b9b8a;
    border-radius: 999px;
    padding: 0.52rem 1rem;
    font-size: 0.78rem;
    font-weight: 900;
    transition: 0.22s ease;
}

.gallery-filter:hover,
.gallery-filter.active {
    background: #38b09d;
    color: #ffffff;
    box-shadow: 0 10px 22px rgba(56, 176, 157, 0.18);
}

.gallery-program-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}

.gallery-program-card {
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(56, 176, 157, 0.12);
    border-radius: 1.25rem;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.gallery-program-cover {
    position: relative;
    height: 280px;
    background: #f3f7f6;
    overflow: hidden;
}

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

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

.gallery-program-cover::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to top, rgba(15, 23, 42, 0.75), rgba(15, 23, 42, 0.12)),
        radial-gradient(circle at top left, rgba(56, 176, 157, 0.25), transparent 36%);
}

.gallery-program-overlay {
    position: absolute;
    left: 1.25rem;
    right: 1.25rem;
    bottom: 1.25rem;
    z-index: 2;
    color: #ffffff;
}

.gallery-program-year {
    display: inline-flex;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    padding: 0.3rem 0.75rem;
    font-size: 0.72rem;
    font-weight: 900;
    margin-bottom: 0.6rem;
}

.gallery-program-overlay h2 {
    font-family: "Outfit", sans-serif;
    font-size: clamp(1.45rem, 2.4vw, 2.2rem);
    font-weight: 900;
    letter-spacing: -0.035em;
    margin: 0 0 0.35rem;
}

.gallery-program-overlay p {
    margin: 0;
    font-size: 0.86rem;
    font-weight: 700;
    opacity: 0.9;
}

.gallery-program-placeholder {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #38b09d;
    font-size: 2rem;
}

.gallery-album-list {
    padding: 1rem;
}

.gallery-album-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.9rem 0;
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.gallery-album-row:last-child {
    border-bottom: 0;
}

.gallery-album-row strong {
    display: block;
    color: #172033;
    font-size: 0.94rem;
    font-weight: 900;
    margin-bottom: 0.18rem;
}

.gallery-album-row span {
    display: block;
    color: #697386;
    font-size: 0.78rem;
    font-weight: 700;
}

.gallery-open-btn,
.gallery-load-more {
    border: 0;
    background: #38b09d;
    color: #ffffff;
    border-radius: 999px;
    padding: 0.58rem 0.95rem;
    font-size: 0.78rem;
    font-weight: 900;
    white-space: nowrap;
    box-shadow: 0 10px 22px rgba(56, 176, 157, 0.18);
    transition: 0.22s ease;
}

.gallery-open-btn:hover,
.gallery-load-more:hover {
    transform: translateY(-2px);
    filter: brightness(0.96);
}

.gallery-empty {
    max-width: 620px;
    margin: 0 auto;
    background: #ffffff;
    border: 1px solid rgba(56, 176, 157, 0.12);
    border-radius: 1.2rem;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.gallery-empty i {
    color: #38b09d;
    font-size: 2rem;
    margin-bottom: 0.8rem;
}

.gallery-empty h3 {
    font-family: "Outfit", sans-serif;
    color: #172033;
    font-weight: 900;
}

.gallery-empty p {
    color: #697386;
    margin-bottom: 0;
}

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

.gallery-modal.show {
    display: block;
}

.gallery-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(6px);
}

.gallery-modal-panel {
    position: relative;
    z-index: 2;
    width: min(1120px, calc(100% - 2rem));
    max-height: calc(100vh - 2rem);
    margin: 1rem auto;
    background: #ffffff;
    border-radius: 1.25rem;
    overflow: hidden;
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.25);
    display: flex;
    flex-direction: column;
}

.gallery-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.2rem 1.35rem;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.gallery-modal-header h2 {
    font-family: "Outfit", sans-serif;
    color: #172033;
    font-size: 1.35rem;
    font-weight: 900;
    letter-spacing: -0.025em;
    margin: 0;
}

.gallery-modal-header .gallery-section-kicker {
    margin-bottom: 0.4rem;
}

.gallery-modal-close {
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 50%;
    background: rgba(56, 176, 157, 0.10);
    color: #38b09d;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-modal-body {
    padding: 1.25rem;
    overflow-y: auto;
}

.gallery-loader {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    color: #697386;
    font-weight: 800;
    padding: 2rem;
}

.gallery-masonry {
    columns: 4;
    column-gap: 1rem;
}

.gallery-masonry-item {
    position: relative;
    display: block;
    width: 100%;
    border: 0;
    padding: 0;
    margin: 0 0 1rem;
    background: #f3f7f6;
    border-radius: 1rem;
    overflow: hidden;
    break-inside: avoid;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.055);
}

.gallery-masonry-item img {
    width: 100%;
    display: block;
    object-fit: cover;
}

.gallery-video-thumb {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #172033;
}

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

.gallery-video-icon {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-video-icon i {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: rgba(56, 176, 157, 0.9);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}

.gallery-media-badge {
    position: absolute;
    left: 0.65rem;
    bottom: 0.65rem;
    background: rgba(255, 255, 255, 0.88);
    color: #172033;
    border-radius: 999px;
    padding: 0.28rem 0.62rem;
    font-size: 0.68rem;
    font-weight: 900;
}

.gallery-media-badge.video {
    color: #2b9b8a;
}

.gallery-error-box {
    column-span: all;
    text-align: center;
    background: rgba(244, 63, 94, 0.08);
    border: 1px solid rgba(244, 63, 94, 0.15);
    border-radius: 1rem;
    padding: 1.5rem;
    color: #b42318;
    font-weight: 800;
}

.gallery-lightbox {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.92);
}

.gallery-lightbox.show {
    display: flex;
}

.gallery-lightbox-content {
    max-width: min(1100px, calc(100vw - 7rem));
    max-height: calc(100vh - 5rem);
}

.gallery-lightbox-content img,
.gallery-lightbox-content video {
    max-width: 100%;
    max-height: calc(100vh - 5rem);
    border-radius: 1rem;
    display: block;
}

.gallery-lightbox-close,
.gallery-lightbox-nav {
    position: absolute;
    border: 0;
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-lightbox-close {
    top: 1.2rem;
    right: 1.2rem;
    width: 44px;
    height: 44px;
}

.gallery-lightbox-nav {
    width: 50px;
    height: 50px;
    top: 50%;
    transform: translateY(-50%);
}

.gallery-lightbox-nav.prev {
    left: 1.2rem;
}

.gallery-lightbox-nav.next {
    right: 1.2rem;
}

@media (max-width: 991px) {
    .gallery-program-grid {
        grid-template-columns: 1fr;
    }

    .gallery-masonry {
        columns: 3;
    }

    .gallery-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .gallery-program-cover {
        height: 230px;
    }

    .gallery-album-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .gallery-open-btn {
        width: 100%;
    }

    .gallery-masonry {
        columns: 2;
    }
}

@media (max-width: 575px) {
    .gallery-hero-container {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }

    .gallery-filter-wrapper {
        top: 70px;
        border-radius: 1rem;
    }

    .gallery-stats-grid {
        grid-template-columns: 1fr;
    }

    .gallery-modal-panel {
        width: calc(100% - 1rem);
        max-height: calc(100vh - 1rem);
        margin: 0.5rem auto;
    }

    .gallery-modal-body {
        padding: 0.85rem;
    }

    .gallery-masonry {
        columns: 1;
    }

    .gallery-lightbox-content {
        max-width: calc(100vw - 2rem);
    }

    .gallery-lightbox-nav {
        display: none;
    }
}