/**
 * PIASVC Home hero slider.
 */

.liwg-hero {
	position: relative;
	width: 100%;
	overflow: hidden;
	color: #ffffff;
}

.liwg-hero__slider {
	position: relative;
	width: 100%;
	height: clamp(280px, 50svh, 420px);
	overflow: hidden;
}

@media (min-width: 479px) and (max-width: 1279px) {
	.liwg-hero__slider {
		height: clamp(320px, 55svh, 480px);
	}
}

@media (min-width: 1280px) {
	.liwg-hero__slider {
		height: calc(100vh - 104px);
		height: calc(100svh - 104px);
	}
}

.liwg-hero__slides {
	position: absolute;
	inset: 0;
}

.liwg-hero__slide {
	position: absolute;
	inset: 0;
	overflow: hidden;
	opacity: 0;
	visibility: hidden;
	z-index: 0;
}

.liwg-hero__slide.is-active {
	opacity: 1;
	visibility: visible;
	z-index: 1;
}

.liwg-hero__media-wrap {
	width: 100%;
	height: 100%;
	overflow: hidden;
	transform: scale(1);
	transform-origin: center center;
	will-change: transform;
}

.liwg-hero__media {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: var(--liwg-object-position, center center);
}

@media (max-width: 478px), (max-width: 1279px) and (orientation: portrait) {
	.liwg-hero__media {
		object-position: var(--liwg-object-position-portrait, var(--liwg-object-position, center center));
	}
}

.liwg-hero__overlay {
	position: absolute;
	inset: 0;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px 20px;
	pointer-events: none;
	opacity: 0;
}

.liwg-hero__scrim {
	max-width: min(94vw, 920px);
	padding: 28px 32px;
	text-align: center;
	opacity: 0;
	transform-origin: center center;
	background: radial-gradient(
		ellipse at center,
		rgba(0, 0, 0, 0.52) 0%,
		rgba(0, 0, 0, 0.35) 42%,
		rgba(0, 0, 0, 0.12) 72%,
		transparent 100%
	);
}

.liwg-hero__title {
	margin: 0;
	color: #ffffff;
	font-weight: 700;
	text-wrap: balance;
	max-width: min(88vw, 18ch);
	margin-left: auto;
	margin-right: auto;
	opacity: 0;
}

html[lang="lo"] .liwg-hero__title {
	line-height: 1.35;
}

/* Desktop base */
@media (min-width: 1280px) {
	.liwg-hero__title {
		font-size: clamp(42px, 2.4vw + 32px, 84px);
		line-height: 1.15;
		max-width: min(85vw, 22ch);
	}

	.liwg-hero__scrim {
		padding: 36px 48px;
	}
}

/* Tablet */
@media (min-width: 479px) and (max-width: 1279px) {
	.liwg-hero__title {
		font-size: clamp(32px, 2.5vw + 20px, 48px);
		line-height: 1.18;
		max-width: min(90vw, 20ch);
	}
}

/* Mobile portrait */
@media (max-width: 478px) {
	.liwg-hero__title {
		font-size: clamp(26px, 6vw + 8px, 34px);
		line-height: 1.2;
		max-width: min(92vw, 18ch);
	}

	.liwg-hero__scrim {
		padding: 22px 18px;
		transform: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.liwg-hero__media-wrap {
		transform: none !important;
		will-change: auto;
	}

	.liwg-hero__scrim,
	.liwg-hero__title {
		transform: none;
	}
}
