.image-zoom-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  z-index: 10003;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
  overflow: hidden;
}

.image-zoom-modal.active {
  display: flex;
}

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

.zoom-image-container {
  position: relative;
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: grab;
  touch-action: none;
  overflow: hidden;
}

.zoom-image-container.dragging {
  cursor: grabbing;
}

.zoom-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: none;
  user-select: none;
  transform-origin: center center;
  will-change: transform;
}

.zoom-controls {
  position: fixed;
  top: 20px;
  right: 20px;
  display: flex;
  gap: 10px;
  z-index: 10004;
  background: rgba(0, 0, 0, 0.4);
  padding: 8px;
  border-radius: 50px;
  backdrop-filter: blur(10px);
}

.zoom-btn {
  width: 45px;
  height: 45px;
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  color: white;
  font-size: 22px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.zoom-btn:hover {
  background: rgba(255, 255, 255, 0.35);
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.zoom-close-btn {
  position: fixed;
  top: 20px;
  left: 20px;
  width: 50px;
  height: 50px;
  background: rgba(239, 68, 68, 0.9);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  color: white;
  font-size: 28px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 10004;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.zoom-close-btn:hover {
  background: rgba(220, 38, 38, 1);
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(239, 68, 68, 0.5);
}

.zoom-navigation {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10004;
}

.zoom-navigation.prev {
  left: 20px;
}

.zoom-navigation.next {
  right: 20px;
}

.zoom-nav-btn {
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  color: white;
  font-size: 26px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

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

.zoom-nav-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.zoom-nav-btn:disabled:hover {
  transform: none;
  background: rgba(255, 255, 255, 0.2);
}

.zoom-indicator {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(10px);
  padding: 8px 16px;
  border-radius: 20px;
  color: white;
  font-size: 14px;
  z-index: 10004;
}

.zoom-hint {
  position: fixed;
  bottom: 60px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(10px);
  padding: 8px 16px;
  border-radius: 20px;
  color: white;
  font-size: 13px;
  z-index: 10004;
  opacity: 0;
  animation: fadeInOut 3s ease-in-out;
  width: 90%;
  max-width: 400px;
  text-align: center;
}

@keyframes fadeInOut {
  0%,
  100% {
    opacity: 0;
  }
  20%,
  80% {
    opacity: 1;
  }
}

/* Add cursor pointer to main image */
.main-image {
  cursor: zoom-in;
}

.thumbnail {
  cursor: pointer;
}

/* Mobile optimizations */
@media (max-width: 768px) {
  .zoom-controls {
    top: 15px;
    right: 15px;
    gap: 8px;
  }

  .zoom-btn {
    width: 40px;
    height: 40px;
    font-size: 20px;
  }

  .zoom-close-btn {
    top: 15px;
    left: 15px;
    width: 40px;
    height: 40px;
    font-size: 24px;
  }

  .zoom-navigation {
    display: none;
  }

  .zoom-indicator {
    bottom: 15px;
    font-size: 12px;
    padding: 6px 12px;
  }

  .zoom-hint {
    bottom: 50px;
    font-size: 12px;
    padding: 8px 12px;
    width: 90%;
    max-width: none;
  }
}
