/* Overlay Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.95); /* blanc avec 85% d'opacité */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.lightbox.visible {
  opacity: 1;
}

/* Contenu de la lightbox uniquement */
.lightbox-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 90vw;
  max-height: 90vh;
}

/* Image de la lightbox uniquement */
.lightbox-content img {
  max-width: 90vw;
  max-height: 80vh;
  display: block;
  transition: opacity 0.3s ease;
  border: 1px solid #000;  /* 🔹 cadre noir */
  box-sizing: border-box;   /* pour que la bordure ne change pas la taille */
}

.lightbox-content img.fade {
  opacity: 0;
}

/* Caption lightbox uniquement */
.caption {
  margin-top: 12px;
  color: #000; /* texte en noir pour contraste sur fond blanc */
  font-family: "Special Elite", monospace;
  font-size: 14px;
  text-align: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.caption.visible {
  opacity: 1;
}

/* Navigation flèches lightbox uniquement */
.prev,
.next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #000; /* flèches noires pour contraste */
  font-size: 60px;
  cursor: pointer;
  user-select: none;
}

.prev { left: 30px; }
.next { right: 30px; }

