/* Lightbox (siehe assets/js/lightbox.js) - der einzige selbst geschriebene
   Stil der Seite; alles andere kommt aus dem uebernommenen Elementor-CSS. */
.ca-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: clamp(1rem, 4vw, 3rem);
  background: rgba(0, 0, 0, 0.9);
}

.ca-lightbox.is-open {
  display: flex;
}

.ca-lightbox__figure {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  max-height: 100%;
}

.ca-lightbox__figure img {
  max-width: 100%;
  max-height: 85vh;
  width: auto;
  height: auto;
  display: block;
  border-radius: 4px;
}

.ca-lightbox__close,
.ca-lightbox__nav {
  flex: 0 0 auto;
  background: none;
  border: 0;
  color: #fff;
  cursor: pointer;
  line-height: 1;
  padding: 0.25em 0.5em;
  border-radius: 6px;
}

.ca-lightbox__close:hover,
.ca-lightbox__nav:hover,
.ca-lightbox__close:focus-visible,
.ca-lightbox__nav:focus-visible {
  background: rgba(255, 255, 255, 0.15);
}

.ca-lightbox__nav {
  font-size: clamp(2rem, 6vw, 3.5rem);
}

.ca-lightbox__close {
  position: absolute;
  top: 0.5rem;
  right: 0.75rem;
  font-size: 2.5rem;
}

.ca-lightbox__counter {
  position: absolute;
  bottom: 1rem;
  left: 0;
  right: 0;
  margin: 0;
  text-align: center;
  color: #fff;
  font-family: Roboto, sans-serif;
  font-size: 0.875rem;
}

@media (max-width: 767px) {
  .ca-lightbox__nav {
    position: absolute;
    bottom: 2.5rem;
  }
  .ca-lightbox__prev {
    left: 0.5rem;
  }
  .ca-lightbox__next {
    right: 0.5rem;
  }
}
