/*
 * lightbox.css — Overlay photo plein écran
 * ══════════════════════════════════════════
 * Activé par lightbox.js — s'ouvre au clic sur une photo de galerie mariage.
 * Navigation : flèches gauche/droite + fermeture par clic fond ou touche Échap.
 */

.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;          /* bloque les événements sur tous les enfants */
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s;
}

.lightbox-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Image principale */
.lightbox-img {
  max-width: 90vw;
  max-height: 88vh;
  object-fit: contain;
  display: block;
  border-radius: 2px;
  user-select: none;
}

/* Bouton fermer */
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: none;
  border: none;
  color: rgba(255,255,255,0.7);
  font-size: 32px;
  cursor: pointer;
  line-height: 1;
  padding: 4px 8px;
  transition: color 0.15s;
}
.lightbox-close:hover { color: #fff; }

/* Flèches de navigation */
.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.1);
  border: none;
  color: rgba(255,255,255,0.8);
  font-size: 28px;
  cursor: pointer;
  padding: 16px 20px;
  border-radius: 3px;
  transition: background 0.15s, color 0.15s;
  user-select: none;
}
.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }
.lightbox-prev:hover,
.lightbox-next:hover { background: rgba(255,255,255,0.2); color: #fff; }

/* Compteur (ex : 3 / 12) */
.lightbox-counter {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.5);
  font-size: 12px;
  letter-spacing: 2px;
}

/* Masquer les flèches s'il n'y a qu'une photo */
.lightbox-overlay.single .lightbox-prev,
.lightbox-overlay.single .lightbox-next { display: none; }
