/* CSS Document */
#lightboxOverlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background-color: white;
  opacity: 0.85;
  display: none;
}

#lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
  box-sizing: border-box;
  overflow: auto;
  padding: 50px 10px 20px;
  text-align: center;
  line-height: 0;
  font-family: "lucida grande", tahoma, verdana, arial, sans-serif;
  font-weight: normal;
}

#lightbox img {
  width: auto;
  height: auto;
}

#lightbox a img {
  border: none;
}

#lightbox .lb-outerContainer {
  position: relative;
  background-color: white;
  width: 250px;
  height: 250px;
  margin: 0 auto;
  border-radius: 4px;
}

#lightbox .lb-outerContainer::after,
#lightbox .lb-data::after {
  content: "";
  display: table;
  clear: both;
}

#lightbox .lb-container {
  position: relative;
  padding: 10px;
  box-sizing: content-box;
}

#lightbox .lb-image {
  display: block;
  object-fit: contain;
  border: 0;
}

#lightbox .lb-nav {
  position: absolute;
  inset: 0;
  z-index: 10;
}

#lightbox .lb-nav a {
  position: absolute;
  top: 0;
  width: 49%;
  height: 100%;
  display: block;
  outline: none;
  cursor: pointer;
}
/*---pfeile erst beim hover einblenden-----*/
/*#lightbox .lb-prev,
#lightbox .lb-next {
  background-image: none;
}
#lightbox .lb-prev:hover {
  background: url("prev.png") left 48% no-repeat;
}

#lightbox .lb-next:hover {
  background: url("next.png") right 48% no-repeat;
}

*/

#lightbox .lb-prev {
  left: 0;
  background: url("prev.png") left 48% no-repeat;
}

#lightbox .lb-next {
  right: 0;
  background: url("next.png") right 48% no-repeat;
}

#lightbox .lb-loader {
  position: absolute;
  top: 40%;
  left: 0;
  width: 100%;
  height: 25%;
  text-align: center;
  line-height: 0;
}

#lightbox .lb-dataContainer {
  margin: 0 auto;
  padding-top: 5px;
  width: 100%;
  box-sizing: border-box;
}

#lightbox .lb-data {
  padding: 0 10px;
  color: #666666;
}

#lightbox .lb-details {
  width: 85%;
  float: left;
  text-align: left;
  line-height: 1.1em;
}

#lightbox .lb-caption {
  font-size: 13px;
  font-weight: bold;
  line-height: 1em;
}

#lightbox .lb-number {
  display: block;
  clear: left;
  padding-bottom: 1em;
  font-size: 11px;
}

#lightbox .lb-close {
  display: block;
  width: 35px;
  height: 30px;
  float: right;
  padding-bottom: 0.7em;
  outline: none;
  background: url("close.png") no-repeat;
  border: 0;
  cursor: pointer;
}

#lightbox [hidden] {
  display: none !important;
}

body.lb-disable-scrolling {
  overflow: hidden;
}


/* ---------------------------------------------------------
   MOBILE GALERIE
--------------------------------------------------------- */


/* =========================================================
   MOBILE GALERIEN – alle Galerien
========================================================= */

@media (max-width: 700px) {

    /* Galerien */

    .gal_a,
    .gal_b,
    .projekt-galerie {
        display: flex;
        flex-wrap: wrap;
        justify-content: flex-start;
        gap: 8px;
        margin: 0;
        padding: 0;
        list-style: none;
    }

    /* Erste vier Bilder jeder Galerie */

    .gal_a > li:nth-child(-n+4),
    .gal_b > li:nth-child(-n+4),
    .projekt-galerie > li:nth-child(-n+4) {
        display: inline-block;
        width: 120px;
        height: auto;
        margin: 0;
        padding: 0;
    }

    /* Alle weiteren Vorschaubilder ausblenden */

    .gal_a > li:nth-child(n+5),
    .gal_b > li:nth-child(n+5),
    .projekt-galerie > li:nth-child(n+5) {
        display: none;
    }

    /* Vorschaubilder verkleinern */

    .gal_a .gal_a_thumb,
    .gal_a .gal_b_thumb,
    .gal_b .gal_a_thumb,
    .gal_b .gal_b_thumb,
    .projekt-galerie .gal_b_thumb {
        display: block;
        margin: 0;
        padding: 5px;
    }

    .gal_a .gal_a_thumb img,
    .gal_a .gal_b_thumb img,
    .gal_b .gal_a_thumb img,
    .gal_b .gal_b_thumb img,
    .projekt-galerie .gal_b_thumb img {
        display: block;
        width: 110px;
        height: 110px;
        margin: 0;
        padding: 0;
        object-fit: cover;
    }

}


/* Weiche Überblendung beim Bildwechsel */
#lightbox .lb-image {
  opacity: 1;
  transition: opacity 350ms ease-in-out;
}

#lightbox .lb-image.lb-fade-out {
  opacity: 0;
}

@media (prefers-reduced-motion: reduce) {
  #lightbox .lb-image {
    transition: none;
  }
}