/* Custom Lightbox - Replaces lightbox2 */
.custom-lightbox-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.92);
  z-index: 99999;
  justify-content: center;
  align-items: center;
  cursor: zoom-out;
}
.custom-lightbox-overlay.active {
  display: flex;
}
.custom-lightbox-overlay img {
  max-width: 90vw;
  max-height: 85vh;
  width: auto !important;
  height: auto !important;
  object-fit: contain !important;
  border-radius: 4px;
  box-shadow: 0 4px 40px rgba(0,0,0,.6);
  cursor: default;
  user-select: none;
  -webkit-user-drag: none;
}
.custom-lightbox-close {
  position: fixed;
  top: 20px; right: 24px;
  width: 40px; height: 40px;
  background: none;
  border: 2px solid rgba(255,255,255,.5);
  border-radius: 50%;
  color: #fff;
  font-size: 22px;
  cursor: pointer;
  z-index: 100001;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color .2s, transform .2s;
  line-height: 1;
}
.custom-lightbox-close:hover {
  border-color: #fff;
  transform: scale(1.1);
}
.custom-lightbox-nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,.12);
  border: none;
  color: #fff;
  font-size: 28px;
  width: 48px; height: 48px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 100001;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
}
.custom-lightbox-nav:hover { background: rgba(255,255,255,.25); }
.custom-lightbox-nav.prev { left: 16px; }
.custom-lightbox-nav.next { right: 16px; }
.custom-lightbox-counter {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,.7);
  font-size: 14px;
  z-index: 100001;
  font-family: sans-serif;
}
body.lightbox-open { overflow: hidden; }
