/*  #Mobile (Portrait)
================================================== */
/* Note: Design for a width of 320px */

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

#header,
#slider-wrapper,
.primary_content_wrap,
.bg1 {
	width: 320px;
	}

.contentpad,
#content,
#sidebar{
	padding: 40px 0;
}	
/* Navigations
---------------------------------------- */

/* Primary navigation */
nav.primary {
	clear:both;
	width:100%;
	margin:0;
	text-align:center;
}

.sf-menu {
	display:none;
	}

/* Logo */
.logo {
	padding-bottom:15px;
	margin: 46px 0 0;
	}
.logo img{
	width:140px;
	height:auto;
	}
.logo h1,
.logo h2 {
	font-size:1.5em;
	}
	.logo .tagline {
		display:none;
		}
	

/* Top search */
#top-search {
	margin-top:12px;
	}
#top-search .input-search {
	width:130px;
	margin-right:0;
	}
#top-search #submit {
	width:20px;
	height:20px;
	padding:0;
	background:url(../images/search-icon.gif) 0 0 no-repeat;
	text-indent: 100%;
	white-space: nowrap;
	overflow: hidden;
	position:absolute;
	right:0;
	top:8px;
	}


/* Header widget */
#widget-header {
	padding-top: 36px;
	}

.log-form span{
	display: block;
}
/* Slider
---------------------------------------- */
.flexslider-holder {
	height:171px;
	}


.flex-caption {top:35%; left: 5%;}
.flex-caption h1{ font-size: 2.2em; letter-spacing: 0;}
.flex-caption h2{ 
	font-size: 1em;
	letter-spacing: 0;
	padding: 1px 0 0 0;
}
.flex-control-nav {top: 88%; left: 5%;}	
.flex-direction-nav li a {top: 75%;}
.flex-direction-nav li .next {left: 86%;}
.flex-direction-nav li .prev {left: 74%;}
/* 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;
		}

.top-box {
	padding-bottom: 30px;
}
/* Post */
.post-holder .featured-thumbnail {
	float: none;
	margin-right: 0;
	}
	.post-holder .featured-thumbnail img {
		float: none;
		width: 100%;
		height: auto;
		}
.post-meta .fright {
	float:none;
	clear:left;
	}
.featured-thumbnail.large {
	width:auto;
	height:auto;
	margin:0 0 10px 0;
	}


/* Comments */
.comment-meta {
	position:static;
	padding-bottom:1em;
	}
.comment-author {
	padding-bottom:0;
	}

#commentform input[type="text"],
#commentform textarea {
	width:100%;
	}

/* Comment Form */
.commentlist ul.children {
	margin-left:0;
	}	


/* portfolio */
.recent-posts.portfolio{
	padding-bottom: 30px;
}
.recent-posts.portfolio li{
	margin:0 2% 2% 0;
	width: 23%;
}
/* Team */
.recent-posts.team li {
	float:none;
	width:auto;
	margin:0 0 30px 0;
	min-height: 23px;
	}
	.recent-posts.team li .featured-thumbnail {
		width:120px;
		height:auto;
		overflow:hidden;
		float:left;
		margin:0 20px 0 0;
		}

/* Services */
.recent-posts.services li {
	float:none;
	width:100%;
	margin:0 0 30px 0;
	}

.recent-posts.main-services li {
	width: 100%;
	margin: 0 0 3%;
}
.recent-posts.main-services li .featured-thumbnail img{
	width: 100%
}
/* Testimonials list*/
article.testimonial {
	padding:0 0 30px;
	}
article.testimonial .featured-thumbnail{
	display: none;
}
/* 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;
	}


/* Address */
.address dt {
	width:auto;
	margin:0 0 20px 0;
	padding:0 0 0 55px;
	float:none;
	}
.address dd {
	float:none;
	width:auto;
	padding:0 0 0 53px;
	margin:0 0 20px 0;
	}
	.address dd span {
		width:100px;
		}


/* Comments */
.commentlist ul.children {
	margin-left:0;
	}
			

/* Portfolio
---------------------------------------- */

/* Default layout 3 columns */
#gallery .portfolio li {
	width:auto;
	float:none;
	margin-right:0;
	}
	#gallery .portfolio li a.image-wrap {
		width:290px;
		height:200px;
		}
		#gallery .portfolio li a.image-wrap img {
			width:100%;
			height:auto;
			float: none;
			}

/* 1 column portfolio*/
#gallery.one_column .portfolio li a.image-wrap {
	width:290px;
	height:181px;
	float:none;
	}
	#gallery.one_column .folio-desc {
		width:100%;
		padding-top:15px;
		margin:0;
		}
			
/* 4 columns portfolio*/
#gallery.four_columns .portfolio li {
	width:100%;
	margin:0 0 30px 0;
	float:none;
	}
	#gallery.four_columns .portfolio li a.image-wrap {
		width:290px;
		height:209px;
		}
		#gallery.four_columns .portfolio li a img {
			width:100%;
			height:auto;
			}

/* 2 columns portfolio*/
#gallery.two_columns .portfolio li {
	width:100%;
	margin-right:0;
	}
	#gallery.two_columns .portfolio li a.image-wrap {
		width:290px;
		height:188px;
		}

/* 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 2% 0;
}
.google-map iframe,  
.google-map object,  
.google-map embed {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	}
		
/* 404
---------------------------------------- */	
.error404-num {
	font-size:180px;
	line-height:1.2em;
	text-align: center;
	}
#error404 hgroup {
	padding-top:0;
	margin: 0;
	}	
/* Footer
---------------------------------------- */
nav.footer {
	float:none;
	text-align:center;
	padding:0 0 10px 0;
	}

#footer-text {
	width:auto;
	float:none;
	text-align:center;
	padding-bottom: 20px;
	}

	.widget-footer{
		padding-bottom: 20px;
	}
}