/* Bild-Overlay RAW (lightbox.js, ersetzt Easy FancyBox): Foto auf abgedunkeltem Grund */
.lightbox {
  width: 100vw;
  max-width: 100vw;
  height: 100dvh;
  max-height: 100dvh;
  margin: 0;
  padding: 20px;
  box-sizing: border-box;
  background: transparent;
  border: 0;
  overflow: hidden;
}

.lightbox[open] {
  display: flex;
  align-items: center;
  justify-content: center;
  animation: lightbox-in 0.25s ease;
}

@keyframes lightbox-in {
  from {
    opacity: 0;
  }
}

.lightbox::backdrop {
  background: rgba(0, 0, 0, 0.75);
}

.lightbox__img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  cursor: zoom-out;
}

.lightbox__close {
  position: absolute;
  top: 24px;
  right: 28px;
  z-index: 2;
  width: 40px !important;
  height: 40px !important;
  display: flex !important;
  align-items: center;
  margin: 0 !important; /* Mellow gibt Buttons margin-top */
  justify-content: center;
  padding: 0 !important;
  color: #fff !important;
  background: rgba(0, 0, 0, 0.35) !important;
  border: 1px solid rgba(255, 255, 255, 0.35) !important;
  border-radius: 50%;
  cursor: pointer;
}

/* gezeichnetes X statt ×-Zeichen: sitzt in jeder Schrift exakt in der Kreismitte */
.lightbox__close svg {
  display: block;
  width: 16px;
  height: 16px;
}

/* kleine Bildschirme: Kreis und X etwas kleiner, näher an der Ecke */
@media (max-width: 600px) {
  .lightbox__close {
    top: 16px;
    right: 16px;
    width: 32px !important;
    height: 32px !important;
  }

  .lightbox__close svg {
    width: 13px;
    height: 13px;
  }
}

.lightbox__close:hover {
  border-color: #fff !important;
}

/* Vor/Zurück nur bei Galerien (auf RAW derzeit keine) */
.lightbox__nav {
  display: none;
}

.lightbox--gallery .lightbox__nav {
  display: block;
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 44px !important;
  height: 44px !important;
  margin-top: -22px;
  padding: 0 !important;
  font-size: 30px !important;
  line-height: 1 !important;
  color: #fff !important;
  background: rgba(0, 0, 0, 0.35) !important;
  border: 1px solid rgba(255, 255, 255, 0.35) !important;
  border-radius: 50%;
  cursor: pointer;
}

.lightbox__nav--prev {
  left: 14px;
}

.lightbox__nav--next {
  right: 14px;
}
