/* ============================================================
   ml-lightbox.css — Lightbox plein écran (reproduction CE), sans CE
   ============================================================ */
.ml-lightbox {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(0, 0, 0, 0.9);
  display: none;
  flex-direction: column;
}
.ml-lightbox.is-open { display: flex; }

/* Header : compteur (gauche) + outils (droite) */
.ml-lightbox__header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  z-index: 10;
  color: rgba(238, 238, 238, 0.9);
}
.ml-lightbox__counter {
  font-size: 15px;
  color: rgba(238, 238, 238, 0.9);
  font-variant-numeric: tabular-nums;
}
.ml-lightbox__tools {
  display: flex;
  align-items: center;
  gap: 6px;
}
.ml-lightbox__btn {
  background: transparent;
  border: 0;
  padding: 6px;
  cursor: pointer;
  color: rgba(238, 238, 238, 0.9);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color .15s ease;
}
.ml-lightbox__btn:hover { color: #fff; }
.ml-lightbox__btn svg { width: 22px; height: 22px; display: block; }

/* Swiper plein écran */
.ml-lightbox__swiper {
  flex: 1;
  width: 100%;
  height: 100%;
  overflow: hidden;
}
.ml-lightbox__swiper .swiper-slide {
  display: flex;
  align-items: center;
  justify-content: center;
}
.ml-lightbox__swiper .swiper-zoom-container {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ml-lightbox__swiper .swiper-zoom-container img {
  max-width: 86vw;
  max-height: 80vh;
  width: auto;
  height: auto;
  object-fit: contain;
  background: #fff;
}

/* Flèches latérales */
.ml-lightbox__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
  color: rgba(238, 238, 238, 0.9);
  transition: color .15s ease;
}
.ml-lightbox__arrow:hover { color: #fff; }
.ml-lightbox__arrow svg { width: 26px; height: 26px; display: block; filter: drop-shadow(0 1px 3px rgba(0,0,0,.5)); }
.ml-lightbox__arrow--prev { left: 10px; }
.ml-lightbox__arrow--next { right: 10px; }
.ml-lightbox__arrow.swiper-button-disabled { opacity: .3; cursor: default; }

/* Footer : bandeau "Photo illustrative" + légende produit */
.ml-lightbox__footer {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  z-index: 10;
  text-align: center;
}
.ml-lightbox__notice {
  /* positionné en fixed par le JS : collé au bas de l'image, largeur = image */
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 12px;
  line-height: 1.4;
  padding: 7px 12px;
  text-align: center;
  z-index: 11;
}
.ml-lightbox__caption {
  color: rgba(238, 238, 238, 0.9);
  font-size: 16px;
  padding: 10px 16px 16px;
}

@media (max-width: 575px) {
  .ml-lightbox__caption { font-size: 13px; padding: 8px 12px 12px; }
  .ml-lightbox__arrow { width: 38px; height: 38px; }
  .ml-lightbox__swiper .swiper-zoom-container img { max-width: 94vw; }
}
