/* KlawoShop 0.6.22 — prevents portrait product images from overflowing
   the square product-card stage. Separate file: compatible with both
   original 0.6.22 and the earlier lightbox centering hotfix. */
.product-detail .klw-gallery .detail-visual > .klw-gallery-main {
  position:absolute;
  inset:0;
  box-sizing:border-box;
  width:100%;
  height:100%;
  min-width:0;
  min-height:0;
  margin:0;
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
}
.product-detail .klw-gallery .detail-visual > .klw-gallery-main > img[data-gallery-main] {
  display:block;
  flex:none;
  width:auto;
  height:auto;
  min-width:0;
  min-height:0;
  max-width:100%;
  max-height:100%;
  object-fit:contain;
  object-position:center center;
  transform:none;
}
.product-detail .klw-gallery .detail-visual > .klw-gallery-main:hover > img[data-gallery-main] {
  transform:none;
}
