/* Identical framing in the shop and product editor, without modifying originals. */
[data-photo-frame]{position:relative;overflow:hidden}
[data-photo-frame]>img{position:absolute;inset:0;width:100%;height:100%;max-width:100%;padding:4%;object-fit:contain;object-position:center;box-sizing:border-box}
[data-photo-frame].photo-framed>img{inset:auto;width:var(--photo-width);height:var(--photo-height);left:var(--photo-left);top:var(--photo-top);max-width:none;padding:0;object-fit:fill;transform:none;transition:none}
.product:hover [data-photo-frame].photo-framed>img{transform:none}
