/* Custom styles for Magnific Popup zooming */
.mfp-with-zoom .mfp-container,
.mfp-with-zoom.mfp-bg {
  opacity: 0;
  -webkit-backface-visibility: hidden;
  -webkit-transition: all 0.3s ease-out;
  -moz-transition: all 0.3s ease-out;
  -o-transition: all 0.3s ease-out;
  transition: all 0.3s ease-out;
}

.mfp-with-zoom.mfp-ready .mfp-container {
  opacity: 1;
}

.mfp-with-zoom.mfp-ready.mfp-bg {
  opacity: 0.8;
}

.mfp-with-zoom.mfp-removing .mfp-container,
.mfp-with-zoom.mfp-removing.mfp-bg {
  opacity: 0;
}

/* Custom cursor for zoomable images */
.mfp-content img.album-image {
  cursor: zoom-in !important;
  transition: transform 0.25s ease, opacity 0.25s ease !important;
}

/* For when the image is zoomed in */
.mfp-content img.album-image.zoomed {
  cursor: move !important; /* Fallback for non-grab browsers */
  cursor: grab !important;
  cursor: -webkit-grab !important;
}

/* Hide the default Magnific Popup zoom button */
.mfp-zoom-out {
  display: none !important;
}

/* Style for zoom controls (optional) */
.zoom-controls {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.zoom-controls button {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.zoom-controls button:hover {
  background: rgba(0, 0, 0, 0.7);
}

/* Make sure the image doesn't get cut off when zoomed */
.mfp-img {
  max-height: none !important;
  padding: 0 !important;
}
