/* ============================================================
   COMPONENT: IMAGE BACKGROUND
============================================================ */

.vw-image-background {
	position: relative;
	display: grid;
	width: 100%;
	min-height: clamp(30rem, 41.666vw, 37.5rem);
	overflow: hidden;
	isolation: isolate;
	background: var(--color-dark);
}

.vw-image-background__media,
.vw-image-background__overlay {
	position: absolute;
	inset: 0;
}

.vw-image-background__media {
	z-index: -2;
	overflow: hidden;
}

.vw-image-background__image {
	position: absolute;
	top: -2.5rem;
	left: 0;
	display: block;
	width: 100%;
	max-width: none;
	height: calc(100% + 5rem);
	object-fit: cover;
	transform: translate3d(0, var(--vw-image-background-parallax, 0px), 0) scale(1.02);
	transform-origin: center;
	will-change: transform;
}

.vw-image-background__overlay {
	z-index: -1;
	background: linear-gradient(
		to top,
		rgba(0, 0, 0, 0.5) 0%,
		rgba(0, 0, 0, 0) 100%
	);
	pointer-events: none;
}

.vw-image-background__container,
.vw-image-background__row {
	min-height: inherit;
}

.vw-image-background__container {
	position: relative;
	z-index: 1;
}

.vw-image-background__content-column {
	align-items: center;
}

.vw-image-background__content,
.vw-image-background__content :where(
	h1,
	h2,
	h3,
	h4,
	h5,
	h6,
	p,
	a,
	span,
	strong,
	em,
	ul,
	ol,
	li,
	blockquote
) {
	color: #fff;
}

.vw-image-background__content :where(
	h1,
	h2,
	h3,
	h4,
	h5,
	h6
) {
	margin-bottom:30px;
}


.vw-image-background__content {
	width: 100%;
	text-align: center;
	animation: vw-image-background-content-in 700ms cubic-bezier(0.22, 1, 0.36, 1) 100ms both;
}

.vw-image-background__content > :first-child {
	margin-top: 0;
}

.vw-image-background__content > :last-child {
	margin-bottom: 0;
}

.vw-image-background__content a {
	font-family: var(--font-family-heading);
	text-decoration-thickness: 0.5px;
	text-underline-offset: 3px;
}

.vw-image-background__content a,
.vw-image-background__content a:hover,
.vw-image-background__content a:focus,
.vw-image-background__content a:focus-visible {
	color: #fff;
}

.vw-image-background__content a:hover,
.vw-image-background__content a:focus-visible {
	opacity: 0.8;
}

@keyframes vw-image-background-content-in {
	from {
		opacity: 0;
		transform: translateY(1.25rem);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@media (max-width: 47.999em) {
	.vw-image-background {
		min-height: 30rem;
	}
	
	.vw-image-background__content :where(
		h1,
		h2,
		h3,
		h4,
		h5,
		h6
	) {
		margin-bottom:15px;
	}

	.vw-image-background__image {
		top: -2rem;
		height: calc(100% + 4rem);
	}
}

@media (prefers-reduced-motion: reduce) {
	.vw-image-background__image {
		transform: none;
		will-change: auto;
	}

	.vw-image-background__content {
		animation: none;
	}
}
