.fame-hero-carousel {
	position: relative;
	--fame-hero-wide-size: 1340px;
	--fame-hero-content-edge: max(34px, calc((100vw - var(--fame-hero-wide-size)) / 2));
	min-height: 85vh;
	overflow: hidden;
	background: #151515;
	color: #fff;
}

.fame-hero-carousel *,
.fame-hero-carousel *::before,
.fame-hero-carousel *::after {
	box-sizing: border-box;
}

.fame-hero-carousel__slides {
	position: absolute;
	inset: 0;
}

.fame-hero-carousel__slide {
	opacity: 0;
	visibility: hidden;
	position: absolute;
	display: flex;
	align-items: center;
	inset: 0;
	z-index: 1;
	transition:
		opacity 800ms ease,
		visibility 0s linear 800ms;
}

.fame-hero-carousel__slide.is-active {
	opacity: 1;
	visibility: visible;
	z-index: 2;
	transition:
		opacity 800ms ease,
		visibility 0s linear 0s;
}

.fame-hero-carousel__slide::after,
.fame-hero-carousel.is-editor::after {
	content: "";
	position: absolute;
	inset: -28px;
	pointer-events: none;
	z-index: 1;
	filter: blur(14px);
	background:
		radial-gradient(ellipse at 6% 64%, rgba(0, 0, 0, 0.84) 0%, rgba(0, 0, 0, 0.7) 20%, rgba(0, 0, 0, 0.48) 38%, rgba(0, 0, 0, 0.24) 56%, rgba(0, 0, 0, 0.09) 72%, rgba(0, 0, 0, 0) 86%),
		linear-gradient(90deg, rgba(0, 0, 0, 0.64) 0%, rgba(0, 0, 0, 0.46) 22%, rgba(0, 0, 0, 0.24) 42%, rgba(0, 0, 0, 0.08) 58%, rgba(0, 0, 0, 0) 72%);
}

.fame-hero-carousel__image {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	min-height: 85vh;
	display: block;
	object-fit: cover;
	object-position: center center;
	will-change: transform;
	animation: fameHeroCarouselImageMove 18s ease-out forwards;
	animation-play-state: paused;
}

.fame-hero-carousel__slide.is-active .fame-hero-carousel__image {
	animation-play-state: running;
}

.fame-hero-carousel__content {
	position: relative;
	z-index: 2;
	width: min(560px, calc(100% - 40px));
	margin-left: var(--fame-hero-content-edge);
	margin-right: var(--fame-hero-content-edge);
	display: flex;
	flex-direction: column;
}

.fame-hero-carousel__content h1,
.fame-hero-carousel__content h2 {
	margin: 0 0 22px;
	color: inherit;
	font-size: var(--wp--preset--font-size--xxx-large);
	line-height: 0.95;
	font-weight: 700;
	letter-spacing: 1px;
}

.fame-hero-carousel__content p {
	margin: 0 0 18px;
	color: inherit;
	font-size: var(--wp--preset--font-size--medium);
	line-height: 1.35;
}

.fame-hero-carousel__eyebrow {
	max-width: 430px;
}

.fame-hero-carousel__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 42px;
	padding: 18px 22px 19px;
	border-radius: 2px;
	background: #ed0202;
	color: #fff;
	font-size: var(--wp--preset--font-size--medium);
	font-weight: 600;
	line-height: 1;
	text-decoration: none;
	max-width: fit-content;
	transition:
		background-color 180ms ease,
		border-color 180ms ease,
		box-shadow 180ms ease,
		color 180ms ease;
}

.fame-hero-carousel__button:hover,
.fame-hero-carousel__button:focus-visible {
	background: color-mix(in srgb, #409 86%, #fff);
	color: #fff !important;
}

.fame-hero-carousel__slide .fame-hero-content > * {
	opacity: 0;
	transform: translate3d(0, 22px, 0);
	animation: none;
	will-change: opacity, transform;
	transition: opacity 500ms ease, transform 500ms ease;
}

.fame-hero-carousel__slide.is-active .fame-hero-content > * {
	animation: fameHeroTextIn 850ms ease-out forwards;
}

.fame-hero-carousel__slide.is-active .fame-hero-content > *:nth-child(1) {
	animation-delay: 250ms;
}

.fame-hero-carousel__slide.is-active .fame-hero-content > *:nth-child(2) {
	animation-delay: 400ms;
}

.fame-hero-carousel__slide.is-active .fame-hero-content > *:nth-child(3) {
	animation-delay: 550ms;
}

.fame-hero-carousel__slide.is-active .fame-hero-content > *:nth-child(4) {
	animation-delay: 700ms;
}

.fame-hero-carousel__dots {
	position: absolute;
	z-index: 3;
	left: var(--fame-hero-content-edge);
	bottom: clamp(34px, 8vh, 92px);
	display: flex;
	gap: 18px;
}

.fame-hero-carousel__dot {
	width: 14px;
	height: 14px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.35);
	cursor: pointer;
}

.fame-hero-carousel__dot.is-active {
	background: #fff;
}

@keyframes fameHeroCarouselImageMove {

	from {
		transform: scale(1.16) translate3d(-2%, 2%, 0);
	}

	to {
		transform: scale(1.02) translate3d(1.5%, -1%, 0);
	}
}

@keyframes fameHeroTextIn {

	from {
		opacity: 0;
		transform: translate3d(0, 22px, 0);
	}

	to {
		opacity: 1;
		transform: translate3d(0, 0, 0);
	}
}

@media (max-width: 700px) {

	.fame-hero-carousel {
		--fame-hero-content-edge: 24px;
	}

	.fame-hero-carousel__content {
		width: min(440px, calc(100% - 32px));
	}

	.fame-hero-carousel__dots {
		bottom: 38px;
	}
}

@media (prefers-reduced-motion: reduce) {

	.fame-hero-carousel__slide,
	.fame-hero-carousel__image,
	.fame-hero-carousel__slide .fame-hero-content > * {
		transition: none;
		animation: none;
	}

	.fame-hero-carousel__slide .fame-hero-content > * {
		opacity: 1;
		transform: none;
	}
}
