/* =========================================================
   CRICKET STATION — GALLERY PAGE STYLES
   Prefix: gl- (Gallery) to avoid conflicts
========================================================= */

/* ---------- GLOBAL ---------- */
.gl-label {
    font-family: 'Cinzel', serif;
    color: #C9A15A;
    letter-spacing: 0.4em;
    font-size: 0.75rem;
    margin-bottom: 1rem;
}
.gl-title {
    font-family: 'Cinzel', serif;
    color: #F5F1E8;
    font-size: clamp(2rem, 5vw, 3.5rem);
    line-height: 1.1;
    letter-spacing: 0.05em;
}
.gl-title span { color: #C9A15A; font-style: italic; }
.gl-text {
    color: #D1D5DB;
    line-height: 1.8;
    font-size: 1.05rem;
}
.gl-section-header { margin-bottom: 4rem; }
.gl-section-desc {
    color: #D1D5DB;
    max-width: 600px;
    margin: 1.5rem auto 0;
    line-height: 1.7;
}

/* ---------- SECTION 1: HERO ---------- */
.gl-hero {
    position: relative;
    height: 85vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.gl-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 1;
}
.gl-hero-bg img {
    width: 100%; height: 100%;
    object-fit: cover;
    transform: scale(1.1);
}
.gl-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(13,27,23,0.6) 0%, rgba(13,27,23,0.9) 100%);
    z-index: 2;
}
.gl-hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    max-width: 900px;
    padding: 0 1.5rem;
}
.gl-breadcrumb {
    font-family: 'Cinzel', serif;
    font-size: 0.75rem;
    letter-spacing: 0.3em;
    color: #D1D5DB;
    margin-bottom: 2rem;
}
.gl-breadcrumb a { color: #D1D5DB; transition: color 0.3s; }
.gl-breadcrumb a:hover { color: #C9A15A; }
.gl-breadcrumb span { color: #C9A15A; }
.gl-hero-title {
    font-family: 'Cinzel', serif;
    color: #F5F1E8;
    font-size: clamp(3rem, 8vw, 6rem);
    line-height: 1.05;
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
}
.gl-hero-title span { color: #C9A15A; font-style: italic; }
.gl-hero-desc {
    color: #D1D5DB;
    font-size: 1.1rem;
    line-height: 1.7;
    max-width: 650px;
    margin: 0 auto;
}

/* ---------- SECTION 2: INTRO ---------- */
.gl-intro { padding: 6rem 0 2rem; }

/* ---------- SECTION 3: MAIN GALLERY ---------- */
.gl-main { padding: 4rem 0 6rem; }

/* Filter Tabs */
.gl-filter-wrap {
    margin-bottom: 3rem;
    display: flex;
    justify-content: center;
}
.gl-filter-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.5rem;
    background: #1A2B24;
    border: 1px solid rgba(143,106,53,0.2);
    border-radius: 4px;
}
.gl-filter-tab {
    padding: 0.85rem 1.5rem;
    background: transparent;
    border: none;
    color: #D1D5DB;
    font-family: 'Cinzel', serif;
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    cursor: pointer;
    transition: all 0.4s;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    border-radius: 2px;
    position: relative;
}
.gl-filter-tab:hover {
    color: #F5F1E8;
}
.gl-filter-tab.active {
    background: linear-gradient(135deg, #C9A15A, #8F6A35);
    color: #0D1B17;
}
.gl-filter-count {
    font-family: 'Inter', sans-serif;
    font-size: 0.65rem;
    padding: 0.15rem 0.5rem;
    background: rgba(13,27,23,0.2);
    border-radius: 10px;
    letter-spacing: 0;
}
.gl-filter-tab.active .gl-filter-count {
    background: rgba(13,27,23,0.3);
}

/* Masonry Grid */
.gl-masonry {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 220px;
    gap: 1rem;
}
.gl-item {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.5s ease;
}
.gl-item.gl-item-tall { grid-row: span 2; }
.gl-item.gl-item-wide { grid-column: span 2; }
.gl-item.hidden {
    display: none;
}
.gl-item img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 1s cubic-bezier(0.215, 0.61, 0.355, 1);
}
.gl-item:hover img { transform: scale(1.1); }

.gl-item-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(13,27,23,0.95) 100%);
    display: flex;
    align-items: flex-end;
    padding: 1.5rem;
    opacity: 0;
    transition: opacity 0.5s;
}
.gl-item:hover .gl-item-overlay { opacity: 1; }
.gl-item-info {
    width: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
}
.gl-item-cat {
    display: block;
    font-size: 0.65rem;
    letter-spacing: 0.3em;
    color: #C9A15A;
    margin-bottom: 0.4rem;
}
.gl-item-info h3 {
    font-family: 'Cinzel', serif;
    color: #F5F1E8;
    font-size: 1.1rem;
    letter-spacing: 0.05em;
}
.gl-item-view {
    width: 44px; height: 44px;
    background: rgba(201,161,90,0.9);
    border: none;
    border-radius: 50%;
    color: #0D1B17;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
    transition: all 0.3s;
    transform: scale(0.8);
    opacity: 0;
}
.gl-item:hover .gl-item-view {
    transform: scale(1);
    opacity: 1;
}
.gl-item-view:hover {
    background: #E3BE74;
    transform: scale(1.1);
}

/* Load More */
.gl-load-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2.5rem;
    background: transparent;
    border: 1px solid rgba(201,161,90,0.4);
    color: #F5F1E8;
    font-family: 'Cinzel', serif;
    font-size: 0.8rem;
    letter-spacing: 0.25em;
    cursor: pointer;
    transition: all 0.4s;
    border-radius: 2px;
}
.gl-load-more-btn:hover {
    background: #C9A15A;
    color: #0D1B17;
    border-color: #C9A15A;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(201,161,90,0.25);
}
.gl-load-more-btn i { transition: transform 0.3s; }
.gl-load-more-btn:hover i { transform: translateY(3px); }

/* ---------- SECTION 4: VIDEOS ---------- */
.gl-videos { padding: 6rem 0; background: #16261F; }
.gl-video-arrows { gap: 0.75rem; }
.gl-video-arrow {
    width: 48px; height: 48px;
    border: 1px solid rgba(201,161,90,0.4);
    border-radius: 50%;
    background: transparent;
    color: #C9A15A;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s;
}
.gl-video-arrow:hover {
    background: #C9A15A;
    color: #0D1B17;
    transform: scale(1.1);
}
.gl-video-wrap {
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to right, transparent 0, black 2%, black 98%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0, black 2%, black 98%, transparent 100%);
}
.gl-video-track {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 1rem 0.5rem 2rem;
    scrollbar-width: none;
}
.gl-video-track::-webkit-scrollbar { display: none; }
.gl-video-card {
    flex: 0 0 340px;
    background: #1A2B24;
    border: 1px solid rgba(143,106,53,0.2);
    border-radius: 4px;
    overflow: hidden;
    transition: all 0.5s;
}
.gl-video-card:hover {
    border-color: #C9A15A;
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.4);
}
.gl-video-thumb {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
}
.gl-video-thumb img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 1s;
}
.gl-video-card:hover .gl-video-thumb img { transform: scale(1.08); }
.gl-video-play {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 64px; height: 64px;
    background: rgba(201,161,90,0.95);
    border: none;
    border-radius: 50%;
    color: #0D1B17;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.4s;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-left: 4px;
}
.gl-video-play:hover {
    background: #E3BE74;
    transform: translate(-50%, -50%) scale(1.1);
}
.gl-video-duration {
    position: absolute;
    bottom: 0.75rem; right: 0.75rem;
    padding: 0.3rem 0.7rem;
    background: rgba(13,27,23,0.9);
    color: #C9A15A;
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    border-radius: 2px;
    font-family: 'Cinzel', serif;
}
.gl-video-info {
    padding: 1.25rem;
}
.gl-video-info h4 {
    font-family: 'Cinzel', serif;
    color: #F5F1E8;
    font-size: 1rem;
    letter-spacing: 0.05em;
    margin-bottom: 0.3rem;
}
.gl-video-info p {
    font-size: 0.8rem;
    color: #D1D5DB;
    letter-spacing: 0.1em;
}

/* ---------- SECTION 5: EDITORIAL ---------- */
.gl-editorial {
    position: relative;
    height: 80vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.gl-editorial-bg {
    position: absolute;
    inset: 0;
    z-index: 1;
}
.gl-editorial-bg img {
    width: 100%; height: 100%;
    object-fit: cover;
}
.gl-editorial-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(13,27,23,0.75) 0%, rgba(13,27,23,0.9) 100%);
    z-index: 2;
}
.gl-editorial-content {
    position: relative;
    z-index: 3;
    text-align: center;
    max-width: 900px;
    padding: 0 1.5rem;
}
.gl-editorial-title {
    font-family: 'Cinzel', serif;
    font-style: italic;
    color: #F5F1E8;
    font-size: clamp(1.75rem, 4vw, 3rem);
    line-height: 1.4;
    letter-spacing: 0.02em;
    margin-bottom: 1.5rem;
}
.gl-editorial-quote {
    color: #C9A15A;
    font-family: 'Cinzel', serif;
    font-size: 0.85rem;
    letter-spacing: 0.3em;
}

/* ---------- SECTION 6: INSTAGRAM ---------- */
.gl-instagram { padding: 6rem 0; }
.gl-insta-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}
.gl-insta-item {
    position: relative;
    aspect-ratio: 1/1;
    overflow: hidden;
    border-radius: 4px;
    display: block;
}
.gl-insta-item img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 1s;
}
.gl-insta-item:hover img { transform: scale(1.1); }
.gl-insta-overlay {
    position: absolute;
    inset: 0;
    background: rgba(13,27,23,0.75);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: #C9A15A;
    opacity: 0;
    transition: opacity 0.4s;
}
.gl-insta-overlay i { font-size: 1.75rem; }
.gl-insta-overlay span {
    font-family: 'Cinzel', serif;
    font-size: 0.8rem;
    letter-spacing: 0.2em;
}
.gl-insta-item:hover .gl-insta-overlay { opacity: 1; }

.gl-insta-follow {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #C9A15A, #8F6A35);
    color: #0D1B17;
    border-radius: 2px;
    font-family: 'Cinzel', serif;
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    text-decoration: none;
    transition: all 0.4s;
}
.gl-insta-follow:hover {
    background: linear-gradient(135deg, #E3BE74, #C9A15A);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(201,161,90,0.3);
}

/* ---------- SECTION 7: CTA ---------- */
.gl-cta {
    position: relative;
    padding: 10rem 0;
    background: linear-gradient(135deg, rgba(13,27,23,0.95), rgba(22,38,31,0.95)), url('https://images.unsplash.com/photo-1540747913346-19e32dc3e97e?auto=format&fit=crop&w=1920&q=80') center/cover;
}
.gl-cta-bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 50%, rgba(201,161,90,0.08) 0%, transparent 60%);
}
.gl-cta-title {
    font-family: 'Cinzel', serif;
    color: #F5F1E8;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    line-height: 1.1;
    letter-spacing: 0.05em;
}
.gl-cta-title span { color: #C9A15A; font-style: italic; }

/* ---------- LIGHTBOX ---------- */
.gl-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(13,27,23,0.97);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s;
    backdrop-filter: blur(20px);
}
.gl-lightbox.active {
    opacity: 1;
    visibility: visible;
}
.gl-lightbox-close {
    position: absolute;
    top: 2rem; right: 2rem;
    width: 50px; height: 50px;
    background: transparent;
    border: 1px solid rgba(201,161,90,0.4);
    border-radius: 50%;
    color: #C9A15A;
    cursor: pointer;
    font-size: 1.25rem;
    transition: all 0.3s;
    z-index: 10;
}
.gl-lightbox-close:hover {
    background: #C9A15A;
    color: #0D1B17;
    transform: rotate(90deg);
}
.gl-lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px; height: 50px;
    background: rgba(13,27,23,0.8);
    border: 1px solid rgba(201,161,90,0.4);
    border-radius: 50%;
    color: #C9A15A;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s;
    z-index: 10;
}
.gl-lightbox-prev { left: 2rem; }
.gl-lightbox-next { right: 2rem; }
.gl-lightbox-nav:hover {
    background: #C9A15A;
    color: #0D1B17;
}
.gl-lightbox-content {
    max-width: 85vw;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}
.gl-lightbox-content img {
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 30px 80px rgba(0,0,0,0.6);
}
.gl-lightbox-info {
    text-align: center;
}
.gl-lightbox-cat {
    display: block;
    font-size: 0.7rem;
    letter-spacing: 0.3em;
    color: #C9A15A;
    margin-bottom: 0.4rem;
}
.gl-lightbox-info h3 {
    font-family: 'Cinzel', serif;
    color: #F5F1E8;
    font-size: 1.5rem;
    letter-spacing: 0.05em;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
    .gl-masonry { grid-template-columns: repeat(3, 1fr); }
    .gl-item.gl-item-wide { grid-column: span 1; }
    .gl-insta-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
    .gl-hero { height: 70vh; min-height: 500px; }
    .gl-masonry {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 180px;
    }
    .gl-filter-tabs {
        justify-content: center;
    }
    .gl-filter-tab {
        padding: 0.7rem 1rem;
        font-size: 0.7rem;
    }
    .gl-video-card { flex: 0 0 280px; }
    .gl-insta-grid { grid-template-columns: repeat(2, 1fr); }
    .gl-lightbox-prev { left: 1rem; }
    .gl-lightbox-next { right: 1rem; }
    .gl-lightbox-close { top: 1rem; right: 1rem; }
}
@media (max-width: 480px) {
    .gl-hero-title { font-size: 2.5rem !important; }
    .gl-filter-tab {
        padding: 0.6rem 0.8rem;
        font-size: 0.65rem;
        letter-spacing: 0.1em;
    }
    .gl-filter-count { display: none; }
}