/* Lightbox : agrandit une image au clic (style Instagram / Google Drive) */
.image-container img,
.flexslider img { cursor: zoom-in; }
.image-container a img { cursor: pointer; } /* images qui sont déjà des liens : pas de zoom */

#lb-overlay {
  position: fixed; inset: 0; z-index: 100000;
  background: rgba(0, 0, 0, 0.92);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden;
  transition: opacity .25s ease, visibility .25s;
}
#lb-overlay.open { opacity: 1; visibility: visible; }
#lb-overlay img {
  max-width: 94vw; max-height: 92vh; width: auto; height: auto;
  object-fit: contain; cursor: zoom-out;
  box-shadow: 0 10px 40px rgba(0,0,0,.5);
  transform: scale(.96); transition: transform .25s ease;
}
#lb-overlay.open img { transform: scale(1); }
#lb-overlay button {
  position: absolute; background: rgba(255,255,255,.12); color: #fff; border: 0;
  width: 48px; height: 48px; border-radius: 50%; font-size: 26px; line-height: 48px;
  cursor: pointer; padding: 0; transition: background .2s;
}
#lb-overlay button:hover { background: rgba(255,255,255,.28); }
#lb-close { top: 20px; right: 20px; }
#lb-prev  { left: 20px;  top: 50%; margin-top: -24px; }
#lb-next  { right: 20px; top: 50%; margin-top: -24px; }
#lb-overlay.single #lb-prev, #lb-overlay.single #lb-next { display: none; }
body.lb-lock { overflow: hidden; }
