<?php
 // Template Name: Full width Page
?>
<?php get_header(); ?>
<?php $header_image_url = get_header_image(); // Retrieve the default header image

// If the header image is not set, use a fallback
if (!$header_image_url) {
	$header_image_url = get_template_directory_uri() . '/img/default-bg.jpg';
	// Default image URL
} ?>

<header class="banner-header banner-img valign bg-img" data-overlay-light="5" data-background="<?php echo esc_url($header_image_url); ?>">
    <div class="container">
        <div class="row">
            <div class="col-md-7 offset-md-5 text-right caption mt-60">
			   <?php the_title( '<h1 class="entry-title">', '</h1>' ); ?>
            </div>
        </div>
    </div>
</header>

<section id="primary" class="section-padding">
    <div class="container">
        <div class="row">
           <div class="col-lg-12">
                    <?php the_post(); ?>
                    <article class="post-items">
                        <div class="post-content">
                            <?php
                                the_content();
                            ?>
                        </div>
                    </article>					
                    <?php
						if( $post->comment_status == 'open' ) { 
							 comments_template( '', true ); // show comments 
						}
					?>
	</div>
    </div>
  </div>
</section>
<?php get_footer();