/*******************************
	Last Updated: 2015-10-28
*******************************/
/*******************************
	Desktop
*******************************/
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	border: none;
	outline: none;
	-webkit-font-smoothing: antialiased;
}

html {
	width: 100%;
	height: 100%;
	font-size: 62.5%;
}
body {
	width: 100%;
	height: 100%;
	min-width: 320px;
	min-height: 100%;
	background: #080808;
	font-family: 'Helvetica Neue', 'Pingfang SC', 'Lantinghei SC', sans-serif;
	font-size: 16px;
	font-weight: 300;
	line-height: 140%;
	color: #aaa;
}


#wrapper {
	width: 100%;
	height: 100%;
}

.parallax-window {
	width: 100%;
}


/*	COVER	*/

#cover {
	width: 100%;
	height: 100vh;
	-webkit-background-size: cover;
	-moz-background-size: cover;
	-o-background-size: cover;
	background-size: cover;
	background-image: url('./scars-01.jpg');
	background-color: transparent;
	background-repeat: no-repeat;
	background-position: 10% 100%;
	color: #fff;
	position: relative;
}

#cover .caption {
	position: absolute;
	right: 10px;
	bottom: -25px;
	color: rgba(255,255,255,0.6);
	font-size: 12px;
	font-weight: 400;
	text-shadow: 0px 1px 2px #000;
}

#cover .gradient {
/*
	position: absolute;
	left: 0;
	bottom: 0;
	width: 100%;
	height: 100%;
	background-image: linear-gradient(rgba(0,0,0,0), rgba(0,0,0,0.5));
	z-index: 100;
*/
}

#cover #title {
	position: absolute;
	bottom: 20%;
	left: 15%;
	width: 100%;
	max-width: 640px;
	padding: 25px 70px 20px 40px;
	background: rgba(0,0,0,0.5);
}

#title h1 {
	width: 100%;

}
#title h1 img {
	width: 100%;
}
#title .meta:before {
	content: '';
	display: block;
	width: 64px;
	border-top: 1px solid rgba(255,255,255,0.5);
	margin: 10px 0 5px;
}
#title .meta {
	opacity: 0.8;
	font-weight: 300;
}
#title .meta .byline {
	margin-right: 10px;
	font-size: 14px;
}
#title .meta .pub-date {
	font-size: 12px;
}

#title .summary {
	font-size: 14px;
	line-height: 140%;
	margin-top: 5px;
}
#title .summary p {
	text-align: justify;
}

.share {
	clear: both;
	float: left;
	height: 24px;
	margin-top: 15px;
	margin-left: 1px;
	display: block;
}
.share a {
	display: inline-block;
	height: 24px;
	margin-right: 10px;
	background-repeat: no-repeat;
	background-position: 0 0;
	opacity: 0.6;
	transition: all .2s ease-in-out;
}
.share a:hover {
	opacity: 1;
}
.share a.twitter {
	width: 28px;
	background-size: 28px 24px;
	background-image: url('./share_twitter.svg');
}
.share a.facebook {
	width: 22px;
	background-size: 22px 22px;
	background-image: url('./share_facebook.svg');
}


/*	ARTICLE	*/

#article {
	clear: both;
	width: 100%;
	max-width: 720px;
	overflow: hidden;
	margin: 0 auto 20px;
	color: #ddd;
}

#article p {
	text-align: justify;
	margin-bottom: 20px;
}
#article p.notes {
	font-size: 14px;
	line-height: 140%;
	margin-bottom: 10px;
	color: #666;
}

#article:before,
#article:after {
	content: '';
	display: block;
	width: 96px;
	margin: 40px auto;
	border-top: 2px solid #222;
}


/*	ALBUM	*/

ul#album {
	clear: both;
	width: 80vw;
	max-width: 1920px;
	height: auto;
	margin: 0 auto;
}
	
ul#album li {
	width: 100%;
	height: 100%;
	overflow: hidden;
	margin-bottom: 50px;
}

ul#album li:after {
	content: '';
	display: block;
	width: 96px;
	margin: 25px auto 0;
	border-top: 2px solid #222;
}

figure {}
figure img {
	width: 100%;
	height: auto;
	border: none;
	object-fit: contain;
}

figcaption {
	width: 100%;
	max-width: 720px;
	font-size: 14px;
	text-align: center;
	margin: 20px auto 0;
	padding: 0 16px;
}

.ratio-box {
	position: relative;
	height: 0;
	overflow: hidden;
	padding-bottom: 66.69%;
	background-color: #0c0c0c;
	/*
	-webkit-animation: flash 2s linear infinite;
	animation: flash 2s linear infinite;
	*/
}
@-webkit-keyframes flash {
	0%   {background-color: #080808;}
	50%  {background-color: #0c0c0c;}
	100% {background-color: #080808;}
}
@keyframes flash {
	0%   {background-color: #080808;}
	50%  {background-color: #0c0c0c;}
	100% {background-color: #080808;}
}

.ratio-box:before {
	content: '';
	position: absolute;
	width: 200%;
	height: 200%;
	top: -50%;
	left: -50%;
	background-image: url('./loading.svg');
	background-size: 64px 64px;
	background-position: 50% 50%;
	background-repeat: no-repeat;
	opacity: 0.5;
	-webkit-animation: spin 2s infinite;
	animation: spin 2s infinite;
	zoom: 0.8;
}
@-webkit-keyframes spin {
    0%   {-webkit-transform: rotate(0deg);}
    100% {-webkit-transform: rotate(360deg);}
}
@keyframes spin {
    0% {transform:rotate(0deg);}
    100% {transform:rotate(360deg);}
}

.ratio-box img {
	position: absolute;
	top: 0;
	left: 0;
}

.ratio-75 {
	padding-bottom: 75%;
}

.lazy {
	opacity: 0;
	transition: opacity .5s ease;
	-webkit-transition: opacity .5s ease-in-out;
}



/* SLIDESHOW */

#slideshow {
	clear: both;

	margin-bottom: 80px;
}

.parallax-window {
	width: 100%;
    min-height: 100vh;
    background: transparent;
}

.parallax-container {
	position: relative;
	width: 100%;
	height: 100vh;
	display: block;
	float: left;
}
.parallax-container .align-left {
	left: 15%;
}
.parallax-container .align-center {
	left: 40%;
}
.parallax-container .align-right {
	left: auto;
	right: 15%;
}

.story {
	position: absolute;
	top: 60%;
	padding: 15px 20px 20px;
	background: rgba(0,0,0,0.6);
	font-size: 14px;
	text-align: justify;
	color: #fff;
	max-width: 480px;
}
.story p {
	font-size: 16px;
	font-weight: 400;
	border-left: 5px solid rgba(255,255,255,0.3);
	padding-left: 10px;
	margin-top: 10px;
	margin-bottom: 0;
}
.story span {
	display: block;
	font-size: 14px;
}















/*	CREDITS	*/

ul#credits {
	clear: both;
	list-style: none;
	width: 100%;
	background: #111;
	margin-top: 20px;
	padding: 20px;
	font-size: 14px;
	color: #666;
}
ul#credits li {
	overflow: hidden;
	text-align: center;

}
ul#credits li strong {
	font-weight: 500;
	color: #999;
}


/*	FOOTER	*/

footer {
	clear: both;
	width: 100%;
	padding: 40px 0;
	font-family: Palatino, Times, serif;
	font-size: 12px;
	font-weight: 300;
	text-align: center;
	color: #666;
}



/*	HACKS & PATCHES	*/

.mobile-cover-patch {
	display: none;
}




/*******************************
	iPad LANDSCAPE
*******************************/
@media only screen
and (min-device-width: 768px)
and (max-device-width: 1024px)
and (orientation: landscape)
and (-webkit-min-device-pixel-ratio: 2) {
body {
}

#cover #title {
	left: auto;
	right: 0;
	bottom: 25%;
    background: rgba(0,0,0,0.7);
}
ul#album {
	width: 90%;
}

}



/*******************************
	iPad PORTRAIT
*******************************/
@media only screen
and (min-device-width: 768px)
and (max-device-width: 1024px)
and (orientation: portrait)
and (-webkit-min-device-pixel-ratio: 2) {
body {}

#cover #title {
	left: auto;
	right: 0;
	bottom: 30%;
    background: rgba(0,0,0,0.7);
}

#article {
	max-width: 640px;
}

ul#album {
	width: 100%;
}

}



/*******************************
	iPhone
*******************************/
@media only screen
and (min-width: 320px)
and (max-width: 480px) {
body {
}

#cover #title {
	bottom: 15%;
}
#cover .caption {
	bottom: 0;
	right: 0;
	padding: 0 5px;
	text-shadow: none;
	background: rgba(0,0,0,0.5);
	color: rgba(255,255,255,0.8);
}
#cover .caption span {
	display:none;
}
.pub-date {
	display: block;
}

#article {
	padding: 0 16px;
	margin-bottom: 10px;
}

#cover #title {
	left: auto;
	right: 0;
	max-width: 90%;
	padding: 25px 30px 15px 25px;
}

#title .meta:before {
	margin: 12px 0 10px;
}

.summary {
	display: none;
}

.share {
/*
	display: none;
*/
}

#article:before,
#article:after {
	margin: 30px auto;
}

ul#album {
	width: 100%;
	max-width: 100%;
}

ul#album li {
	margin-bottom: 0;
}
.ratio-box:before {
	zoom: 0.6;
}
figcaption {
	margin-top: 15px;
	text-align: left;
}

ul#album li:after {
    margin: 16px auto 32px;
}


.parallax-container .align-left,
.parallax-container .align-center,
.parallax-container .align-right {
	top: auto;
	left: auto;
	right: 0;
	bottom: 0;
}

.story {
	max-width: 100%;
	font-size: 14px;
	padding: 12px 16px 16px;
	background: rgba(0,0,0,0.4);
}
.story p {
	font-size: 14px;
	font-weight: 400;
	line-height: 140%;
	border-left: none;
	padding-left: 0;
	margin-top: 5px;
	margin-bottom: 0;
}

}