<?php
/**
 * Template part for displaying posts in the Image format.
 *
 * Shows the featured image prominently with a minimal caption-style
 * title overlay.
 *
 * @package FansPaysite
 * @since   2.3
 */
?>
<article id="post-<?php the_ID(); ?>" <?php post_class( 'fps-post-card fps-format-image' ); ?>>
	<?php if ( has_post_thumbnail() ) : ?>
		<div class="fps-post-thumbnail fps-image-full">
			<a href="<?php the_permalink(); ?>">
				<?php the_post_thumbnail( 'medium_large', array( 'class' => 'ui image rounded', 'loading' => 'lazy' ) ); ?>
			</a>
		</div>
	<?php endif; ?>
	<div class="fps-post-body">
		<div class="fps-format-icon"><i class="fas fa-image"></i></div>
		<?php if ( get_the_title() ) : ?>
			<h2><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2>
		<?php endif; ?>
		<a href="<?php the_permalink(); ?>" class="fps-format-meta"><?php echo esc_html( get_the_date() ); ?></a>
	</div>
</article>
