<?php
/**
 * Title: Posts Grid
 * Slug: monowp/posts-grid
 * Inserter: false
 */
?>

<!-- wp:group {"tagName":"main","style":{"spacing":{"margin":{"top":"0","bottom":"0"},"padding":{"top":"var:preset|spacing|40","bottom":"var:preset|spacing|40"}}},"layout":{"type":"constrained"}} -->
<main class="wp-block-group" style="margin-top:0;margin-bottom:0;padding-top:var(--wp--preset--spacing--40);padding-bottom:var(--wp--preset--spacing--40)">

	<!-- wp:query {"queryId":27,"query":{"perPage":5,"pages":0,"offset":"0","postType":"post","order":"asc","orderBy":"title","author":"","search":"","exclude":[],"sticky":"","inherit":true},"enhancedPagination":true,"align":"wide"} -->
	<div class="wp-block-query alignwide">
		<!-- wp:query-pagination {"paginationArrow":"arrow","showLabel":false,"align":"center","layout":{"type":"flex","justifyContent":"center","flexWrap":"nowrap"}} -->
		<!-- wp:query-pagination-previous /-->

		<!-- wp:query-pagination-numbers {"midSize":5} /-->

		<!-- wp:query-pagination-next /-->
		<!-- /wp:query-pagination -->

		<!-- wp:post-template {"layout":{"type":"grid","columnCount":2}} -->
		<!-- wp:group {"style":{"spacing":{"padding":{"top":"30px","right":"30px","bottom":"30px","left":"30px"}}},"layout":{"inherit":false}} -->
		<div class="wp-block-group" style="padding-top:30px;padding-right:30px;padding-bottom:30px;padding-left:30px">
			<!-- wp:post-title {"style":{"elements":{"link":{"color":{"text":"var:preset|color|contrast"}}}}} /-->

			<!-- wp:post-excerpt {"moreText":"<?php echo esc_html_x( 'READ POST', 'Link to article', 'monowp' ); ?> ➔","excerptLength":25} /-->
		</div>
		<!-- /wp:group -->
		<!-- /wp:post-template -->

		<!-- wp:query-pagination {"paginationArrow":"arrow","showLabel":false,"align":"center","layout":{"type":"flex","justifyContent":"center","flexWrap":"nowrap"}} -->
		<!-- wp:query-pagination-previous /-->

		<!-- wp:query-pagination-numbers {"midSize":5} /-->

		<!-- wp:query-pagination-next /-->
		<!-- /wp:query-pagination -->
	</div>
	<!-- /wp:query -->
</main>
<!-- /wp:group -->