/* /htdocs/assets/css/pcg-motion.css
   ---------------------------------------------------------------------------
   Motion layer: smooth image parallax for the public site.

   Works alongside assets/js/pcg-motion.js. The script tags eligible images
   with [data-pcg-parallax] and applies the transforms; this file only owns
   the smoothing-friendly defaults.
   --------------------------------------------------------------------------- */

[data-pcg-parallax] {
    will-change: transform;
    backface-visibility: hidden;
}

[data-pcg-parallax-frame] {
    overflow: hidden;
}

/* Opt-out hook: anything marked with data-pcg-parallax="off" keeps its
   natural, un-drifted layout. */
[data-pcg-parallax="off"] img {
    will-change: auto;
    transform: none !important;
}

@media (prefers-reduced-motion: reduce) {
    [data-pcg-parallax] {
        transform: none !important;
        will-change: auto;
    }
}
