/* ============================================================
   GALLERY PAGE — UNIQUE DESIGN SYSTEM (gl- prefix)
   Dark violet/teal hero banner, masonry photo grid, lightbox.
   ============================================================ */

:root {
    --gl-v-900: #170B2E;
    --gl-v-800: #241141;
    --gl-v-700: #38185F;
    --gl-v-600: #582A8E;
    --gl-v-500: #7C4DDB;
    --gl-teal-500: #1e9a84;
    --gl-teal-400: #32dabc;
    --gl-ink: var(--tf-black, #0A0A0A);
    --gl-grey: var(--tf-grey, #7A8580);
    --gl-radius: 20px;
    --gl-ease: cubic-bezier(.4, 0, .2, 1);
}

.gl-page { overflow-x: hidden; }

/* ============================================================
   0. BANNER
   ============================================================ */
.gl-banner {
    position: relative;
    padding: 150px 0 70px;
    background: linear-gradient(150deg, var(--gl-v-900) 0%, #0A0A0A 70%);
    color: #fff;
    overflow: hidden;
    isolation: isolate;
}

.gl-banner__panel {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(560px 320px at 90% -10%, rgba(124, 77, 219, .32), transparent 70%),
        radial-gradient(420px 260px at 6% 120%, rgba(30, 154, 132, .18), transparent 70%);
    z-index: -2;
}

.gl-banner__grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px);
    background-size: 42px 42px;
    -webkit-mask-image: radial-gradient(circle at 80% 0%, #000 0%, transparent 65%);
            mask-image: radial-gradient(circle at 80% 0%, #000 0%, transparent 65%);
    z-index: -1;
}

.gl-banner__orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    z-index: -1;
    opacity: .55;
}

.gl-banner__orb--1 {
    width: 260px; height: 260px;
    right: 8%; top: -60px;
    background: var(--gl-v-500);
}

.gl-banner__orb--2 {
    width: 200px; height: 200px;
    left: 4%; bottom: -60px;
    background: var(--gl-teal-500);
}

.gl-banner__crumb {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: .88rem;
    color: rgba(255,255,255,.6);
    margin-bottom: 18px;
}

.gl-banner__crumb a { color: rgba(255,255,255,.85); text-decoration: none; }
.gl-banner__crumb a:hover { color: var(--gl-teal-400); }
.gl-banner__crumb-sep { opacity: .5; }

.gl-banner__title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 14px;
}

.gl-banner__title span { color: var(--gl-teal-400); }

.gl-banner__desc {
    max-width: 620px;
    color: rgba(255,255,255,.7);
    font-size: 1.02rem;
    line-height: 1.7;
}

/* ============================================================
   1. FILTER TABS
   ============================================================ */
.gl-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-bottom: 46px;
}

.gl-filter-btn {
    border: 1px solid rgba(10,10,10,.12);
    background: #fff;
    color: var(--gl-ink);
    padding: 10px 22px;
    border-radius: 40px;
    font-weight: 700;
    font-size: .88rem;
    cursor: pointer;
    transition: var(--tf-transition, .3s ease);
}

.gl-filter-btn:hover {
    border-color: var(--gl-teal-500);
    color: var(--gl-teal-500);
}

.gl-filter-btn.is-active {
    background: var(--gl-teal-500);
    border-color: var(--gl-teal-500);
    color: #fff;
}

/* ============================================================
   2. MASONRY GRID
   ============================================================ */
.gl-grid-wrap {
    padding: 90px 0 100px;
    background: var(--tf-light, #F5F5F5);
}

.gl-grid {
    column-count: 3;
    column-gap: 22px;
}

.gl-item {
    break-inside: avoid;
    margin-bottom: 22px;
    border-radius: var(--gl-radius);
    overflow: hidden;
    position: relative;
    cursor: zoom-in;
    box-shadow: 0 10px 30px rgba(0,0,0,.08);
}

.gl-item img {
    width: 100%;
    display: block;
    transition: transform .5s var(--gl-ease);
}

.gl-item:hover img {
    transform: scale(1.08);
}

.gl-item__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(10,10,10,.82) 0%, rgba(10,10,10,0) 55%);
    display: flex;
    align-items: flex-end;
    padding: 20px;
    opacity: 0;
    transition: opacity .35s ease;
}

.gl-item:hover .gl-item__overlay {
    opacity: 1;
}

.gl-item__overlay h6 {
    color: #fff;
    font-size: .96rem;
    margin-bottom: 2px;
}

.gl-item__overlay span {
    color: rgba(255,255,255,.65);
    font-size: .78rem;
}

.gl-item__zoom {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,.15);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    opacity: 0;
    transition: opacity .3s ease, background .3s ease;
}

.gl-item:hover .gl-item__zoom {
    opacity: 1;
}

.gl-item__zoom:hover {
    background: var(--gl-teal-500);
}

@media (max-width: 991px) {
    .gl-grid { column-count: 2; }
    .gl-banner__title { font-size: 2.2rem; }
}

@media (max-width: 575px) {
    .gl-grid { column-count: 1; }
}

/* ============================================================
   3. LIGHTBOX
   ============================================================ */
.gl-lightbox {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(6, 6, 10, .92);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s ease, visibility .3s ease;
    padding: 40px;
}

.gl-lightbox.is-open {
    opacity: 1;
    visibility: visible;
}

.gl-lightbox__inner {
    max-width: max-content;
    width: 100%;
    text-align: center;
}

.gl-lightbox__inner img {
    max-width: 100%;
    max-height: 76vh;
    border-radius: 14px;
    box-shadow: 0 30px 80px rgba(0,0,0,.5);
}

.gl-lightbox__caption {
    color: #fff;
    margin-top: 18px;
    font-size: .95rem;
}

.gl-lightbox__caption strong { color: var(--gl-teal-400); }

.gl-lightbox__close,
.gl-lightbox__prev,
.gl-lightbox__next {
    position: absolute;
    color: #fff;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.18);
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--tf-transition, .3s ease);
    font-size: 1.1rem;
}

.gl-lightbox__close:hover,
.gl-lightbox__prev:hover,
.gl-lightbox__next:hover {
    background: var(--gl-teal-500);
    border-color: var(--gl-teal-500);
}

.gl-lightbox__close { top: 26px; right: 26px; }
.gl-lightbox__prev { left: 26px; top: 50%; transform: translateY(-50%); }
.gl-lightbox__next { right: 26px; top: 50%; transform: translateY(-50%); }

@media (max-width: 575px) {
    .gl-lightbox { padding: 16px; }
    .gl-lightbox__prev, .gl-lightbox__next { width: 38px; height: 38px; font-size: .95rem; }
    .gl-lightbox__close { width: 38px; height: 38px; top: 14px; right: 14px; }
}

/* ============================================================
   4. CTA STRIP
   ============================================================ */
.gl-cta {
    padding: 70px 0;
    background: linear-gradient(120deg, var(--gl-v-800), var(--gl-v-900));
    text-align: center;
    color: #fff;
}

.gl-cta h3 {
    font-size: 1.8rem;
    margin-bottom: 12px;
}

.gl-cta p {
    color: rgba(255,255,255,.68);
    max-width: 560px;
    margin: 0 auto 26px;
}

/* ============================================================
   5. EVENT HIGHLIGHTS — gl-events (green card grid)
   Single cover card per event + pill label; click opens
   a full slider modal (counter, zoom/download/close, thumbs).
   ============================================================ */
:root {
    --gl-green-900: #06241C;
    --gl-green-800: #0A3B2C;
    --gl-green-600: #0F7A54;
    --gl-green-500: #16A76B;
    --gl-green-400: #34D399;
    --gl-green-100: #E7F7F0;
}

.gl-events {
    padding: 60px 0 60px;
    background: var(--tf-white, #fff);
}

.gl-events__head {
    max-width: 620px;
    margin: 0 auto 50px;
    text-align: center;
}

.gl-events__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--gl-green-600);
    background: var(--gl-green-100);
    padding: 7px 16px;
    border-radius: 40px;
    margin-bottom: 16px;
}

.gl-events__title {
    font-size: 2.1rem;
    font-weight: 800;
    color: var(--gl-ink);
    margin-bottom: 12px;
}

.gl-events__desc {
    color: var(--gl-grey);
    font-size: 1rem;
    line-height: 1.7;
}

/* ---- Card grid ---- */
.gl-ev-card {
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.gl-ev-card__media {
    position: relative;
    border-radius: var(--gl-radius);
    overflow: hidden;
    aspect-ratio: 16 / 10;
    box-shadow: 0 10px 30px rgba(10, 60, 40, .08);
}

.gl-ev-card__cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .5s var(--gl-ease);
}

.gl-ev-card:hover .gl-ev-card__cover {
    transform: scale(1.07);
}

.gl-ev-card__media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(6, 36, 28, .55) 0%, rgba(6, 36, 28, 0) 55%);
    opacity: 0;
    transition: opacity .35s ease;
}

.gl-ev-card:hover .gl-ev-card__media::after {
    opacity: 1;
}

.gl-ev-card__overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.4rem;
    opacity: 0;
    transition: opacity .3s ease;
}

.gl-ev-card:hover .gl-ev-card__overlay {
    opacity: 1;
}

.gl-ev-card__label {
    display: block;
    margin-top: 16px;
    padding: 13px 18px;
    text-align: center;
    background: var(--gl-green-100);
    color: var(--gl-green-800);
    font-weight: 700;
    font-size: 1rem;
    border-radius: 10px;
    transition: background .3s ease, color .3s ease;
}

.gl-ev-card:hover .gl-ev-card__label {
    background: var(--gl-green-500);
    color: #fff;
}

/* ============================================================
   6. EVENT SLIDER MODAL — gl-ev-modal
   ============================================================ */
.gl-ev-modal {
    position: fixed;
    inset: 0;
    z-index: 2100;
    background: rgba(4, 10, 8, .96);
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s ease, visibility .3s ease;
    padding: 70px 24px 130px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gl-ev-modal.is-open {
    opacity: 1;
    visibility: visible;
}

.gl-ev-modal__top {
    position: absolute;
    top: 22px;
    left: 28px;
    right: 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.gl-ev-modal__counter {
    color: #fff;
    font-size: .95rem;
    font-weight: 600;
    letter-spacing: .03em;
}

.gl-ev-modal__actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.gl-ev-modal__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .18);
    color: #fff;
    cursor: pointer;
    text-decoration: none;
    transition: var(--tf-transition, .3s ease);
    font-size: 1rem;
}

.gl-ev-modal__icon:hover {
    background: var(--gl-green-500);
    border-color: var(--gl-green-500);
    color: #fff;
}

.gl-ev-modal__stage {
    max-width: 100%;
    max-height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.gl-ev-modal__img {
    max-width: 100%;
    max-height: 68vh;
    border-radius: 10px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, .5);
    transition: transform .3s ease;
    cursor: zoom-in;
}

.gl-ev-modal__img.is-zoomed {
    max-width: none;
    max-height: none;
    transform: scale(1.6);
    cursor: zoom-out;
}

.gl-ev-modal__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .18);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.1rem;
    transition: var(--tf-transition, .3s ease);
    z-index: 2;
}

.gl-ev-modal__nav:hover {
    background: var(--gl-green-500);
    border-color: var(--gl-green-500);
}

.gl-ev-modal__nav--prev { left: 26px; }
.gl-ev-modal__nav--next { right: 26px; }

.gl-ev-modal__caption {
    position: absolute;
    bottom: 108px;
    left: 0;
    right: 0;
    text-align: center;
    color: rgba(255, 255, 255, .78);
    font-size: .95rem;
}

.gl-ev-modal__thumbs {
    position: absolute;
    bottom: 24px;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    padding: 0 20px;
}

.gl-ev-modal__thumb {
    width: 72px;
    height: 54px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    opacity: .55;
    transition: var(--tf-transition, .3s ease);
    flex-shrink: 0;
}

.gl-ev-modal__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gl-ev-modal__thumb:hover {
    opacity: .85;
}

.gl-ev-modal__thumb.is-active {
    opacity: 1;
    border-color: var(--gl-green-400);
}

@media (max-width: 767px) {
    .gl-events__title { font-size: 1.7rem; }

    .gl-ev-modal { padding: 60px 16px 116px; }
    .gl-ev-modal__nav { width: 38px; height: 38px; font-size: .95rem; }
    .gl-ev-modal__nav--prev { left: 10px; }
    .gl-ev-modal__nav--next { right: 10px; }
    .gl-ev-modal__caption { bottom: 96px; font-size: .85rem; }
    .gl-ev-modal__thumb { width: 54px; height: 42px; }
}




/* mobile */
@media (max-width: 767px) {
    .gl-banner {
        padding: 120px 0 50px;
    }
}