/* Product photos must remain complete; the single-photo case spans the gallery. */
.detail .gallery{grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;align-self:start;min-width:0;background:#fff}
.detail .gallery img{display:block;width:100%;height:260px;min-width:0;margin:0;object-fit:contain;object-position:center center;background:#fff}
.detail .gallery img:first-child{grid-column:1 / -1;grid-row:auto;height:clamp(280px,42vw,620px)}
.detail .gallery img:only-child{grid-column:1 / -1;grid-row:auto}
.detail .offer-box dd{overflow-wrap:anywhere}
@media(max-width:700px){.detail .gallery{gap:10px;padding:10px}.detail .gallery img{height:160px}.detail .gallery img:first-child{height:clamp(220px,65vw,420px)}}
