/* ============================================================
   BILLIONEVENTS - GALLERY WOW PAGE
   ============================================================ */

body.gallery-wow {
    background:
        radial-gradient(1200px 500px at 8% -6%, rgba(255, 107, 53, 0.12), transparent 60%),
        radial-gradient(1200px 700px at 100% 18%, rgba(190, 106, 96, 0.1), transparent 62%),
        #ffffff;
}

.gallery-hero {
    position: relative;
    overflow: hidden;
    padding: 112px 0 68px;
    background:
        radial-gradient(820px 420px at 86% 16%, rgba(255, 107, 53, 0.18), transparent 64%),
        radial-gradient(760px 380px at 14% 92%, rgba(190, 106, 96, 0.24), transparent 70%),
        linear-gradient(132deg, #1a1018 0%, #2a1721 52%, #1b0f17 100%);
    color: var(--white);
}

.gallery-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 35%, rgba(255, 255, 255, 0.02));
}

.gallery-hero .breadcrumb,
.gallery-hero .breadcrumb a {
    color: rgba(255, 255, 255, 0.68);
}

.gallery-hero .breadcrumb a:hover {
    color: var(--gold-light);
}

.gallery-hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
    gap: 38px;
    align-items: stretch;
}

.gallery-hero-copy .section-label {
    color: var(--gold-light);
}

.gallery-hero-copy .section-label::before {
    background: var(--gold-light);
}

.gallery-hero-copy h1 {
    color: var(--white);
    margin-bottom: 14px;
    max-width: 720px;
    font-size: clamp(32px, 4vw, 54px);
    line-height: 1.14;
}

.gallery-hero-copy p {
    color: rgba(255, 255, 255, 0.8);
    max-width: 680px;
    font-size: 17px;
    line-height: 1.8;
}

.gallery-hero-tags {
    margin-top: 26px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.gallery-hero-tag {
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.88);
    font-size: 12px;
    letter-spacing: 0.3px;
    font-weight: 500;
}

.gallery-hero-actions {
    margin-top: 30px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.gallery-hero-panel {
    position: relative;
    border-radius: 22px;
    padding: 22px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 20px 42px rgba(1, 7, 20, 0.34);
    backdrop-filter: blur(12px);
    display: grid;
    gap: 14px;
}

.hero-panel-item {
    border-radius: 16px;
    padding: 16px;
    background: rgba(27, 14, 22, 0.52);
    border: 1px solid rgba(255, 255, 255, 0.14);
}

.hero-panel-item strong {
    display: block;
    color: var(--gold-light);
    font-size: 30px;
    line-height: 1;
    margin-bottom: 7px;
    font-family: 'Playfair Display', serif;
}

.hero-panel-item span {
    color: rgba(255, 255, 255, 0.78);
    font-size: 13px;
    line-height: 1.55;
}

.gallery-experience {
    padding-top: 48px;
}

.gallery-controls {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 22px;
    box-shadow: var(--shadow-md);
    padding: 28px;
    margin-bottom: 26px;
}

.gallery-control-head {
    display: flex;
    gap: 18px;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 18px;
}

.gallery-control-head h2 {
    margin: 0;
    font-size: clamp(24px, 2.7vw, 34px);
}

.gallery-control-head p {
    margin: 0;
    max-width: 520px;
    color: var(--gray-500);
    font-size: 15px;
    line-height: 1.7;
}

.gallery-filter-stack {
    display: grid;
    gap: 12px;
}

.gallery-filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.gallery-filter-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 12px;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--gray-700);
    background: var(--gray-100);
    border: 1px solid var(--gray-200);
}

.gallery-filter-btn {
    border: 1px solid var(--gray-200);
    background: var(--white);
    color: var(--gray-600);
    padding: 9px 14px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 999px;
    cursor: pointer;
    transition: var(--transition);
}

.gallery-filter-btn:hover {
    border-color: var(--gold);
    color: var(--gold-dark);
    transform: translateY(-1px);
}

.gallery-filter-btn.is-active {
    background: linear-gradient(120deg, #26141d, #1b1017);
    color: var(--white);
    border-color: rgba(190, 106, 96, 0.45);
    box-shadow: 0 10px 22px rgba(35, 18, 27, 0.24);
}

.gallery-search {
    margin-top: 6px;
    position: relative;
}

.gallery-search input {
    width: 100%;
    border-radius: 12px;
    border: 1px solid var(--gray-200);
    padding: 12px 14px 12px 42px;
    font-size: 15px;
    color: var(--dark);
    background: var(--gray-50);
    transition: var(--transition);
}

.gallery-search input:focus {
    outline: none;
    border-color: var(--gold);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.14);
}

.gallery-search svg {
    position: absolute;
    width: 18px;
    height: 18px;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-500);
}

.gallery-results {
    margin-top: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.gallery-results p {
    margin: 0;
    font-size: 14px;
    color: var(--gray-600);
}

.gallery-results strong {
    color: var(--dark);
}

.gallery-reset {
    border: none;
    background: transparent;
    color: var(--gold-dark);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.2px;
    cursor: pointer;
    padding: 4px 0;
    transition: var(--transition);
}

.gallery-reset:hover {
    color: var(--dark);
}

.gallery-bento {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    grid-auto-rows: 126px;
    gap: 16px;
}

.gallery-card {
    position: relative;
    grid-column: span 3;
    grid-row: span 2;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.45s ease, box-shadow 0.45s ease, border-color 0.35s ease;
    animation: galleryFade 0.45s ease both;
    animation-delay: var(--gallery-delay, 0ms);
}

.gallery-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 24px 40px rgba(13, 22, 47, 0.16);
    border-color: rgba(255, 107, 53, 0.65);
}

.gallery-card.featured {
    grid-column: span 6;
    grid-row: span 3;
}

.gallery-card.wide {
    grid-column: span 6;
}

.gallery-card.tall {
    grid-row: span 3;
}

.gallery-card-media {
    position: relative;
    flex: 1;
    min-height: 0;
    width: 100%;
    border: none;
    background: none;
    cursor: pointer;
    padding: 0;
    text-align: left;
}

.gallery-card-media::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 34%, rgba(0, 0, 0, 0.2) 80%, rgba(0, 0, 0, 0.3) 100%);
    opacity: 0.45;
    transition: opacity 0.35s ease;
}

.gallery-card:hover .gallery-card-media::after {
    opacity: 0.28;
}

.gallery-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.1) contrast(1.04);
    transition: transform 0.55s ease;
}

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

.gallery-chip-group {
    position: absolute;
    top: 12px;
    left: 12px;
    right: 12px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    z-index: 2;
}

.gallery-chip {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(15, 28, 56, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.92);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.35px;
}

.gallery-chip.city {
    background: rgba(255, 107, 53, 0.9);
    color: #101327;
    border-color: rgba(255, 107, 53, 0.8);
}

.gallery-card-copy {
    padding: 14px 14px 16px;
}

.gallery-card-copy h3 {
    margin: 0 0 6px;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    line-height: 1.35;
}

.gallery-card-copy p {
    margin: 0;
    color: var(--gray-500);
    font-size: 13px;
    line-height: 1.6;
}

.gallery-card.is-hidden {
    display: none;
}

.gallery-load-more-wrap {
    margin-top: 26px;
    display: grid;
    place-items: center;
    gap: 14px;
}

.gallery-empty {
    margin: 0;
    text-align: center;
    font-size: 14px;
    color: var(--gray-500);
}

.gallery-insights {
    padding: 30px;
    border-radius: 22px;
    border: 1px solid var(--gray-200);
    background: linear-gradient(160deg, #ffffff 0%, #f7f8fc 100%);
    margin-top: 40px;
}

.gallery-insights h2 {
    margin-bottom: 10px;
}

.gallery-insights p {
    margin: 0 0 16px;
    color: var(--gray-600);
    font-size: 15px;
    line-height: 1.8;
}

.gallery-insight-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.gallery-insight-tags span {
    border: 1px solid var(--gray-200);
    background: var(--white);
    color: var(--gray-700);
    font-size: 12px;
    padding: 7px 11px;
    border-radius: 999px;
}

.gallery-cta {
    text-align: center;
    background:
        radial-gradient(720px 320px at 15% 10%, rgba(255, 107, 53, 0.2), transparent 60%),
        radial-gradient(620px 290px at 85% 95%, rgba(190, 106, 96, 0.2), transparent 64%),
        linear-gradient(150deg, #1b1119 0%, #24141d 100%);
}

.gallery-cta h2 {
    color: var(--white);
    margin-bottom: 14px;
}

.gallery-cta p {
    color: rgba(255, 255, 255, 0.72);
    font-size: 16px;
    line-height: 1.8;
    margin: 0 auto 28px;
    max-width: 640px;
}

.gallery-cta-actions {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

#lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    gap: 18px;
    padding: 30px;
    background: rgba(7, 10, 20, 0.93);
    backdrop-filter: blur(10px);
}

#lightbox.active {
    display: flex;
}

.lightbox-stage {
    position: relative;
    width: min(1040px, calc(100vw - 150px));
    max-height: calc(100vh - 90px);
    display: flex;
    flex-direction: column;
    border-radius: 18px;
    overflow: hidden;
    background: #0e1428;
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45);
}

#lightbox-img {
    width: 100%;
    max-height: calc(100vh - 220px);
    object-fit: contain;
    background: #02050f;
}

.lightbox-meta {
    padding: 14px 16px 16px;
    background: linear-gradient(180deg, rgba(6, 10, 21, 0.85), rgba(6, 10, 21, 0.95));
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.lightbox-meta-top {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 6px;
}

.lightbox-title {
    margin: 0;
    color: var(--white);
    font-size: 16px;
    font-weight: 600;
}

.lightbox-count {
    margin: 0;
    color: rgba(255, 255, 255, 0.75);
    font-size: 13px;
    white-space: nowrap;
}

.lightbox-caption {
    margin: 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 13px;
    line-height: 1.6;
}

.lightbox-close {
    position: absolute;
    top: 14px;
    right: 16px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.24);
    background: rgba(8, 14, 30, 0.68);
    color: var(--white);
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
    z-index: 3;
    transition: var(--transition);
}

.lightbox-close:hover {
    transform: rotate(90deg);
    border-color: var(--gold-light);
}

.lightbox-nav {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.26);
    background: rgba(8, 14, 30, 0.7);
    color: var(--white);
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    transition: var(--transition);
}

.lightbox-nav:hover {
    background: rgba(255, 107, 53, 0.9);
    color: #11152c;
    border-color: rgba(255, 107, 53, 1);
}

.lightbox-nav:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

@keyframes galleryFade {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

    .gallery-hero-panel {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .gallery-card {
        grid-column: span 4;
    }

    .gallery-card.wide,
    .gallery-card.featured {
        grid-column: span 8;
    }
}

@media (max-width: 992px) {
    .gallery-controls {
        padding: 20px;
    }

    .gallery-control-head {
        flex-direction: column;
        align-items: flex-start;
        margin-bottom: 16px;
    }

    .gallery-card {
        grid-column: span 6;
    }

    .gallery-card.wide,
    .gallery-card.featured {
        grid-column: span 12;
    }

    .gallery-card.tall {
        grid-row: span 2;
    }

    .lightbox-stage {
        width: min(900px, calc(100vw - 120px));
    }
}

@media (max-width: 768px) {
    .gallery-hero {
        padding: 100px 0 50px;
    }

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

    .gallery-hero-actions {
        width: 100%;
    }

    .gallery-hero-actions .btn {
        width: 100%;
    }

    .gallery-controls {
        border-radius: 16px;
        padding: 16px;
    }

    .gallery-filter-label {
        width: 100%;
        justify-content: flex-start;
    }

    .gallery-bento {
        grid-template-columns: 1fr;
        grid-auto-rows: auto;
    }

    .gallery-card,
    .gallery-card.wide,
    .gallery-card.tall,
    .gallery-card.featured {
        grid-column: span 1;
        grid-row: span 1;
    }

    .gallery-card-media {
        min-height: 220px;
    }

    #lightbox {
        padding: 14px 10px;
        gap: 8px;
    }

    .lightbox-stage {
        width: calc(100vw - 20px);
        max-height: calc(100vh - 26px);
    }

    #lightbox-img {
        max-height: calc(100vh - 235px);
    }

    .lightbox-meta-top {
        flex-direction: column;
    }

    .lightbox-nav {
        width: 42px;
        height: 42px;
        font-size: 20px;
    }

    .gallery-cta-actions {
        flex-direction: column;
    }

    .gallery-cta-actions .btn {
        width: 100%;
    }
}

@media (max-width: 520px) {
    .gallery-hero-copy p {
        font-size: 15px;
    }

    .gallery-insights {
        padding: 20px 16px;
    }

    .lightbox-close {
        top: 8px;
        right: 8px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .gallery-card,
    .gallery-card img,
    .gallery-card-media::after,
    .gallery-filter-btn,
    .lightbox-nav,
    .lightbox-close {
        transition: none;
        animation: none;
    }
}
