.lightbox-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.95);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.lightbox-overlay img {
  max-width: 90%;
  max-height: 90%;
}

.petersburg-wrapper {
  position: relative;
  z-index: 1;
}

.petersburg-item figcaption {
  font-style: normal;
  font-size: 12px;
  padding-left: 2rem;
}

.petersburg-filler {
  position: relative;
  left: 0;
  top: 0;
  height: 1px;
}

@media screen and (max-width: 1000px) {
  .petersburg-item {
    position: static !important;
    width: 100% !important;
  }

  .petersburg-filler {
    display: none;
  }

  .petersburg-gallery > a > img,
  .petersburg-item > a > img {
    width: 100%;
  }
}

.kachelansicht-wrapper {
  height: calc(100vh - 10rem);
  max-height: var(--max-height);
}

.kachelansicht-row {
  display: flex;
  flex-flow: row nowrap;
  align-items: start;
  height: calc(100% / var(--rows));
  max-height: var(--item-height);
  position: relative;
  width: max-content;
  gap: var(--gap);
  margin-bottom: var(--gap);
}

.kachelansicht-wrapper a {
  height: 100%;
}

.kachelansicht-wrapper a img {
  height: 100%;
  width: auto;
}

/* emergency styles for Installation Views */
.elementor-element.elementor-widget-petersburger_haengung {
  width: max-content !important;
}
