<?php
/**
 * The template for displaying attachments
 *
 * @package ClubFitness
 */

get_header(); ?>

<section id="content" class="content content-attachment">
	<div class="container-fluid px-0">
		<div class="row g-0">
			<div class="col-12 col-lg-7 order-1 order-lg-0">
				<div class="content-left position-relative p-4 bg-white">
					<?php $clubfitness_image_size = apply_filters( 'wporg_attachment_size', 'large' ); ?>
					<div class="entry-attachment mb-4">
						<?php
						echo wp_get_attachment_image(
							get_the_ID(),
							$clubfitness_image_size,
							'',
							[
								'class' => 'img-fluid rounded shadow',
							]
						);
						?>
					</div>
				<?php if ( has_excerpt() ) : ?>
					<div class="entry-caption">
						<?php the_excerpt(); ?>
					</div>
				<?php endif; ?>
				</div>
			</div>
			<div class="col-12 col-lg-5 order-0 order-lg-1">
				<div class="content-right position-fixed">
					<?php get_template_part( 'inc/content-right' ); ?>
				</div>
			</div>
		</div>
	</div>
</section>

<?php get_footer(); ?>
