/**
 * Studio motion: the states studio-motion.js moves elements between.
 *
 * Only elements the script tags get these classes, and only below the fold,
 * so a page without the script (or with reduced motion) never hides anything.
 */

.mk-motion .mk-m {
	--mk-m-ease: cubic-bezier(0.22, 0.61, 0.36, 1);
	opacity: 0;
	transition:
		opacity 0.8s var(--mk-m-ease) var(--mk-m-delay, 0ms),
		transform 0.95s var(--mk-m-ease) var(--mk-m-delay, 0ms);
}

.mk-motion .mk-m--rise {
	transform: translate3d(0, 22px, 0);
}

.mk-motion .mk-m--stagger {
	transform: translate3d(0, 34px, 0);
}

.mk-motion .mk-m--left {
	transform: translate3d(-36px, 0, 0);
}

.mk-motion .mk-m--right {
	transform: translate3d(36px, 0, 0);
}

.mk-motion .mk-m--zoom {
	transform: scale(1.06);
	transition:
		opacity 0.9s var(--mk-m-ease) var(--mk-m-delay, 0ms),
		transform 1.2s var(--mk-m-ease) var(--mk-m-delay, 0ms);
}

.mk-motion .mk-m.mk-m-in {
	opacity: 1;
}

/* Fade-only elements keep their own transform (tilted photos, offsets) throughout. */
.mk-motion .mk-m-in:not(.mk-m--fade) {
	transform: none;
}

@media (prefers-reduced-motion: reduce) {
	.mk-motion .mk-m {
		opacity: 1;
		transform: none;
		transition: none;
	}
}
