<?php 
	if(is_archive()){
		$post_layout = get_theme_mod( 'archive_layout', 'right-sidebar');
	}else if(is_search()){
		$post_layout = get_theme_mod( 'search_layout', 'right-sidebar');
	}else{
		$post_layout = get_theme_mod( 'blog_layout', 'right-sidebar');
	}

	if( $post_layout == 'grid'){
		$post_column = 'grid-post-item col-lg-4 col-md-6';
	}else if ($post_layout == 'grid-ls' || $post_layout == 'grid-rs'){
		$post_column = 'grid-post-item col-lg-6 col-md-6';
	}else{
		$post_column = 'col-lg-12';
	}
?>

<div class="single-post-item <?php echo esc_attr( $post_column ); ?>">
	<?php get_template_part( 'template-parts/post/post-item');?>
</div>