/**
 * Hero slideshow — full-bleed cinematic carousel.
 */

.ld-sc-hero-slideshow {
	--ld-sc-hs-height: min(72vh, 720px);
	--ld-sc-hs-overlay-color: #000000;
	--ld-sc-hs-overlay: linear-gradient(
		to top,
		color-mix(in srgb, var(--ld-sc-hs-overlay-color) 92%, transparent) 0%,
		color-mix(in srgb, var(--ld-sc-hs-overlay-color) 55%, transparent) 42%,
		color-mix(in srgb, var(--ld-sc-hs-overlay-color) 15%, transparent) 70%,
		transparent 100%
	);
	--ld-sc-hs-content-pad: clamp(20px, 4vw, 48px);
	--ld-sc-hs-title-color: #ffffff;
	--ld-sc-hs-subtitle-color: rgba(255, 255, 255, 0.88);
	--ld-sc-hs-btn-primary-bg: #ffffff;
	--ld-sc-hs-btn-primary-color: #111111;
	--ld-sc-hs-btn-secondary-bg: rgba(40, 40, 40, 0.72);
	--ld-sc-hs-btn-secondary-color: #ffffff;
	--ld-sc-hs-chrome-bg: rgba(28, 28, 28, 0.72);
	--ld-sc-hs-chrome-color: #ffffff;
	position: relative;
	width: 100%;
	isolation: isolate;
	outline: none;
	color: #fff;
}

.ld-sc-hero-slideshow__empty {
	display: grid;
	place-items: center;
	min-height: 280px;
	padding: 32px;
	background: #1a1a1a;
	border: 1px dashed rgba(255, 255, 255, 0.2);
	color: rgba(255, 255, 255, 0.7);
	text-align: center;
}

.ld-sc-hero-slideshow__viewport {
	position: relative;
	overflow: hidden;
	height: var(--ld-sc-hs-height);
	min-height: 360px;
	background: #0d0d0d;
}

.ld-sc-hero-slideshow__track {
	position: relative;
	width: 100%;
	height: 100%;
}

.ld-sc-hero-slideshow--slide .ld-sc-hero-slideshow__track {
	display: flex;
	height: 100%;
	transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
	will-change: transform;
}

.ld-sc-hero-slideshow--slide .ld-sc-hero-slideshow__slide {
	position: relative;
	flex: 0 0 100%;
	width: 100%;
	height: 100%;
	opacity: 1;
	visibility: visible;
}

.ld-sc-hero-slideshow--fade .ld-sc-hero-slideshow__slide {
	position: absolute;
	inset: 0;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.55s ease, visibility 0.55s ease;
	pointer-events: none;
}

.ld-sc-hero-slideshow--fade .ld-sc-hero-slideshow__slide.is-active {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	z-index: 1;
}

.ld-sc-hero-slideshow__media {
	position: absolute;
	inset: 0;
	overflow: hidden;
}

.ld-sc-hero-slideshow__image,
.ld-sc-hero-slideshow__video,
.ld-sc-hero-slideshow__poster,
.ld-sc-hero-slideshow__youtube {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	display: block;
}

.ld-sc-hero-slideshow__video {
	position: absolute;
	inset: 0;
	pointer-events: none;
}

.ld-sc-hero-slideshow__youtube {
	position: absolute;
	inset: 0;
	overflow: hidden;
	pointer-events: none;
	z-index: 0;
}

.ld-sc-hero-slideshow__youtube iframe,
.ld-sc-hero-slideshow__youtube-mount {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 100vw;
	height: 56.25vw;
	min-height: 100%;
	min-width: 177.78%;
	transform: translate(-50%, -50%);
	border: 0;
	pointer-events: none !important;
}

.ld-sc-hero-slideshow__tap {
	position: absolute;
	inset: 0;
	z-index: 3;
	margin: 0;
	padding: 0;
	border: 0 !important;
	border-radius: 0 !important;
	/* Nearly opaque to hit-tests: fully transparent layers often let clicks through to iframes. */
	background: rgba(0, 0, 0, 0.002) !important;
	background-color: rgba(0, 0, 0, 0.002) !important;
	box-shadow: none !important;
	outline: none !important;
	color: transparent !important;
	font-size: 0;
	line-height: 0;
	cursor: pointer;
	appearance: none;
	-webkit-appearance: none;
	-webkit-tap-highlight-color: transparent;
	opacity: 1;
	touch-action: manipulation;
}

.ld-sc-hero-slideshow__tap:hover,
.ld-sc-hero-slideshow__tap:focus,
.ld-sc-hero-slideshow__tap:focus-visible,
.ld-sc-hero-slideshow__tap:active {
	border: 0 !important;
	background: rgba(0, 0, 0, 0.002) !important;
	background-color: rgba(0, 0, 0, 0.002) !important;
	box-shadow: none !important;
	outline: none !important;
	color: transparent !important;
	opacity: 1;
}

.ld-sc-hero-slideshow__poster {
	position: absolute;
	inset: 0;
	z-index: 1;
	transition: opacity 0.3s ease;
	pointer-events: none;
}

.ld-sc-hero-slideshow__slide.is-playing .ld-sc-hero-slideshow__poster,
.ld-sc-hero-slideshow__slide.is-user-paused .ld-sc-hero-slideshow__poster {
	opacity: 0;
	pointer-events: none;
}

.ld-sc-hero-slideshow__placeholder {
	width: 100%;
	height: 100%;
	background:
		radial-gradient(ellipse at 30% 20%, rgba(80, 120, 160, 0.35), transparent 55%),
		radial-gradient(ellipse at 70% 80%, rgba(40, 80, 60, 0.4), transparent 50%),
		linear-gradient(160deg, #1a1f24 0%, #0c0e10 100%);
}

.ld-sc-hero-slideshow__overlay {
	position: absolute;
	inset: 0;
	z-index: 2;
	background: var(--ld-sc-hs-overlay);
	pointer-events: none;
}

.ld-sc-hero-slideshow__content {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 3;
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 24px;
	padding: var(--ld-sc-hs-content-pad);
	padding-bottom: calc(var(--ld-sc-hs-content-pad) + 28px);
}

.ld-sc-hero-slideshow__copy {
	flex: 1 1 auto;
	min-width: 0;
	max-width: min(42rem, 70%);
}

.ld-sc-hero-slideshow__title {
	margin: 0 0 8px;
	color: var(--ld-sc-hs-title-color);
	font-size: clamp(1.75rem, 4vw, 2.75rem);
	font-weight: 700;
	line-height: 1.15;
	letter-spacing: -0.02em;
}

.ld-sc-hero-slideshow__subtitle {
	margin: 0;
	color: var(--ld-sc-hs-subtitle-color);
	font-size: clamp(0.95rem, 1.6vw, 1.125rem);
	line-height: 1.45;
	font-weight: 400;
}

.ld-sc-hero-slideshow__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-end;
	gap: 12px;
	flex: 0 0 auto;
}

.ld-sc-hero-slideshow__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 0.7rem 1.35rem;
	border-radius: 999px;
	border: 1px solid transparent;
	font-size: 0.9375rem;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	white-space: nowrap;
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.ld-sc-hero-slideshow__btn:hover {
	transform: translateY(-1px);
}

.ld-sc-hero-slideshow__btn--primary {
	background: var(--ld-sc-hs-btn-primary-bg);
	color: var(--ld-sc-hs-btn-primary-color);
}

.ld-sc-hero-slideshow__btn--secondary {
	background: var(--ld-sc-hs-btn-secondary-bg);
	color: var(--ld-sc-hs-btn-secondary-color);
	border-color: rgba(255, 255, 255, 0.12);
	backdrop-filter: blur(8px);
}

.ld-sc-hero-slideshow__arrow {
	position: absolute;
	top: 50%;
	z-index: 4;
	display: grid;
	place-items: center;
	width: 48px;
	height: 48px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--ld-sc-hs-chrome-bg);
	color: var(--ld-sc-hs-chrome-color);
	cursor: pointer;
	transform: translateY(-50%);
	backdrop-filter: blur(8px);
	transition: background-color 0.2s ease, transform 0.2s ease;
}

.ld-sc-hero-slideshow__arrow:hover {
	background: rgba(40, 40, 40, 0.9);
}

.ld-sc-hero-slideshow__arrow--prev {
	left: 16px;
}

.ld-sc-hero-slideshow__arrow--next {
	right: 16px;
}

.ld-sc-hero-slideshow__arrow .ld-sc-icon {
	width: 24px;
	height: 24px;
}

.ld-sc-hero-slideshow__dots {
	position: absolute;
	left: 50%;
	bottom: 14px;
	z-index: 4;
	display: flex;
	align-items: center;
	gap: 10px;
	transform: translateX(-50%);
}

.ld-sc-hero-slideshow__dot {
	width: 8px;
	height: 8px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #5c5c5c;
	cursor: pointer;
	transition: width 0.25s ease, background-color 0.25s ease, border-radius 0.25s ease;
}

.ld-sc-hero-slideshow__dot.is-active {
	width: 28px;
	height: 8px;
	border-radius: 999px;
	background: #ffffff;
	transform: none;
}

.ld-sc-hero-slideshow__mute {
	position: absolute;
	top: 16px;
	right: 16px;
	z-index: 6;
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--ld-sc-hs-chrome-bg);
	color: var(--ld-sc-hs-chrome-color);
	cursor: pointer;
	backdrop-filter: blur(8px);
}

.ld-sc-hero-slideshow__mute-icon[hidden] {
	display: none !important;
}

.ld-sc-hero-slideshow__mute .ld-sc-icon {
	width: 22px;
	height: 22px;
}

.ld-sc-hero-slideshow__play {
	position: absolute;
	top: 50%;
	left: 50%;
	z-index: 5;
	display: none;
	place-items: center;
	width: 72px;
	height: 72px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(20, 20, 20, 0.55);
	color: #fff;
	cursor: pointer;
	transform: translate(-50%, -50%);
	backdrop-filter: blur(6px);
	transition: background-color 0.2s ease, transform 0.2s ease;
}

.ld-sc-hero-slideshow__play.is-visible {
	display: grid;
}

.ld-sc-hero-slideshow__play[hidden] {
	display: none !important;
}

.ld-sc-hero-slideshow__slide.is-playing:not(.is-user-paused) .ld-sc-hero-slideshow__play {
	display: none !important;
}

.ld-sc-hero-slideshow__play:hover {
	background: rgba(20, 20, 20, 0.75);
	transform: translate(-50%, -50%) scale(1.04);
}

.ld-sc-hero-slideshow__play .ld-sc-icon {
	width: 36px;
	height: 36px;
	margin-left: 3px;
}

.ld-sc-hero-slideshow.is-edit-mode .ld-sc-hero-slideshow__video {
	pointer-events: none;
}

@media (max-width: 767px) {
	.ld-sc-hero-slideshow {
		--ld-sc-hs-height: min(62vh, 560px);
	}

	.ld-sc-hero-slideshow__content {
		flex-direction: column;
		align-items: stretch;
		gap: 16px;
		padding-bottom: calc(var(--ld-sc-hs-content-pad) + 36px);
	}

	.ld-sc-hero-slideshow__copy {
		max-width: 100%;
	}

	.ld-sc-hero-slideshow__actions {
		justify-content: flex-start;
	}

	.ld-sc-hero-slideshow__arrow {
		width: 40px;
		height: 40px;
	}

	.ld-sc-hero-slideshow__arrow--prev {
		left: 10px;
	}

	.ld-sc-hero-slideshow__arrow--next {
		right: 10px;
	}

	.ld-sc-hero-slideshow__play {
		width: 60px;
		height: 60px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ld-sc-hero-slideshow--fade .ld-sc-hero-slideshow__slide,
	.ld-sc-hero-slideshow--slide .ld-sc-hero-slideshow__track,
	.ld-sc-hero-slideshow__btn,
	.ld-sc-hero-slideshow__poster {
		transition: none;
	}
}
