/* Front-end clipping exists only after the behavior enhances an image. */
.l1t-prose .wp-block-image.is-style-l1t-parallax {
  /* Increase for stronger motion; the viewport becomes shorter automatically. */
  --l1t-parallax-travel: 24%;
  display: block;
}
.l1t-prose .l1t-parallax__frame {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 2.63;
  max-height: 70svh;
}
.l1t-prose .l1t-parallax__frame img {
  position: absolute;
  inset: 50% 0 auto;
  width: 100% !important;
  max-width: none;
  height: auto !important;
  aspect-ratio: auto !important;
  transform: translate3d(0, calc(-50% + var(--l1t-parallax-offset, 0px)), 0);
}
.l1t-parallax__frame[data-parallax-active] img { will-change: transform; }
.l1t-parallax__frame > a { display: block; position: absolute; inset: 0; }
/* Keep the original framing and native selection/resize controls in the editor. */
.l1t-prose--editor .wp-block-image.is-style-l1t-parallax img {
  width: 100%;
  height: auto;
}
.l1t-prose--editor .wp-block-image.is-style-l1t-parallax::after {
  content: 'Parallax';
  display: block;
  color: #a1a1a1;
  font-size: .75rem;
  text-align: end;
}
@media (prefers-reduced-motion: reduce) {
  .l1t-prose .l1t-parallax__frame img { transform: translateY(-50%); will-change: auto; }
}
