/* Section: hero — template-parts/sections/hero.php */

.hero {
	isolation: isolate;
	justify-content: flex-start;
	/* Title sits just below the middle of the screen. */
	padding-top: 43.7vh;
	padding-bottom: var(--wp--preset--spacing--60);
}

.hero__image {
	position: absolute;
	inset: 0;
	z-index: -1;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.hero__inner {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 20px;
	max-width: none;
	padding-inline: var(--wp--preset--spacing--40) 153px;
	text-align: end;
}

.hero__title {
	margin: 0;
	font-size: var(--wp--preset--font-size--x-large);
	font-weight: 500;
	line-height: 1;
	color: var(--wp--preset--color--primary);
}

@media (max-width: 781.98px) {
	.hero__inner {
		padding-inline: var(--wp--preset--spacing--40);
	}
}

/* Phones — measured against timsteel.pt at 375px. */
@media (max-width: 781.98px) {
	.hero {
		padding-top: 77.6vh;
	}

	.hero__inner {
		padding-inline: 10px;
	}

	.hero__title {
		font-size: 30px;
	}
}
