/*
 * Corevo Animate Blocks — Frontend Animation CSS
 *
 * Self-contained. Works with any theme.
 * Duration and delay overrides are written as concrete inline CSS properties
 * by the plugin PHP, so no custom properties are needed here.
 */

[data-animate] {
	opacity: 0;
	transform: translateY(16px);
	transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-animate].is-visible {
	opacity: 1;
	transform: none;
}

/* Direction variants — fade-up is the default above. */
[data-animate="fade-down"]  { transform: translateY(-16px); }
[data-animate="fade-left"]  { transform: translateX(16px);  }
[data-animate="fade-right"] { transform: translateX(-16px); }
[data-animate="fade"]       { transform: none; }

@media (prefers-reduced-motion: reduce) {
	[data-animate] {
		opacity: 1;
		transform: none;
		transition: none;
	}
}
