/* ============================================================
   GALLERY.CSS — Lightbox plein écran
   ============================================================ */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(5, 5, 5, 0.97);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s var(--ease-slow), visibility 0.4s;
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.lightbox-stage {
  max-width: 90vw;
  max-height: 85vh;
}

.lightbox-img {
  max-width: 90vw;
  max-height: 85vh;
  width: auto;
  height: auto;
  object-fit: contain;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  color: var(--white);
  font-size: 2rem;
  font-weight: 300;
  padding: 0.75rem 1.15rem;
  transition: color 0.3s ease, transform 0.3s ease;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  color: var(--gold);
}

.lightbox-close {
  top: 1.5rem;
  right: 1.5rem;
  font-size: 1.75rem;
}

.lightbox-prev {
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-next {
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-counter {
  position: absolute;
  bottom: 1.75rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  color: var(--text-muted);
}

@media (max-width: 600px) {
  .lightbox-prev, .lightbox-next { font-size: 1.5rem; padding: 0.5rem 0.75rem; }
}
