/* Center the pedal itself in each frame, preserving the original image files.
   Each frame is a size container. The image is scaled just enough to cover both
   sides of its focal point, so repositioning never exposes an empty edge. */
.product-photo {
  --photo-x: 50%;
  --photo-y: 50%;
  --photo-ratio: 1.5;
  --photo-cover-x: 1;
  --photo-cover-y: 1;
  --photo-rotation: 0deg;
  --photo-scale: 1;
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  min-width: 0;
  overflow: hidden;
  container-type: size;
}
.product-photo > img.product-photo__image {
  position: absolute;
  inset: auto;
  left: 50%;
  top: 50%;
  display: block;
  width: max(calc(100cqw * var(--photo-cover-x)), calc(100cqh * var(--photo-ratio) * var(--photo-cover-y)));
  height: auto;
  max-width: none;
  aspect-ratio: auto var(--photo-ratio);
  object-fit: fill;
  object-position: center;
  transform-origin: var(--photo-x) var(--photo-y);
  transform: translate(calc(-1 * var(--photo-x)), calc(-1 * var(--photo-y))) rotate(var(--photo-rotation)) scale(var(--photo-scale));
  mask-image: none;
}
.related-card > .product-photo { height: auto; align-self: stretch; }
.shop-cart__item .product-photo { width: 100%; height: auto; aspect-ratio: 1; border-radius: .4rem; }
.product-photo[data-photo="hat-man-01"] { --photo-x: 48.54167%; --photo-y: 55.31250%; --photo-ratio: 1.50000000; --photo-cover-x: 1.03004292; --photo-cover-y: 1.11888112; }
.product-photo[data-photo="hat-man-02"] { --photo-x: 52.50000%; --photo-y: 51.12500%; --photo-ratio: 1.50000000; --photo-cover-x: 1.05263158; --photo-cover-y: 1.02301790; }
.product-photo[data-photo="hat-man-03"] { --photo-x: 51.12500%; --photo-y: 50.43641%; --photo-ratio: 1.49625935; --photo-cover-x: 1.02301790; --photo-cover-y: 1.00880503; }
.product-photo[data-photo="hat-man-04"] { --photo-x: 49.25000%; --photo-y: 55.18750%; --photo-ratio: 1.50000000; --photo-cover-x: 1.01522843; --photo-cover-y: 1.11576011; }
/* Level the front shot around the pedal's centre; the small scale covers rotated edges. */
.product-photo[data-photo="wake-up-01"] { --photo-x: 50.25000%; --photo-y: 52.68750%; --photo-ratio: 1.50000000; --photo-cover-x: 1.00502513; --photo-cover-y: 1.05680317; --photo-rotation: -.65deg; --photo-scale: 1.02; }
.product-photo[data-photo="wake-up-02"] { --photo-x: 50.70833%; --photo-y: 50.00000%; --photo-ratio: 1.50000000; --photo-cover-x: 1.01437025; --photo-cover-y: 1.00000000; }
.product-photo[data-photo="wake-up-03"] { --photo-x: 50.41667%; --photo-y: 49.37500%; --photo-ratio: 1.50000000; --photo-cover-x: 1.00840336; --photo-cover-y: 1.01265823; }
.product-photo[data-photo="wake-up-04"] { --photo-x: 49.87500%; --photo-y: 56.56250%; --photo-ratio: 1.50000000; --photo-cover-x: 1.00250627; --photo-cover-y: 1.15107914; }
.product-photo[data-photo="poolrooms-01"] { --photo-x: 49.87500%; --photo-y: 47.18750%; --photo-ratio: 1.50000000; --photo-cover-x: 1.00250627; --photo-cover-y: 1.05960265; }
.product-photo[data-photo="poolrooms-02"] { --photo-x: 52.45833%; --photo-y: 49.50125%; --photo-ratio: 1.49625935; --photo-cover-x: 1.05170903; --photo-cover-y: 1.01007557; }
.product-photo[data-photo="poolrooms-03"] { --photo-x: 52.08333%; --photo-y: 51.43750%; --photo-ratio: 1.50000000; --photo-cover-x: 1.04347826; --photo-cover-y: 1.02960103; }
.product-photo[data-photo="poolrooms-04"] { --photo-x: 51.58333%; --photo-y: 57.54364%; --photo-ratio: 1.49625935; --photo-cover-x: 1.03270224; --photo-cover-y: 1.17767988; }
