picture.sbv-photo-picture { display: contents; }
.pdp-main-photo > a.sbv-photo-original {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  cursor: zoom-in;
}
/* Layered important size constraints take precedence over the native catalog's
   unlayered important 100% rule, including thumbnails on high-density screens. */
@layer sbv-photo-native-size {
  body#main img[data-sbv-photo-frame] {
    width: auto !important;
    height: auto !important;
    max-width: min(100%, calc(var(--sbv-photo-width) / var(--sbv-photo-density, 1))) !important;
    max-height: min(100%, calc(var(--sbv-photo-height) / var(--sbv-photo-density, 1))) !important;
    object-fit: scale-down !important;
    padding: 0 !important;
  }
}
