/* ══════════════════════════════════════════════
   GALLERY PAGE
══════════════════════════════════════════════ */

.gallery-page-hero {
  background: var(--black);
  padding: 64px 0 56px;
  position: relative;
  overflow: hidden;
}

.gallery-page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(37,99,235,0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 50%, rgba(124,58,237,0.08) 0%, transparent 50%);
  pointer-events: none;
}

.gallery-page-hero .section-eyebrow {
  color: rgba(255,255,255,0.5);
  border-color: rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.06);
}

.gallery-page-title {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 900;
  color: var(--white);
  letter-spacing: -0.5px;
  margin-bottom: 12px;
  position: relative;
}

.gallery-page-sub {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.5);
  max-width: 480px;
  line-height: 1.6;
  position: relative;
}

/* Grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  padding: 48px 0 72px;
}

.gallery-item {
  overflow: hidden;
  border-radius: 4px;
  cursor: pointer;
  aspect-ratio: 1;
  background: var(--grey-100);
  position: relative;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.gallery-item:hover img {
  transform: scale(1.06);
}

.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0);
  transition: background 0.3s ease;
}

.gallery-item:hover::after {
  background: rgba(0,0,0,0.15);
}

/* ══════════════════════════════════════════════
   LIGHTBOX
══════════════════════════════════════════════ */
.lightbox-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 9998;
}

.lightbox-backdrop.active { display: block; }

.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.lightbox.active { display: flex; }

.lb-img-wrap {
  max-width: 90vw;
  max-height: 82vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lb-img-wrap img {
  max-width: 100%;
  max-height: 82vh;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.6);
}

.lb-close {
  position: fixed;
  top: 20px;
  right: 24px;
  width: 44px;
  height: 44px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--white);
  transition: background 0.2s;
  z-index: 10000;
}
.lb-close svg { width: 20px; height: 20px; }
.lb-close:hover { background: rgba(255,255,255,0.2); }

.lb-nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--white);
  transition: background 0.2s;
  z-index: 10000;
}
.lb-nav svg { width: 22px; height: 22px; }
.lb-nav:hover { background: rgba(255,255,255,0.22); }
.lb-prev { left: 20px; }
.lb-next { right: 20px; }

.lb-counter {
  margin-top: 16px;
  font-size: 0.82rem;
  font-weight: 700;
  color: rgba(255,255,255,0.5);
  letter-spacing: 1px;
}

/* ══════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 6px; padding: 32px 0 56px; }
  .lb-prev { left: 8px; }
  .lb-next { right: 8px; }
  .lb-nav { width: 40px; height: 40px; }
}

@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}
