/*
 * O4 split intro on Learn (section-learn-intro, section-learn-educators-intro).
 * Figma LE 2959:4362: the heading box is 694 wide (so "Learn AI by building"
 * stays on one line), the body 650, the image 556 at x 836. That leaves a
 * 22 px gutter, unlike the Build intros (650 | 556, 66 apart).
 */

.meckup-learn-intro .meckup-learn-intro__split.is-layout-grid {
	grid-template-columns: minmax(0, 694fr) minmax(0, 556fr);
	column-gap: var(--wp--preset--spacing--40);
	align-items: start;
}

/* The image starts 8 px above the heading (8 px below the eyebrow). */
.meckup-learn-intro .meckup-learn-intro__split > .wp-block-image {
	margin-block-start: calc(-1 * var(--wp--preset--spacing--20));
}

.meckup-learn-intro .meckup-learn-intro__split > .wp-block-group > p {
	max-width: var(--wp--style--global--content-size);
}

/*
 * Stacked below 1024: side by side, the H1 had a 354 px column at 782 (3 lines).
 * The image keeps to the body text's width (650) rather than filling the row.
 */
@media (max-width: 1023px) {
	.meckup-learn-intro .meckup-learn-intro__split.is-layout-grid {
		grid-template-columns: minmax(0, 1fr);
		row-gap: var(--wp--preset--spacing--50);
	}

	.meckup-learn-intro .meckup-learn-intro__split > .wp-block-image {
		max-width: var(--wp--style--global--content-size);
		margin-block-start: 0;
	}
}
