* { margin: 0; outline: 0; }
ul, ol { padding:  0; }
a, img { border: 0; }
div.clear { clear: both; line-height: 0; height: 0; font-size: 0; border: 0; padding: 0; margin: 0; }
div.cleafix:after { content: "."; display: block; height: 0; clear: both; visibility: hidden; }


html, body { width: 100%; height: 100%; }

body {
	font-family: 'Helvetica Neue', Arial, sans-serif; 
	font-size: 13px; line-height: 18px;
	color: #333;
	background: #fff;
}

h1 {
	position: fixed;
	top: 28px; left: 20px;
	width: 187px; height: 28px;
	z-index: 1978;
}

h1 a {
	display: block;
	width: 187px; height: 28px;
	background: url(../img/carver_haggard.png) 0 0 no-repeat;
	text-indent: -999em;		
}
	
h2 {
	font-size: 22px; line-height: 25px;
	font-weight: bold;
	margin: 0 0 20px 0;
}

h3 { 
	font-size: 13px; line-height: 18px;
	font-weight: bold;
	margin: 0 0 10px 0;
}

h2+h3 { margin-top: -20px; }

h4 {
	font-size: 13px; line-height: 18px;
	font-weight: bold;
	margin: 10px 0;
}

img { display: block; }

p { margin: 0 0 10px 0; }

p:last-child { margin-bottom: 0; }

.small {
	font-size: 11px; line-height: 15px;
	margin-top: 20px;
}

.small h4 {
	font-size: 11px; line-height: 15px;
	margin: 0;
}

.small p {
	margin-bottom: 5px;
}


a { color: #333; text-decoration: underline; }

.small.spc { margin-top: 40px; }



ul { list-style: none; }
li a { text-decoration: none; }

/* GRID SETUP */
div.col {
	width: 60px;
	float: left;
	margin: 0 0 20px 20px;
}

div.two { width: 140px; }
div.three { width: 220px; }
div.four { width: 300px; }
div.five { width: 380px; }
div.six { width: 460px; }
div.seven { width: 540px; }
div.eight { width: 620px; }
div.nine { width: 700px; }
div.ten { width: 780px; }
div.eleven { width: 860px; }
div.twelve { width: 940px; }

div.first { margin-left: 0; clear: both; }

div.indent { margin-left: 80px; }
div.indent-two { margin-left: 160px; }
div.indent-four { margin-left: 320px; }
div.nobottom { margin-bottom: 0; }



/*ul { background: rgba(245, 245, 230, .8); }*/

/* CONTENT */

#content {
	position: absolute;
	left: 0; top: 0;
	z-index: 3;
}


/* CATEGORIES */

#content.work { padding-bottom: 300px; }

div.category {
	padding-top: 220px; 
	padding-left: 0;
	padding-bottom: 100px;
	margin-bottom: 0;
	min-height: 500px;	
}

div.category div.text { 
	margin: -20px 30px 0 20px; width: 280px;
	min-height: 500px;
}

div.category div.text {  }
div.category h2 { padding-left: 0; }

div.projects  { line-height: 200px;  float: left; clear: none !important;/* width: auto;*/ }

a.project { margin: 10px 10px; display: inline-block; vertical-align: middle; }
a.project img { display: block; background: #eee; margin: 0 0 3px 0; }
a.project { text-decoration: none; }
a.project h3, 
a.project p { margin: 0; line-height: 18px;}

#back {
	position: fixed;
	top: 0; left: 0;
	width: 320px; height: 100%;
	background: url(../img/back-trans.png) 0 0 repeat;
	background: rgba(245, 245, 230, .8);
	z-index: 2;
}


/* MENU */

ul#main {
	font-size: 16px; line-height: 18px;
	font-weight: bold;
	position: fixed;
	left: 340px; top: 34px;
	z-index: 4;
}

ul#main a { color: #c2c2c2; }
ul#main a:hover,
ul#main a.active,
ul#main li.active:hover > a { color: #333; }

ul#main ul { position: absolute; left: 80px; top: 0; width: 80px; }
ul#main li { position: relative; height: 18px; width: 80px; }
ul#main li a { display: inline; width: auto; white-space:nowrap;}
ul#main li li { width: 120px;  }

ul#main ul, 
ul#main:hover a.active+ul { display: none; }
ul#main li:hover ul,
ul#main li:hover a.active+ul,
ul#main a.active+ul { display: block; z-index: 999; }
ul#main li:hover > a { color: #333; }

li.spc { margin-top: 8px; }


/* HOME */
#content.homepage { 
	z-index: 1; 
	margin-left: 340px;	
	top: 200px;
}

#text.homepage { margin-top: 0; }

#content.homepage img,
#content.homepage object,
#content.homepage iframe {
	display: block;
	margin: 3px 0 5px 0;

}

/* NEWS */

#content.news { left: 20px; z-index: 3; }

div.newsentry p.date { margin: 0; }
div.newsentry h2 { margin: 0 0 10px 0; }
div.newsentry { padding-top: 200px; }
div.newsentry img { margin-top: 3px; margin-left: 20px; }
div.newstext { width: 280px; }



/* PROFILE */
#content.profile  { top: 0; left: 20px; padding-top: 0;}
#content.profile div.scrollnav { padding-top: 200px; }
#content.profile div.experience { margin-left: -320px; float: left; }

/* WWORK  */

#cat-overview { margin-left: 10px; }



#header {
	position: fixed;
	left: 20px; top: 200px;
	font-size: 18px; line-height: 24px;
	z-index: 3;
}

#header h2,
#header h3 {
	width: 280px;
	font-size: 22px; line-height: 25px;
	/*font-size: 20px; line-height: 24px;*/
	font-weight: normal;
	margin: 0; 
}

#header h2 { font-weight: bold; }

#text {
	position: absolute;
	left: 20px; top: 200px; margin-top: 62px;
	width: 280px;
	z-index: 3;
}




#images {
	position: absolute;
	left: 20px; top: 265px;
	z-index: 1;
	width: 700px;
	padding-bottom: 200px;
}

#showtext {
	position: fixed;
	left: 20px; top: 200px; margin-top: 62px;
	z-index: 2;
	display: none;
}

div.image {
	width: 940px;
	margin: 0 0 25px 0;
}

div.caption { 
	width: 220px;
	font-size: 11px; line-height: 15px;
	max-width: 460px !important;
}



div.image.right-next img { float: right; }
div.image.right-next div.caption { float: right; text-align: right; margin-right: 20px; margin-top: -3px; }

div.image.left-next img { float: left; }
div.image.left-next div.caption { float: left; text-align: left; margin-left: 20px; margin-top: -3px; }

div.image.right-below img { float: right; }
div.image.right-below div.caption { clear: both; float: right; text-align: left; margin-top: 10px; } /* capt width = image width */

div.image.left-below img { float: left; }
div.image.left-below div.caption { clear: both; float: left; text-align: left; margin-top: 10px;} /* capt width = image width */


div.image.indent { margin-left: 320px; width: 620px; }



div.image:after {
    content: ".";
    display: block;
    height: 0;
    clear: both;
    visibility: hidden;
}






#paginator { 
	margin-top: 30px;
	font-size: 16px; line-height: 18px;
	font-weight: bold;
	color: #c2c2c2;
	position: relative;
	margin-left: 320px;
}

#paginator a { color: #c2c2c2; text-decoration: none; }
#paginator a:hover,
#paginator a.active { color: #333; }
#paginator #prevnext { position: absolute; left: 0; top: 0; width: 160px; }



/* TWEAKS TO PROPER SITE TO ENABLE MOBILE ONLY */

#menu-toggle { display: none; }


/* MOBILE */

@media only screen and (min-device-width : 320px) and (max-device-width : 1024px) {

/* MOBILE STYLE */



	body {
		padding-top: 50px;
	}

	* {
		text-align: left;
		margin: 0; padding: 0; border: 0;
	}


	#header,
	#text,
	#content,
	#images,
	div.image,
	#news,
	div.col,
	div.newsentry,
	#paginator,
	#paginator #prevnext {
		position: static;
		width: 100%;
		margin: 0;
		-moz-box-sizing: border-box; -webkit-box-sizing: border-box; box-sizing: border-box;
	}
	
	div.text {
		padding: 20px !important;
	}
	
	div.newsentry { padding: 0 20px !important; }
	

	/* this is stuff on the homepage */
	#content.homepage { 
		margin: 0;
		padding: 0 20px !important;
	 }


	div.newstext,
	div.newsentry img { margin-left: 0; margin-right: 0; margin-bottom: 10px; }

	div.newsentry { margin-bottom: 30px; }


	img { width: 100% !important; height: auto !important; }

	ul#projects-list li:first-child, /* hide all projects in work meny */
	#cat-overview, /* hide all projects */
	#news-list,
	#back,
	#showtext,
	div.col.experience {
		display: none !important;
	}

	/* WORK */

	/* #content.work div.category { padding-top: 50px !important; } */
	#content.work { padding-top: 0; }
	#content.work div.category { padding-top: 50px !important; }
	#content.work div.category#cat-residential { padding-top: 50px !important; }


	#content.work div.text { margin: 0; padding: 0; width: 100%; }
	#content.work div.category div.text { min-height: 0 !important; }
	#content.work a.project { 
		-moz-box-sizing: border-box !important; -webkit-box-sizing: border-box !important; box-sizing: border-box !important;
		float: left; 
		overflow: hidden !important;
	}
	
	
	
	
	/* END IMAGES */
	
	#content.work div.text div.small { display: none; }

	/* 
	#content.work a.project { 
		width: 33%; height: 350px; 
	}
	 */
 
	div.text {
		-moz-box-sizing: border-box; -webkit-box-sizing: border-box; box-sizing: border-box;
		margin-bottom: 20px !important;
		width: 100% !important;
		background: rgba(245, 245, 230, 1);
	 }





	#content.profile div.scrollnav { 
		padding: 70px 20px 0 20px;
		margin: 0 0 40px 0;
	}


	/* project */
	
	body.project #header,
	body.project #text,
	body.project #images {
		-moz-box-sizing: border-box; -webkit-box-sizing: border-box; box-sizing: border-box;
		width: 100% !important;
		padding: 0 20px !important;
	}	
	
	body.project #header {
		padding-top: 20px !important;
		padding-bottom: 20px !important;
		background: rgba(245, 245, 230, 1);
		margin-bottom: 0 !important;
	}

	#images div.image {
		width: 100%; margin: 0; padding: 0;
	}

	#header h3 { margin-bottom: 20px !important; }

	div.caption { width: 100% !important; margin: 0; float: left !important; margin-bottom: 20px; }

	body.project #text {
		background: rgba(245, 245, 230, 1);
		padding-top: 0 !important;
		padding-bottom: 20px !important;
		margin-bottom: 20px !important;
		margin-top: 0px !important;
	}


	#profile-practice { padding-top: 70px !important; }



	h1 { 
		top: 0; left: 0; 
		height: 50px;
		-moz-box-sizing: border-box; -webkit-box-sizing: border-box; box-sizing: border-box;
		width: 100%; padding: 12px 20px 10px 20px;
		background: #fff;
		border-bottom: 1px solid #aaa;
		background: rgba(245, 245, 230, 1);
	}
	
	
	#content.news { padding-top: 20px; }

	#paginator { 
		-moz-box-sizing: border-box; -webkit-box-sizing: border-box; box-sizing: border-box;
		display: block;
		position: static;
		width: 100% !important;
		margin-bottom: 20px; 
		background: green !important;
		margin: 0 !important; padding: 0 !important; border: 0 !important;
		clear: both;
		
		border-top: 20px solid white !important;
		border-bottom: 40px solid white !important;
	}
	
	#prevnext { 
		-moz-box-sizing: border-box; -webkit-box-sizing: border-box; box-sizing: border-box;
		display: inline; 
		position: static; 
		margin: 0 !important; 
		width: 100% !important; 
		float: left;
		width: 100%;

		margin: 0 !important; padding: 0 !important; border: 0 !important;
	}
	
	#prevnext a {
		-moz-box-sizing: border-box; -webkit-box-sizing: border-box; box-sizing: border-box;
		margin: 0 !important; padding: 0 !important; border: 0 !important;
		clear: none !Important;
	}
	
	#prevnext a.next { width: 40%; float: right !important; text-align: right; }
	#prevnext a.prev { width: 40%; float: left !important; text-align: left; }

	#prevnext br { display: none; }

	/* reset list styles */

	ul, li {
		margin: 0 !important;
		padding: 0 !important;
		border: 0 !important;
		-moz-box-sizing: border-box !important; -webkit-box-sizing: border-box !important; box-sizing: border-box !important;
		position: static !important;
		left: auto !important;
		top: auto !important;
		display: block;
		height: auto !important;
		color: #333 !important;
		width: 100% !important;
	}

	/* override this sspecifically but not with important */
	ul#main ul, 
	ul#main:hover a.active+ul { display: block; }

	ul#main {
		position: fixed !important;
		left: 0 !important; top: 0 !important;
		width: 100% !important;
		padding-bottom: 20px !important;
		background: rgba(245, 245, 230, 1) !important;
		padding-top: 50px !important;
		min-height: 100% !important;
		max-width: 100% !important; overflow: hidden !important;
		
		display: block;
	}

	ul#main > li {
		/* border-bottom: 1px solid #ccc !important; */
		width: 100% !important;
		padding: 5px 0 !important;
	}
	
	ul#main li:last-child {
		border-bottom: none !important;
	}


	ul#main a {
		width: 100% !important;
		display: block !important;
		padding: 3px 20px !important;
		line-height: 18px !important; height: 18px !important;
		color: #333 !important;
	}

	ul#main li ul li a {
		padding-left: 40px !important;
	}

	
	ul#main li a:active,
	ul#main li a:hover {
		background: #333 !important;
		color: #fff !important;
	}



	#menu-toggle {
		position: fixed;
		top: 10px; right: 20px;
		width: 30px; height: 30px;
		background: #eee;
		z-index: 19210;
		text-indent: -999em;
		display: block;
		
		background: url(../img/menu-toggle.png) 0 0 no-repeat;
		
		opacity: .5;
	}

	#menu-toggle:active,
	#menu-toggle.active {
		opacity: 1;
	}

 
} /* end mobile style */


@media only screen and (max-width: 400px) {
	/* single image */

	#content.work a.project {
		width: 100%; margin: 0 0 50px 0;
		padding: 0 20px;
	}
	
}


	





@media only screen and (min-width: 400px) and (max-width: 600px) and (min-device-width : 320px) and (max-device-width : 1024px) {

	/* two images */
	#content.work a.project {
		width: 50%; 
		height: 200px;
		margin: 0 0 20px 0 !important;
		border-left: 20px solid white;
		border-right: 10px solid white;
	}

	#content.work a.project:nth-child(2n+1) {
		border-right: 20px solid white;
		border-left: 10px solid white;
	}

	#content.work a.project img {
		height: 170px !important; 
		width: auto !important;
		margin-bottom: 10px;
	}
	
}



@media only screen and (min-width: 600px) and (min-device-width : 320px) and (max-device-width : 1024px) {



	/* three images */
	#content.work a.project {
		width: 33.3%; 
		height: 260px;
		margin: 0 0 20px 0 !important;
		border-left: 20px solid white;
		border-right: 10px solid white;
		overflow: hidden;
	}

	#content.work a.project:nth-child(2n+1) {
		border-right: 10px solid white;
		border-left: 10px solid white;
	}

	#content.work a.project:nth-child(3n+1) {
		border-right: 20px solid white;
		border-left: 10px solid white;
	}

	#content.work a.project img {
		height: 200px !important; 
		min-height: 200px !important; 

		width: auto !important;
		margin-bottom: 10px;
	}


	p { max-width: 500px !important; }
	
	
	ul#main a {
		width: 100% !important;
		display: block !important;
		padding: 5px 20px !important;
		line-height: 20px !important; height: 20px !important;
	}
	
	ul#main a:hover,
	ul#main a:active { background: #333; }
	
	
	div.newsentry img,
	#images div.image img {
		max-width: 600px; float: left;
	}



}


@media only screen and (min-width: 600px) and (orientation: portrait) and (min-device-width : 320px) and (max-device-width : 1024px) {

	/* two images */
	#content.work a.project {
		width: 50%; 
		height: 250px;
		margin: 0 0 20px 0 !important;
		border-left: 20px solid white;
		border-right: 10px solid white;
	}

	#content.work a.project:nth-child(2n+1) {
		border-right: 20px solid white;
		border-left: 10px solid white;
	}

	#content.work a.project img {
		height: 170px !important; 
		width: auto !important;
		margin-bottom: 10px;
	}


}