/* ========== ЗУМ ИЗОБРАЖЕНИЙ (НА ВЕСЬ ЭКРАН) ========== */
.image-zoom-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s cubic-bezier(0.22, 0.61, 0.36, 1);
  cursor: zoom-out;
}

.image-zoom-overlay.show { opacity: 1; }
.image-zoom-overlay.closing { opacity: 0; }

.image-zoom-container {
  position: relative;
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.image-zoom-img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  cursor: zoom-in;
  transform: scale(0.95);
  transition: transform 0.3s cubic-bezier(0.22, 0.61, 0.36, 1);
  position: relative;
}

.image-zoom-overlay.show .image-zoom-img { transform: scale(1); }

.image-zoom-close {
  position: fixed;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  z-index: 100000;
}

.image-zoom-close:hover { background: rgba(255, 255, 255, 0.25); }

.image-zoom-download {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  z-index: 100000;
}

.image-zoom-download:hover { background: rgba(0, 113, 227, 0.85); }

.image-zoom-hint {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  padding: 10px 20px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.3s ease;
  z-index: 100000;
  line-height: 1.6;
  text-align: center;
}

.image-zoom-hint.hidden { opacity: 0; }

@media (max-width: 768px) {
  .image-zoom-img {
    max-width: 95vw;
    max-height: 80vh;
  }
  
  .image-zoom-close { top: 10px; right: 10px; }
  .image-zoom-download { bottom: 20px; right: 20px; }
}