/* Full-width image cells with balanced product framing. */
.product-content .l1-gallery {
  width:100%;
  max-width:1000px;
  margin:48px auto;
  gap:22px;
  grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr);
}
.product-content .l1-gallery .img-card {
  height:clamp(300px,30vw,360px);
  min-height:0;
}
.product-content .l1-gallery .image-detail {
  display:grid;
  grid-template-columns:minmax(0,1fr);
  grid-template-rows:minmax(0,1fr) auto;
  justify-content:stretch;
  justify-items:stretch;
  align-items:stretch;
  width:100%;
  height:100%;
  min-width:0;
  min-height:0;
  gap:14px;
  padding:20px 22px 16px;
}
.product-content .l1-gallery .media-viewport { min-width:0; width:100%; height:100%; }
.product-content .l1-gallery .image-detail-label { justify-self:end; }
.product-content .l1-gallery .media-viewport img {
  inset:0;
  width:100%;
  height:100%;
  max-width:100%;
  max-height:100%;
  object-fit:contain;
  object-position:center;
  transform:none;
}
.product-content .l1-gallery .detail-l1 .media-viewport img {
  inset:50% auto auto 50.7%;
  width:auto;
  height:112%;
  max-width:none;
  max-height:none;
  transform:translate(-50%,-50%);
}
@media(max-width:600px) {
  .product-content .l1-gallery { grid-template-columns:1fr; max-width:420px; margin:36px auto; gap:16px; }
  .product-content .l1-gallery .img-card { height:300px; }
  .product-content .l1-gallery .image-detail { padding:18px 20px 14px; }
}
