/* Lightbox für vergrößerbare Bilder (assets/js/lightbox.js) */

.lightbox {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 9000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.88);
}

.lightbox[hidden] {
  display: none;
}

.lightbox-figure {
  position: relative;
  margin: 0;
  max-width: 92vw;
  text-align: center;
}

.lightbox-image {
  display: block;
  max-width: calc(92vw - 16px);
  max-height: 78vh;
  margin: 0 auto;
  border: 8px solid #fff;
  background: #fff;
}

.lightbox-caption {
  margin-top: 8px;
  color: #fff;
  font: 14px Arial, Helvetica, sans-serif;
}

.lightbox-button {
  position: absolute;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font: 32px/48px Arial, Helvetica, sans-serif;
  text-align: center;
  cursor: pointer;
}

.lightbox-button:hover,
.lightbox-button:focus-visible {
  background: #e99b37;
  outline: 2px solid #fff;
}

.lightbox-close {
  top: 12px;
  right: 12px;
}

.lightbox-prev {
  top: 50%;
  left: 12px;
  margin-top: -24px;
}

.lightbox-next {
  top: 50%;
  right: 12px;
  margin-top: -24px;
}

.lightbox-single .lightbox-prev,
.lightbox-single .lightbox-next {
  display: none;
}

[data-lightbox] {
  cursor: zoom-in;
}
