/*  #Mobile (Portrait)
================================================== */
/* Note: Design for a width of 320px */

@media only screen and (max-width: 767px) {

.content-box {max-width:340px;}
body.home #header, body.page-template-page-company-php #header{height:418px;}
#header {height:178px;}

	/*----------------------------------------
				Navigations
	---------------------------------------- */
	
	/* Primary navigation */
	nav.primary {
		clear:both;
		width:100%;
		margin:0;
		text-align:center;
		padding:10px 0;
		height:20px;
		border-bottom:none;
		border-top:none;
	}
	
	/* Logo */
	.logo {
		width:150px;	
	}
	.logo img{
		width:150px;
		height:auto;
	}
	.logo h1,
	.logo h2 {
		font-size:33px;
		line-height:47px;
		letter-spacing:-2px;
	}
		.logo .tagline {display:none;}
/*----------------------------------------
				Top	Slogan
---------------------------------------- */
	.second-line {padding:0;}	
	
/*----------------------------------------	
				Top search
---------------------------------------- */	
	#top-search {margin-top:20px; left:0;}
	#top-search .input-search {width:207px;}
	
	
	/*---------------------------------------- 
					Slider
	---------------------------------------- */
	.flexslider-holder {height:184px;}
	
	/*---------------------------------------- 
				Content
	---------------------------------------- */
	#content.grid_9 {padding:0; width:300px;}
	img.size-full {
		width:300px;
	}
	#content.left.grid_9  {
		padding:0; 
		width:300px;
	}
	#before-content-area .button{margin-bottom:40px;}
	
	.toggle {padding: 0 0px 5px 0;}
	/* h2 {margin-top:30px;}
	#left-content-area h2{margin-top:0px;} */
	
	/* Flickr widget */
	.flickrImages a {
		width:49px;
		height:49px;
	}
	
	/* Request a quote */
	.box-text {
		width:100%;
		float:none;
	}
	.box-button {
		width:100%;
		float:none;
		text-align:center;
		padding-left:0;
		padding-right:0;
	}
		.box-button .button {float:none;}
	
	/* Post */
	.featured-thumbnail {
		float:none;
		overflow:hidden;
		margin-right:0;
	}
		.featured-thumbnail img {
			width:290px;
			height:auto;
		}
	.post-meta .fright {
		float:none;
		clear:left;
	}
	.featured-thumbnail.large {
		width:300px;
		height:auto;
		margin:0 0 10px 0;
	}
		.featured-thumbnail.large img {width:290px;}
	
/*----------------------------------------
		Page Navigaton (wp-pagenavi)
---------------------------------------- */
	.wp-pagenavi {padding:0px 0 20px 0;}
	.wp-pagenavi a, .wp-pagenavi .current {
		padding:3px 7px 3px 7px;
		margin:0px 3px 4px 0;
		font-size:10px; 
	}
	.wp-pagenavi .extend {margin-right:3px;}
	.wp-pagenavi a.nextpostslink,
	.wp-pagenavi a.last {margin:0px 2px 4px 0px;}

	.wp-pagenavi a.previouspostslink,
	.wp-pagenavi a.first{margin:0px 3px 4px 0;}	
	
	/* Comments */
	.comment-meta {
		position:static;
		padding-bottom:1em;
	}
	.comment-author {
		padding-bottom:0;
	}
	
	#commentform input[type="text"],
	#commentform textarea {
		width:265px;
	}
	
	/* Comment Form */
	.commentlist ul.children {
		margin-left:0;
	}	
/*---------------------------------------
				 404
---------------------------------------- */
.error404-num {font-size:170px;}

/*---------------------------------------- 
				Recent Post Our team
---------------------------------------- */		
	.recent-posts.team li {
		float:none;
		width:300px;
		margin:0 0 30px 0;
	}
		.recent-posts.team li .featured-thumbnail {
			width:300px;
			height:auto;
			overflow:hidden;
			float:none;
		}
		.recent-posts.team li .featured-thumbnail img {
			width:290px; 
			height:auto;
		}
/*---------------------------------------- 
				Recent Post Clients
---------------------------------------- */
.recent-posts.clients li {
		width:300px;
		float:none;
		margin:0 0 30px 0;
	}
	.recent-posts.clients li .featured-thumbnail {
		width:300px;
		height:auto;
		overflow:hidden;
		float:none;
	}
	.recent-posts.clients li .featured-thumbnail img {
		width:290px;
		height:auto;
	}	
	/* Services */
	.recent-posts.services li {
		float:none;
		width:100%;
		margin:0 0 30px 0;
		}
	
	/* Testimonials list*/
	article.testimonial {
		padding:340px 20px 30px 30px;
		background:none;
	}
		article.testimonial .featured-thumbnail {width:260px;}
			article.testimonial .featured-thumbnail img {width:192px; height:auto; margin-left:25px;}
	
	.testi-single {
		padding:240px 20px 30px 30px;
		background-position:10px 230px;
	}
		.testi-single .featured-thumbnail {width:260px;}
			.testi-single .featured-thumbnail img {width:250px; height:auto;}
		
		.testi-pic {
			left:10px;
			top:10px;
			width:50px;
			height:50px;
		}
			.testi-pic img {
				padding:2px;
				width:100%;
				height:auto;
				}
	
	/* Images */
	.frame.alignleft,
	.frame.alignright,
	.frame.alignnone {
		margin-right:0;
		width:284px;
		}
	.frame.alignleft img,
	.frame.alignright img,
	.frame.alignnone img	{
		width:100%;
		height:auto;
		}
		
	
	/* Related Posts */
	.related-posts li {
		width:auto;
		float:none;
		margin:0 0 .5em 0;
	}
	.related-posts li:first-child {
		margin-left:0;
	}
	.related-posts li .featured-thumbnail {
		display:none;
	}
	
	
	/* SlidesJS */
	.slides_container {
		width:300px;
	}
	.slides_container .item {
		width:300px;
		height:250px;
	}
	.slides_container .item .thumbnail img {
		width:100%;
		height:auto;
		}

	
	
	/* Comments */
	.commentlist ul.children {
		margin-left:0;
		}
			

/*----------------------------------------
				Portfolio
---------------------------------------- */
/* Default layout 3 columns */
#gallery .portfolio li {
	width:270px;
	margin:0 0px 30px 0;
	float:none;
}
	#gallery .portfolio li a.image-wrap {
		width:270px;
		height:169px;
	}
		#gallery .portfolio li a.image-wrap img {
			width:100%;
			height:auto;
		}
/* 1 column portfolio*/
#gallery.one_column .portfolio li {
	width:270px;
	padding:15px;
	margin:0 0px 30px 0;
	float:none;
}
#gallery.one_column .portfolio li a.image-wrap {
	width:270px;
	height:145px;
	float:none;
	margin-left:0px;
}
	#gallery.one_column .portfolio li .folio-desc {padding-right:0px;}


/* 2 columns portfolio*/
#gallery.two_columns .portfolio li {
	width:270px;
	margin:0 0 30px 0;
	float:none;
}
	#gallery.two_columns .portfolio li a.image-wrap {
		width:270px;
		height:160px;
	}
	
/* 4 columns portfolio*/
#gallery.four_columns .portfolio li {
	width:270px;
	margin:0 0 30px 0;
	float:none;
}
	#gallery.four_columns .portfolio li a.image-wrap {
		width:270px;
		height:175px;
	}



/* Carousel */
.es-carousel ul li h4 {
	display:none;
	}
.es-carousel ul li .excerpt {
	display:none;
	}
.es-carousel ul li .link {
	display:none;
	}	

.post_list .featured-thumbnail {
	float:left;
	margin:0 20px 0 0;
	}

.latestpost .featured-thumbnail {
	float:left;
	margin:0 20px 0 0;
	}


/* Post Formats
---------------------------------------- */

/* Image Post Format */
.image-post-format img {
	width:100%;
	overflow:hidden;
	}

/* Gallery Post Format */
.slides_container_gallery {
	width:300px;
	height:150px;
	}
	.slides_container_gallery .g_item {
		width:300px;
		}	

/* Audio Format Type */
.audiojs .scrubber {
	width:130px;
	}

	
	
/* Google Map */
.google-map {
	position: relative;
	padding-bottom: 46.25%;
	height: 0;
	overflow: hidden;
	margin:0 0 4% 0;
}
.google-map iframe,  
.google-map object,  
.google-map embed {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	}
	
/* Contact form */
.wpcf7-form p.field input {width:266px;}
.wpcf7-form textarea {
	float:left;
	width:266px;
}
.wpcf7-not-valid-tip {
	width:286px !important;
	position:absolute;
	left:0 !important;
	top:0 !important;
	padding:6px 0 7px 10px !important;
	background:#f3b7b7 !important;
	color:red !important;
	border:1px solid red !important;
}
		
	
/*----------------------------------------
				Footer
---------------------------------------- */
nav.footer {
	float:none;
	text-align:center;
	padding:10px 0 10px 0;
}

#footer-text {
	width:auto;
	float:none;
	text-align:center;
	margin-bottom:35px;
}
.widget-footer {text-align:center; margin-bottom:35px;}
.widget-footer dl {text-align:left; padding-left:70px;}

.widget-footer ul {
	padding:7px 20px 0 40px;
	margin:0 0 26px 0;
}
	.widget-footer ul.xoxo li {
		width:200px;
		margin-right:22px;
		text-align:left;
	}
}