.card-grid {
	&__innerblocks {
		display: block;
	}

	.card-grid__innerblocks
		> .block-editor-inner-blocks
		> .block-editor-block-list__layout {
		display: grid;
		gap: 1rem;
	}
	&--columns-2
		.card-grid__innerblocks
		> .block-editor-inner-blocks
		> .block-editor-block-list__layout {
		grid-template-columns: repeat(2, 1fr);
	}
	&--columns-3
		.card-grid__innerblocks
		> .block-editor-inner-blocks
		> .block-editor-block-list__layout {
		grid-template-columns: repeat(3, 1fr);
	}
	&--columns-4
		.card-grid__innerblocks
		> .block-editor-inner-blocks
		> .block-editor-block-list__layout {
		grid-template-columns: repeat(4, 1fr);
	}
	&--columns-5
		.card-grid__innerblocks
		> .block-editor-inner-blocks
		> .block-editor-block-list__layout {
		grid-template-columns: repeat(5, 1fr);
	}
}

// Styles pour les alignements dans l'éditeur
.card-grid.alignwide {
	max-width: var(--wp--style--global--wide-size, 1200px);
	margin-left: auto;
	margin-right: auto;
}

.card-grid.alignfull {
	max-width: none;
	margin-left: 0;
	margin-right: 0;
	width: 100%;
}
