/* --------------------------------------------------
	
	HOME SLIDER
	
-------------------------------------------------- */

#hslider {
	width: 100%;
	height: 100%;
	min-height: 360px;
	position: relative;
	margin-top: -80px;

	font-size: 12px;
	line-height: 1.25em;
}


/* --------------------------------------------------

	SLIDES

-------------------------------------------------- */

#hslides {
	padding: 0 20px;
    
    z-index: 1;
	position: absolute;
	top: 80px;
	left: 0;
	right: 0;
	bottom: 18.75em;
	margin-bottom: 50px;
}

#hslides:before {
	content: '';
	display: block;

	z-index: 3;
	position: absolute;
	top: 0;
	left: 0;
	background-color: rgba(0,0,0,0.2);

	transition: background-color 400ms ease-out;
}
#hslides.is-loading:before {
	right: 0;
	bottom: 0;
	background-color: rgba(17,17,17,0.8);
}
#hslides.is-loading:after {
	content: '';
	display: block;

	width: 40px;
	height: 40px;
	margin: -20px;

	z-index: 4;
	position: absolute;
	top: 50%;
	left: 50%;

	background-color: #111;
	border-radius: 50%;

	background-image: url(img/loading-dark.gif);
	background-repeat: no-repeat;
	background-position: center center;
}

#hslides .inner {
	max-width: 800px;

	margin: 0 auto;
}


/* --------------------------------------------------
	ITEMS
-------------------------------------------------- */

#hslides .items-wrap {
    height: 0;
    padding: 0 0 56.25%;

    -webkit-box-sizing: border-box;
       -moz-box-sizing: border-box;
            box-sizing: border-box;

    position: relative;

    background-color: #292929;
    background-color: #000;
}

#hslides .item {
	overflow: hidden;
	
	z-index: 1;
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;

    background-color: #292929;
    background-color: #000;
}

#hslides .item img {
	display: block;
	width: auto;
	height: auto;
	margin: 0;

	position: absolute;
	top: 50%;
	left: 50%;
}

#hslides .item iframe {
	display: block;
	width: 100%;
	height: 100%;
	margin: 0;

	position: absolute;
	top: 0;
	left: 0;
}

/* -------------------------
	INFOS
------------------------- */

#hslides .infos {
	width: 100%;
	height: 20px;
	display: table;
	padding: 10px 0;

	font-size: 14px;
	line-height: 20px;
	white-space: nowrap;
}
#hslides .infos .title,
#hslides .infos .pages,
#hslides .infos .action {
	height: 1em;
	display: table-cell;
}
#hslides .infos .title,
#hslides .infos .action {
	width: 50%;
	position: relative;
	text-transform: uppercase;
}
#hslides .infos .title {
	text-align: left;
}
#hslides .infos .action {
	text-align: right;
}
#hslides .infos .pages {
	text-align: center;
	padding: 0 50px;
	position: relative;
}

#hslides .infos .title-inner,
#hslides .infos .action-inner {
	width: 100%;
	display: block;
	
	position: absolute;
	top: 0;
	left: 0;
	right: 0;

	overflow: hidden;
	text-overflow: ellipsis;
}

#hslides .infos .pages .next,
#hslides .infos .pages .prev {
	width: 30px;
	height: 30px;
	margin: -5px 10px;
	display: inline-block;
	vertical-align: middle;
	position: relative;
	outline: none;

	position: absolute;
	top: 0;
}
#hslides .infos .pages .prev {
	left: 0;
}
#hslides .infos .pages .next {
	right: 0;
}
#hslides .infos .pages .next:hover,
#hslides .infos .pages .prev:hover {
	background-color: #555;
}
#hslides .infos .pages .next:after,
#hslides .infos .pages .prev:after {
	content: ' ';

	width: 10px;
	height: 18px;
	display: block;

	margin: -9px -5px;
	position: absolute;
	top: 50%;
	left: 50%;

	/* background-image: url(img/hslider-sprites.png); */
	background-repeat: no-repeat;
	background-position: -2px -2px;
}
#hslides .infos .pages .next:after {
	background-position: -14px -2px;
}




/* --------------------------------------------------

	THUMBS

-------------------------------------------------- */

#hthumbs {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;

	overflow: hidden;

	font-size: 0;
	line-height: 0;
	text-align: center;
	white-space: nowrap;
}

/* #hthumbs:after {
	content: ' ';

	z-index: 2;
	position: absolute;
	top: 0;
	left: 50%;
	bottom: 0;
	width: 60%;
	margin-left: -30%;

	background-color: rgba(0,180,0,0.8);
	pointer-events: none;
} */

#hthumbs.is-grabbing:before {
	content: ' ';

	z-index: 2;
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;

	/*
	cursor: -webkit-grab;
	cursor:    -moz-grab;
	cursor:         grab;
	*/
}

#hthumbs .scroller {
	padding: 10px 5%;
	padding: 10px;
	display: inline-block;
}


/* --------------------------------------------------
	PREV / NEXT
-------------------------------------------------- */

#hthumbs .prev,
#hthumbs .next {
	width: 90px;

	z-index: 2;
	position: absolute;
	top: 0;
	bottom: 0;

	font-size: 12px;

	outline: none;
	background-color: rgba(0,0,0,0.5);
}
#hthumbs .prev {
	left: 0;
}
#hthumbs .next {
	right: 0;
}
#hthumbs .prev:after,
#hthumbs .next:after {
	content: '';
	
	width: 38px;
	height: 70px;
	display: block;
	margin: -15px -19px;
	position: absolute;
	top: 6.25em;
	left: 50%;

	/* background-image: url(img/hslider-sprites.png); */
	background-repeat: no-repeat;
	background-position: -42px -22px;
}
#hthumbs .prev:after {
	background-position: -2px -22px;
}


/* --------------------------------------------------
	ITEMS
-------------------------------------------------- */

#hthumbs .item {
	margin: 5px;
	padding: 5px 5px 6.25em;
	position: relative;
	display: inline-block;
	vertical-align: top;

	color: #fff;
	font-size: 12px;
	line-height: 1.25em;
	text-align: left;
	white-space: normal;

	outline: none;
	text-decoration: none;
}


/* -------------------------
	IMAGE
------------------------- */

#hthumbs .item .image {
	display: block;
	padding: 4px;
	margin-bottom: 15px;
	overflow: hidden;
}
#hthumbs .item .image img {
	display: block;
	margin: -4px;
	max-width: none;
	height: 12.5em;
	width: auto;
}

#hthumbs .item.is-current .image {
	padding: 0;
	border: 4px solid #fff;
}


/* -------------------------
	INFOS
------------------------- */

#hthumbs .item .infos {
	position: absolute;
	margin-top: 15px;
	top: 12.5em;
	left: 5px;
	right: 5px;
}

#hthumbs .item .infos {
	height: 6.25em;
	overflow: hidden;
}

#hthumbs .item .metas,
#hthumbs .item .title {
	display: block;
}
#hthumbs .item .metas {
	color: #8c8c8c;
}
#hthumbs .item .title {
	text-transform: uppercase;
}





/* --------------------------------------------------
	
	RESPONSIVE
	
-------------------------------------------------- */

/* DEBUG * /

#hslider {
    z-index: 999;
    background: rgba(0,0,255,0.2);
}
#hslides {
    background: rgba(255,0,0,0.5);
}
#hthumbs {
    background: rgba(255,255,255,0.2);
}

/* -------------------------
	EN FONCTION DE LA
	HAUTEUR DU HEADER
------------------------- */

@media only screen and (max-width: 850px) {
	#hslider {
		margin-top: -44px;
	}
	#hslides {
		top: 44px;
	}
}


/* --------------------------------------------------
	
-------------------------------------------------- */

/*@media only screen and (max-height: 900px), only screen and (max-width: 600px) {*/
@media only screen and (max-height: 1000px), only screen and (max-width: 1000px) {
	#hslider,
	#hthumbs .prev,
	#hthumbs .next,
	#hthumbs .item {
		font-size: 11px;
	}

	#hslides {
		margin-bottom: 35px;
	}

	#hthumbs .prev:after,
	#hthumbs .next:after {
		margin-top: -20px;
	}

	#hthumbs .item .image {
		margin-bottom: 0;
	}
	#hthumbs .item .infos {
		margin-top: 10px;
	}
}

@media only screen and (max-height: 900px), only screen and (max-width: 900px) {
	#hslider,
	#hthumbs .prev,
	#hthumbs .next,
	#hthumbs .item {
		font-size: 10px;
	}

	#hslides .infos {
		font-size: 11px;
	}
}

@media only screen and (max-height: 800px), only screen and (max-width: 800px) {
	#hslides {
		bottom: 12.5em;
		margin-bottom: 40px;
	}

	#hthumbs .prev:after,
	#hthumbs .next:after {
		top: 50%;
		margin-top: -35px;
	}

	#hthumbs .item {
		padding-bottom: 5px;
	}
	#hthumbs .item .infos {
		display: none;
	}
}

@media only screen and (max-height: 700px), only screen and (max-width: 700px) {
	#hslides {
		bottom: 10em;
		margin-bottom: 30px;
	}

	#hthumbs .scroller {
		padding: 5px;
	}

	#hthumbs .prev,
	#hthumbs .next {
		width: 60px;
	}
	#hthumbs .prev:after,
	#hthumbs .next:after {
		width: 22px;
		height: 40px;
		margin: -20px -11px;
	}
	#hthumbs .prev:after {
		background-position: -82px -22px;
	}
	#hthumbs .next:after {
		background-position: -106px -22px;
	}

	#hthumbs .item + .item {
		margin-left: 0;
	}
	#hthumbs .item .image img {
		height: 10em;
	}
}

@media only screen and (max-height: 550px), only screen and (max-width: 550px) {
	#hslides {
		bottom: 8em;
		margin-bottom: 30px;
	}
	#hthumbs .item .image img {
		height: 8em;
	}
}

@media only screen and (max-height: 450px), only screen and (max-width: 450px) {
	#hslides {
		bottom: 6em;
	}

	#hthumbs .prev,
	#hthumbs .next {
		display: none !important;
	}

	#hthumbs .item .image img {
		height: 6em;
	}
}