/* Image Preview Overlay (Modular) */

#image-preview-overlay.image-preview-overlay {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  background-color: rgba(0, 0, 0, 0.9) !important;
  display: none !important;
  justify-content: center !important;
  align-items: center !important;
  z-index: 99999 !important;
  cursor: pointer !important;
}

#image-preview-overlay.image-preview-overlay.show {
  display: flex !important;
  animation: fadeIn 0.3s ease-out !important;
}

/* Container */
.image-preview-container {
  position: relative !important;
  max-width: 90vw !important;
  max-height: 90vh !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  cursor: default !important;
}

/* Image */
.image-preview-img {
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
  border-radius: 8px !important;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5) !important;
  cursor: pointer !important;
  animation: imageZoomIn 0.3s ease-out !important;
}

/* Close button */
.image-preview-close {
  position: absolute !important;
  top: -40px !important;
  right: -40px !important;
  width: 40px !important;
  height: 40px !important;
  background-color: rgba(255, 255, 255, 0.1) !important;
  border: 2px solid rgba(255, 255, 255, 0.3) !important;
  border-radius: 50% !important;
  color: #fff !important;
  font-size: 18px !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: all 0.2s ease !important;
  backdrop-filter: blur(10px) !important;
}

.image-preview-close:hover {
  background-color: rgba(255, 255, 255, 0.2) !important;
  border-color: rgba(255, 255, 255, 0.5) !important;
  transform: scale(1.1) !important;
}

@keyframes imageZoomIn {
  from { opacity: 0; transform: scale(0.8); }
  to   { opacity: 1; transform: scale(1); }
}

