/* ============================================================
   lightbox.css — Visionneuse de galerie plein écran
   Ouverte par js/lightbox.js (window.Lightbox.open).
   ============================================================ */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(14, 17, 23, 0.94);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease;
  padding: 24px;
}

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

.lightbox-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 1100px;
  flex: 1;
  min-height: 0;
}

.lightbox-img {
  max-width: 100%;
  max-height: 78vh;
  border-radius: 10px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  display: block;
  user-select: none;
}

.lightbox-caption {
  max-width: 760px;
  margin-top: 18px;
  text-align: center;
  color: rgba(255, 255, 255, 0.85);
  font-family: var(--sans);
  font-size: 0.88rem;
  font-weight: 300;
  line-height: 1.6;
  min-height: 1.4em;
}

.lightbox-counter {
  margin-top: 6px;
  text-align: center;
  color: var(--teal);
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.lightbox-close,
.lightbox-nav {
  position: absolute;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.lightbox-close:hover,
.lightbox-nav:hover {
  background: rgba(0, 180, 160, 0.25);
  border-color: var(--teal);
}

.lightbox-close {
  top: 20px;
  right: 20px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-size: 1.3rem;
  line-height: 1;
}

.lightbox-nav {
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 1.4rem;
}

.lightbox-prev { left: 8px; }
.lightbox-next { right: 8px; }

.lightbox-nav[hidden],
.lightbox-close[hidden] {
  display: none;
}

@media (max-width: 720px) {
  .lightbox { padding: 16px; }
  .lightbox-img { max-height: 65vh; }
  .lightbox-nav { width: 40px; height: 40px; font-size: 1.2rem; }
  .lightbox-prev { left: 2px; }
  .lightbox-next { right: 2px; }
  .lightbox-close { top: 10px; right: 10px; }
}
