/* LW6 normalizes only the approved legacy P/H/C image slots. */
.lw4-page .intro-grid {
	gap: var(--wp--preset--spacing--m);
}

.lw4-page .intro-visual,
.lw4-page .intro-visual > figure,
.lw4-page .intro-visual img,
.lw4-page .connected-card > figure,
.lw4-page .connected-card > figure img,
.lw4-page .quiet-stack > figure,
.lw4-page .quiet-stack > figure img,
.lw4-page .hero-visual > figure,
.lw4-page .hero-visual > figure img {
	width: 100%;
	max-width: 100%;
}

.lw4-page .intro-visual > figure,
.lw4-page .connected-card > figure,
.lw4-page .quiet-stack > figure,
.lw4-page .hero-visual > figure {
	margin: 0;
	overflow: hidden;
}

.lw4-page .intro-visual img {
	height: auto;
	aspect-ratio: 4 / 3;
	object-fit: cover;
}

.lw4-page .intro-grid > .intro-visual:has(> .note-board) > .note-board {
	display: none;
}

.lw4-page .connected-card > figure img,
.lw4-page .quiet-stack > figure img {
	height: auto;
	aspect-ratio: 16 / 9;
	object-fit: cover;
}

body.lw4-page.lw6-rest-page #intro.hero-editorial .hero-orbit {
	display: none;
}

body.lw4-page.lw6-rest-page #intro.hero-editorial .wrap:has(> .hero-visual) {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	align-items: center;
	gap: var(--wp--preset--spacing--m);
}

body.lw4-page.lw6-rest-page #intro.hero-editorial .wrap > .hero-copy {
	grid-column: 1;
}

body.lw4-page.lw6-rest-page #intro.hero-editorial .wrap > .hero-visual {
	grid-column: 2;
	grid-row: 1;
	min-width: 0;
	min-height: 0;
	max-height: none;
	margin: 0;
}

body.lw4-page.lw6-rest-page #intro.hero-editorial .hero-visual > figure,
body.lw4-page.lw6-rest-page #intro.hero-editorial .hero-visual > figure img {
	min-height: 0;
	max-height: none;
}

body.lw4-page.lw6-rest-page #intro.hero-editorial .hero-visual > figure img {
	height: auto;
	max-height: none;
	aspect-ratio: 4 / 3;
	object-fit: cover;
}

@media (max-width: 1023px) {
	body.lw4-page.lw6-rest-page #intro.hero-editorial {
		min-height: 0;
	}
	.lw4-page .intro-grid,
	body.lw4-page.lw6-rest-page #intro.hero-editorial .wrap:has(> .hero-visual) {
		grid-template-columns: minmax(0, 1fr);
	}
	body.lw4-page.lw6-rest-page #intro.hero-editorial .wrap > .hero-copy,
	body.lw4-page.lw6-rest-page #intro.hero-editorial .wrap > .hero-visual {
		grid-column: 1;
	}
	body.lw4-page.lw6-rest-page #intro.hero-editorial .wrap > .hero-visual {
		grid-row: auto;
	}
}

/* LW7: the two smallest source photos are 1536px wide, so photo bands stop there.
 * Only wide-story and text-banner bands that contain the cover figure are capped. */
.lw4-page .wide-story:has(> figure.cover-image),
.lw4-page .text-banner:has(> figure.cover-image) {
	width: 100%;
	max-width: 1536px;
	margin-inline: auto;
}
