@media (prefers-reduced-motion: no-preference) {
    .lp-button {
        transition: background-color var(--lp-transition) ease, scale var(--lp-transition) var(--lp-card-ease);
    }

    .lp-button:active {
        scale: var(--lp-button-press-scale);
    }

    @supports (animation-timeline: view()) {
        .lp-collaboration-photo {
            view-timeline-name: --lp-collaboration;
            view-timeline-axis: block;
        }

        .lp-collaboration-photo img {
            animation: lp-photo-drift linear both;
            animation-duration: auto;
            animation-timeline: --lp-collaboration;
            animation-range: entry 0% exit 100%;
        }

        .lp-screen-stack {
            view-timeline-name: --lp-download-stack;
            view-timeline-axis: block;
        }

        .lp-screen-stack .lp-screen-image {
            animation-duration: auto;
            animation-timing-function: linear;
            animation-fill-mode: both;
            animation-timeline: --lp-download-stack;
            animation-range: entry 0% cover var(--lp-stack-settle-end);
        }

        .lp-screen-image--back {
            animation-name: lp-stack-open-back;
        }

        .lp-screen-image--front {
            animation-name: lp-stack-open-front;
        }
    }
}

@keyframes lp-photo-drift {
    from {
        transform: translateY(var(--lp-photo-drift)) scale(var(--lp-photo-depth-scale));
    }

    to {
        transform: translateY(calc(-1 * var(--lp-photo-drift))) scale(var(--lp-photo-depth-scale));
    }
}

@keyframes lp-stack-open-back {
    from {
        translate: var(--lp-stack-spread) 0;
        rotate: var(--lp-stack-opening-angle);
    }

    to {
        translate: 0 0;
        rotate: 0deg;
    }
}

@keyframes lp-stack-open-front {
    from {
        translate: calc(-1 * var(--lp-stack-spread)) 0;
        rotate: calc(-1 * var(--lp-stack-opening-angle));
    }

    to {
        translate: 0 0;
        rotate: 0deg;
    }
}
