
<?php if ( $the_query->have_posts() ) : ?>
	<div class="tm-sc tm-sc-pet tm-sc-pet-masonry <?php echo esc_attr(implode(' ', $classes)); ?>">
		<?php include('filter.php'); ?>

		<!-- Isotope Gallery Grid -->
		<div id="<?php echo esc_attr( $holder_id ) ?>" class="isotope-layout masonry grid-<?php echo esc_attr( $columns ); ?> clearfix">
			<div class="isotope-item isotope-item-sizer"></div>

			<!-- the loop -->
			<?php while ( $the_query->have_posts() ) : $the_query->the_post(); ?>
			<?php include('filter-term-list-each-post.php'); ?>
			<?php include('common-php-codes.php'); ?>
			<div class="isotope-item <?php echo esc_attr( $term_slugs_list_string );?> lightgallery-lightbox">
				<?php educacion_mascot_get_cpt_template_part( 'each-item', $design_style, 'pet/shortcodes/tpl', $params, false ); ?>
			</div>
			<?php endwhile; ?>
			<!-- end of the loop -->
		</div>
		<?php wp_reset_postdata(); ?>
	</div>
		
	<?php educacion_mascot_get_cpt_template_part( 'show-more-btn', null, 'pet/shortcodes/tpl', $params, false ); ?>

<?php else : ?>
	<?php educacion_mascot_no_posts_match_criteria_text(); ?>
<?php endif; ?>