@font-face {
    font-family: 'LSS';
    src: url('../fonts/libre_semi_sans_ssi-webfont.eot');
    src: url('../fonts/libre_semi_sans_ssi-webfont.eot?#iefix') format('embedded-opentype'),
         url('../fonts/libre_semi_sans_ssi-webfont.woff') format('woff'),
         url('../fonts/libre_semi_sans_ssi-webfont.ttf') format('truetype'),
         url('../fonts/libre_semi_sans_ssi-webfont.svg#LibreSemiSansSSiRegular') format('svg');
    font-weight: normal;
    font-style: normal;

}
@font-face {
    font-family: 'LSS Black';
    src: url('../fonts/libre_semisans_black_ssi-webfont.eot');
    src: url('../fonts/libre_semisans_black_ssi-webfont.eot?#iefix') format('embedded-opentype'),
         url('../fonts/libre_semisans_black_ssi-webfont.woff') format('woff'),
         url('../fonts/libre_semisans_black_ssi-webfont.ttf') format('truetype'),
         url('../fonts/libre_semisans_black_ssi-webfont.svg#LibreSemiSansBlackSSiXBd') format('svg');
    font-weight: normal;
    font-style: normal;
}

::selection {
		background: #d9d9d9;
}

::-moz-selection {
		background: #d9d9d9;
}


* {
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	-ms-box-sizing: border-box;
	-o-box-sizing: border-box;
	box-sizing: border-box;
}
html, body {
	height: 100%;
}
body {
	display: inline-block;
	font: 300 normal 12px/1.2 'LSS', Arial, sans-serif;
	letter-spacing: 1px;
	color: #000;
	background: #fff;
	overflow-y: hidden;
	overflow-x: auto;
}
a {
	color: #000;
	text-decoration:none;
}
a:hover {
	text-decoration: underline;
}
a:focus {
	outline: none;
}
h1 {
	font: 1em 'LSS Black';
	text-transform: uppercase;
}

/* -------------------------------- TITLE */

#title {
	display: block;
	position: fixed;
	left: 20px;
	width: 6.2em;
	margin: 0;
	padding: .8em 0 .5em 0;

	font: normal 2em/1 Georgia, serif;
	text-align: center;
	letter-spacing: 0;
}
#title a {
	color: #b73535;
}
#title a:hover {
	text-decoration: none;
}
#title:after {
	content:"";
	display: block;
	position: absolute;
	height: 0;
	width: 1.5em;
	border-top: 2px solid #b73535;
	margin-top: .5em;
}

/* -------------------------------- MENU */

nav ul {
	list-style-type: none;
	padding: 0;
	margin: 0;
}
nav .name a,
nav .about a {
	font-family: 'LSS Black';
}
nav .about a {
	text-transform: lowercase;
}
#menu-front {
	height: 100%;
	padding: 10em 0 20px 20px;
}
#menu-front li {
	padding: .4em 0;
}
#menu-serie {
	position: fixed;
	bottom: 25px;
	left: 20px;
}
#menu-serie li {
	display: inline;
	white-space: nowrap;
}
#menu-serie .current a {
	color: #b73535;
}

/* slash separators */
#menu-serie li:after,
#menu-front a:after {
	content: ' /';
}
nav li.about:after,
nav li.about a:after {
	content: '';
}

/* cover */
#menu-front .cover,
#menu-front .about .content {
	position: absolute;
	top: 20px; bottom: 20px;
	left: 25%; right: 25%;

	background-repeat: no-repeat;
	background-position: center center;
	background-size: cover;

	-webkit-transition: all .3s ease;
	-moz-transition: all .3s ease;
	-ms-transition: all .3s ease;
	-o-transition: all .3s ease;
	transition: all .3s ease;
}
#menu-front .about .content {
	top: 20%;
	bottom: 20%;
	right: 20px;
	background-color: #fff;
	padding: 1em 0;

	overflow: auto;
	opacity: 0;
	z-index: -1;
	-webkit-transition: opacity .25s ease, z-index 0 1s linear;
	-moz-transition: opacity .25s ease, z-index 0 1s linear;
	-ms-transition: opacity .25s ease, z-index 0 1s linear;
	-o-transition: opacity .25s ease, z-index 0 1s linear;
	transition: opacity .25s ease, z-index 0 1s linear;
}
#menu-front .about .content:before {
	content: '';
	display: inline-block;
	height: 100%;
	vertical-align: middle;
}
#menu-front .about .content div {
	display: inline-block;
	vertical-align: middle;

	max-width: 45em;
}
#menu-front .about.show .content {
	opacity: 1;
	z-index: 1;
	-webkit-transition: opacity .25s ease;
	-moz-transition: opacity .25s ease;
	-ms-transition: opacity .25s ease;
	-o-transition: opacity .25s ease;
	transition: opacity .25s ease;
}


/* -------------------------------- GALERIES */

#serie {
	display: inline-block;
	height: 100%;
}
#serie-infos {
	position: absolute;
	top: 7.8em; bottom: 3em;
	width: 25em;
	padding: 0 20px;
	overflow: auto;
}
#serie-infos .about {
	margin-top: 1em;
	font-style: italic;
}
#serie-infos .about:before {
	content:"--";
}

#gallery {
	display: inline-block;
	height: 84%;
	height: calc(100vh - 10em);
	padding: 6.5em 30em 0 30em;
	white-space: nowrap;
}
#gallery * {
	-webkit-user-select: none;
	-moz-user-select: -moz-none;
	-ms-user-select: none;
}
#gallery figure {
	position: relative;
	display: inline-block;
	width: auto;
	padding: 0 20px;
}
#gallery figure span {
	width: 25%;
}
#gallery figure,
#gallery figure a,
#gallery figure a * {
	display: inline-block;
	height: 100%;
}
#gallery figure img {
	width: auto;
}
#gallery figcaption {
	margin-bottom: 1em;
	line-height: 0;
	text-align: center;
}
#gallery figcaption .title {
	display: inline;
	font-size: 1em;
	-webkit-user-select: text;
	-moz-user-select: -moz-text;
	-ms-user-select: text;
}

/* loading */

#gallery img.lazy {
	display: none;
}
#gallery img,
#gallery figcaption {
	opacity: 1;
	-webkit-transition: opacity .5s ease;
	-moz-transition: opacity .5s ease;
	-ms-transition: opacity .5s ease;
	-o-transition: opacity .5s ease;
	transition: opacity .5s ease;
}
#gallery figure.load img,
#gallery figure.load figcaption {
	opacity: 0;
}
#gallery figure::after {
	content: "chargement...";
	position: absolute;
	top: 50%;
	left: 50%;
	background: #fff;
	color: #000;
	display: none;
}
#gallery figure.load::after {
	display: block;
}


/* webkit hacks */
@media screen and (-webkit-min-device-pixel-ratio:0) {
	#menu-serie {
		bottom: 0;
	}
	#gallery {
		height: 100%;
		padding-bottom: 8.5em;
	}
}
/* moz hacks */
@-moz-document url-prefix() {
	#gallery figure {
		padding-right: 0;
	}
}


/* -------------------------------- MEDIA QUERIES */

/* big screens */
@media
only screen and (min-width : 1921px) {

	body {
		font-size: 16px;
	}

}
@media
only screen and (max-width : 1280px),
only screen and (min-device-width : 768px)
			and (max-device-width : 1024px)
			and (orientation : landscape) {

	#serie-infos {
		position: fixed;
		top: 20px; bottom: 6em;
		left: 15em; right: 0;
		width: auto;
	}
	#serie-infos * {
		margin: 0;
		padding: 0;
	}
	#serie-infos .about {
		margin: 0;
	}
	#serie-infos .about:before {
		content: '';
	}
	#serie-infos .about .content {
		display: none;
	}
	#gallery {
		padding: 6em 8em 5em 0;
	}
	#menu-front .cover {
		top: 20px;
		bottom: 20px;
		right: 20px;
	}

}
@media
only screen and (min-width: 800px) {

	/* gallery items focus */

	#gallery figure a,
	#gallery.focus figure.active a,
	#gallery.focus figure.active figcaption {
		opacity: 1;

		-webkit-transition: opacity .3s ease;
		-moz-transition: opacity .3s ease;
		-ms-transition: opacity .3s ease;
		-o-transition: opacity .3s ease;
		transition: opacity .3s ease;
	}
	#gallery.focus figure a {
		opacity: .2;
	}
	#gallery figure figcaption {
		opacity: 0;
	}

	/* -------------------------------- WEBKIT-SCROLLBAR */

	::-webkit-scrollbar {
		height: 60px;
	}
	::-webkit-scrollbar-track-piece:horizontal {
		background: -webkit-linear-gradient(bottom,
			transparent 68.5%, #ccc 68.5%,
			#ccc 71.5%, transparent 71.5%);
		background: linear-gradient(bottom,
			transparent 68.5%, #ccc 68.5%,
			#ccc 71.5%, transparent 71.5%);
		margin: 20px;
	}
	::-webkit-scrollbar-thumb:horizontal {
		background: -webkit-linear-gradient(bottom,
			transparent 68.5%, #b73535 68.5%,
			#b73535 71.5%, transparent 71.5%);
		background: linear-gradient(bottom,
			transparent 68.5%, #b73535 68.5%,
			#b73535 71.5%, transparent 71.5%);
	}

	::-webkit-scrollbar:vertical {
		width: 2px;
	}
	::-webkit-scrollbar-track-piece:vertical {
		background: #ccc;
	}
	::-webkit-scrollbar-thumb:vertical {
		background: #b73535;
	}

}


/**
 * vertical mode
 */
@media
only screen and (max-width: 800px),
only screen and (max-height: 600px)
			and (orientation : portrait) {

	body {
		display: block;
		position: static;
		overflow-x: hidden;
		overflow-y: auto;
		font-size: 16px;
		padding: 1em 0;
	}
	#title,
	#menu-serie,
	#menu-front .about .content,
	#serie,
	#serie-infos,
	#gallery,
	#gallery figure,
	#gallery figure a {
		display: block;
		position: static;
		padding: 0;
		width: auto;
		height: auto;
	}
	#title {
		margin: auto;
		width: auto;
	}
	#title span {
		padding: .2em;
	}
	#title:after {
		position: static;
		margin: .5em auto 0 auto;
	}
	nav a {
		padding: 1.3em .7em;
	}
	#menu-front {
		padding: 1em 0 0 0;
		text-align: center;
	}
	#menu-front li {
		display: inline-block;
	}
	#menu-front a {
		padding: .5em 1em;
		display: inline-block;
	}
	#menu-front .cover {
		display: block;
		top: 15em; left: 0;
		bottom: 0; right: 0;
	}
	#menu-front .show .cover {
		bottom: 30%;
	}
	#menu-front .about .content {
		margin: 0;
		max-height: 0;
		margin-top: 0;
		text-align: left;
	}
	#menu-front .show .content {
		position: absolute;
		top: 70%; bottom: auto;
		right: 0; left: 0;

		max-height: 100em;
		padding: 0 3%;
	}
	#menu-serie {
		margin: 1.5em 0;
		text-align: center;
	}
	#menu-serie .name,
	#menu-serie .about,
	#menu-serie .current{
		display: none;
	}

	#serie-infos  {
		padding: 1em 3%;
	}
	#gallery figure a * {
		display: inline;
	}
	#gallery figure a {
		text-align: center;
	}
	#gallery figure img {
		max-width: 100%;
		max-height: 100%;
		height: auto;
		margin: auto;
	}
	#gallery figure {
		position: relative;
		margin: 4em 0;
		margin: 13vw 0;
		padding: 1em 0;
		padding: 2vw 0;
	}
	#gallery figcaption {
		font-size: 12px;
	}
}

/**
 * minimum-height mode
 * smartphones landscapes
 */
@media
only screen and (max-width: 800px)
			and (orientation : landscape) {

	#gallery figure img {
		max-height: none;
	}
}
