/*
 * Rows that follow their number of items, for the sections the site was built
 * from. Each grid keeps its own layout for the number it ships with; only when
 * an editor adds or removes an item ("Edit pattern") do these rules apply, so
 * a fourth card sits in the row instead of dropping to a line of its own.
 */
@media (min-width: 1024px) {
	.sp-capability-who-is-it-for .sp-capability-who-is-it-for__cards:has(> :nth-child(4):last-child),
	.sp-capability-related .sp-capability-related__cards:has(> :nth-child(4):last-child),
	.sp-case-study-related .sp-case-study-related__grid:has(> :nth-child(4):last-child),
	.sp-home-audience .sp-home-audience__cards:has(> :nth-child(4):last-child),
	.sp-home-work .sp-home-work__cards:has(> :nth-child(4):last-child),
	.sp-wl-services .sp-wl-services__grid:has(> :nth-child(4):last-child) {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
	.sp-capability-who-is-it-for .sp-capability-who-is-it-for__cards:has(> :nth-child(2):last-child),
	.sp-capability-related .sp-capability-related__cards:has(> :nth-child(2):last-child),
	.sp-case-study-related .sp-case-study-related__grid:has(> :nth-child(2):last-child),
	.sp-home-audience .sp-home-audience__cards:has(> :nth-child(2):last-child),
	.sp-home-work .sp-home-work__cards:has(> :nth-child(2):last-child),
	.sp-wl-services .sp-wl-services__grid:has(> :nth-child(2):last-child) {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
	.sp-about-values .sp-about-values__grid:has(> :nth-child(3):last-child) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.sp-about-values .sp-about-values__grid:has(> :nth-child(5):last-child) { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
