<?php
defined( 'ABSPATH' ) || die;
/**
 * Title: More Posts
 * Slug: themecut/more-posts
 * Inserter: no
 *
 * "You might also like" — 3 recent posts shown below a single post.
 * Uses queryId 1 with inherit:false so it always shows recent posts.
 */
?>
<!-- wp:group {"align":"full","className":"tc-more-posts","style":{"spacing":{"padding":{"top":"64px","bottom":"64px"}}},"layout":{"type":"constrained"}} -->
<div class="wp-block-group alignfull tc-more-posts" style="padding-top:64px;padding-bottom:64px">

<!-- wp:heading {"textAlign":"center","level":3,"style":{"spacing":{"margin":{"bottom":"40px"}},"typography":{"fontSize":"1.5rem"}}} -->
<h3 class="wp-block-heading has-text-align-center" style="margin-bottom:40px;font-size:1.5rem"><?php esc_html_e( 'You Might Also Like', 'themecut' ); ?></h3>
<!-- /wp:heading -->

<!-- wp:query {"queryId":1,"query":{"perPage":3,"pages":0,"offset":0,"postType":"post","order":"desc","orderBy":"date","author":"","search":"","exclude":[],"sticky":"","inherit":false},"layout":{"type":"constrained"}} -->
<div class="wp-block-query">

<!-- wp:post-template {"className":"tc-post-grid","layout":{"type":"grid","columnCount":3}} -->

<!-- wp:group {"className":"tc-post-card tc-post-card--sm","style":{"border":{"radius":"12px"},"spacing":{"padding":{"top":"0","right":"0","bottom":"0","left":"0"}}},"layout":{"type":"default"}} -->
<div class="wp-block-group tc-post-card tc-post-card--sm" style="border-radius:12px;padding-top:0;padding-right:0;padding-bottom:0;padding-left:0">
<!-- wp:post-featured-image {"isLink":true,"aspectRatio":"16/9","className":"tc-post-card__image"} /-->
<!-- wp:group {"className":"tc-post-card__body","style":{"spacing":{"padding":{"top":"16px","right":"20px","bottom":"20px","left":"20px"}}},"layout":{"type":"default"}} -->
<div class="wp-block-group tc-post-card__body" style="padding-top:16px;padding-right:20px;padding-bottom:20px;padding-left:20px">
<!-- wp:post-terms {"term":"category","className":"tc-post-card__cat","style":{"spacing":{"margin":{"bottom":"6px"}}}} /-->
<!-- wp:post-title {"isLink":true,"level":3,"style":{"typography":{"fontSize":"1rem","lineHeight":"1.35"},"spacing":{"margin":{"top":"0","bottom":"8px"}}}} /-->
<!-- wp:post-date {"style":{"typography":{"fontSize":"0.78rem"}}} /-->
</div>
<!-- /wp:group -->
</div>
<!-- /wp:group -->

<!-- /wp:post-template -->

</div>
<!-- /wp:query -->

</div>
<!-- /wp:group -->
