/* Fit the visible cutout inside a common frame, using the unmodified source photo. */
.photo-fit {
  position:absolute;
  inset:10% 8%;
  display:block;
}
.photo-fit > .fit-product-image {
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:contain;
}

@supports (width:1cqw) {
  .photo-fit { container-type:size; }
  .photo-fit > .fit-product-image {
    inset:50% auto auto 50%;
    width:min(calc(var(--fit-w) * 1cqw), calc(var(--fit-h) * 1cqh));
    height:auto;
    max-width:none;
    transform:translate(var(--fit-x),var(--fit-y));
  }
}

.detail-photo .photo-fit { inset:9% 8%; }
.cart-line-photo { height:77px; }
.cart-suggestion-photo .photo-fit,
.cart-line-photo .photo-fit { inset:10%; }

.category-visual {
  position:absolute;
  display:block;
  right:1%;
  bottom:0;
  width:min(56%, 178px);
  height:87%;
  z-index:-1;
}
.category-visual .photo-fit { inset:4% 2%; }

@media(max-width:520px) {
  .cart-line-photo { height:62px; }
  .category-visual { width:min(68%, 126px); height:72%; }
}
