/* ==========================================================================
   Layout
   ========================================================================== */

html {
	margin: 0;
	padding: 0;
}

hr {
	display: none;
}

img {
	border: none;
}

a {
	text-decoration: none;
}
body {
	
	/*background-image: url(../images/backgrounds/default.jpg);
	background-repeat: no-repeat;
	background-position: center center;
	background-attachment: fixed; */
	background-repeat: no-repeat;
	background-position: center center;
	background-attachment: fixed;
	margin: 0;
	padding: 0;
}

/* Ensure correct background is used for initial landing page */
body#home {
	background-image: url(../images/backgrounds/default.jpg);
}

body#kensington {
	background-image: url(../images/portfolio/kensington/1.jpg);
}

/* for now, use the same initial background image */
body {
	background-image: url(../images/backgrounds/default.jpg);
}


#content-inner {
	/* margin: 20px 40px; */

}

#page-loading {
	position: fixed;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    background: #fff;
    z-index: 1000;
}

/* ==========================================================================
   Fonts
   ========================================================================== */

body {
	font-size: 0.8em;
    line-height: 1.8;
    font-style: normal;
    font-family: "museo-sans", "HelveticaNeue-Light", "Helvetica Neue Light", "Helvetica Neue", Helvetica, Arial, "Lucida Grande", sans-serif; 
    font-weight: 300;
}

nav#page-nav ul, nav#portfolio-nav h2 {
	font-size: 1.2em;
	text-transform: uppercase;
}
#portfolio-nav ul li h3{
	font-size: 1.5em;
}

nav#page-nav ul li a {
	text-decoration: none;
	outline: 0;
}
h1, h2, h3, h4{
	font-weight: 300;
	color: #7B6A58;
	margin: 0 0 0.8em 0;
	text-transform: uppercase;
}




/* ==========================================================================
   Colours
   ========================================================================== */
.loading {
	background: #000;
}

nav#page-nav, nav#portfolio-nav h2 {
	color: #fff;
	background: #7b6a58;
}

#content, nav#portfolio-nav ul {
	background: #000;
	color: #fff;
}

nav#page-nav ul li a {
	color: #fff;
}
nav#page-nav ul li a:hover {
	color: #333;	
}
nav#page-nav ul li a.active, nav#page-nav ul li a.active:hover, nav#portfolio-nav h2.active, nav#portfolio-nav h2.active.hover {
	color: #FFF;
	outline: 0;
}

nav#page-nav ul li a:hover, nav#portfolio-nav h2.hover {

} 



/* ==========================================================================
   CSS 3 specific
   ========================================================================== */
h1, h2, h3 {
	text-rendering: optimizeLegibility;
}

html.opacity #content{
	background: rgba(0, 0, 0, .7);
}

html.opacity nav#portfolio-nav ul {
	background: rgba(0, 0, 0, .7);
}

html.opacity #footer {
	background: rgba(0, 0, 0, .7);
}

html.backgroundsize body { 
	-webkit-background-size: cover;
	-moz-background-size: cover;
	-o-background-size: cover;
	-ms-background-size: cover;
	background-size: cover;
}

.csstransitions ul#side-nav li a, .csstransitions aside h2 {
	-webkit-transition: color 0.3s linear;
	-moz-transition: color 0.3s linear;
	-o-transition: color 0.3s linear;
	-ms-transition: color 0.3s linear;
	transition: color 0.3s linear;
}





nav#portfolio-nav {
	display: none;
}

header {
	height: 150px;
	background: url(../images/logo.jpg) center center no-repeat;
	overflow: hidden;
	text-indent: -1000em;
}

header, nav, #content {
	width: 100%;

}





body {
	display: inline-block;
	overflow: hidden;
}

.vcenter {
	top: 244px;
}

#page-container {
	display: block;
	position: absolute;
	width: 100%;
	top: 0;
	left: 0;
	min-height: 600px;
	overflow: hidden;
}


header {
	margin: 0 auto;
	width: 350px;
}

nav#page-nav {
	position: absolute;
	left: 0;
	width: 120px;
	height: 280px;
	overflow: hidden;
}

nav#page-nav ul, nav#page-nav ul li {
	margin: 0;
	padding: 0;
}

nav#page-nav ul {
	margin-top: 20px;
	list-style: none;
}

nav#page-nav ul li {
	width: 100%;
	height: 40px;
	line-height: 40px;
	text-indent: 20px;
}



nav#portfolio-nav {
	display: block;
	position: absolute;
	right: -2970px;
	width: 3000px;
	height: 280px;
}

nav#portfolio-nav h2 {
	text-indent: -1000em;
	margin: 0;
	padding: 0;
	display: block;
	width: 30px;
	height: 280px;
	float: left;
	cursor: pointer;
}

nav#portfolio-nav ul {
	display: -moz-inline-stack;
	display: inline-block;
	zoom: 1;
	*display: inline;
	margin: 0;
	padding: 0;
	height: 100%;
	padding-left: 30px;
	border-left-style: solid;
	border-left-width: 30px;
	list-style: none;

}

nav#portfolio-nav ul li {
	margin: 0;
	padding: 0;
	height: 200px;
	width: auto;
	float: left;
	margin-right: 30px;
	margin-top: 40px;

}
nav#portfolio-nav ul li div.thumbnail {
	width: 194px;
	height: 130px;
	border: 1px solid #fff;
}
nav#portfolio-nav ul li div.thumbnail:hover {
	opacity:0.4;
	filter:alpha(opacity=40); /* For IE8 and earlier */
	background-color: #7B6A58 !important;
}

.csstransforms nav#portfolio-nav h2 {
	text-indent: 0;
	text-align: center;
	width: 280px;
	height: 30px;
	line-height: 30px;
    position: absolute;
    top: 280px;
    left: 0;
    -webkit-transform-origin: 0 0;
    -moz-transform-origin:    0 0;
    -ms-transform-origin:     0 0;
    -o-transform-origin:      0 0;
    transform-origin:      0 0;
    -webkit-transform: rotate(-90deg); 
    -moz-transform:    rotate(-90deg); 
    -ms-transform:     rotate(-90deg); 
    -o-transform:      rotate(-90deg); 
    transform:         rotate(-90deg); 

}

#content {
	position: absolute;	
	left: 130px;
	width: 540px;
	overflow: hidden;
	min-height: 280px; /* needed for vertical centering */
	
}

#content-inner {
	padding: 40px;
	min-height: 200px; /* needed for auto-resizing content to keep above a specified size, min-height and top/bottom padding shoudl equal min-height of #content */
	display: -moz-inline-stack;
	display: inline-block;
	zoom: 1;
	*display: inline;
	width: 460px;
	
}


.portfolio-images-wrapper {
	float: left;
	padding: 20px;
}


.portfolio-images-wrapper a {
	height: 64px;
	width: 64px;
	border: 1px solid #FFF;
	float: left;
	display: block;
	margin-right: 20px;
}

.portfolio-images-wrapper a:last-of-type {
	margin-right: 0px;
}


.portfolio-images-wrapper a .thumbnail {
	width: 100%;
	height: 100%;
	display: block;
	background-size: cover !important;
}







footer#footer {
	background: black;
	position: absolute;
	left: 0;
	margin: 0;
	padding: 0;
	bottom: 0px;
	visibility: hidden;	
}


/*
html.csstransitions body {
	-webkit-transition: background-image 3s linear;
	-moz-transition: background-image 3s linear;
	-o-transition: background-image 3s linear;
	transition: background-image 3s linear;
}
*/


/* ==========================================================================
   Helper classes
   ========================================================================== */

.inline {
	display: -moz-inline-stack;
	display: inline-block;
	zoom: 1;
	*display: inline;
}

.ir {
    background-color: transparent;
    border: 0;
    overflow: hidden;
    *text-indent: -9999px;
}

.ir:before {
    content: "";
    display: block;
    width: 0;
    height: 150%;
}

.hidden {
    display: none !important;
    visibility: hidden;
}

.hiddentext {
	text-indent: -1000em;
}

.visuallyhidden {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
}

.visuallyhidden.focusable:active,
.visuallyhidden.focusable:focus {
    clip: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    position: static;
    width: auto;
}

.invisible {
    visibility: hidden;
}

.clearfix:before,
.clearfix:after {
    content: " ";
    display: table;
}

.clearfix:after {
    clear: both;
}

.clearfix {
    *zoom: 1;
}

.clear {
	clear: both;
}


/* ==========================================================================
   jQuery Vegas
   ========================================================================== */

.vegas-loading {
	-moz-border-radius: 10px; -webkit-border-radius:10px; border-radius:10px;
	background: #000 url(../images/vegas/loading.gif) no-repeat center center;
	background: rgba(0, 0, 0, 0.7) url(../images/vegas/loading.gif) no-repeat center center;
	height: 32px;
	left: 20px;
	position: fixed;
	top: 20px;
	width: 32px; 
	z-index: 0;
}

.vegas-overlay {
	background: transparent url(../images/vegas/overlays/01.png);
	opacity: 0.5;
	z-index: -1;
}

.vegas-background {
	image-rendering: optimizeQuality;
	-ms-interpolation-mode: bicubic;
	z-index: -2;
    /* counteracts global img modification by twitter bootstrap library */
    max-width: none !important;
}