<?php
/**
 * Title: Latest articles — four columns with hover overlay
 * Slug: iconvert-shoply/latest-articles
 * Categories: iconvert-shoply, query
 * Description: Four-column grid of recent blog posts.
 * Keywords: blog, articles, news, posts
 * Block Types: core/query
 */
?>
<!-- wp:group {"align":"full","className":"iconvert-shoply-articles","style":{"spacing":{"padding":{"top":"var:preset|spacing|60","bottom":"var:preset|spacing|60"},"blockGap":"var:preset|spacing|40"}},"layout":{"type":"constrained","contentSize":"1232px"}} -->
<div class="wp-block-group alignfull iconvert-shoply-articles" style="padding-top:var(--wp--preset--spacing--60);padding-bottom:var(--wp--preset--spacing--60)"><!-- wp:heading {"level":4,"style":{"typography":{"fontWeight":"300"},"spacing":{"margin":{"bottom":"var:preset|spacing|40"}}},"fontSize":"large"} -->
<h4 class="wp-block-heading has-large-font-size" style="margin-bottom:var(--wp--preset--spacing--40);font-weight:300"><?php esc_html_e( 'Latest articles', 'iconvert-shoply' ); ?></h4>
<!-- /wp:heading -->

<!-- wp:query {"queryId":10,"query":{"perPage":4,"pages":0,"offset":0,"postType":"post","order":"desc","orderBy":"date","author":"","search":"","exclude":[],"sticky":"","inherit":false}} -->
<div class="wp-block-query"><!-- wp:post-template {"layout":{"type":"grid","columnCount":4}} -->
<!-- wp:group {"className":"iconvert-shoply-article-card","layout":{"type":"default"}} -->
<div class="wp-block-group iconvert-shoply-article-card"><!-- wp:post-featured-image {"isLink":true,"aspectRatio":"3/4","style":{"border":{"radius":"4px"}}} /-->

<!-- wp:group {"className":"iconvert-shoply-article-overlay","style":{"spacing":{"padding":{"top":"var:preset|spacing|40","bottom":"var:preset|spacing|40","left":"var:preset|spacing|40","right":"var:preset|spacing|40"}},"border":{"radius":"4px"}},"layout":{"type":"flex","orientation":"vertical","justifyContent":"left","verticalAlignment":"bottom"}} -->
<div class="wp-block-group iconvert-shoply-article-overlay" style="border-radius:4px;padding-top:var(--wp--preset--spacing--40);padding-right:var(--wp--preset--spacing--40);padding-bottom:var(--wp--preset--spacing--40);padding-left:var(--wp--preset--spacing--40)"><!-- wp:post-terms {"term":"category","style":{"typography":{"textTransform":"none","fontWeight":"400"},"spacing":{"margin":{"bottom":"var:preset|spacing|20"}}},"fontSize":"x-small"} /-->

<!-- wp:post-title {"isLink":true,"style":{"typography":{"fontWeight":"600","lineHeight":"1.3"},"spacing":{"margin":{"top":"0","bottom":"var:preset|spacing|20"}},"color":{"text":"#ffffff"}},"fontSize":"medium"} /-->

<!-- wp:group {"className":"iconvert-shoply-article-meta","style":{"spacing":{"blockGap":"var:preset|spacing|10","margin":{"bottom":"var:preset|spacing|30"}}},"layout":{"type":"flex","flexWrap":"nowrap"}} -->
<div class="wp-block-group iconvert-shoply-article-meta" style="margin-bottom:var(--wp--preset--spacing--30)"><!-- wp:post-author-name {"fontSize":"x-small"} /-->

<!-- wp:paragraph {"fontSize":"x-small"} -->
<p class="has-x-small-font-size">|</p>
<!-- /wp:paragraph -->

<!-- wp:post-date {"fontSize":"x-small"} /--></div>
<!-- /wp:group -->

<!-- wp:read-more {"content":"Read more","className":"iconvert-shoply-article-readmore"} /--></div>
<!-- /wp:group --></div>
<!-- /wp:group -->
<!-- /wp:post-template --></div>
<!-- /wp:query --></div>
<!-- /wp:group -->
