/*
 * Lightbox fuer die Galerie - Ersatz fuer jQuery.swipebox.
 *
 * Optisch an die bisherige Darstellung angelehnt: schwarzer Vollbild-Overlay,
 * Bild mittig, Bildtitel unten auf rotem Balken (frueher #swipebox-bottom-bar
 * mit rgba(227, 0, 15, 0.8)).
 *
 * Das Markup erzeugt app.js zur Laufzeit aus den vorhandenen a.swipebox-Links.
 */

div.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.92);
  z-index: 1000;
}

div.lightbox.active {
  display: block;
}

div.lightbox div.lightbox-swiper {
  width: 100%;
  height: 100%;
}

div.lightbox div.swiper-slide {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 60px 80px;
  box-sizing: border-box;
}

div.lightbox div.swiper-slide img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

div.lightbox span.lightbox-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 12px 20px;
  box-sizing: border-box;
  background-color: rgba(227, 0, 15, 0.8);
  color: #fff;
  font-size: 0.9em;
  font-weight: 600;
  text-align: center;
}

div.lightbox button.lightbox-close {
  position: absolute;
  top: 10px;
  right: 15px;
  z-index: 1002;
  border: 0;
  background: none;
  color: #fff;
  font-size: 40px;
  line-height: 1;
  cursor: pointer;
  padding: 5px 12px;
  font-family: 'Open Sans', sans-serif;
}

div.lightbox button.lightbox-close:hover {
  color: #D8000E;
}

/* Navigationspfeile von Swiper einfaerben - Standard ist Blau. */
div.lightbox div.swiper-button-prev,
div.lightbox div.swiper-button-next {
  color: #fff;
  z-index: 1001;
}

div.lightbox div.swiper-button-prev:hover,
div.lightbox div.swiper-button-next:hover {
  color: #D8000E;
}

@media only screen and (max-width: 760px) {
  div.lightbox div.swiper-slide {
    padding: 50px 15px 70px;
  }

  div.lightbox div.swiper-button-prev,
  div.lightbox div.swiper-button-next {
    display: none;
  }
}
