/* nosvoyages — Lightbox : /assets/lightbox.css */

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

.lightbox.open{ display: flex; }

.lightbox img{
  max-width: 95vw;
  max-height: 90vh;
  box-shadow: 0 10px 30px rgba(0,0,0,0.40);
  border-radius: 10px;
}

.lb-btn{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: rgba(255,255,255,0.15);
  color: white;
  font-size: 28px;
  padding: 10px 14px;
  border-radius: 999px;
  cursor: pointer;
  user-select: none;
}
.lb-btn:hover{ background: rgba(255,255,255,0.25); }
.lb-prev{ left: 16px; }
.lb-next{ right: 16px; }

.lb-close{
  position: absolute;
  top: 14px;
  right: 14px;
  border: 0;
  background: rgba(255,255,255,0.15);
  color: white;
  font-size: 22px;
  padding: 8px 12px;
  border-radius: 999px;
  cursor: pointer;
}
.lb-close:hover{ background: rgba(255,255,255,0.25); }

/* Bas: titre/desc + compteur (si les éléments existent dans le HTML) */
.lb-bottom{
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 14px 16px 16px;
  background: linear-gradient(180deg, rgba(0,0,0,0), rgba(0,0,0,0.65));
  pointer-events: none;
}

.lb-caption{
  max-width: 1100px;
  margin: 0 auto;
}

.lb-title{
  font-weight: 650;
  font-size: 16px;
  margin: 0 0 6px 0;
  color: rgba(255,255,255,0.95);
  text-shadow: 0 2px 12px rgba(0,0,0,0.45);
}

.lb-desc{
  margin: 0;
  font-size: 14px;
  color: rgba(255,255,255,0.82);
  text-shadow: 0 2px 12px rgba(0,0,0,0.45);
  white-space: pre-line;
}

.lb-counter{
  margin-top: 10px;
  text-align: center;
  color: rgba(255,255,255,0.80);
  font-size: 13px;
}

/* Video in lightbox (same overlay as images) */
.lb-video-wrap{
  max-width: 95vw;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lb-video-wrap video{
  max-width: 95vw;
  max-height: 90vh;
  box-shadow: 0 10px 30px rgba(0,0,0,0.40);
  border-radius: 10px;
  background: #000;
}
