/* ═══════════════════════════════════════════════════
   Gallery Page — gallery.css
═══════════════════════════════════════════════════ */

/* ── Tab Toggle ── */
.gl-tabs-wrap {
  display: flex;
  justify-content: center;
  margin: 0 0 40px;
}
.gl-tabs {
  display: inline-flex;
  background: #F1F5F9;
  border-radius: 100px;
  padding: 5px;
  gap: 4px;
}
.gl-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 28px;
  border-radius: 100px;
  border: none;
  background: transparent;
  font-size: 14px;
  font-weight: 800;
  color: #64748B;
  cursor: pointer;
  transition: all .22s;
  font-family: 'Sora', sans-serif;
  letter-spacing: -.2px;
}
.gl-tab:hover { color: #0f172a }
.gl-tab.active {
  background: #fff;
  color: #0f172a;
  box-shadow: 0 2px 12px rgba(0,0,0,.10);
}
.gl-tab .gl-tab-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  background: #E2E8F0;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 900;
  color: #475569;
  transition: all .22s;
}
.gl-tab.active .gl-tab-count {
  background: var(--blue);
  color: #fff;
}

/* ── Panel show/hide ── */
.gl-panel { display: none }
.gl-panel.active { display: block }

/* ── Section header ── */
.gl-section {
  padding: 60px 0 80px;
}

/* ═══════════════════════════
   PHOTOS — Masonry grid
═══════════════════════════ */
.gl-mosaic {
  columns: 4;
  column-gap: 12px;
}
@media(max-width:1100px){ .gl-mosaic { columns: 3 } }
@media(max-width:700px) { .gl-mosaic { columns: 2 } }
@media(max-width:400px) { .gl-mosaic { columns: 1 } }

.gl-photo-item {
  break-inside: avoid;
  margin-bottom: 12px;
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  display: block;
}
.gl-photo-item img {
  width: 100%;
  display: block;
  object-fit: cover;
  transition: transform .45s cubic-bezier(.4,0,.2,1);
}
.gl-photo-item:hover img {
  transform: scale(1.04);
}
.gl-photo-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(11,15,25,.72) 100%);
  opacity: 0;
  transition: opacity .3s;
  display: flex;
  align-items: flex-end;
  padding: 14px 16px;
}
.gl-photo-item:hover .gl-photo-overlay { opacity: 1 }
.gl-photo-overlay span {
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .2px;
}
.gl-photo-expand {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255,255,255,.2);
  border: 1.5px solid rgba(255,255,255,.4);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity .3s;
  color: #fff;
  font-size: 13px;
  backdrop-filter: blur(4px);
}
.gl-photo-item:hover .gl-photo-expand { opacity: 1 }

/* ═══════════════════════════
   VIDEOS — grid
═══════════════════════════ */
.gl-video-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
@media(max-width:1100px){ .gl-video-grid { grid-template-columns: repeat(3, 1fr) } }
@media(max-width:720px) { .gl-video-grid { grid-template-columns: repeat(2, 1fr) } }
@media(max-width:420px) { .gl-video-grid { grid-template-columns: 1fr } }

.gl-video-grid .ig-vid-card {
  width: 100% !important;
  flex: none !important;
  aspect-ratio: 9/14;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  position: relative;
  background: #0B0F19;
}

/* ═══════════════════════════
   LIGHTBOX
═══════════════════════════ */
.gl-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,.9);
  align-items: center;
  justify-content: center;
  padding: 20px;
  cursor: zoom-out;
  backdrop-filter: blur(8px);
}
.gl-lightbox.open { display: flex }
.gl-lightbox-inner {
  position: relative;
  max-width: min(900px, 92vw);
  max-height: 90vh;
  cursor: default;
}
.gl-lightbox-inner img {
  width: 100%;
  height: 100%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 12px;
  display: block;
  box-shadow: 0 32px 80px rgba(0,0,0,.6);
}
.gl-lightbox-close {
  position: fixed;
  top: 18px;
  right: 22px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,.12);
  border: 1.5px solid rgba(255,255,255,.25);
  color: #fff;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .2s;
}
.gl-lightbox-close:hover { background: rgba(255,255,255,.2) }
.gl-lightbox-caption {
  text-align: center;
  color: rgba(255,255,255,.7);
  font-size: 12.5px;
  font-weight: 600;
  margin-top: 12px;
  letter-spacing: .3px;
}

/* ── Nav arrows in lightbox ── */
.gl-lb-prev, .gl-lb-next {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,.12);
  border: 1.5px solid rgba(255,255,255,.25);
  color: #fff;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .2s;
}
.gl-lb-prev { left: 16px }
.gl-lb-next { right: 16px }
.gl-lb-prev:hover, .gl-lb-next:hover { background: rgba(255,255,255,.22) }
@media(max-width:600px){ .gl-lb-prev, .gl-lb-next { display: none } }

/* ── Empty state for videos ── */
.gl-video-empty {
  text-align: center;
  padding: 80px 20px;
  color: #94A3B8;
}
.gl-video-empty-icon { font-size: 48px; margin-bottom: 16px }
.gl-video-empty h3 { font-size: 1.1rem; font-weight: 800; color: #64748B; margin: 0 0 6px }
.gl-video-empty p  { font-size: 13.5px; margin: 0 }

/* ── Panel heading ── */
.gl-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 10px;
}
.gl-panel-head h3 {
  font-size: 1rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
  font-family: 'Sora', sans-serif;
}
.gl-panel-head span {
  font-size: 12px;
  color: #94A3B8;
  font-weight: 700;
}
