.zoom-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.3s ease;
  touch-action: none;
}

.zoom-modal.active {
  opacity: 1;
}

.zoom-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.zoomed-image {
  max-width: 100%;
  max-height: 100%;
  transform-origin: center center;
  cursor: grab;
  transition: transform 0.1s linear, opacity 0.3s ease;
  user-select: none;
  -webkit-user-drag: none;
}

.zoomed-image:active {
  cursor: grabbing;
}

.zoom-close, .zoom-left, .zoom-right {
  position: absolute;
  color: $link-color;
  font-size: 40px;
  font-weight: 300;
  cursor: pointer;
  z-index: 10;
  padding: 5px 15px;
  opacity: 0.8;
  transition: opacity 0.2s;
}

.zoom-close {
  top: 20px;
  right: 20px;
}

.zoom-right {
  bottom: 20px;
  right: 20px;
}

.zoom-left {
  bottom: 20px;
  left: 20px;
}

.zoom-close:hover, .zoom-left:hover, .zoom-right:hover {
  opacity: 1;
}

.zoom-loader {
  display: none;
  position: absolute;
  width: 50px;
  height: 50px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: white;
  animation: spin 1s ease infinite;
}

.zoom-info {
  position: absolute;
  bottom: 20px;
  left: 0;
  width: 100%;
  text-align: center;
  color: white;
  font-size: 32px;
  padding: 10px 20px;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  transition: opacity 0.3s;
}

.zoom-modal.active .zoom-info {
  opacity: 1;
}

img[data-zoomable] {
  cursor: zoom-in;
  transition: transform 0.2s;
}

img[data-zoomable]:hover {
  transform: scale(1.02);
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Adaptation mobile */
@media (max-width: 768px) {
  .zoom-close {
    font-size: 30px;
    top: 15px;
    right: 15px;
  }

  .zoom-right {
    font-size: 28px;
    bottom: 5px;
    right: 5px;
  }

  .zoom-left {
    font-size: 28px;
    bottom: 5px;
    left: 5px;
  }
  
  .zoom-info {
    font-size: 16px;
    bottom: 10px;
  }
}
