/**
 * MH Feature (Figma "Set up once, then live"): full-bleed, large photo at the left (60%),
 * a smaller photo above a sand panel at the right. Tablet and phone: the two photos side by
 * side, then the panel full width.
 */

.mh-feature__grid {
	display: grid;
	grid-template-columns: minmax(0, 60fr) minmax(0, 40fr);
	grid-template-rows: 340px minmax(380px, auto);
}

.mh-feature__media {
	position: relative;
	overflow: hidden;
	background: var(--mh-c-line);
}

.mh-feature__media--main {
	grid-column: 1;
	grid-row: 1 / span 2;
}

.mh-feature__media--side {
	grid-column: 2;
	grid-row: 1;
}

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

.mh-feature__panel {
	grid-column: 2;
	grid-row: 2;
	display: flex;
	align-items: center;
	padding: var(--mh-pad-t, 48px) 56px var(--mh-pad-b, 48px);
	background: var(--mh-bg);
}

.mh-feature__body {
	width: 100%;
}

.mh-feature__text {
	margin-top: 16px;
	color: var(--mh-text);
	font-size: 16px;
	line-height: 24px;
}

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

.mh-feature__items {
	display: flex;
	flex-wrap: wrap;
	gap: 24px;
	margin-top: 40px;
}

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

.mh-feature__item {
	display: flex;
	flex: 0 1 138px;
	flex-direction: column;
	gap: 10px;
	min-width: 0;
	color: var(--mh-text);
}

.mh-feature__icon {
	flex: none;
	color: var(--mh-heading);
}

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

/* Tablet: photos side by side (60/40), panel full width under them. */
@media (max-width: 1024px) {
	.mh-feature__grid {
		grid-template-rows: 540px auto;
	}

	.mh-feature__media--main {
		grid-row: 1;
	}

	.mh-feature__panel {
		grid-column: 1 / span 2;
		padding: var(--mh-pad-t, 56px) var(--mh-gutter) var(--mh-pad-b, 56px);
	}

	.mh-feature__items {
		display: grid;
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

/* Phone: shorter photos, items as rows with the icon beside the label. */
@media (max-width: 767px) {
	.mh-feature__grid {
		grid-template-rows: 420px auto;
	}

	.mh-feature__panel {
		padding: var(--mh-pad-t, 48px) var(--mh-gutter) var(--mh-pad-b, 48px);
	}

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

	.mh-feature__items {
		display: flex;
		flex-direction: column;
		gap: 12px;
	}

	.mh-feature__item {
		flex: none;
		flex-direction: row;
		align-items: center;
		gap: 12px;
	}
}
