/* Personnalisation de la lightbox pour Odyssée */

/* Style pour les images cliquables dans la galerie */
.gallery-item-circle a {
  display: block;
  cursor: pointer;
  transition: transform 0.3s ease;
  position: relative;
  overflow: hidden;
}

.gallery-item-circle a:hover {
  transform: scale(1.05);
}

.gallery-item-circle a:hover img {
  opacity: 0.9;
}

/* Indicateur de zoom */
.lightbox-zoom-indicator {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 5px 8px;
  border-radius: 50%;
  font-size: 14px;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 10;
}

.gallery-item-circle a:hover .lightbox-zoom-indicator {
  opacity: 1;
}

/* Personnalisation de l'overlay lightbox */
.lightbox {
  z-index: 9999 !important;
}

.lightbox .lb-outerContainer {
  border-radius: 8px;
  overflow: hidden;
}

.lightbox .lb-container {
  border-radius: 8px;
}

.lightbox .lb-image {
  border-radius: 8px;
  max-height: 90vh;
  object-fit: contain;
}

/* Style pour les boutons de navigation */
.lightbox .lb-nav a.lb-prev,
.lightbox .lb-nav a.lb-next {
  background: rgba(0, 0, 0, 0.7);
  border-radius: 50%;
  width: 50px;
  height: 50px;
  margin-top: -25px;
  transition: background-color 0.3s ease;
}

.lightbox .lb-nav a.lb-prev:hover,
.lightbox .lb-nav a.lb-next:hover {
  background: rgba(0, 0, 0, 0.9);
}

/* Style pour le bouton de fermeture */
.lightbox .lb-close {
  background: rgba(0, 0, 0, 0.7);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  right: 10px;
  top: 10px;
  transition: background-color 0.3s ease;
}

.lightbox .lb-close:hover {
  background: rgba(0, 0, 0, 0.9);
}

/* Style pour les données (titre et compteur) */
.lightbox .lb-data {
  background: rgba(0, 0, 0, 0.8);
  border-radius: 0 0 8px 8px;
  padding: 15px;
}

.lightbox .lb-data .lb-details {
  color: #fff;
  font-size: 14px;
  line-height: 1.4;
}

.lightbox .lb-data .lb-caption {
  font-size: 16px;
  font-weight: 500;
  color: #fff;
  margin-bottom: 5px;
}

.lightbox .lb-data .lb-number {
  color: #ccc;
  font-size: 12px;
}

/* Animation d'ouverture */
.lightbox .lb-outerContainer {
  animation: lightboxFadeIn 0.3s ease-out;
}

@keyframes lightboxFadeIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Responsive */
@media (max-width: 768px) {
  .lightbox .lb-nav a.lb-prev,
  .lightbox .lb-nav a.lb-next {
    width: 40px;
    height: 40px;
    margin-top: -20px;
  }
  
  .lightbox .lb-close {
    width: 35px;
    height: 35px;
  }
  
  .lightbox .lb-data {
    padding: 10px;
  }
  
  .lightbox .lb-data .lb-caption {
    font-size: 14px;
  }
}