/*
 * HTML5 Boilerplate
 *
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */

/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */
html,button,input,select,textarea {
	color: #222;
}

body {
	font-size: 1em;
	line-height: 1.4;
}

/*
 * Remove text-shadow in selection highlight: h5bp.com/i
 * These selection rule sets have to be separate.
 * Customize the background color to match your design.
 */
::-moz-selection {
	background: #b3d4fc;
	text-shadow: none;
}

::selection {
	background: #b3d4fc;
	text-shadow: none;
}

/*
 * A better looking default horizontal rule
 */
hr {
	display: block;
	height: 1px;
	border: 0;
	border-top: 1px solid #ccc;
	margin: 1em 0;
	padding: 0;
}

/*
 * Remove the gap between images and the bottom of their containers: h5bp.com/i/440
 */
img {
	vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */
fieldset {
	border: 0;
	margin: 0;
	padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */
textarea {
	resize: vertical;
}

/* ==========================================================================
   Chrome Frame prompt
   ========================================================================== */
.chromeframe {
	margin: 0.2em 0;
	background: #ccc;
	color: #000;
	padding: 0.2em 0;
}

/* ==========================================================================
   PhotogSite's custom stylez - Author: Jonathan Bell
   ========================================================================== */

/*
TODO: make a really wide screen layout with media queries.
*/
* {
	-moz-box-sizing: border-box;
	-webkit-box-sizing: border-box;
	box-sizing: border-box;
}

body {
	/*    font-family: serif; */
	color: #333;
	font-size: 0.813em;
	letter-spacing: 1px;
}

h1,h2,h3,h4,h5,h6 {
	font-weight: normal;
	/*font-style: italic;*/
}

h1 a:hover,h2 a:hover,h3 a:hover,h4 a:hover,h5 a:hover,h6 a:hover {
	text-decoration: none;
}

img,video {
	width: 100%;
	max-width: 900px;
}

ul,ol,li {
	list-style: none;
	padding: 0;
	margin: 0;
}

a,a:hover,a:active,a:visited {
	text-decoration: none;
	color: #333;
}

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

.splash-image {
	width: 100%;
	float: left;
	margin-bottom: 1em;
}

.splash-image img {
	max-width: 666px !important;
	max-height: 666px;
}

.container {
	
}

.sidebar {
	padding: 0 1em 5em 1em;
	position: relative;
}

.site-logo {
	max-width: 100px;
	float: right;
}

small {
	display: block;
}

.main-nav {
	/*    font-style: italic; */
	line-height: 1.8;
}

.js .main-content-list {
	max-height: 1024px;
}

.js .image-item,.js .video-item,.js .portfolio-video,.js .portfolio-image
	{
	max-height: 1008px;
}

.contact-links {
	margin-top: 1em;
	/*    text-transform: capitalize; */
}

.site-info {
	margin-top: 3em;
	opacity: 0.9;
	font-size: 0.9em;
	/*display: none;*/
}

.js-menu {
	margin-top: 1.5em;
	font-size: 1.5em;
	text-transform: lowercase;
}

.single.image,.single.video {
	min-width: 50%;
	max-width: 100% !important;
}

.single.image {
	cursor: pointer;
}

.js .intro-text {
	display: inline-block;
	overflow: auto;
}

.js .intro-text pre {
	padding: 1em;
	font-family: serif;
	padding-top: 1.5em;
}

.about-text a {
	color: grey;
}

.js .caption {
	display: block;
	text-align: center;
	padding-top: 0.777%;
	padding-bottom: 0.555%;
	margin: 0;
}

/** Change fotorama caption */
.caption-fotorama {
	font-size: 0.6em;
	line-height: 1.3;
	letter-spacing: 1px;
	outline-color: rgb(51, 51, 51);
	color: rgb(51, 51, 51);
}

.fotorama__wrap--css3 .fotorama__caption {
	background-color: rgba(255, 255, 255, 0.3) !important;
}

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

/*
 * Image replacement
 */
.ir {
	background-color: transparent;
	border: 0;
	overflow: hidden;
	/* IE 6/7 fallback */
	*text-indent: -9999px;
}

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

/*
 * Hide from both screenreaders and browsers: h5bp.com/u
 */
.hidden {
	display: none !important;
	visibility: hidden;
}

/*
 * Hide only visually, but have it available for screenreaders: h5bp.com/v
 */
.visuallyhidden {
	border: 0;
	clip: rect(0, 0, 0, 0);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
}

/*
 * Extends the .visuallyhidden class to allow the element to be focusable
 * when navigated to via the keyboard: h5bp.com/p
 */
.visuallyhidden.focusable:active,.visuallyhidden.focusable:focus {
	clip: auto;
	height: auto;
	margin: 0;
	overflow: visible;
	position: static;
	width: auto;
}

/*
 * Hide visually and from screenreaders, but maintain layout
 */
.invisible {
	visibility: hidden;
}

/*
 * Clearfix: contain floats
 *
 * For modern browsers
 * 1. The space content is one way to avoid an Opera bug when the
 *    `contenteditable` attribute is included anywhere else in the document.
 *    Otherwise it causes space to appear at the top and bottom of elements
 *    that receive the `clearfix` class.
 * 2. The use of `table` rather than `block` is only necessary if using
 *    `:before` to contain the top-margins of child elements.
 */
.clearfix:before,.clearfix:after {
	content: " "; /* 1 */
	display: table; /* 2 */
}

.clearfix:after {
	clear: both;
}

/*
 * For IE 6/7 only
 * Include this rule to trigger hasLayout and contain floats.
 */
.clearfix {
	*zoom: 1;
}

/* ==========================================================================
   These examples override the primary ('mobile first') styles.
   MEDIA QUERIES! :)
   ========================================================================== */
@media only screen and (min-width: 768px) {
	body {
		font-size: .8em;
		line-height: 1.3;
	}
	.site-logo {
		width: auto;
		max-width: 67% !important;
		float: none;
		margin-top: -3px;
		margin-bottom: 1.777em;
		opacity: 1;
	}
	.splash-image {
		width: 71%;
	}
	.splash-image img {
		/* width: 100% !important; */
		
	}
	img,video {
		width: auto !important;
		max-width: 999999px !important;
	}
	.sidebar {
		width: 19%;
		text-align: right;
		float: left;
		padding: 1em;
		padding-right: 1.5em;
	}
	.js .not-front .sidebar {
		position: fixed;
		background: white;
		background: rgba(255, 255, 255, 0.697);
	}
	.share-section {
		-webkit-filter: grayscale(1.0);
		/*     display: inline-block;*/
		right: 5px;
		width: 110px;
		/*   float: right;
        position: absolute;
	bottom: 0; */
	}
	article {
		width: 100%;
		float: left;
	}
	.main-content-fotorama {
		width: 81%; /*  Inverse of     .sidebar{width: 19%;}*/
		float: right;
		padding-right: 7px;
		padding-top: 7px;
	}
	.js .main-content-list {
		width: 100%;
		white-space: nowrap;
		overflow-x: auto;
		overflow-y: hidden;
	}
	.js .not-front .main-content-list,.js .about article {
		padding-left: 19%; /* same value as width of the .sidebar */
	}
	.about article {
		padding-left: 21%; /* add two percent from above */
		max-width: 900px;
		margin-top: 3.333em;
	}
	.js .video-item,.js .image-item {
		display: inline-block;
		width: auto !important;
		vertical-align: bottom;
	}
	.site-info {
		display: block;
		font-size: x-small;
	}

	/*    .js .intro-text {
        width: 27%;
    } */
}

@media only screen and (min-width: 1024px) {
	body {
		font-size: .8em;
		line-height: 1.3;
	}
	.sidebar {
		padding-right: 2.5em;
		width: 15.333%;
	}
	.js .not-front .main-content-list {
		padding-left: 15.333%
	}
	.main-content-fotorama {
		width: 84.667%;
		float: right;
		padding-top: 14px;
	}
	.share-section {
		-webkit-filter: grayscale(1.0);
		/*     display: inline-block;
        position: absolute;
        right: 15px; */
		width: 110px;
		float: right;
	}
}

@media only screen and (min-width: 1500px) {
	.sidebar {
		padding-right: 3em;
		width: 13.333%;
	}
	.js .not-front .main-content-list {
		padding-left: 13.333%
	}
	.main-content-fotorama {
		width: 86.667%;
		float: right;
		padding-top: 20px;
	}
	.share-section {
		-webkit-filter: grayscale(1.0);
		/*     display: inline-block;
        position: absolute;
        right: 25px; */
		width: 110px;
		float: right;
	}
}

@media only screen and (max-width: 768px) {
	.sidebar {
		padding: 0 1em 2em 1em;
	}
	.about article {
		padding: 1em;
	}
	.main-content-fotorama {
		padding-right: 4px;
		padding-top: 4px;
	}
	.share-section {
		-webkit-filter: grayscale(1.0);
		/*     display: inline-block;
        position: absolute;
        right: 25px; */
		width: 110px;
		float: left;
	}
}

/* ==========================================================================
   Print styles.
   Inlined to avoid required HTTP connection: h5bp.com/r
   ========================================================================== */
@media print {
	* {
		background: transparent !important;
		color: #000 !important; /* Black prints faster: h5bp.com/s */
		box-shadow: none !important;
		text-shadow: none !important;
	}
	a,a:visited {
		text-decoration: underline;
	}
	a[href]:after {
		content: " (" attr(href) ")";
	}
	abbr[title]:after {
		content: " (" attr(title) ")";
	}

	/*
     * Don't show links for images, or javascript/internal links
     */
	.ir a:after,a[href^="javascript:"]:after,a[href^="#"]:after {
		content: "";
	}
	pre,blockquote {
		border: 1px solid #999;
		page-break-inside: avoid;
	}
	thead {
		display: table-header-group; /* h5bp.com/t */
	}
	tr,img {
		page-break-inside: avoid;
	}
	img {
		max-width: 100% !important;
	}
	@page {
		margin: 0.5cm;
	}
	p,h2,h3 {
		orphans: 3;
		widows: 3;
	}
	h2,h3 {
		page-break-after: avoid;
	}
}