/*
 * Home slider (assets/js/hero.js). Positions/sizes are set by JS from the 1920×950 grid; here only
 * what Revolution's inline styles did: background "cover" at 50% 0%, layers absolute, intro animations.
 */
.ih-hero-wrapper { overflow: hidden; }
.ih-hero-slide { overflow: hidden; }
.ih-hero-bg {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: 50% 0%;
	background-repeat: no-repeat;
}
.ih-hero-layer { position: absolute; white-space: nowrap; }
.ih-hero-caption { font-family: inherit; }

/* Intro: "sfl" (short from left, split chars) for captions, fade for the rect layer. */
.ih-hero-caption .ih-char {
	display: inline-block;
	opacity: 0;
	transform: translateX(-50px);
	transition: opacity 300ms cubic-bezier(0.645, 0.045, 0.355, 1), transform 300ms cubic-bezier(0.645, 0.045, 0.355, 1);
}
.ih-hero-caption.ih-in .ih-char { opacity: 1; transform: none; }
.ih-hero-rect { opacity: 0; transition: opacity 300ms ease-in-out; }
.ih-hero-rect.ih-in { opacity: 1; }

/* Arrows (revslider preview4), shown on hover like live's "hidearrows". */
.ih-hero-arrow { position: absolute; z-index: 100; cursor: pointer; opacity: 0; transition: opacity 0.2s ease-out; }
.ih-hero-arrow.tp-leftarrow { left: 0; }
.ih-hero-arrow.tp-rightarrow { right: 0; }
.ih-hover .ih-hero-arrow { opacity: 1; }

/*
 * Arrow thumbnail (preview4 hover, as Revolution 4.6 does it with TweenLite, Power3.easeOut):
 *  enter: wrapper autoAlpha 0→1 in 0.2s; inner slides in from ±its width in 0.4s after 0.3s
 *  leave: inner slides out in 0.4s after 0.2s; wrapper fades out in 0.2s after 0.6s
 * Vendor settings.css keeps the sizes, the "Slide" title flip and hides the thumbnail below 768px.
 */
.ih-hero-arrow .tp-arr-allwrapper {
	opacity: 0;
	transition: opacity 200ms linear 600ms, visibility 0s linear 800ms;
}
.ih-hero-arrow.ih-arr-on .tp-arr-allwrapper {
	visibility: visible;
	opacity: 1;
	transition: opacity 200ms linear, visibility 0s;
}
.ih-hero-arrow .tp-arr-iwrapper { transition: transform 400ms cubic-bezier(0.215, 0.61, 0.355, 1) 200ms; }
.ih-hero-arrow.tp-rightarrow .tp-arr-iwrapper { transform: translateX(100%); }
.ih-hero-arrow.tp-leftarrow .tp-arr-iwrapper { transform: translateX(-100%); }
.ih-hero-arrow.ih-arr-on .tp-arr-iwrapper { transform: none; transition-delay: 300ms; }

@media (prefers-reduced-motion: reduce) {
	.ih-hero-caption .ih-char, .ih-hero-rect { transition: none; }
}
