/*
 * Keep the location-map preview inside the visible viewport.
 * The previous width:100% rule enlarged the map to the stage width even when
 * its natural aspect ratio required more vertical space.
 */
.location-map-lightbox {
  overflow: hidden;
}

.location-map-lightbox-stage {
  display: flex;
  width: min(1180px, calc(100vw - 112px));
  max-width: 100%;
  max-height: calc(100dvh - 108px);
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.location-map-lightbox-stage img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: calc(100dvh - 148px);
  object-fit: contain;
}

@media (max-width: 880px) {
  .location-map-lightbox {
    padding: 66px 14px 18px;
  }

  .location-map-lightbox-stage {
    width: 100%;
    max-height: calc(100dvh - 84px);
  }

  .location-map-lightbox-stage img {
    width: auto;
    max-width: 100%;
    max-height: calc(100dvh - 126px);
  }

  .location-map-lightbox-stage p {
    margin-top: 10px;
    font-size: 11px;
  }
}
