
/* ── Maxlab Industry Lightbox ── */

/* zoom cursor on slide images */
.hc-slide-wrap .swiper-slide img { cursor: zoom-in; }

/* Overlay */
.mlb-overlay {
  position: fixed;
  inset: 0;
  background: rgba(8, 8, 14, 0.93);
  z-index: 99998;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.24s ease, visibility 0.24s ease;
}
.mlb-overlay.mlb-open {
  opacity: 1;
  visibility: visible;
}

/* Image wrapper — pinch-to-zoom via browser */
.mlb-img-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 94vw;
  max-height: 88vh;
  touch-action: pinch-zoom;
}
.mlb-img-wrap img {
  max-width: 94vw;
  max-height: 88vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 10px;
  display: block;
  touch-action: pinch-zoom;
  user-select: none;
  -webkit-user-select: none;
  box-shadow: 0 24px 80px rgba(0,0,0,0.6);
  transition: opacity 0.18s ease;
}
.mlb-img-wrap img.mlb-loading { opacity: 0.3; }

/* Close button */
.mlb-close {
  position: fixed;
  top: 16px;
  right: 16px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  transition: background 0.18s, border-color 0.18s;
  -webkit-tap-highlight-color: transparent;
  backdrop-filter: blur(6px);
}
.mlb-close:hover { background: #EA2B16; border-color: #EA2B16; }

/* Prev / Next */
.mlb-nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  transition: background 0.18s, border-color 0.18s, transform 0.18s;
  -webkit-tap-highlight-color: transparent;
  backdrop-filter: blur(6px);
}
.mlb-nav:hover { background: #EA2B16; border-color: #EA2B16; }
.mlb-prev { left: 14px; }
.mlb-next { right: 14px; }
.mlb-prev:hover { transform: translateY(-50%) scale(1.08); }
.mlb-next:hover { transform: translateY(-50%) scale(1.08); }

/* Counter */
.mlb-counter {
  position: fixed;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.5);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  z-index: 99999;
  background: rgba(0,0,0,0.4);
  padding: 5px 14px;
  border-radius: 100px;
  backdrop-filter: blur(4px);
}

/* Zoom hint badge */
.mlb-hint {
  position: fixed;
  bottom: 60px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.45);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.05em;
  z-index: 99999;
  opacity: 1;
  transition: opacity 1s ease 2s;
  pointer-events: none;
}
.mlb-hint.mlb-hint-hide { opacity: 0; }

/* Mobile */
@media (max-width: 600px) {
  .mlb-nav { width: 38px; height: 38px; font-size: 14px; }
  .mlb-prev { left: 8px; }
  .mlb-next { right: 8px; }
  .mlb-close { top: 12px; right: 12px; width: 38px; height: 38px; font-size: 20px; }
  .mlb-img-wrap img { border-radius: 6px; }
}
