/* ─────────────────────────────────────────
   RODEO CLIP V2 — lightbox.css
   ───────────────────────────────────────── */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(0,0,0,0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.lightbox.open {
  opacity: 1;
  pointer-events: all;
}

.lightbox-img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
  /* garde les clics sur l'image elle-même : lightbox.js ferme
     seulement quand e.target === le fond (#lightbox), sinon un clic
     ici tomberait à travers vers le fond via pointer-events:none */
  pointer-events: auto;
}

/* Boutons nav */
.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--offwhite);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 1.5rem;
  opacity: 0.4;
  transition: opacity 0.2s;
  font-family: var(--mono);
}

.lightbox-prev:hover,
.lightbox-next:hover { opacity: 1; }

.lightbox-prev { left: 1rem; }
.lightbox-next { right: 1rem; }

/* Fermer */
.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: var(--offwhite);
  font-size: 1.2rem;
  cursor: pointer;
  opacity: 0.5;
  transition: opacity 0.2s;
  font-family: var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.65rem;
  padding: 0.5rem;
}

.lightbox-close:hover { opacity: 1; }

/* Counter */
.lightbox-counter {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--mono);
  font-size: 0.6rem;
  color: var(--muted);
  letter-spacing: 0.15em;
}

/* ── MOBILE swipe hint ── */
@media (max-width: 768px) {
  .lightbox-prev,
  .lightbox-next { padding: 1rem; font-size: 1.2rem; }

  .lightbox-img {
    max-width: 95vw;
    max-height: 75vh;
  }
}
