/* Image parallax, driven by assets/js/parallax.js. The image is scaled
   by (1 + 2 x strength) so it always covers its frame, then moved up to
   strength x its height in either direction. Without JS, or with
   reduced motion, the has-parallax class is never added and images sit
   still. */

.has-parallax {
  overflow: hidden;
}

.has-parallax img {
  scale: calc(1 + 2 * var(--theme-parallax-strength, 0));
  translate: 0 calc(var(--theme-parallax-progress, 0) * var(--theme-parallax-strength, 0) * 100%);
  will-change: translate;
}
