<?php
/**
 * Title: Trending Post Section
 * Slug: journal-stories/trending-post-section
 * Categories: template
 */

?>
<!-- wp:group {"className":"trending-posts-sec","style":{"spacing":{"margin":{"top":"3em","bottom":"1em"}}},"layout":{"type":"constrained","contentSize":"80%"}} -->
<div class="wp-block-group trending-posts-sec" style="margin-top:3em;margin-bottom:1em"><!-- wp:columns {"className":"second-sec-columns"} -->
<div class="wp-block-columns second-sec-columns"><!-- wp:column {"width":"70%","className":"second-sec-left-col"} -->
<div class="wp-block-column second-sec-left-col" style="flex-basis:70%"><!-- wp:group {"layout":{"type":"constrained"}} -->
<div class="wp-block-group"><!-- wp:cover {"url":"<?php echo esc_url( get_template_directory_uri() . '/assets/images/banner-img.png'); ?>","id":246,"dimRatio":0,"customOverlayColor":"#706c6a","isUserOverlayColor":false,"minHeight":240,"sizeSlug":"full","className":"banner-main","layout":{"type":"constrained"}} -->
<div class="wp-block-cover banner-main" style="min-height:240px"><img class="wp-block-cover__image-background wp-image-246 size-full" alt="" src="<?php echo esc_url( get_template_directory_uri() . '/assets/images/banner-img.png'); ?>" data-object-fit="cover"/><span aria-hidden="true" class="wp-block-cover__background has-background-dim-0 has-background-dim" style="background-color:#706c6a"></span><div class="wp-block-cover__inner-container"><!-- wp:group {"className":"trending-sec-bottom-content","layout":{"type":"constrained"}} -->
<div class="wp-block-group trending-sec-bottom-content"><!-- wp:heading {"style":{"typography":{"fontSize":"22px","fontStyle":"Thin","fontWeight":"500"}},"fontFamily":"Poppins"} -->
<h2 class="wp-block-heading has-poppins-font-family" style="font-size:22px;font-style:Thin;font-weight:500"><?php esc_html_e('Elevate Your Lifestyle with Expert Tips and Inspiration','journal-stories'); ?></h2>
<!-- /wp:heading -->

<!-- wp:buttons {"style":{"spacing":{"margin":{"top":"10px","bottom":"0"},"padding":{"top":"0","bottom":"0","left":"0","right":"0"}}}} -->
<div class="wp-block-buttons" style="margin-top:10px;margin-bottom:0;padding-top:0;padding-right:0;padding-bottom:0;padding-left:0"><!-- wp:button {"className":"banner-sec-btn","style":{"typography":{"fontSize":"14px"},"border":{"radius":{"topLeft":"0px","topRight":"0px","bottomLeft":"0px","bottomRight":"0px"},"width":"0px","style":"none"},"spacing":{"padding":{"left":"2px","right":"2px","top":"0px","bottom":"0px"}}},"fontFamily":"Poppins"} -->
<div class="wp-block-button banner-sec-btn"><a class="wp-block-button__link has-poppins-font-family has-custom-font-size wp-element-button" href="#" style="border-style:none;border-width:0px;border-top-left-radius:0px;border-top-right-radius:0px;border-bottom-left-radius:0px;border-bottom-right-radius:0px;padding-top:0px;padding-right:2px;padding-bottom:0px;padding-left:2px;font-size:14px"><?php esc_html_e('Explore more','journal-stories'); ?></a></div>
<!-- /wp:button --></div>
<!-- /wp:buttons --></div>
<!-- /wp:group --></div></div>
<!-- /wp:cover --></div>
<!-- /wp:group -->

<!-- wp:group {"className":"banner-section","style":{"spacing":{"padding":{"top":"0","bottom":"0","left":"0","right":"0"},"margin":{"top":"15px","bottom":"0"}}},"layout":{"type":"constrained"}} -->
<div class="wp-block-group banner-section" style="margin-top:15px;margin-bottom:0;padding-top:0;padding-right:0;padding-bottom:0;padding-left:0"><!-- wp:query {"queryId":23,"query":{"perPage":1,"pages":0,"offset":0,"postType":"post","order":"desc","orderBy":"date","author":"","search":"","exclude":[],"sticky":"","inherit":false},"metadata":{"categories":["posts"],"patternName":"core/query-medium-posts","name":"Image at left"}} -->
<div class="wp-block-query"><!-- wp:post-template -->
<!-- wp:columns {"align":"wide","className":"single-post-columns"} -->
<div class="wp-block-columns alignwide single-post-columns"><!-- wp:column {"verticalAlignment":"center","width":"72.5%","className":"banner-img-box"} -->
<div class="wp-block-column is-vertically-aligned-center banner-img-box" style="flex-basis:72.5%"><!-- wp:post-featured-image {"isLink":true,"width":"","height":"300px"} /--></div>
<!-- /wp:column -->

<!-- wp:column {"verticalAlignment":"top","width":"33%","className":"single-post-content-col"} -->
<div class="wp-block-column is-vertically-aligned-top single-post-content-col" style="flex-basis:33%"><!-- wp:group {"className":"banner-content-main","layout":{"type":"constrained"}} -->
<div class="wp-block-group banner-content-main"><!-- wp:post-terms {"term":"category","className":"banner-post-cat","style":{"typography":{"textTransform":"capitalize","fontSize":"13px"},"color":{"text":"#929292"},"elements":{"link":{"color":{"text":"#929292"}}}},"fontFamily":"Poppins"} /-->

<!-- wp:post-title {"isLink":true,"style":{"color":{"text":"#3a3a3a"},"elements":{"link":{"color":{"text":"#3a3a3a"}}},"typography":{"fontSize":"20px","lineHeight":"1.2","textTransform":"capitalize","fontStyle":"Regular","fontWeight":"500"},"spacing":{"padding":{"top":"0","bottom":"0","left":"0","right":"0"},"margin":{"top":"0","bottom":"0","left":"0","right":"0"}}},"fontFamily":"Cormorant Garamond"} /-->

<!-- wp:post-excerpt {"excerptLength":68,"style":{"color":{"text":"#929292"},"elements":{"link":{"color":{"text":"#929292"}}},"typography":{"fontSize":"12px","lineHeight":"1.2","fontStyle":"Thin","fontWeight":"300"},"spacing":{"padding":{"top":"10px","bottom":"10px","left":"0","right":"0"},"margin":{"top":"0","bottom":"0","left":"0","right":"0"}}},"fontFamily":"Poppins"} /-->

<!-- wp:group {"style":{"spacing":{"padding":{"right":"20px","left":"0","bottom":"0","top":"0"},"margin":{"top":"0","bottom":"0"}}},"layout":{"type":"flex","flexWrap":"nowrap","justifyContent":"space-between"}} -->
<div class="wp-block-group" style="margin-top:0;margin-bottom:0;padding-top:0;padding-right:20px;padding-bottom:0;padding-left:0"><!-- wp:post-author {"style":{"typography":{"textTransform":"capitalize","fontStyle":"Italic","fontWeight":"500","fontSize":"14px"}},"fontFamily":"Poppins"} /-->

<!-- wp:group {"style":{"spacing":{"blockGap":"3px","margin":{"top":"0","bottom":"0"},"padding":{"right":"0","left":"0","top":"0","bottom":"0"}},"color":{"text":"#3a3a3a"},"elements":{"link":{"color":{"text":"#3a3a3a"}}},"typography":{"fontSize":"14px","fontStyle":"Italic","fontWeight":"300"}},"fontFamily":"Poppins","layout":{"type":"flex","flexWrap":"nowrap","justifyContent":"right"}} -->
<div class="wp-block-group has-text-color has-link-color has-poppins-font-family" style="color:#3a3a3a;margin-top:0;margin-bottom:0;padding-top:0;padding-right:0;padding-bottom:0;padding-left:0;font-size:14px;font-style:Italic;font-weight:300"><!-- wp:html -->
<i class="far fa-comment"></i>
<!-- /wp:html -->

<!-- wp:post-comments-count /--></div>
<!-- /wp:group --></div>
<!-- /wp:group --></div>
<!-- /wp:group --></div>
<!-- /wp:column --></div>
<!-- /wp:columns -->
<!-- /wp:post-template --></div>
<!-- /wp:query --></div>
<!-- /wp:group --></div>
<!-- /wp:column -->

<!-- wp:column {"width":"30%","className":"second-sec-right-col"} -->
<div class="wp-block-column second-sec-right-col" style="flex-basis:30%"><!-- wp:heading {"style":{"typography":{"fontSize":"26px"}}} -->
<h2 class="wp-block-heading" style="font-size:26px"><?php esc_html_e('Trending Posts','journal-stories'); ?></h2>
<!-- /wp:heading -->

<!-- wp:query {"queryId":27,"query":{"perPage":100,"pages":0,"offset":0,"postType":"post","order":"desc","orderBy":"date","author":"","search":"","exclude":[],"sticky":"","inherit":false},"metadata":{"categories":["posts"],"patternName":"core/query-small-posts","name":"Small image and title"},"className":"trending-vertical-slider swiper"} -->
<div class="wp-block-query trending-vertical-slider swiper"><!-- wp:post-template {"className":"swiper-wrapper","style":{"border":{"radius":{"topLeft":"0%","topRight":"0%","bottomLeft":"0%","bottomRight":"0%"}},"typography":{"fontSize":"20px"},"spacing":{"blockGap":"0","padding":{"top":"0","bottom":"0","left":"0","right":"0"},"margin":{"top":"0","bottom":"0","left":"0","right":"0"}}},"fontFamily":"Cormorant Garamond"} -->
<!-- wp:group {"className":"swiper-slide","style":{"spacing":{"margin":{"top":"0","bottom":"0"},"padding":{"top":"0","bottom":"0","left":"0","right":"0"}}},"layout":{"type":"constrained"}} -->
<div class="wp-block-group swiper-slide" style="margin-top:0;margin-bottom:0;padding-top:0;padding-right:0;padding-bottom:0;padding-left:0"><!-- wp:columns {"className":"right-side-content-main-col","style":{"spacing":{"blockGap":{"top":"0px","left":"18px"}}}} -->
<div class="wp-block-columns right-side-content-main-col"><!-- wp:column {"verticalAlignment":"top","width":"15%","className":"right-trend-small-img-col"} -->
<div class="wp-block-column is-vertically-aligned-top right-trend-small-img-col" style="flex-basis:15%"><!-- wp:group {"className":"trending-sec-right-img-box","style":{"spacing":{"padding":{"top":"0","bottom":"0","left":"0","right":"0"},"margin":{"top":"0","bottom":"0"}},"dimensions":{"minHeight":""}},"layout":{"type":"constrained"}} -->
<div class="wp-block-group trending-sec-right-img-box" style="margin-top:0;margin-bottom:0;padding-top:0;padding-right:0;padding-bottom:0;padding-left:0"><!-- wp:post-featured-image {"isLink":true,"width":"","height":"110px"} /--></div>
<!-- /wp:group --></div>
<!-- /wp:column -->

<!-- wp:column {"verticalAlignment":"top","width":"80%","className":"right-slider-small-content-col"} -->
<div class="wp-block-column is-vertically-aligned-top right-slider-small-content-col" style="flex-basis:80%" id="trend-post-right-col"><!-- wp:post-title {"level":3,"isLink":true,"style":{"typography":{"fontSize":"17px","fontStyle":"Regular","fontWeight":"600","lineHeight":"1.2"},"color":{"text":"#3a3a3a"},"elements":{"link":{"color":{"text":"#3a3a3a"}}},"spacing":{"margin":{"top":"0","bottom":"0","left":"0","right":"0"},"padding":{"right":"0","left":"0","top":"0","bottom":"0"}}},"fontFamily":"Cormorant Garamond"} /-->

<!-- wp:post-excerpt {"excerptLength":10,"style":{"typography":{"fontSize":"11px","fontStyle":"Light","fontWeight":"300","lineHeight":"1.2"},"color":{"text":"#929292"},"elements":{"link":{"color":{"text":"#929292"}}},"spacing":{"margin":{"right":"0","left":"0","top":"5px","bottom":"0"}}},"fontFamily":"Poppins"} /-->

<!-- wp:group {"style":{"spacing":{"blockGap":"0","margin":{"top":"5px","bottom":"0"},"padding":{"top":"0","bottom":"0","left":"0","right":"0"}},"dimensions":{"minHeight":"0px"}},"layout":{"type":"flex","flexWrap":"nowrap","justifyContent":"space-between"}} -->
<div class="wp-block-group" style="min-height:0px;margin-top:5px;margin-bottom:0;padding-top:0;padding-right:0;padding-bottom:0;padding-left:0"><!-- wp:post-date {"metadata":{"bindings":{"datetime":{"source":"core/post-data","args":{"field":"date"}}}},"style":{"typography":{"fontSize":"12px","fontStyle":"Italic","fontWeight":"500"},"spacing":{"padding":{"top":"0","bottom":"0","left":"0","right":"0"},"margin":{"top":"0","bottom":"0","left":"0","right":"0"}},"color":{"text":"#3a3a3a"},"elements":{"link":{"color":{"text":"#3a3a3a"}}}},"fontFamily":"Poppins"} /-->

<!-- wp:post-author-name {"style":{"typography":{"fontSize":"14px","fontStyle":"Italic","fontWeight":"400"},"spacing":{"padding":{"top":"0","bottom":"0","left":"0","right":"0"},"margin":{"top":"0","bottom":"0","left":"0","right":"0"}},"color":{"text":"#3a3a3a"},"elements":{"link":{"color":{"text":"#3a3a3a"}}}},"fontFamily":"Poppins"} /--></div>
<!-- /wp:group --></div>
<!-- /wp:column --></div>
<!-- /wp:columns --></div>
<!-- /wp:group -->
<!-- /wp:post-template --></div>
<!-- /wp:query --></div>
<!-- /wp:column --></div>
<!-- /wp:columns --></div>
<!-- /wp:group -->
