/**
 * hero.css
 *
 * Reusable image-first hero module.
 */

.hero {
	padding-top: 0.75rem;
}

.hero-cover {
	position: relative;
	height: 43.75rem;
	padding-top: 0;
	padding-bottom: 0;
	overflow: hidden;
}

.hero--media {
	display: flex;
	justify-content: center;
}

.hero-cover .hero--media {
	position: absolute;
	inset: 0;
	display: block;
}

.hero--image {
	width: min(100%, 52rem);
	height: auto;
	margin: 0 auto;
}

.hero-cover .hero--image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center center;
}

.hero--content {
	max-width: 40rem;
	margin: 2rem auto 0;
	text-align: center;
}

.hero-cover .hero--content {
	position: relative;
	z-index: 1;
}

@media screen and (min-width: 1024px) {
	.hero--image {
		width: min(100%, 58rem);
	}
}
