/**
 * Scroll-triggered fade + slide for stacked page sections.
 *
 * @package V9i_Pump
 */

/* Anchor targets clear the sticky header when using in-page / hash links */
.scroll-reveal[id^='section-'] {
	scroll-margin-top: 6.5rem;
}

.admin-bar .scroll-reveal[id^='section-'] {
	scroll-margin-top: 8.5rem;
}

@media screen and (max-width: 782px) {
	.admin-bar .scroll-reveal[id^='section-'] {
		scroll-margin-top: 9.5rem;
	}
}

.scroll-reveal {
	width: 100%;
	min-width: 0;
	opacity: 0;
	transform: translate3d(0, 32px, 0);
	transition:
		opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1),
		transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
}

.scroll-reveal--static,
.scroll-reveal.is-visible {
	opacity: 1;
	transform: translate3d(0, 0, 0);
}

.scroll-reveal--static {
	transition: none;
}

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