<article <?php post_class("rt-post is-style-grid") ?>>
    <?php if (has_post_thumbnail() && rt_get_option('post_element_thumbnail', true)) : ?>
        <figure class="rt-post__thumbnail rt-img" style="aspect-ratio:<?php echo esc_attr(rt_get_option('post_image_ratio', '3/2')) ?>">
            <a href="<?php the_permalink() ?>" title="<?php the_title_attribute(); ?>">
                <?php the_post_thumbnail(rt_get_option('post_image_size', 'medium_large'));  ?>
            </a>
        </figure>
    <?php endif ?>
    <div class="rt-post__body is-layout-flow">

        <h3 class="rt-post__title has-small-font-size md:has-x-small-font-size has-link-overlay line-clamp-3 mt-30">
            <a href="<?php the_permalink() ?>"><?php echo get_the_title() ?></a>
        </h3>

        <?php rt_get_template_part('post/post-meta')?>

    </div>
</article>