/* ============================================================
   GALLERY.CSS  –  Media Gallery Page
   Prefix: .gl-
   Theme: dark hero, sage green #7fa69b, Exo 2 font
   ============================================================ */

/* ── Fonts / Reset ──────────────────────────────────────────── */
.page-gallery * { box-sizing: border-box; }
.page-gallery { font-family: 'Exo 2', sans-serif; }
.accent { color: #7fa69b; }

/* ── HERO ────────────────────────────────────────────────────── */
.gl-hero {
    position: relative;
    min-height: 88vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #08121c 0%, #0d1e2e 50%, #08121c 100%);
    overflow: hidden;
    padding: 120px 0 80px;
}
.gl-hero-grid {
    position: absolute; inset: 0;
    background-image: linear-gradient(rgba(127,166,155,.04) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(127,166,155,.04) 1px, transparent 1px);
    background-size: 52px 52px;
    animation: glGridDrift 22s linear infinite;
}
@keyframes glGridDrift { from { transform: translate(0,0); } to { transform: translate(52px,52px); } }

.gl-hero-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    pointer-events: none;
}
.gl-hero-glow.g1 { width: 520px; height: 520px; background: rgba(127,166,155,.12); top: -120px; left: -100px; }
.gl-hero-glow.g2 { width: 400px; height: 400px; background: rgba(90,138,127,.09); bottom: -100px; right: -80px; }
.gl-hero-glow.g3 { width: 280px; height: 280px; background: rgba(30,80,120,.13); top: 40%; left: 55%; }

.gl-hero-particles { position: absolute; inset: 0; pointer-events: none; }
.gl-hero-particles span {
    position: absolute;
    width: 3px; height: 3px;
    background: rgba(127,166,155,.5);
    border-radius: 50%;
    animation: glParticle 6s infinite ease-in-out;
}
.gl-hero-particles span:nth-child(1)  { top: 15%; left: 10%; animation-delay: 0s; }
.gl-hero-particles span:nth-child(2)  { top: 30%; left: 80%; animation-delay: 1s; }
.gl-hero-particles span:nth-child(3)  { top: 60%; left: 20%; animation-delay: 2s; }
.gl-hero-particles span:nth-child(4)  { top: 75%; left: 70%; animation-delay: .5s; }
.gl-hero-particles span:nth-child(5)  { top: 20%; left: 55%; animation-delay: 1.5s; }
.gl-hero-particles span:nth-child(6)  { top: 85%; left: 40%; animation-delay: 3s; }
.gl-hero-particles span:nth-child(7)  { top: 45%; left: 90%; animation-delay: 2.5s; }
.gl-hero-particles span:nth-child(8)  { top: 8%;  left: 40%; animation-delay: 4s; }
@keyframes glParticle { 0%,100%{transform:translateY(0);opacity:.5} 50%{transform:translateY(-18px);opacity:1} }

.gl-hero-layout {
    position: relative; z-index: 2;
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 60px;
    align-items: center;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}
.gl-hero-copy { color: #fff; }
.gl-hero-badge {
    display: inline-flex; align-items: center; gap: 10px;
    background: rgba(127,166,155,.12);
    border: 1px solid rgba(127,166,155,.3);
    color: #7fa69b; font-size: .78rem; font-weight: 700;
    letter-spacing: .08em; text-transform: uppercase;
    padding: 7px 18px; border-radius: 100px;
    margin-bottom: 24px;
}
.gl-hero-badge-dot {
    width: 7px; height: 7px; border-radius: 50%;
    background: #7fa69b;
    box-shadow: 0 0 8px rgba(127,166,155,.8);
    animation: glPulse 1.8s infinite;
}
@keyframes glPulse { 0%,100%{transform:scale(1);opacity:1} 50%{transform:scale(1.4);opacity:.6} }

.gl-hero-title {
    font-size: clamp(2.4rem, 5vw, 4.2rem);
    font-weight: 900; line-height: 1.1;
    margin: 0 0 20px;
    background: linear-gradient(135deg, #fff 0%, #cde8e0 60%, #7fa69b 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}
.gl-hero-subtitle {
    font-size: 1.08rem; font-weight: 400;
    color: rgba(255,255,255,.55); line-height: 1.7;
    max-width: 500px; margin: 0 0 36px;
}
.gl-hero-line { display: block; width: 60px; height: 3px; background: linear-gradient(90deg,#7fa69b,transparent); border-radius: 2px; margin-bottom: 32px; }

.gl-hero-stats { display: flex; gap: 36px; }
.gl-hero-stat-num {
    display: block;
    font-size: 2.2rem; font-weight: 900; color: #7fa69b; line-height: 1;
}
.gl-hero-stat-label { font-size: .78rem; color: rgba(255,255,255,.45); text-transform: uppercase; letter-spacing: .06em; }

/* ── Hero Visual – Camera mosaic ─────────────────────────────── */
.gl-hero-visual { position: relative; }
.gl-photo-mosaic {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto;
    gap: 10px;
    border-radius: 20px;
    overflow: hidden;
}
.gl-mosaic-cell {
    background: rgba(127,166,155,.08);
    border: 1px solid rgba(127,166,155,.15);
    border-radius: 12px;
    aspect-ratio: 4/3;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
    position: relative;
}
.gl-mosaic-cell.big { grid-column: span 2; grid-row: span 2; }
.gl-mosaic-cell i { font-size: 2.2rem; color: rgba(127,166,155,.25); }
.gl-mosaic-cell::before {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(127,166,155,.06), transparent);
}
.gl-mosaic-icon {
    font-size: 1.4rem; color: rgba(127,166,155,.4);
    animation: glFloat 3s ease-in-out infinite;
}
.gl-mosaic-icon:nth-child(2) { animation-delay: .4s; }
.gl-mosaic-icon:nth-child(3) { animation-delay: .8s; }
.gl-mosaic-icon:nth-child(4) { animation-delay: 1.2s; }
@keyframes glFloat { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-8px)} }

/* ── BODY ────────────────────────────────────────────────────── */
.gl-body { background: #f0f3f7; padding: 72px 0 0; }
.gl-container { max-width: 1280px; margin: 0 auto; padding: 0 2rem; }

/* ── Section header ──────────────────────────────────────────── */
.gl-section-header { text-align: center; margin-bottom: 52px; }
.gl-section-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(127,166,155,.12); border: 1px solid rgba(127,166,155,.3);
    color: #5a8a7f; font-size: .75rem; font-weight: 700;
    letter-spacing: .08em; text-transform: uppercase;
    padding: 6px 16px; border-radius: 100px; margin-bottom: 16px;
}
.gl-section-title {
    font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 800;
    color: #0a1628; margin: 0 0 12px; line-height: 1.2;
}
.gl-section-title .accent { color: #7fa69b; }
.gl-section-subtitle { font-size: .98rem; color: #718096; max-width: 520px; margin: 0 auto; line-height: 1.6; }

/* ── Year filter tabs ────────────────────────────────────────── */
.gl-filter-tabs {
    display: flex; gap: 10px; justify-content: center;
    flex-wrap: wrap; margin-bottom: 44px;
}
.gl-filter-btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 24px; border-radius: 100px;
    border: 2px solid rgba(127,166,155,.3);
    background: transparent; color: #5a6b7b;
    font-family: 'Exo 2', sans-serif; font-size: .88rem; font-weight: 600;
    cursor: pointer; transition: all .25s ease;
    text-decoration: none;
}
.gl-filter-btn:hover { border-color: #7fa69b; color: #7fa69b; background: rgba(127,166,155,.06); }
.gl-filter-btn.active { background: linear-gradient(135deg, #7fa69b, #5a8a7f); color: #fff; border-color: transparent; box-shadow: 0 4px 16px rgba(90,138,127,.3); }
.gl-filter-btn .gl-filter-count {
    background: rgba(255,255,255,.25); color: inherit;
    font-size: .72rem; font-weight: 700; padding: 2px 8px;
    border-radius: 100px;
}
.gl-filter-btn.active .gl-filter-count { background: rgba(255,255,255,.3); color: #fff; }

/* ── Album grid ────────────────────────────────────────────────── */
.gl-album-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 72px;
}
.gl-album-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,.06);
    border: 1px solid rgba(127,166,155,.1);
    transition: transform .3s ease, box-shadow .3s ease;
    cursor: pointer;
    position: relative;
}
.gl-album-card:hover { transform: translateY(-6px); box-shadow: 0 12px 40px rgba(127,166,155,.2); border-color: rgba(127,166,155,.3); }

.gl-album-cover {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
    background: linear-gradient(135deg, #1a2d42, #0d1e2e);
}
.gl-album-cover img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
    display: block;
}
.gl-album-card:hover .gl-album-cover img { transform: scale(1.08); }

.gl-album-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(8,18,28,.85) 0%, transparent 55%);
    opacity: 0; transition: opacity .3s ease;
    display: flex; align-items: flex-end; padding: 16px;
}
.gl-album-card:hover .gl-album-overlay { opacity: 1; }
.gl-album-overlay-text { color: #fff; font-size: .8rem; font-weight: 600; display: flex; align-items: center; gap: 6px; }

.gl-album-year-badge {
    position: absolute; top: 12px; left: 12px;
    background: linear-gradient(135deg, #7fa69b, #5a8a7f);
    color: #fff; font-size: .72rem; font-weight: 700;
    padding: 4px 12px; border-radius: 100px;
    letter-spacing: .04em;
}
.gl-album-count-badge {
    position: absolute; top: 12px; right: 12px;
    background: rgba(8,18,28,.75); backdrop-filter: blur(8px);
    color: #fff; font-size: .72rem; font-weight: 600;
    padding: 4px 10px; border-radius: 8px;
    display: flex; align-items: center; gap: 5px;
}

.gl-album-info { padding: 16px 18px 18px; }
.gl-album-name {
    font-size: .95rem; font-weight: 700; color: #0a1628;
    margin: 0 0 6px; line-height: 1.3;
}
.gl-album-meta {
    font-size: .78rem; color: #718096;
    display: flex; align-items: center; gap: 12px;
}
.gl-album-meta i { color: #7fa69b; }
.gl-album-open-btn {
    display: inline-flex; align-items: center; gap: 6px;
    margin-top: 12px; padding: 7px 16px;
    background: linear-gradient(135deg,rgba(127,166,155,.1),rgba(90,138,127,.08));
    border: 1px solid rgba(127,166,155,.25);
    border-radius: 8px; color: #5a8a7f; font-size: .8rem; font-weight: 600;
    transition: all .2s ease;
}
.gl-album-card:hover .gl-album-open-btn { background: linear-gradient(135deg,#7fa69b,#5a8a7f); color: #fff; border-color: transparent; }

/* ── Reveal animations ────────────────────────────────────────── */
.gl-reveal { opacity: 0; transform: translateY(28px); transition: opacity .6s ease, transform .6s ease; }
.gl-revealed { opacity: 1; transform: none; }
.gl-album-card.gl-reveal { transform: translateY(24px) scale(.97); }
.gl-album-card.gl-revealed { transform: none; }

/* ── Documents section ────────────────────────────────────────── */
.gl-docs-section { padding: 0 0 72px; background: #f0f3f7; }
.gl-docs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.gl-doc-card {
    background: #fff;
    border-radius: 14px;
    border: 1px solid rgba(127,166,155,.12);
    padding: 28px 24px;
    display: flex; gap: 18px;
    align-items: flex-start;
    box-shadow: 0 2px 10px rgba(0,0,0,.05);
    transition: transform .3s, box-shadow .3s;
    text-decoration: none;
}
.gl-doc-card:hover { transform: translateY(-4px); box-shadow: 0 8px 28px rgba(127,166,155,.18); }
.gl-doc-icon {
    flex-shrink: 0;
    width: 52px; height: 52px; border-radius: 12px;
    background: linear-gradient(135deg, #7fa69b, #5a8a7f);
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 1.3rem;
}
.gl-doc-icon.pdf  { background: linear-gradient(135deg, #e53e3e, #c0392b); }
.gl-doc-icon.pptx { background: linear-gradient(135deg, #f26522, #d35400); }
.gl-doc-icon.xlsx { background: linear-gradient(135deg, #27ae60, #1e8449); }
.gl-doc-body { flex: 1; min-width: 0; }
.gl-doc-title { font-size: .92rem; font-weight: 700; color: #0a1628; margin: 0 0 6px; line-height: 1.3; }
.gl-doc-desc  { font-size: .8rem; color: #718096; line-height: 1.5; margin: 0 0 10px; }
.gl-doc-meta  { display: flex; align-items: center; gap: 12px; font-size: .74rem; color: #a0aec0; }
.gl-doc-meta i { color: #7fa69b; }
.gl-doc-download {
    display: inline-flex; align-items: center; gap: 5px;
    color: #5a8a7f; font-size: .78rem; font-weight: 700;
    margin-top: 8px; text-decoration: none;
}
.gl-doc-download:hover { color: #3d6b61; }

/* ── Premium Lightbox ─────────────────────────────────────────── */
.gl-lightbox {
    position: fixed; inset: 0; z-index: 9999;
    background: rgba(4, 10, 18, .96);
    backdrop-filter: blur(12px);
    display: flex; flex-direction: column;
    opacity: 0; pointer-events: none;
    transition: opacity .3s ease;
}
.gl-lightbox.active { opacity: 1; pointer-events: all; }

.gl-lb-header {
    flex-shrink: 0;
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 24px;
    background: rgba(8,18,28,.6); backdrop-filter: blur(6px);
    border-bottom: 1px solid rgba(127,166,155,.12);
}
.gl-lb-title { color: #fff; font-size: .95rem; font-weight: 700; margin: 0; }
.gl-lb-counter { color: rgba(127,166,155,.8); font-size: .82rem; font-weight: 600; }
.gl-lb-close {
    width: 36px; height: 36px; border-radius: 8px;
    background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12);
    color: #fff; font-size: 1rem; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background .2s;
}
.gl-lb-close:hover { background: rgba(255,255,255,.18); }

.gl-lb-stage {
    flex: 1; position: relative;
    display: flex; align-items: center; justify-content: center;
    padding: 20px 80px;
    min-height: 0;
}
.gl-lb-img-wrap {
    max-width: 100%; max-height: 100%;
    display: flex; align-items: center; justify-content: center;
}
.gl-lb-img-wrap img {
    max-width: 100%; max-height: calc(100vh - 230px);
    object-fit: contain; border-radius: 8px;
    box-shadow: 0 24px 80px rgba(0,0,0,.7);
    display: block;
}
.gl-lb-nav {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 48px; height: 48px; border-radius: 12px;
    background: rgba(127,166,155,.15); border: 1px solid rgba(127,166,155,.25);
    color: #fff; font-size: 1.1rem; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background .2s, transform .2s;
    z-index: 2;
}
.gl-lb-nav:hover { background: rgba(127,166,155,.35); transform: translateY(-50%) scale(1.08); }
.gl-lb-nav.prev { left: 16px; }
.gl-lb-nav.next { right: 16px; }
.gl-lb-caption {
    position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%);
    background: rgba(8,18,28,.75); backdrop-filter: blur(8px);
    color: rgba(255,255,255,.8); font-size: .82rem; font-weight: 500;
    padding: 6px 18px; border-radius: 100px;
    max-width: 500px; text-align: center;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* Thumbnails strip */
.gl-lb-thumbs {
    flex-shrink: 0;
    display: flex; gap: 8px; align-items: center; justify-content: center;
    padding: 12px 24px 16px;
    background: rgba(8,18,28,.6);
    overflow-x: auto;
    scrollbar-width: thin; scrollbar-color: rgba(127,166,155,.3) transparent;
}
.gl-lb-thumbs::-webkit-scrollbar { height: 4px; }
.gl-lb-thumbs::-webkit-scrollbar-thumb { background: rgba(127,166,155,.3); border-radius: 2px; }
.gl-lb-thumb {
    flex-shrink: 0;
    width: 60px; height: 44px; border-radius: 6px;
    overflow: hidden; cursor: pointer;
    border: 2px solid transparent;
    transition: border-color .2s, opacity .2s;
    opacity: .55;
}
.gl-lb-thumb:hover { opacity: .85; }
.gl-lb-thumb.active { border-color: #7fa69b; opacity: 1; }
.gl-lb-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ── Empty state ─────────────────────────────────────────────── */
.gl-empty {
    text-align: center; padding: 80px 20px;
    color: #a0aec0;
}
.gl-empty i { font-size: 3rem; margin-bottom: 16px; display: block; opacity: .35; }
.gl-empty p { font-size: 1rem; }

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 1280px) {
    .gl-album-grid { grid-template-columns: repeat(3, 1fr); }
    .gl-docs-grid  { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1100px) {
    .gl-hero-layout { grid-template-columns: 1fr; gap: 40px; }
    .gl-hero-visual { display: none; }
    .gl-album-grid  { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
    .gl-album-grid { grid-template-columns: repeat(2, 1fr); }
    .gl-docs-grid  { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .gl-hero { min-height: auto; padding: 100px 0 60px; }
    .gl-hero-title { font-size: 2rem; }
    .gl-hero-stats { gap: 20px; }
    .gl-hero-stat-num { font-size: 1.7rem; }
    .gl-album-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
    .gl-body { padding: 48px 0 0; }
    .gl-filter-tabs { gap: 8px; }
    .gl-filter-btn { padding: 8px 16px; font-size: .8rem; }
    .gl-lb-stage { padding: 16px 54px; }
    .gl-lb-nav { width: 38px; height: 38px; font-size: .9rem; }
    .gl-lb-nav.prev { left: 8px; }
    .gl-lb-nav.next { right: 8px; }
}
@media (max-width: 480px) {
    .gl-album-grid  { grid-template-columns: 1fr; }
    .gl-album-cover { aspect-ratio: 16/9; }
}
