<?php foreach ($layouts as $layout): ?>
<section class="grid container <?= $layout->columns()->count() == 2 ? "two" : "" ?> <?= bg($layout->background(), $layout->grid()) ?>">
	<?php foreach ($layout->columns() as $column): ?>
	<div class="column" style="--span:<?= $column->span() ?>">
		<?= $column->blocks() ?>
	</div>
	<?php endforeach ?>
</section>
<?php endforeach ?>