/* Product photography: retain source detail without enlarging or cropping. */
.catalog-photo:not(.supplied-photo){display:flex;align-items:center;justify-content:center;}
.catalog-photo:not(.supplied-photo) img{display:block;width:auto;height:auto;max-width:100%;max-height:100%;object-fit:contain;object-position:center;}
.detail-photo:not(.flat-source-photo){display:flex;align-items:center;justify-content:center;}
.detail-photo:not(.flat-source-photo) img{position:static;display:block;width:auto;height:auto;max-width:100%;max-height:430px;object-fit:contain;object-position:center;}

/* White, borderless photo presentation. */
.catalog-photo:not(.supplied-photo),.detail-photo{background:#fff;border:0;box-shadow:none;}
.detail-photo:not(.flat-source-photo){padding:0;}

/* Larger supplied originals, sized within the page rather than stretched. */
.detail-photo img{width:100%;height:auto;max-width:100%;max-height:430px;object-fit:contain;}
.supplied-material-photo{background:#fff!important;border:0!important;padding:0!important;box-shadow:none!important;}
.supplied-material-photo img{display:block;width:100%;height:auto;max-height:430px;object-fit:contain;}

.detail-photo:not(.flat-source-photo) img[src*="-original.webp"]{width:100%;height:auto;max-width:100%;max-height:430px;object-fit:contain;}

/* Small catalog previews; larger photographs inside detail pages. */
.catalog-photo:not(.supplied-photo) img{width:auto;height:auto;max-width:min(100%,240px);max-height:210px;object-fit:contain;}
.material-visual{overflow:hidden;}
.material-visual img{display:block;width:100%!important;height:100%!important;max-width:235px;max-height:160px;object-fit:contain!important;}
.material-detail-intro.has-supplied-photo{grid-template-columns:minmax(0,1fr) minmax(0,1.1fr);gap:48px;}
.has-supplied-photo .supplied-material-photo{width:100%;max-width:none;min-height:0;}
.has-supplied-photo .supplied-material-photo img{width:100%;height:auto;max-height:430px;object-fit:contain;}
@media(max-width:700px){.material-detail-intro.has-supplied-photo{grid-template-columns:1fr;gap:24px;}.has-supplied-photo .supplied-material-photo{max-width:none;}}
