/* Content images are wrapped in <picture> (WebP source); the wrapper must not change layout.
   Re-states the "> img" gallery-bounds rules for the extra level. */
.refined-gallery__main picture { display: contents; }

.refined-gallery__main picture > img {
    display: block;
    width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 0;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center;
    outline: 0;
}

.classic-approved-page .refined-product--classic-polished .refined-gallery__main picture > img {
    padding: clamp(.65rem, 1.6vw, 1.25rem);
}
