/*
 * O19 Learn training cards (section-learn-training), M8 image variant.
 * Figma 2960:4667 / 2960:4677: both bodies start at the same y because
 * "AIMLab+ training" carries an empty second line. Here the cards share
 * their rows instead (subgrid: image, heading, body), so the headings and
 * bodies line up whatever the line count. The heading and body keep their
 * 36 px flow margins inside the shared tracks, so the row gap is 0.
 * Browsers without subgrid fall back to normal flow (unaligned bodies).
 * Below 1024 the cards stack, one per row, like the topic cards.
 */

@media (min-width: 1024px) {
	@supports (grid-template-rows: subgrid) {
		.meckup-learn-training.is-layout-grid > .meckup-topic-card {
			display: grid;
			grid-row: span 3;
			grid-template-rows: subgrid;
			row-gap: 0;
			align-content: start;
		}
	}
}

@media (max-width: 1023px) {
	.meckup-learn-training.is-layout-grid {
		grid-template-columns: minmax(0, 1fr);
	}
}
