/*
 * O9 feature panel: text 650 | illustration 435 inside a surface panel.
 * Put the image first to mirror it (Educators "Get trained and certified").
 */

.meckup-feature-panel.is-layout-grid {
	grid-template-columns: minmax(0, 650fr) minmax(0, 435fr);
	column-gap: var(--wp--preset--spacing--70);
	align-items: start;
}

.meckup-feature-panel.is-layout-grid:has(> .wp-block-image:first-child) {
	grid-template-columns: minmax(0, 435fr) minmax(0, 650fr);
}

/*
 * Below 1024 the panel stacks (as Learn's cards do), and the illustration keeps
 * its desktop size at most (R-BLD-2). Below 600 the panel's inline spacing-60
 * padding becomes spacing-40 (token redefined on the panel; editors' own
 * padding values aren't affected).
 */
@media (max-width: 1023px) {
	.meckup-feature-panel.is-layout-grid,
	.meckup-feature-panel.is-layout-grid:has(> .wp-block-image:first-child) {
		grid-template-columns: minmax(0, 1fr);
	}

	.meckup-feature-panel > .wp-block-image {
		max-width: 435px;
	}
}

@media (max-width: 599px) {
	.meckup-feature-panel {
		--wp--preset--spacing--60: var(--wp--preset--spacing--40);
	}
}
