/* CSS LIGHT BOX -------------------------------- */

.lightbox {
  display: none;
  position: fixed;
  z-index: 9999;
  inset: 0;
  background: rgba(0,0,0,0.85);
  justify-content: center;
  align-items: center;
  gap: 20px;
}

.lightbox[aria-hidden="false"] { display: flex; }

.lightbox-content {
  max-width: 90%;
  max-height: 85%;
  box-shadow: 0 10px 40px rgba(0,0,0,0.6);
  border-radius: 8px;
}

.lightbox .close {
  position: absolute;
  top: 18px;
  right: 26px;
  font-size: 42px;
  color: white;
  background: transparent;
  border: none;
  cursor: pointer;
  line-height: 1;
}

/* flèches de navigation */
.lightbox .nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 50px;
  color: white;
  background: none;
  border: none;
  cursor: pointer;
  padding: 20px;
  user-select: none;
  opacity: 0.8;
}

.lightbox .nav:hover {
  opacity: 1;
}

.lightbox .prev {
  left: 20px;
}

.lightbox .next {
  right: 20px;
}




/* image au-dessus du fond mais sous les contrôles */
.lightbox-content {
  position: relative;
  z-index: 2;
  max-width: 80%;
  max-height: 75%;
  box-shadow: 0 10px 40px rgba(0,0,0,0.6);
  border-radius: 8px;
}

/* flèches de navigation : bien au-dessus de l'image et cliquables */
.l.lightbox .nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  z-index: 99999;
}

.lightbox .nav img {
  width: 50px;     /* Taille des flèches → modifiable */
  height: 50px;
  opacity: 0.9;
  transition: opacity 0.2s;
}

.lightbox .nav img:hover {
  opacity: 1;
}

.lightbox .prev {
  left: 20px;
}

.lightbox .next {
  right: 20px;
}


/* zones de secours invisibles (si boutons absents) */
.lightbox .click-zone {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 40%;
  z-index: 99990;
  cursor: pointer;
}
.lightbox .click-zone.left { left: 0; }
.lightbox .click-zone.right { right: 0; }

/* close button */
.lightbox .close {
  position: absolute;
  top: 18px;
  right: 26px;
  font-size: 42px;
  color: white;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 99999;
}





