<?php
while ( $golo_query->have_posts() ) :
	$golo_query->the_post();
	$classes = array( 'grid-item', 'post-item' );
	?>
	<div <?php post_class( implode( ' ', $classes ) ); ?>>
		<div class="post-wrapper golo-box">

			<?php if ( ! empty( $settings['show_thumbnail'] ) && has_post_thumbnail() ) { ?>
				<div class="post-thumbnail-wrapper">
					<div class="post-feature post-thumbnail golo-image">
						<a href="<?php the_permalink(); ?>">
							<?php
							$size = Golo_Image::elementor_parse_image_size( $settings, '80x80' );
							Golo_Image::the_post_thumbnail( array( 'size' => $size ) );
							?>
						</a>

						<?php if ( 'yes' === $settings['show_overlay'] ) : ?>
							<?php get_template_part( 'templates/loop/blog/overlay', $settings['overlay_style'] ); ?>
						<?php endif; ?>
					</div>
				</div>
			<?php } ?>

			<?php if ( 'yes' === $settings['show_caption'] ) : ?>
				<?php get_template_part( 'templates/loop/blog/caption', $settings['caption_style'] ); ?>
			<?php endif; ?>

		</div>
	</div>
<?php
endwhile;
