<?php 
$pixel_photography_has_header_image = has_header_image();
$pixel_photography_header_image_url = $pixel_photography_has_header_image ? esc_url(get_header_image()) : '';
$pixel_photography_header_style = '';
if ($pixel_photography_has_header_image) {
    $pixel_photography_header_style = sprintf(
        'background-image: url(%s); background-position: center; background-attachment: fixed; background-size: cover;',
        $pixel_photography_header_image_url
    );
}
?>
<header id="masthead" class="site-header header-one py-1 <?php echo esc_attr( get_theme_mod('pixel_photography_sticky_header', false) ? 'sticky-header' : '' ); ?>" <?php if ($pixel_photography_header_style) echo 'style="' . esc_attr($pixel_photography_header_style) . '";'; ?>>
	<div class="bottom-header header-image-wrap">
		<div class="container">
			<div class="row align-items-center">
				<div class="col-lg-3 col-md-4 align-self-center">
					<?php get_template_part( 'template-parts/site', 'branding' ); ?>
				</div>
				<div class="col-lg-6 col-md-4">
					<div class="toggle-menu menu text-center text-md-left">
						<button onclick="pixel_photography_mobile_menu_open()" class="toggle p-2"><i class="fa-solid fa-bars"></i></button>
					</div>
					<div id="responsive" class="nav side_nav">
						<nav id="top_menu" class="nav_menu" role="navigation" aria-label="		<?php esc_attr_e( 'Menu', 'pixel-photography' ); ?>">
							<?php
							    wp_nav_menu( array( 
									'theme_location' => 'menu-1',
									'container_class' => 'navigation clearfix' ,
									'menu_class' => 'clearfix',
									'items_wrap' => '<ul id="%1$s" class="%2$s mobile_nav m-0 px-0">%3$s</ul>',
									'fallback_cb' => 'wp_page_menu',
							    ) ); 
							?>
							<a href="javascript:void(0)" class="closebtn menu" onclick="pixel_photography_mobile_menu_close()"><i class="fa-solid fa-xmark"></i></a>
						</nav>
					</div>
				</div>
				<div class="col-lg-3 col-md-4">
					<?php echo get_search_form(); ?>
				</div>
			</div>
		</div>
	</div>
</header>