/* ============================================================
   Image Zoom / Lightbox - click content images to enlarge
   ============================================================ */

/* Indicate content images are clickable */
.md-content__inner img[data-zoom-enabled] {
  cursor: zoom-in;
  transition: opacity 0.2s ease;
}

.md-content__inner img[data-zoom-enabled]:hover {
  opacity: 0.85;
}

/* Dark overlay shown when an image is enlarged */
.image-zoom-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.88);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  cursor: zoom-out;
  opacity: 0;
  transition: opacity 0.3s ease;
  padding: 2rem;
  box-sizing: border-box;
}

.image-zoom-overlay.active {
  opacity: 1;
}

/* The enlarged image */
.image-zoom-overlay img {
  max-width: 95vw;
  max-height: 95vh;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.6);
}

/* Close button (top-right) */
.image-zoom-close {
  position: fixed;
  top: 1.5rem;
  right: 2rem;
  width: 42px;
  height: 42px;
  background-color: rgba(255, 255, 255, 0.12);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  color: #fff;
  font-size: 22px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.2s ease;
  z-index: 10000;
  user-select: none;
}

.image-zoom-close:hover {
  background-color: rgba(255, 255, 255, 0.25);
}
