/* ══════════════════════════════════════
   GALLERY PAGE  (css/gallery.css)
   ══════════════════════════════════════ */

.gallery-info {
  font-size: 13px;
  color: var(--text-mid);
  margin-bottom: 24px;
}

.gallery-empty {
  text-align: center;
  padding: 80px 0;
  font-size: 16px;
  color: var(--text-mid);
}

/* ── GRID: 5 columns ── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}

.gallery-item {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: var(--radius-sm);
  cursor: pointer;
  background: var(--deep);
}

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

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

.gallery-item-overlay {
  position: absolute;
  inset: 0;
  background: rgba(26,40,50,0);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  opacity: 0;
  transition: all 0.2s;
}

.gallery-item:hover .gallery-item-overlay {
  background: rgba(26,40,50,0.4);
  opacity: 1;
}

/* ── LIGHTBOX ── */
.lightbox-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10,16,22,0.92);
  z-index: 900;
}
.lightbox-backdrop.active { display: block; }

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

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

.lightbox-img-wrap img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--radius-md);
  box-shadow: 0 8px 48px rgba(0,0,0,0.6);
}

.lightbox-close {
  position: fixed;
  top: 20px;
  right: 24px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: white;
  font-size: 20px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  z-index: 902;
}
.lightbox-close:hover { background: rgba(255,255,255,0.2); }

.lightbox-prev,
.lightbox-next {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: white;
  font-size: 32px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  z-index: 902;
  line-height: 1;
}
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }
.lightbox-prev:hover,
.lightbox-next:hover { background: rgba(255,255,255,0.2); }

.lightbox-counter {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.6);
  font-size: 14px;
  font-family: 'Outfit', sans-serif;
  z-index: 902;
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .gallery-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 768px) {
  .gallery-grid { grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
}
@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}
