/**
 * Styles personnalisés pour PhotoSwipe
 */

/* Style du bouton zoom sur les images */
.masonry-gallery-item {
  position: relative;
  cursor: pointer;
}

.masonry-gallery-item:after {
  content: "";
  position: absolute;
  top: 8px;
  right: 8px;
  width: 30px;
  height: 30px;
  background: rgba(0, 0, 0, 0.5)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14zm2.5-4h-2v2H9v-2H7V9h2V7h1v2h2v1z'/%3E%3C/svg%3E")
    center no-repeat;
  background-size: 18px;
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}

.masonry-gallery-item:hover:after {
  opacity: 1;
}

/* Ajustements pour le thème PhotoSwipe */
.pswp__bg {
  background-color: rgba(0, 0, 0, 0.9);
}

.pswp__caption__center {
  text-align: center;
  max-width: 80%;
  margin: 0 auto;
  font-size: 14px;
  padding: 10px;
  line-height: 20px;
  color: #fff;
}

/* Fix pour les styles de Drupal qui pourraient interférer */
.pswp img {
  max-width: none;
}

/* Overlay d'informations sur les images */
.masonry-gallery-item .image-info-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  margin: 8px;
  padding: 8px;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease;
  border-radius: 0 0 5px 5px;
}

.masonry-gallery-item:hover .image-info-overlay {
  opacity: 1;
  transform: translateY(0);
}
