<?php get_header(); ?>

	<div class="content">
    <?php if (have_posts()) { while (have_posts()) : the_post(); ?>
    	<div class="slider-container sub-page">
        	<div class="sub-page-header-image-container">
            	<?php 
					if ( has_post_thumbnail() ) {
						the_post_thumbnail();
					} 
				?>
            </div>
            <div class="slider-overlay-container">
                <div class="positioned-container middle-vertical-align">
                    <h1><?php the_title(); ?></h1>
                </div>
            </div>
        </div>
        <div class="contentdiv">
			<?php the_content(); ?>
        </div>
            <?php endwhile; } else { ?>
        <div class="contentdiv">
            <h1>Post not found</h1>
            <p>Sorry, no posts matched your criteria.</p>
        </div>
    <?php } ?>
    </div>
<?php get_footer(); ?>