/* Product photos preserve their proportions and never stretch to the text column height. */
.sf-detail{grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:start}
.sf-product-gallery{min-width:0;padding:16px;align-self:start}
.sf-product-gallery .sf-detail-image{display:flex;align-items:center;justify-content:center;width:100%;height:clamp(240px,35vw,440px);min-height:0;max-height:440px;padding:12px;box-sizing:border-box;background:#fff;overflow:hidden;border-radius:10px}
.sf-product-gallery .sf-detail-image>a{display:flex;align-items:center;justify-content:center;width:100%;height:100%;min-width:0}
.sf-product-gallery .sf-detail-image img{display:block;width:auto!important;height:auto!important;max-width:100%!important;max-height:100%!important;object-fit:contain!important;object-position:center;position:static;transform:none;aspect-ratio:auto}
.sf-gallery-thumbs{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}
.sf-gallery-thumbs>a{display:flex;align-items:center;justify-content:center;width:66px;height:66px;padding:4px;box-sizing:border-box;border:1px solid #ddd;border-radius:6px;background:#fff}
.sf-gallery-thumbs img{display:block;width:auto;height:auto;max-width:100%;max-height:100%;object-fit:contain}
.sf-gallery-hint{display:block;margin-top:6px;color:#667061;font-size:11px}
@media(max-width:700px){.sf-detail{grid-template-columns:minmax(0,1fr)}.sf-product-gallery{padding:10px}.sf-product-gallery .sf-detail-image{height:280px;max-height:45vh}}
