/* ==========================
   SMDM Image Lightbox (v2)
   ========================== */

/* Zoomable cursor and hover cue */
.smdm-hero-img,
[data-zoomable] {
  cursor: zoom-in;
  transition: transform 0.25s ease, filter 0.25s ease;
}
.smdm-hero-img:hover,
[data-zoomable]:hover {
  transform: scale(1.02);
  filter: brightness(1.1);
}

/* Lightbox overlay */
.smdm-img-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(10, 25, 38, 0.75);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  padding: 24px;
}
.smdm-img-lightbox.is-open {
  display: flex;
}

/* Image box (half-screen scale) */
.smdm-img-lightbox__img {
  max-width: 80vw;      
  max-height: 80vh;      
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  background: #fff;
  transition: transform 0.25s ease-in-out;
}

/* Close button */
.smdm-img-lightbox__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: #0a5c83;
  font-size: 24px;
  line-height: 40px;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}
.smdm-img-lightbox__close:hover {
  background: #fff;
}

/* Small screens */
@media (max-width: 900px) {
  .smdm-img-lightbox__img {
    max-width: 90vw;
    max-height: 70vh;
  }
}
