/* MODULE: lightbox – Bild-Vollansicht */

#lb-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.92);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 16px;
  padding: 20px;
}

#lb-overlay.lb-open {
  display: flex;
}

#lb-img {
  max-width: min(90vw, 1200px);
  max-height: 80vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.6);
  cursor: default;
  display: block;
}

#lb-caption {
  color: rgba(255,255,255,0.6);
  font-size: 14px;
  text-align: center;
  margin: 0;
  max-width: 600px;
}

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

#lb-prev,
#lb-next {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  color: #fff;
  font-size: 36px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.15s;
  z-index: 10000;
  line-height: 1;
  padding: 0;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
#lb-prev { left: 20px; }
#lb-next { right: 20px; }
#lb-prev:hover { background: rgba(255,255,255,0.28); transform: translateY(-50%) scale(1.08); }
#lb-next:hover { background: rgba(255,255,255,0.28); transform: translateY(-50%) scale(1.08); }

@media (max-width: 480px) {
  #lb-prev { left: 6px; width: 42px; height: 42px; font-size: 28px; }
  #lb-next { right: 6px; width: 42px; height: 42px; font-size: 28px; }
  #lb-img  { max-width: 95vw; }
}
