/* ZOOM MODAL COMPONENT */
/* Reusable zoom modal with touch/drag support and responsive design */

#zoom-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.9);
  z-index: 9999;
  backdrop-filter: blur(5px);
}

#zoom-image {
  width: 100%;
  height: 100%;
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  transition: background-position 0.1s ease-out;
}

/* Navigation dans le zoom modal */
.zoom-nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  color: white;
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  user-select: none;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.zoom-nav:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-50%) scale(1.1);
}

/* Override any conflicting hover rules */
.zoom-nav:hover, .zoom-prev:hover, .zoom-next:hover {
  transform: translateY(-50%) scale(1.1) !important;
}

.zoom-prev {
  left: 20px;
}

.zoom-next {
  right: 20px;
}

/* Close button */
.zoom-close {
  position: fixed;
  top: 20px;
  right: 20px;
  color: white;
  font-size: 30px;
  font-weight: bold;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  user-select: none;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.zoom-close:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

/* Info zoom */
.zoom-info {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: white;
  text-align: center;
  background: rgba(0, 0, 0, 0.6);
  padding: 10px 20px;
  border-radius: 20px;
  backdrop-filter: blur(10px);
  font-family: 'Tenor Sans', sans-serif;
}

#zoom-counter {
  font-size: 1rem;
  font-weight: 300;
  margin-bottom: 5px;
}

#zoom-instructions {
  font-size: 0.85rem;
  opacity: 0.8;
}

/* Small zoom icon for desktop only */
.zoom-hint-icon {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 6px;
  border-radius: 50%;
  font-size: 14px;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  z-index: 5;
}

.zoom-hint-icon svg {
  width: 14px;
  height: 14px;
  color: white;
}

/* Show zoom icon on hover - desktop only */
@media (min-width: 769px) {
  .slider-slide:hover .zoom-hint-icon {
    opacity: 1;
  }
}

/* Tablet styles */
@media (max-width: 768px) {
  /* Mobile zoom controls */
  .zoom-nav, .zoom-close {
    width: 45px;
    height: 45px;
    font-size: 20px;
  }
  
  .zoom-prev {
    left: 15px;
  }
  
  .zoom-next {
    right: 15px;
  }
  
  .zoom-close {
    top: 15px;
    right: 15px;
  }
  
  .zoom-info {
    bottom: 15px;
    font-size: 0.8rem;
    padding: 8px 16px;
  }
}

/* Mobile styles */
@media (max-width: 480px) {
  .zoom-nav, .zoom-close {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }
  
  .zoom-prev {
    left: 10px;
  }
  
  .zoom-next {
    right: 10px;
  }
  
  .zoom-close {
    top: 10px;
    right: 10px;
  }
  
  .zoom-info {
    bottom: 10px;
    font-size: 0.75rem;
    padding: 6px 12px;
  }
}