/* Karporta Lightbox */
#karporta-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  align-items: center;
  justify-content: center;
}
#karporta-lightbox.active { display: flex; }

#lb-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 10, 0.93);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

#lb-img-wrap {
  position: relative;
  z-index: 2;
  max-width: min(92vw, 1200px);
  max-height: 88vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

#lb-img {
  max-width: 100%;
  max-height: 88vh;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 32px 80px rgba(0,0,0,0.5);
  transition: opacity 0.2s ease;
}
#lb-img.fading { opacity: 0; }

#lb-close {
  position: absolute;
  top: 20px;
  right: 24px;
  z-index: 3;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
#lb-close:hover { background: rgba(255,255,255,0.18); }

#lb-prev,
#lb-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  color: #fff;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
#lb-prev:hover, #lb-next:hover { background: rgba(255,255,255,0.18); }
#lb-prev { left: 20px; }
#lb-next { right: 20px; }

#lb-counter {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  color: rgba(255,255,255,0.45);
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

/* Touch swipe hint on mobile */
@media (max-width: 768px) {
  #lb-prev, #lb-next { width: 40px; height: 40px; font-size: 15px; }
  #lb-prev { left: 10px; }
  #lb-next { right: 10px; }
}

/* Cursor on gallery images */
[data-gallery] img { cursor: zoom-in; }
