/* The listing's main preview must show the entire photo, just like the lightbox. */
.lh-detail-gallery {
  min-width: 0;
}

.lh-detail-gallery .lh-main-photo {
  aspect-ratio: auto;
  height: auto;
  min-height: 0;
  max-height: min(680px, 65vh);
  max-height: min(680px, 65dvh);
}

.lh-detail-gallery .lh-main-photo > img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  max-height: min(680px, 65vh);
  max-height: min(680px, 65dvh);
  object-fit: contain;
  object-position: center;
}

.lh-detail-gallery .lh-gallery-thumbnails {
  min-width: 0;
}

.lh-detail-gallery .lh-gallery-thumbnails img {
  object-fit: contain;
  object-position: center;
  background: #eaf0e5;
}
