/* ===== Lightbox Basis ===== */
.lightbox-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.8);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.lightbox-overlay img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 8px;
  box-shadow: 0 0 30px rgba(0,0,0,0.6);
}

.lightbox-overlay .lightbox-caption {
  margin-top: 12px;
  color: #fff;
  font-size: 0.85em;
  text-align: center;
}

/* Sichtbar, wenn aktiv */
.lightbox-overlay.active {
  display: flex;
  flex-direction: column;
}

.lightbox-overlay .lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2em;
  color: #fff;
  cursor: pointer;
  padding: 0 15px;
  user-select: none;
}

.lightbox-overlay .lightbox-prev {
  left: 10px;
}

.lightbox-overlay .lightbox-next {
  right: 10px;
}

.gallery.single-image {
  display: flex;
  justify-content: center;
  margin: 2rem 0;
}

.gallery.single-image figure {
  max-width: 320px;
  width: 100%;
  position: relative;
  margin: 0;
}

.gallery.single-image img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  cursor: pointer;
  display: block;
  transition: transform 0.3s ease;
}

.gallery.single-image figure:hover img {
  transform: scale(1.05);
}

.gallery.single-image figcaption {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.6);
  color: #ffffff !important;
  font-size: 0.85em;
  padding: 6px;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  text-align: center;
}

.gallery.single-image figure:hover figcaption {
  opacity: 1;
}

/* ===== Lightbox Caption Links ===== */
.lightbox-caption a {
  color: #ffffff !important;
  text-decoration: none;
}

.lightbox-caption a:hover {
  color: #ffffff !important;
  text-decoration: underline;
}

.lightbox-caption {
  mix-blend-mode: normal !important;
}

