/* SHENYO V5.12 — square product images without reserved single-photo thumbnail rail. */
@media (min-width:791px){
  .modalphoto.product-gallery.gallery-single{grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr);gap:0}
  .product-gallery.gallery-single .gallery-stage{grid-column:1;grid-row:1}
  .modalphoto.product-gallery{background:#fff}
  .product-gallery .gallery-stage{width:min(100%,calc(90vh - 54px));max-width:100%;max-height:calc(90vh - 54px);aspect-ratio:1/1;height:auto;min-height:0;place-self:center;overflow:hidden}
  .product-gallery .gallery-primary{display:block;width:100%;height:100%;max-height:none;min-height:0;aspect-ratio:1/1;object-fit:contain;object-position:center}
}
@media (max-width:790px){
  .modalphoto.product-gallery{background:#fff}
  .product-gallery .gallery-stage{width:100%;max-width:540px;height:auto;min-height:0;aspect-ratio:1/1;align-self:center}
  .product-gallery .gallery-primary{width:100%;height:100%;min-height:0;aspect-ratio:1/1;object-fit:contain}
}
@media(max-width:480px){.product-gallery .gallery-stage{max-width:100%}.modalphoto.product-gallery{padding:7px}}
/* Keep bulk ordering action near purchasing controls; form belongs after product details. */
.modalcopy .bulk-quote-prompt{margin:18px 0 26px}
.modalcopy .bulk-quote-end{margin-top:32px;padding-top:25px;border-top:1px solid #e6e6e6}
.bulk-quote-end .quote-form{scroll-margin-top:22px}
.bulk-quote-end .quote-form h3{font-size:18px;margin:0 0 12px}
