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

.lightboxOverlay {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 99999999998;
  background-color: #000;
  opacity: 0.8;
  display: none;
}

.lightbox {
  position: fixed;
  inset: 0;
  left: 0 !important;
  top: 0 !important;
  transform: none !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  z-index: 99999999999 !important;
  display: flex;
  flex-direction: column;
  padding: 2rem;
  box-sizing: border-box;
  text-align: center;
  line-height: 0;
  font-weight: normal;
}

.lb-closeContainer {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  z-index: 14;
}

.lb-closeContainer .lb-close {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  background: rgba(0, 0, 0, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 50%;
  text-decoration: none;
  outline: none;
  opacity: 1;
  filter: none;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.lb-closeContainer .lb-close::before,
.lb-closeContainer .lb-close::after {
  content: "";
  position: absolute;
  width: 1.15rem;
  height: 2px;
  background: #fff;
  border-radius: 1px;
}

.lb-closeContainer .lb-close::before {
  transform: rotate(45deg);
}

.lb-closeContainer .lb-close::after {
  transform: rotate(-45deg);
}

.lb-closeContainer .lb-close:hover {
  cursor: pointer;
  background: rgba(255, 0, 0, 0.75);
  border-color: rgba(255, 255, 255, 0.85);
  transform: scale(1.05);
}

.lightbox .lb-imageStage {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.lightbox .lb-imageStage .lb-image {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: cover;
  object-position: center center;
  border-radius: 0;
  opacity: 0;
  transform: scale(1.035);
  transition:
    opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: opacity, transform;
  z-index: 1;
}

.lightbox .lb-imageStage .lb-image.is-active {
  opacity: 1;
  transform: scale(1);
  z-index: 2;
}

.lightbox a img {
  border: none;
}

.lb-outerContainer {
  position: relative;
  flex: 1 1 auto;
  width: 100%;
  min-height: 0;
  height: auto !important;
  margin: 0;
  background-color: var(--schwarz);
  zoom: 1;
  border-radius: 0.5rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.lb-outerContainer:after {
  content: "";
  display: table;
  clear: both;
}

.lb-container {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 0;
  box-sizing: border-box;
  overflow: hidden;
  background-color: var(--schwarz);
}

.lb-loader {
  position: absolute;
  top: 43%;
  left: 0;
  height: 25%;
  width: 100%;
  text-align: center;
  line-height: 0;
  z-index: 12;
}

.lb-cancel {
  display: block;
  width: 32px;
  height: 32px;
  margin: 0 auto;
  background: url(https://raw.githubusercontent.com/lokesh/lightbox2/master/src/images/loading.gif) no-repeat;
}

.lb-nav {
  position: absolute;
  inset: 0;
  z-index: 13;
  pointer-events: none;
}

.lb-nav a.lb-prev,
.lb-nav a.lb-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.45);
  background-image: none !important;
  float: none;
  opacity: 1;
  filter: none;
  cursor: pointer;
  pointer-events: auto;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
  z-index: 13;
}

.lb-nav a.lb-prev {
  left: 1rem;
}

.lb-nav a.lb-next {
  right: 1rem;
}

.lb-nav a.lb-prev::before,
.lb-nav a.lb-next::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0.75rem;
  height: 0.75rem;
  border-top: 2px solid #fff;
  border-right: 2px solid #fff;
}

.lb-nav a.lb-prev::before {
  transform: translate(-35%, -50%) rotate(-135deg);
}

.lb-nav a.lb-next::before {
  transform: translate(-65%, -50%) rotate(45deg);
}

.lb-nav a.lb-prev:hover,
.lb-nav a.lb-next:hover {
  background: rgba(255, 0, 0, 0.75);
  border-color: rgba(255, 255, 255, 0.85);
  transform: translateY(-50%) scale(1.06);
  opacity: 1;
}

.lb-dataContainer {
  flex: 0 0 auto;
  margin: 0;
  padding: 0.75rem 1.25rem 0.25rem;
  zoom: 1;
  width: 100%;
  box-sizing: border-box;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.45));
}

.lb-dataContainer:after {
  content: "";
  display: table;
  clear: both;
}

.lb-data {
  padding: 0 4px;
  color: #ccc;
}

.lb-data .lb-details {
  width: 100%;
  float: none;
  text-align: center;
  line-height: 1.1em;
}

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

.lb-data .lb-number {
  display: block;
  clear: left;
  padding-bottom: 0.5em;
  font-size: 12px;
  color: #999999;
}

.title {
  color: var(--weiss);
}

@media (max-width: 768px) {
  .lightbox {
    width: 100vw !important;
    height: 100vh !important;
    height: 100dvh !important;
    max-width: 100vw;
    max-height: 100vh;
    max-height: 100dvh;
    padding: 1rem;
    overflow: hidden;
    inset: 0;
  }

  .lb-outerContainer {
    flex: 1 1 auto;
    min-height: 0;
    width: 100%;
    max-width: calc(100vw - 2rem);
    max-height: calc(100vh - 2rem);
    max-height: calc(100dvh - 2rem);
    height: 100% !important;
    border-radius: 0.35rem;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .lb-container {
    position: relative;
    inset: auto;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
  }

  .lb-imageStage {
    position: relative;
    inset: auto;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .lightbox .lb-imageStage .lb-image {
    position: absolute;
    inset: auto;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: calc(100vh - 2rem);
    max-height: calc(100dvh - 2rem);
    object-fit: contain;
    object-position: center center;
  }

  .lb-dataContainer {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    right: 1rem;
    width: auto;
    max-width: calc(100vw - 2rem);
    flex: none;
    padding: 0.5rem 0.75rem 0.35rem;
    border-radius: 0 0 0.35rem 0.35rem;
    z-index: 15;
  }

  .lb-closeContainer {
    top: 0.65rem;
    right: 0.65rem;
  }

  .lb-closeContainer .lb-close {
    width: 2.4rem;
    height: 2.4rem;
  }

  .lb-nav a.lb-prev,
  .lb-nav a.lb-next {
    width: 2.75rem;
    height: 2.75rem;
  }

  .lb-nav a.lb-prev {
    left: 0.65rem;
  }

  .lb-nav a.lb-next {
    right: 0.65rem;
  }
}
