/**
 * JIT full-width video hero banner
 */

.jit-video-banner {
	position: relative;
	width: 100%;
	min-height: var(--jit-vb-height, min(42vw, 720px));
	overflow: hidden;
	isolation: isolate;
	color: #fff;
}

.jit-video-banner__media {
	position: absolute;
	inset: 0;
	z-index: 0;
}

.jit-video-banner__poster,
.jit-video-banner__video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center center;
}

.jit-video-banner__poster {
	z-index: 1;
	transition: opacity 0.45s ease;
}

.jit-video-banner--has-video.is-playing .jit-video-banner__poster {
	opacity: 0;
}

.jit-video-banner__video {
	z-index: 2;
}

.jit-video-banner__youtube-wrap {
	position: absolute;
	inset: 0;
	z-index: 2;
	overflow: hidden;
}

.jit-video-banner__youtube {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 177.77777778vh;
	min-width: 100%;
	min-height: 56.25vw;
	height: 100%;
	border: 0;
	transform: translate(-50%, -50%);
	pointer-events: none;
}

.jit-video-banner--has-youtube.is-playing .jit-video-banner__poster {
	opacity: 0;
}

.jit-video-banner__overlay {
	position: absolute;
	inset: 0;
	z-index: 3;
	background: var(--jit-vb-overlay, rgba(0, 0, 0, 0.42));
	pointer-events: none;
}

.jit-video-banner__content {
	position: relative;
	z-index: 4;
	display: flex;
	align-items: center;
	min-height: inherit;
	padding: clamp(48px, 8vw, 96px) clamp(20px, 5vw, 56px);
}

.jit-video-banner__content-inner {
	width: min(100%, var(--jit-vb-content-width, 860px));
}

.jit-video-banner--align-left .jit-video-banner__content {
	justify-content: flex-start;
}

.jit-video-banner--align-center .jit-video-banner__content {
	justify-content: center;
	text-align: center;
}

.jit-video-banner--align-center .jit-video-banner__content-inner {
	margin-inline: auto;
}

.jit-video-banner--align-right .jit-video-banner__content {
	justify-content: flex-end;
	text-align: right;
}

.jit-video-banner__content h1,
.jit-video-banner__content h2,
.jit-video-banner__content h3,
.jit-video-banner__content h4,
.jit-video-banner__content p,
.jit-video-banner__content li {
	color: inherit;
}

.jit-video-banner__content h2 {
	margin: 0 0 18px;
	font-size: clamp(1.65rem, 2.4vw, 2.25rem);
	line-height: 1.2;
	font-weight: 700;
}

.jit-video-banner__content p {
	margin: 0 0 14px;
	line-height: 1.7;
	color: rgba(255, 255, 255, 0.92);
	font-size: clamp(0.95rem, 1.1vw, 1.05rem);
}

.jit-video-banner__content .jit-vb-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	margin-top: 24px;
}

.jit-video-banner__content .jit-vb-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 12px 26px;
	border-radius: 999px;
	font-weight: 600;
	text-decoration: none;
	transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.jit-video-banner__content .jit-vb-btn--primary {
	background: rgb(53, 92, 157);
	color: #fff;
}

.jit-video-banner__content .jit-vb-btn--primary:hover {
	background: rgb(40, 75, 130);
	color: #fff;
}

.jit-video-banner__content .jit-vb-btn--secondary {
	border: 1px solid rgba(255, 255, 255, 0.65);
	color: #fff;
}

.jit-video-banner__content .jit-vb-btn--secondary:hover {
	background: rgba(255, 255, 255, 0.15);
	color: #fff;
}

@media (max-width: 849px) {
	.jit-video-banner {
		min-height: var(--jit-vb-height-sm, min(70vw, 520px));
	}

	.jit-video-banner__content {
		padding: 48px 22px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.jit-video-banner__video {
		display: none;
	}

	.jit-video-banner--has-video.is-playing .jit-video-banner__poster {
		opacity: 1;
	}
}
