/* Virage Auto v2.21.8 — adaptive LARGE gallery inside an individual part listing.
   Landscape / nearly-square photos retain the previous v2.21.7 gallery size.
   Portrait photos use the SAME column width and grow downwards, never crop.
   Deliberately excluded: donor gallery, catalog grid, featured, list thumbnails,
   administration/media galleries. */
.detail-layout > section { min-width: 0; }
.detail-layout .gallery-main.gallery-portrait {
  height: auto;
  min-height: 0;
}
.detail-layout .gallery-main.gallery-portrait .live-photo-gallery {
  height: auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.detail-layout .gallery-main.gallery-portrait .live-gallery-feature {
  flex: 0 0 auto;
  width: 100%;
  height: auto;
  max-height: min(88svh, 860px);
  object-fit: contain;
  object-position: center center;
  display: block;
}
.detail-layout .gallery-main.gallery-portrait .live-gallery-thumbs {
  flex: 0 0 85px;
  height: 85px;
}
@media (max-width: 760px) {
  .detail-layout .gallery-main.gallery-portrait .live-gallery-thumbs {
    flex-basis: 70px;
    height: 70px;
  }
}
