/*

	Description: Media CSS
	Last Modified: 16/05/2012
	
*/

@media only screen and (max-height: 550px){
	#nav ul li {
		font-size: 18px;
		line-height: 1.3em;
	}
}


@media only screen and (min-width: 1224px){
	#section-wrapper {
		left: 8%;
		min-width: 92%;
	}
}


@media only screen and (max-width: 1024px){
	
	/* reset grid */
	
	.one-half,
	.two-thirds,
	.one-third,
	.one-fourth,
	.three-fourths {
		float: none;
		width: 100%;
		margin: 20px 0 20px;
		padding-left: 0;
	}
	
	/* convert portfolio to vertical list */
	
	.portfolio .portfolio-list li {
		width: 85%;
		max-width: 320px;
		margin: 0 auto;
		float: none;
		margin-bottom: 20px;
	}
	
	.portfolio .portfolio-list .plist-inner {
		margin-right: 0;
	}
	
	img#about-photo {
		width: 50%;
		float: left;
		height: auto;
		margin: 0 10px 10px 0;
	}
	
	/* convert blog to vertical list */
	
	.blog .blog-list .blog-meta ul {
		float: left;
		margin: -10px 0 10px;
		padding: 0;
		border: 0;
	}
	
	.blog .blog-list > li {
		padding-bottom: 50px;
		border-bottom: 1px dashed #ccc;
		margin-bottom: 10px;
	}
	
	.blog .blog-list > li:last-child {
		margin-bottom: 0;
		border-bottom: none;
	}

	.blog .blog-list .blog-meta ul li {
		float: left;
		margin-right: 10px;
	}
	
	.blog .blog-list a[rel="blog-entry"] {
		position: absolute;
		bottom: 30px;
		left: 0;
	}
	
	.blog .blog-short {
    	clear: both;
	}
	
	/* sections */
	
	#section-wrapper .fancyscroll-section {
		height: 824px;
	}
	
	#section-wrapper .section-content {
		max-height: 624px;
		border-top-width: 20px;
		border-bottom-width: 20px;
		top: 10px!important;
	}
	
	#section-wrapper #home { top: 0px; }
	#section-wrapper #about { top: 824px; }
	#section-wrapper #portfolio { top: 1648px; }
	#section-wrapper #blog { top: 2472px; }
	#section-wrapper #features { top:  3296px; }
	#section-wrapper #contact { top: 4120px; }

}


@media only screen and (max-width: 800px){
	
	/* move sitebar menu to the top */

	#header {
		position: fixed;
		top: 0;
		left: 0;
		width: auto;
		min-width: 100%;
		height: 80px;
		max-width: none;
		/* bottom shadow */
		box-shadow: 0 3px 5px rgba(0,0,0,0.3);
		-webkit-box-shadow: 0 3px 5px rgba(0,0,0,0.3);
	}
	
	#header::before {
		display: none;
	}
	
	#header #logo {
		top: 0;
		float: left;
		height: 100%;
		width: auto;	
		min-height: 0;
		margin-left: 2%;	
	}
	
	#header #logo img {
		max-height: 100%; 
	}

	#header #multitab_wrap {
		display: none;
	}
		
	#header #nav {
		float: right;
		height: 100%;
		min-height: 0;
		margin-right: 10px;
	}
	
	#header #nav ul {
		left: 0;
	}
	
	#header #nav li {
		line-height: 20px;
		right: auto;
		float: left;
		margin-top: 30px;
		margin-right: 10px;
		font-size: 16px;
	}
	
	#nav a[href^="http://"]::before {
		margin-right: 1px;
	}
	
	#contact-me {
		display: block;
		margin: 40px 0 0 10px;
	}
	
	/* sections */
	
	#section-wrapper {
		left: 0px;
		width: 100%;
	}	
			
	#section-wrapper .fancyscroll-section {
		height: 650px;
	}
	
	#section-wrapper .section-content {
		max-height: 500px;
		border-top-width: 10px;
		border-bottom-width: 10px;
		width: 65%;
		top: 85px!important;
	}
	
	#section-wrapper #home { top: 0px; }
	#section-wrapper #about { top: 650px; }
	#section-wrapper #portfolio { top: 1300px; }
	#section-wrapper #blog { top: 1950px; }
	#section-wrapper #features { top:  2600px; }
	#section-wrapper #contact { top: 3250px; }
}


@media only screen and (max-width: 640px){
	
	#section-wrapper .fancyscroll-section {
		height: 540px;
	}
		
	#section-wrapper .section-content {
		width: 70%;
		max-height: 430px;
		padding: 0 20px 0 10px;
	}
	
	#section-wrapper #home { top: 0px; }
	#section-wrapper #about { top: 540px; }
	#section-wrapper #portfolio { top: 1080px; }
	#section-wrapper #blog { top: 1620px; }
	#section-wrapper #features { top:  2160px; }
	#section-wrapper #contact { top: 2700px; }
	
	.portfolio .portfolio-work .pnav-back span {
		display: none;
	}
	
	#contact-me {
		display: none;
	}
	
	#header #nav li {
		margin-right: 7px;
	}
}


@media only screen and (max-width: 480px){	
	#header {
		height: 60px;
	}
	
	#contact-me {
		display: none;
	}
	
	#header #nav li {
		font-size: 13px;
		margin-right: 5px;
		margin-top: 20px;
	}
		
	#map {
		height: 200px;
	}
	
	textarea {
		width: 280px;
	}
	
	.gohome { display: none; }
	
	img.frame {
		border: 0;
		padding: 0;
	}
	
	.portfolio .portfolio-list li { 
		margin-bottom: 10px;
	}
	
	/* sections */
	
	#section-wrapper .fancyscroll-section {
		height: 430px;
	}
		
	#section-wrapper .section-content {
		max-height: 340px;
		width: 80%;
		top: 65px!important;
	}
	
	#section-wrapper #home { top: 0px; }
	#section-wrapper #about { top: 430px; }
	#section-wrapper #portfolio { top: 860px; }
	#section-wrapper #blog { top: 1290px; }
	#section-wrapper #features { top: 1720px; }
	#section-wrapper #contact { top: 2150px; }
	
	#home #brand {background-position:  center 150px !important; }
}


@media only screen and (max-width: 320px) {
	#header #logo {
		display: none;
	}
}