<?php
 /**
  * Title: Latest Posts
  * Slug: photofocus-blocks/latest-posts
  * Categories: photofocus-blocks, page
  */
?>

<!-- wp:group {"align":"full","className":"wp-block-section wp-block-latest-posts","layout":{"inherit":true,"type":"constrained"}} -->
<div class="wp-block-group alignfull wp-block-section wp-block-latest-posts">
	<!-- wp:group {"align":"wide","style":{"spacing":{"blockGap":"14px"}},"className":"alignwide wp-block-group-heading"} -->
	<div class="wp-block-group alignwide wp-block-group-heading">
		<!-- wp:heading {"textAlign":"center","className":"wp-block-heading"} -->
		<h2 class="wp-block-heading has-text-align-center"><?php esc_html_e ( 'News', 'photofocus-blocks' ); ?></h2>
		<!-- /wp:heading -->
	</div>
	<!-- /wp:group -->
	<!-- wp:query {"queryId":1,"query":{"perPage":3,"pages":0,"offset":0,"postType":"post","order":"desc","orderBy":"date","author":"","search":"","exclude":[],"sticky":"exclude","inherit":false},"align":"full"} -->
	<div class="wp-block-query alignfull">
		<!-- wp:post-template -->
		<!-- wp:columns {"align":"wide"} -->
		<div class="wp-block-columns alignwide">
			<!-- wp:column {"width":"50%","className":"wp-block-post-image"} -->
			<div class="wp-block-column wp-block-post-image" style="flex-basis:50%">
				<!-- wp:post-featured-image {"isLink":true} /-->
			</div>
			<!-- /wp:column -->
			<!-- wp:column {"width":"50%","className":"wp-block-post-content"} -->
			<div class="wp-block-column wp-block-post-content" style="flex-basis:50%">
				<!-- wp:post-terms {"term":"category"} /-->
				<!-- wp:post-title {"isLink":true} /-->
				<!-- wp:post-excerpt {"moreText":"Continue Reading","excerptLength":30} /-->
			</div>
			<!-- /wp:column -->
		</div>
		<!-- /wp:columns -->
		<!-- /wp:post-template -->
	</div>
	<!-- /wp:query -->
	<!-- wp:group {"align":"wide","style":{"spacing":{"blockGap":"14px"}},"className":"wp-block-anchor"} -->
	<div class="wp-block-group alignwide wp-block-anchor">
		<!-- wp:buttons {"layout":{"type":"flex","justifyContent":"center","flexWrap":"wrap"}} -->
		<div class="wp-block-buttons">
			<!-- wp:button {"className":"is-style-outline"} -->
			<div class="wp-block-button is-style-outline">
				<a class="wp-block-button__link wp-element-button"><?php esc_html_e ( 'View All', 'photofocus-blocks' ); ?></a>
			</div>
			<!-- /wp:button -->
		</div>
		<!-- /wp:buttons -->
	</div>
	<!-- /wp:group -->
</div>
<!-- /wp:group -->

