/*
 * O8 success story feature (patterns/section-story-feature.php), Figma 2928:538.
 * Text 544 | 102 gap | media 626. The media's top lines up with the H2, so it
 * drops by the eyebrow's height plus its 12 px gap.
 */

.meckup-story-feature.is-layout-grid {
	grid-template-columns: minmax(0, 544fr) minmax(0, 626fr);
	column-gap: 8.02%;
	align-items: start;
}

.meckup-story-feature > .meckup-story-feature__media {
	margin-block-start: calc(var(--wp--preset--font-size--x-large) * 1.36 + var(--wp--preset--spacing--30));
}

/* R-STY-1: side by side, the H2 runs 4–5 lines below 1024, so stack there.
 * Stacked, the video sits under the tags (MF-B2, moved there on 30 Oct): the
 * text column dissolves into the grid, eyebrow, H2 and tags come first, then
 * the video, then everything after the tags. */
@media (max-width: 1023px) {
	.meckup-story-feature.is-layout-grid {
		grid-template-columns: minmax(0, 1fr);
		row-gap: 0;
	}

	.meckup-story-feature > .wp-block-group:first-child {
		display: contents;
	}

	.meckup-story-feature > .wp-block-group:first-child > * {
		order: 1;
	}

	.meckup-story-feature > .meckup-story-feature__media {
		order: 2;
		margin-block-start: var(--wp--preset--spacing--50);
	}

	.meckup-story-feature > .wp-block-group:first-child > .is-layout-flex ~ * {
		order: 3;
	}
}
