/* Display native photo detail honestly instead of stretching small images to fill a stage. */
.product-detail-top .main-product-photo{display:grid;place-items:center;min-height:360px;padding:16px!important;background:#fff}
.product-detail-top .main-product-photo img{display:block;width:auto!important;height:auto!important;max-width:100%!important;max-height:440px;object-fit:contain;margin:auto}
#product-photo-dialog{width:fit-content;max-width:94vw;max-height:94dvh;overflow:auto;padding:22px;background:#fff}
#product-photo-dialog img{display:block;width:auto!important;height:auto!important;max-width:min(88vw,920px)!important;max-height:76dvh;object-fit:contain;margin:16px auto 0}
.photo-thumbnail{display:grid;place-items:center;background:#fff}
@media(max-width:760px){.product-detail-top .main-product-photo{min-height:300px;padding:12px!important}.product-detail-top .main-product-photo img{max-height:350px}#product-photo-dialog{padding:15px}#product-photo-dialog img{max-width:86vw!important;max-height:72dvh}}

/* Only source-verified high-resolution photographs receive the larger stage. */
.parameter-led .photo-verified-highres .main-product-photo img{max-width:min(100%,520px)!important;max-height:390px!important}
@media(max-width:760px){.parameter-led .photo-verified-highres .main-product-photo img{max-height:300px!important}}
