/* ============================================================
   lightbox.css — Nect'Art
   Overlay galerie pages projet. Zéro dépendance.
   ============================================================ */

/* ── Overlay principal ─────────────────────────────────────── */
#na-lb {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
}

#na-lb.is-open {
  opacity: 1;
  pointer-events: all;
}

/* ── Fond sombre ───────────────────────────────────────────── */
#na-lb-bg {
  position: absolute;
  inset: 0;
  background: rgba(7, 7, 7, .96);
  cursor: pointer;
}

/* ── Cadre image ───────────────────────────────────────────── */
#na-lb-frame {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 88vw;
  max-height: 88vh;
  padding: 0 72px; /* espace pour les flèches */
  box-sizing: border-box;
}

#na-lb-img {
  display: block;
  max-width: 100%;
  max-height: 86vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 2px;
  user-select: none;
  -webkit-user-drag: none;
}

/* ── Flèches navigation ────────────────────────────────────── */
#na-lb-prev,
#na-lb-next {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .18);
  background: rgba(255, 255, 255, .06);
  color: rgba(255, 255, 255, .75);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: background .15s ease, color .15s ease, opacity .15s ease;
}
#na-lb-prev { left: 20px; }
#na-lb-next { right: 20px; }

#na-lb-prev:hover,
#na-lb-next:hover {
  background: rgba(255, 255, 255, .14);
  color: #fff;
}

#na-lb-prev:disabled,
#na-lb-next:disabled {
  opacity: .2;
  cursor: default;
  pointer-events: none;
}

/* ── Bouton fermer ─────────────────────────────────────────── */
#na-lb-x {
  position: fixed;
  top: 18px;
  right: 20px;
  z-index: 2;
  width: 44px;
  height: 44px;
  border: none;
  background: none;
  color: rgba(255, 255, 255, .55);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-radius: 2px;
  transition: color .15s ease;
}
#na-lb-x:hover { color: #fff; }
#na-lb-x:focus,
#na-lb-x:focus-visible { outline: none; color: #fff; }

/* ── Compteur ──────────────────────────────────────────────── */
#na-lb-count {
  position: fixed;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .08em;
  color: rgba(255, 255, 255, .4);
  margin: 0;
  pointer-events: none;
  white-space: nowrap;
}

/* ── Scroll lock ───────────────────────────────────────────── */
body.na-lb-open { overflow: hidden; }

/* ── Curseur zoom sur les containers image ─────────────────── */
.na-lb-trigger {
  cursor: zoom-in;
}

/* La hero entière : pointer sur tout l'espace visible */
.na-cs-hero__img {
  cursor: zoom-in;
}

/* ── Responsive mobile ─────────────────────────────────────── */
@media (max-width: 767px) {
  #na-lb-frame {
    padding: 0 52px;
    max-width: 100vw;
    max-height: 100vh;
  }
  #na-lb-prev { left: 6px; width: 40px; height: 40px; }
  #na-lb-next { right: 6px; width: 40px; height: 40px; }
  #na-lb-x    { top: 12px; right: 10px; }
}
