/**
 * MH Banner (Figma "V6 Make room", apartment pages "11 minutes to Oriente"): full-bleed
 * photo under an ink overlay, title and text bottom-left, credit bottom-right (top-left on
 * phones). Height 720 / 600 / 640; the Height control sets --mh-banner-h.
 */

.mh-banner {
	display: flex;
	min-height: var(--mh-banner-h, 720px);
	overflow: hidden;
	isolation: isolate;
}

.mh-banner__media {
	position: absolute;
	inset: 0;
	z-index: -1;
}

.mh .mh-banner__img,
.mh-banner__img {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
}

.mh-banner__overlay {
	position: absolute;
	inset: 0;
	background: var(--mh-c-ink);
	opacity: 0.32;
}

.mh-banner__inner {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	padding-top: var(--mh-pad-t, 96px);
	padding-bottom: var(--mh-pad-b, 96px);
}

.mh-banner .mh-banner__title {
	color: var(--mh-heading);
	font-size: 56px;
	line-height: 64px;
}

.mh-banner__text {
	max-width: 560px;
	margin-top: 16px;
	color: var(--mh-text);
}

.mh-banner__text:first-child {
	margin-top: 0;
}

.mh-banner__credit {
	position: absolute;
	right: 0;
	bottom: 20px;
	max-width: 50%;
	text-align: right;
}

@media (max-width: 1024px) {
	.mh-banner {
		min-height: var(--mh-banner-h, 600px);
	}
}

/* Phone: smaller title, credit moves to the top-left. */
@media (max-width: 767px) {
	.mh-banner {
		min-height: var(--mh-banner-h, 640px);
	}

	.mh-banner__inner {
		padding-top: var(--mh-pad-t, 56px);
		padding-bottom: var(--mh-pad-b, 56px);
	}

	.mh-banner .mh-banner__title {
		font-size: 36px;
		line-height: 44px;
	}

	.mh-banner__text {
		font-size: 16px;
		line-height: 24px;
	}

	.mh-banner__credit {
		top: 20px;
		right: auto;
		bottom: auto;
		left: 0;
		max-width: 100%;
		text-align: left;
	}
}
