@media all and (max-width: 1020px) { 
	.main-nav ul li a{margin-right: 1px; padding-right: 9px;}
	#menu-partner-menu li a{width: 113px;}
	
	header.container .banner-advert {
		margin: 10px 60px 0 55px;
	}
	
}


@media all and (max-width: 960px) { 
	
	
	
	/* Posts */	
	.post-thumb,
	.post-content,
	.post-title,
	.post-thumb {
		width: 100%;
		float: none;
	}
	
	header.container .banner-advert {
		margin: 30px 10px 0 10px;
	}
	
	header.container .banner-advert {
		width: 240px;
		height: auto;
	}
	
}

@media all and (max-width: 768px) { 
	
	#header-container{text-align: center;}
	#social-icons, #header-links,.fontResizer{float: none; clear: none;}
	#header-inner-logo{margin: 0 auto; height: 160px; width: 160px;}
	
	.fadein{margin: 0 auto;  float: none;}
	#footer-nav{float: none; margin-bottom: 20px;}
	#header-container #searchform{float: none; clear: none; width: 50%; margin: 0 auto;}
	//#header-container #searchform input[type=text]{width: inherit; }
	header.container .banner-advert {
		float: none;
		margin: 20px auto;
	}
	
	#header-logo-container {
		float: none;
		text-align: center;
		margin-bottom: 20px;
		padding: 0;
		width: 100%;
		margin: 0 auto 20px auto;
	}
	
	.one_half,
	.one_third,
	.two_third,
	.three_fourth,
	.one_fourth,
	.one_fifth,
	.two_fifth,
	.three_fifth,
	.four_fifth,
	.one_sixth,
	.five_sixth,
	.main-sidebar,
	#main-content,
	.post-thumb,
	.post-excerpt,
	.post-title,
	.blog-sidebar,
	.service-box  {
		position: relative;
		margin-right: 0;
		float: none;
		width: 100%;
		margin-bottom: 20px;
	}
	
	.grid-item,
	#portfolio-content,
	.portfolio-sidebar { width: 100% !important }
	#social-icons, #header-links{margin-bottom: 0; margin-top: 0}
	
	.page-template-templatesprojects-category-php #main-content-full a.button { margin-top: auto !important; clear: both !important; }
	.da-thumbs:before, .da-thumbs:after { clear: both; content: " "; display: table; }
	.da-thumbs li { width: 50%; }
}

@media all and (max-width: 524px) { 
	
	
	#header-container #searchform{display: none;}
	#header-container #searchform input[type=text]{}
	
	.page-template-templatesprojects-category-php #main-content-full a.button { margin-top: auto !important; width: 100% !important; }
	.da-thumbs li { width: 100%; }
