/* =============== Responsive Layout =============== */
@media screen and (max-width: 769px) {
	.titleCol1{
		margin-top: 20px;
	}
	.element {
		margin-left: 95px;
	}
	.fa-search {
		top: 12px;
		left: 4px;
		position: absolute;
		color: #bcbcbc;
	}
	.search {
		position: relative;
		margin-top: 10px;
	}
	
}

@media screen and (max-width:640px) {	

	.testimonials_block_1, .testimonials_block_2, .testimonials_block_3{
		padding-left:15px;
	}	
	.tp-rightarrow.default,.tp-leftarrow.default{
		display:none;
	}
	header .logo {
		margin-bottom:20px;
	}
}

@media screen and (max-width:1229px) {
	.column1 .img-wrap{
		height: auto !important;
	}
	
}

@media screen and (min-width:1024px) {
	.bGrid .wrapped-img {
		max-width: 300px !important;
	}
	.columns2 .isotope-item .portfolio_img{
		max-width: 405px;
		height: auto;
	}	
}

@media screen and (min-width:1000px) {
	.bGrid .wrapped-img {
		max-width: 308px !important;
	}
}
@media screen and (min-width:1230px) {
	.bGrid .wrapped-img {
		max-width: 363px !important;
	}
}

@media screen and (min-width:320px) {
	.preview_meta {
		text-align: left;
		padding-left: 0px !important;
	}	
}
@media screen and (max-width:767px) {
	header nav ul#menu > li:hover > ul.sub-menu {
		margin-left: -125px;
	}
	.columns2 .portfolio_img{
		height: 214px ;
		max-width: 214px ;
	}
	.isotope-columns-4 .portfolio_img{
		max-width: 450px;
	}
	.element {
		margin-left:0;
		margin-bottom: 10px !important;
	}
	.boxed_date {
		left:50%;
		margin-left:-84px;
	}
	.blogpost_title,
	.preview_meta,
	.preview_content h2 {
		text-align:center;
	}
	.preview_content {
		padding:65px 0 0 0;
	}
	.preview_content .contentarea {
		margin-left:0;
	}
	.blog_post_image iframe {
		height: 180px;
	}
	
	table td { width:100% !important; display:block; margin-bottom:10px; }
}

@media screen and (max-width:991px) {
	.bGrid .wrapped-img {
		max-width: 230px !important;
	}
	.titleCol1 {
		margin-top: 20px;
	}
	.shortcodes .main_wrapper .gallery-item {
		border-radius: 100%;
		height: auto;
		max-width: 125px !important;
	}
	.gall-pad{
		padding-bottom: 0px !important;
	}
	.black{
		margin-top: 20px;
	}
	.black:before, .black:after {
		top: -4px !important;
	}
	.black:after{
		top: -1px !important;
	}
	.isotope-columns-4 .element {
		margin-bottom: 45px !important;
	}
	#reset2 {
		font-family: 'Open Sans', sans-serif;
		font-size: 13px;
		font-weight: 800;
		padding: 10px 22px 16px 21px;
	}
	.shortcodes .black hr {
		margin-top: 12px;
		margin-bottom: 20px;
		border: 0;
		border-top: 1px solid #515151;
	}
	.black:before, .black:after{
		top: -4px;
	}
	.black:after, .black:after {
		top: -1px;
	}
	.hr_wrapper1:before, .hr_wrapper1:after, .hr_wrapper2:before, .hr_wrapper2:after {
		content: '';
		position: absolute;
		display: block;
		left: 50%;
		margin-left: -6px;
		top: -5px !important;
		width: 10px;
		height: 10px;
		border-radius: 100%;
		background: #ffffff;
		border: 1px solid #dcdcdc;
	}
	.hr_wrapper1:after, .hr_wrapper2:after {
		margin-left: -3px;
		top: -2px !important;
		width: 4px;
		height: 4px;
	}
	.columns2 .portfolio_img {
		height: auto;
		max-width: 300px;
	}
	.recent_posts li {
		padding-left: 60px;
	}
	.recent_posts_img {
		width: 50px;
	}
	
	.column1{
		display: inline !important;
		text-align: center !important;
	}
	.column1 .img-wrap{
		height: auto !important;
		display: inline !important;
	}

	.fa-search {
		top: 12px !important;
		
	}
	.search {
		position: relative;
		margin-top: 10px !important;
	}
	.hr_wrapper1:before, .hr_wrapper1:after, .hr_wrapper2:before, .hr_wrapper2:after {
		top: -4px;
	
	}
	.hr_wrapper1:after, .hr_wrapper2:after {
		top: -1px;
	}
	.testim:last-child {
		padding-right: 0px;
		padding-left: 0px !important;
		border-right: 0;
	}
	.testim{
		border-right:none !important;
		border-top:none !important;
		border-bottom:none !important;	
	}
	.testimonials_block_1 {
		border-right:none;
		border-top:none !important;
		border-bottom:none;	
	}.testimonials_block_2 {
		border-right:none;
		border-top:none !important;
		border-bottom:none;	
	}
	.testimonials_block_3 {
		border-right:none;
		border-top:none !important;
		border-bottom:none !important;	
	}
	.testim:last-child{
		padding-right:0px;
		padding-left:0px;
		border-right:0;
	}
	.block3-footer{
		display:block;
		margin-bottom: 30px;
	}
	.block4-footer{
		display: inline-block !important;
	}
	.w1{
		top: 232px!important;
	}
	.gmap{
		height: 320px !important;
	}
}

@media screen and (max-width: 1025px){
	
	.parallax {
		background-position:center center !important;
		background-size:cover !important;
		background-repeat:no-repeat !important;
	}

	@media (max-width: 568px) {
		.parallax {
				/*background-position:absolute !important;
				background-size:100% 200px; !important;
				background-repeat:no-repeat !important;*/
				background-color:#666;
			}
	}
}
@media (min-width: 1200px) {
  .container {
    width: 1200px;
  }
}

/* =============== Retina =============== */
@media only screen and (-webkit-min-device-pixel-ratio: 1.5), only screen and (min-resolution: 144dpi) {	
	header .logo img.logo_def {
		display:none!important;
	}
	header .logo img.logo_retina {
		display:block!important;
	}
}