/* ════════════════════════════════════════════════════════════════
   CLAUDIE MASIKA — LIGHTBOX
   Clic sur image → plein écran élégant
════════════════════════════════════════════════════════════════ */

/* ─── OVERLAY ─────────────────────────────────────────────── */
.lb-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(8, 8, 7, 0.97);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
  cursor: zoom-out;
}
.lb-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* ─── IMAGE CENTRALE ──────────────────────────────────────── */
.lb-img-wrap {
  position: relative;
  max-width: 92vw;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lb-img {
  display: block;
  max-width: 92vw;
  max-height: 88vh;
  width: auto;
  height: auto;
  object-fit: contain;
  transform: scale(0.94);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: default;
  box-shadow: 0 40px 100px rgba(0,0,0,0.7);
}
.lb-overlay.active .lb-img {
  transform: scale(1);
}

/* ─── BOUTON FERMER ───────────────────────────────────────── */
.lb-close {
  position: fixed;
  top: 1.5rem;
  right: 1.8rem;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: 1px solid rgba(245,242,236,0.2);
  color: rgba(245,242,236,0.6);
  font-size: 1.2rem;
  cursor: pointer;
  transition: border-color 0.3s, color 0.3s, transform 0.3s;
  z-index: 10001;
}
.lb-close:hover {
  border-color: var(--white);
  color: var(--white);
  transform: rotate(90deg);
}

/* ─── NAVIGATION PREV / NEXT ──────────────────────────────── */
.lb-nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: 1px solid rgba(245,242,236,0.15);
  color: rgba(245,242,236,0.5);
  cursor: pointer;
  transition: border-color 0.3s, color 0.3s, background 0.3s;
  z-index: 10001;
  font-size: 1rem;
}
.lb-nav:hover {
  border-color: rgba(245,242,236,0.6);
  color: var(--white);
  background: rgba(245,242,236,0.05);
}
.lb-prev { left: 1.5rem; }
.lb-next { right: 1.5rem; }

/* ─── CAPTION ─────────────────────────────────────────────── */
.lb-caption {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-body, 'Syne', sans-serif);
  font-size: 0.6rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(245,242,236,0.4);
  white-space: nowrap;
  z-index: 10001;
  transition: opacity 0.3s;
}

/* ─── COMPTEUR ────────────────────────────────────────────── */
.lb-counter {
  position: fixed;
  top: 1.8rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-body, 'Syne', sans-serif);
  font-size: 0.58rem;
  letter-spacing: 0.3em;
  color: rgba(245,242,236,0.3);
  z-index: 10001;
}

/* ─── CURSEUR ZOOM sur les images cliquables ──────────────── */
.lb-trigger {
  cursor: zoom-in;
}

/* ─── LOADER SPINNER ──────────────────────────────────────── */
.lb-spinner {
  position: absolute;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(245,242,236,0.1);
  border-top-color: rgba(245,242,236,0.5);
  border-radius: 50%;
  animation: lb-spin 0.8s linear infinite;
}
@keyframes lb-spin {
  to { transform: rotate(360deg); }
}

/* ─── MOBILE ──────────────────────────────────────────────── */
@media (max-width: 640px) {
  .lb-nav { display: none; }
  .lb-img {
    max-width: 96vw;
    max-height: 80vh;
  }
}
