/* Framing is opt-in. The photo keeps its layout box and its original source. */
img.cms-photo-crop {
  --photo-cut: calc(1 - 1 / var(--photo-zoom, 1));
  --photo-left: calc(var(--photo-x, 50%) * var(--photo-cut));
  --photo-top: calc(var(--photo-y, 50%) * var(--photo-cut));
  --photo-right: calc((100% - var(--photo-x, 50%)) * var(--photo-cut));
  --photo-bottom: calc((100% - var(--photo-y, 50%)) * var(--photo-cut));
  --photo-window: inset(var(--photo-top) var(--photo-right) var(--photo-bottom) var(--photo-left));
  object-view-box: var(--photo-window);
}
@supports not (object-view-box: inset(1%)) {
  img.cms-photo-crop {
    scale: var(--photo-zoom, 1);
    transform-origin: var(--photo-x, 50%) var(--photo-y, 50%);
    clip-path: var(--photo-window);
  }
}
