
/* set some sane defaults */

body, header, nav, main, section, figure, figcaption, div, p, li, ol, ul, img {
	margin: 0;
	padding: 0;
	font-size: 19px;
	line-height: 27px;
	color: #303030;
}

* {
	font-family: "Ubuntu", sans-serif;
}

em {
	font-weight: bold;
	font-style: italic;
	padding-right: 0.2em; /* slight kerning adjustment */	
}

/* link colors and behavior */

a, a:link, a:visited, a:active, a:hover {
	text-decoration: none;
	color: gray;
	/*transition-timing-function: ease-in;
	transition: color .2s;
	-webkit-transition: color .2s;*/
}

a:hover {
	color: black;
	/*transition-duration: 0s;*/
}

/* general layout: nav on the left, so rest of the page needs to go to the right a bit */
/* also sets up some margins, padding, borders etc. */

html, body {
	height: 100%;
}

header {
	position: fixed;
	top: 0;
	left: 0;
	width: 150px;
	height: 100%;
	padding: 0 30px;
	border-right: 1px solid black;

	/* when scrolling horizontally, scroll the page underneath the nav bar */
	/* TODO use trickery to fix it vertically but not horizontally */
	background: white;
	z-index: 1;
}

main {
	margin-left: 210px;
	margin-top: -30px;
	max-width: 850px;
	height: 100%;
}

section {
	/* section can't have vertical padding or the 'min-height: 100%' trick for the
	   last section won't work. using margin-top instead won't work because then 
	   the links won't scroll the page correctly. */
	padding: 0 30px;
	margin-top: 30px;
}

section h2 {
	/* add the padding to the headers instead */
	padding-top: 74px;
}

section.fullpage {
	/* expand the last section to an entire page */
	min-height: 100%;
}

/* margin control within sections */

p, ul {
	margin: 15px 30px;
}

p > .hanging {
	margin-left: -30px;
}

/* main nav links */

header nav a {
	display: block;
	padding: 15px 0;
}

/* top navigation for the gallery */

main.gallery {
	/* prev and next must always fit next to eachother */
	min-width: 360px;
}

main.gallery nav {
	position: relative;
	text-align: center;
	padding-top: 30px;
}

main.gallery nav a {
	padding: 30px;
	/* a.back will not be centered correctly if a.next/prev do not have same width */
	width: 120px;
}

main.gallery nav a.prev {
	float: left;
	text-align: left;
}

main.gallery nav a.next {
	float: right;
	text-align: right;
}

main.gallery nav a.back {
	display: inline-block;
	width: auto;
}

/* adjusting icon positions */

.glyphicons {
	vertical-align: middle !important;
	position: relative;
	top: -1px;
	margin: 2px;
}

/* contact links */

.contactlinks li {
	list-style: none;
	margin: 15px;
	margin-left: 0;
}

/* figure and caption for the gallery */

main.gallery figure {
	text-align: center;
}

main.gallery figure figcaption h2 {
	margin: 15px 0;	
}

main.gallery figure figcaption {
	font-size: 16px;
	padding: 15px 0;
}

/* alternate view thumbnails in the gallery */

main.gallery figure figcaption {
	position: relative;
}

main.gallery figure figcaption .thumbnails {
	position: absolute;
	top: 0;
	right: 0;
	margin-right: 0;
}

main.gallery figure figcaption .thumbnails .current {
	display: none;
}

/* headings */

h1 {
	text-transform: uppercase;
	font-weight: normal;
	font-size: 34px;
	line-height: 38px;
	margin-top: 30px;
	margin-bottom: 20px;
}

h2 {
	font-size: 24px;
	line-height: 32px;
	font-weight: normal;
	color: gray;
	display: block;
	margin: 0;
	margin-bottom: 30px;
}

section > h2 {
	border-bottom: 1px solid gray;
	padding-left: 3px;
}

/* thumbnail grids */

.thumbnails {
	padding-left: 30px;
}

.thumbnails li {
	list-style: none;
	display: inline-block;
	width: 105px;
	height: 105px;
	margin: 9px;
	line-height: 105px;
	text-align: center;
}

.thumbnails li a img {
	vertical-align: middle;
	max-height: 100%;
	max-width: 100%;
	-webkit-box-shadow: 3px 3px 5px 0px rgba(128,128,128,0.75);
	-moz-box-shadow: 3px 3px 5px 0px rgba(128,128,128,0.75);
	box-shadow: 3px 3px 5px 0px rgba(128,128,128,0.75);	
	/*transition: transform .2s;
	-webkit-transition: -webkit-transform .2s;*/
}

.thumbnails li a:hover img {
	-webkit-box-shadow: 4px 4px 10px 0px rgba(128,128,128,0.75);
	-moz-box-shadow: 4px 4px 10px 0px rgba(128,128,128,0.75);
	box-shadow: 4px 4px 10px 0px rgba(128,128,128,0.75);
	-ms-transform: translate(-1px, -1px); 
	-webkit-transform: translate(-1px, -1px);
	transform: translate(-1px, -1px);
	/*transition: none;*/
}





