/* Home slider shell only: track, arrows, dots, loader.
   The video, overlays, title and controls are the shared player and live in
   post-hero.css. */

:root {
	--amcn-container-width: 1370px;
	--amcn-container-gutter: 0px;

	--amcn-video-crop-zoom: 1.2;

	--amcn-header-height: 102px;
}

.amcn-hero-slider {
	--amcn-accent: #e8492c;
	--amcn-transition-speed: .65s;

	position: relative;
	width: 100%;
	height: 100vh;
	min-height: 560px;
	overflow: hidden;
	background: #000;
	color: #fff;
	isolation: isolate;
}

.amcn-hero-loader {
	position: absolute;
	inset: 0;
	z-index: 50;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #000;
	opacity: 1;
	transition: opacity .5s ease;
}

.amcn-hero-loader.is-hidden {
	opacity: 0;
	pointer-events: none;
}

.amcn-hero-loader__logo-wrap {
	position: relative;
	width: clamp(140px, 16vw, 220px);
}

.amcn-hero-loader__logo {
	display: block;
	width: 100%;
	height: auto;
}

.amcn-hero-loader__logo--base {
	opacity: .22;
}

.amcn-hero-loader__logo--fill {
	position: absolute;
	inset: 0;
	opacity: 1;
	clip-path: inset( 0 100% 0 0 );
	transition: clip-path .35s ease;
}

.amcn-hero-loader.is-complete .amcn-hero-loader__logo--fill {
	clip-path: inset( 0 0 0 0 );
}

.amcn-hero-slider__track {
	position: relative;
	width: 100%;
	height: 100%;
}

.amcn-hero-slide {
	position: absolute;
	inset: 0;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 1s ease;
	z-index: 1;
}

.amcn-hero-slide.is-active {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	z-index: 2;
}

.amcn-post-hero__content /* Only the title links to the post; the rest of the slide plays the piece. */
.amcn-hero-slide__link {
	pointer-events: auto;
}

.amcn-hero-slide__link {
	color: inherit;
	text-decoration: none;
	display: inline-block;
	position: relative;
	transition: opacity .25s ease;
}

.amcn-hero-slide__link::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: -.08em;
	height: 2px;
	background: currentColor;
	transform: scaleX(0);
	transform-origin: left;
	transition: transform .35s cubic-bezier(.22, .61, .36, 1);
}

.amcn-hero-slide__link:hover::after,
.amcn-hero-slide__link:focus-visible::after {
	transform: scaleX(1);
}

.amcn-hero-slider__arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 44px;
	height: 44px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: transparent;
	border: none;
	color: #fff;
	opacity: .55;
	cursor: pointer;
	z-index: 6;
	transition: opacity .25s ease, transform .25s ease;
}

.amcn-hero-slider__arrow:hover {
	opacity: 1;
}

.amcn-hero-slider__arrow--prev {
	left: clamp(8px, 2vw, 28px);
}

.amcn-hero-slider__arrow--next {
	right: clamp(8px, 2vw, 28px);
}

.amcn-hero-slider__dots {
	position: absolute;
	left: 50%;
	bottom: 40px;
	transform: translateX(-50%);
	display: flex;
	align-items: center;
	gap: 10px;
	z-index: 6;
}

.amcn-hero-slider__dot {
	width: 26px;
	height: 2px;
	background: rgba(255, 255, 255, .35);
	border: none;
	padding: 0;
	cursor: pointer;
	transition: background .3s ease, width .3s ease;
}

.amcn-hero-slider__dot.is-active {
	background: var(--amcn-accent);
	width: 32px;
}

.amcn-hero-transition-overlay {
	position: absolute;
	inset: 0;
	z-index: 10;
	background: #000;
	opacity: 0;
	pointer-events: none;
	transition: opacity var(--amcn-transition-speed) ease, backdrop-filter var(--amcn-transition-speed) ease;
}

.amcn-hero-slider.is-transitioning {
	pointer-events: none;
}

.amcn-hero-slider.is-transitioning .amcn-hero-slide.is-active .amcn-post-hero-video {
	filter: blur(26px);
	transform: scale(calc(1.12 * var(--amcn-video-crop-zoom, 1)));
}

.amcn-hero-slider.is-transitioning .amcn-hero-slide.is-active .amcn-post-hero__content {
	transition: opacity .35s ease;
	opacity: 0;
}

.amcn-hero-slider.is-transitioning .amcn-hero-transition-overlay {
	opacity: .92;
	backdrop-filter: blur(18px);
	-webkit-backdrop-filter: blur(18px);
}

@media (max-width: 768px) {
	.amcn-hero-slider {
		height: 100vh;
		--amcn-container-gutter: 20px;
	}
	.amcn-hero-slider__dots {
		bottom: 14px;
	}
	.amcn-hero-slider__arrow {
		width: 36px;
		height: 36px;
	}
}
