/* The gallery overlay */

#galleryOverlay{
	width:100%;
	height:100%;
	position:fixed;
	top:0;
	left:0;
	opacity:0;
	z-index:100000;
	/*background-color:#000;*/
	background-color:rgba(0,0,0,0.4);
	overflow:hidden;
	display:none;
	
	-moz-transition:opacity 1s ease;
	-webkit-transition:opacity 1s ease;
	transition:opacity 1s ease;
}

/* This class will trigger the animation */

#galleryOverlay.visible{
	opacity:1;
}

#gallerySlider{
	height:84%;
	
	left:0;
	top:9%;
	
	width:100%;
	white-space: nowrap;
	position:absolute;
	
	-moz-transition:left 0.4s ease;
	-webkit-transition:left 0.4s ease;
	transition:left 0.4s ease;
}

#gallerySlider .placeholder{
	background: url("../img/loading.gif") no-repeat center center;
	height: 100%;
	line-height: 1px;
	text-align: center;
	width:100%;
	display:inline-block;
}

#nav-tools{
	position: absolute;
	z-index: 999;
	width: 100%;
	height: 90%;
	top: 0;
}

/* The before element moves the
 * image halfway from the top */

#gallerySlider .placeholder:before{
	content: "";
	display: inline-block;
	height: 50%;
	width: 1px;
	margin-right:-1px;
}

#gallerySlider .placeholder img{
	display: inline-block;	
	max-height: 100%;
	max-width: 100%;
	/* width: 100%; */
	vertical-align: middle;
}

#gallerySlider .placeholder iframe{
	display: inline-block;	
	min-height: 100%;
	min-width: 100%;
	vertical-align: middle;
	
}

#gallerySlider.rightSpring{
	-moz-animation: rightSpring 0.3s;
	-webkit-animation: rightSpring 0.3s;
}

#gallerySlider.leftSpring{
	-moz-animation: leftSpring 0.3s;
	-webkit-animation: leftSpring 0.3s;
}

/* Firefox Keyframe Animations */

@-moz-keyframes rightSpring{
	0%{		margin-left:0px;}
	50%{	margin-left:-30px;}
	100%{	margin-left:0px;}
}

@-moz-keyframes leftSpring{
	0%{		margin-left:0px;}
	50%{	margin-left:30px;}
	100%{	margin-left:0px;}
}

/* Safari and Chrome Keyframe Animations */

@-webkit-keyframes rightSpring{
	0%{		margin-left:0px;}
	50%{	margin-left:-30px;}
	100%{	margin-left:0px;}
}

@-webkit-keyframes leftSpring{
	0%{		margin-left:0px;}
	50%{	margin-left:30px;}
	100%{	margin-left:0px;}
}

/* Arrows */
#prevArrow,#nextArrow{
	position:absolute;
	z-index:30;
	top:46%;
	width:50px;
	height:50px;
	cursor:pointer;
	text-decoration:none;
	background-color:#fff;
	opacity:0.8;
}
#prevArrow i, #nextArrow i {
	font-size:33px;
	line-height:54px;
	font-weight:bold;
	color:#000;
}
#nextArrow {
 right:20px;
 text-align:right;
 padding-right:10px;
}
#nextArrow:hover {
	opacity:1;
}
#prevArrow {
  left:20px;
	text-align:left;
	padding-left:10px;
}
#prevArrow:hover {
	opacity:1;
}	 


/* Close button */

#closeButton {
	position:absolute;
	z-index:500;
	top:20px;
	right:20px;
	width:50px;
	height:50px;
	cursor:pointer;
	text-decoration:none;
	background-color:#fff;
	opacity:0.8;
}
#closeButton i {
	font-size:33px;
	line-height:48px;
	color:#000;
}
#closeButton:hover {
	opacity:1;
}

/* =============================================================================
   IMAGES MINI
   ========================================================================== */
#images_nav {
	position:absolute;
	bottom:10px;	
	width:auto;
	height:65px;
	padding:10px 0px;
	background:rgba(0,0,0,0.6);
}

#images_nav_content {
	position: relative;	
	margin:auto;
	width:100%;
	clear:both;
	height:auto;
	padding-left:15%;
	padding-right:15%;
	height:45px;
	overflow:hidden;
}

.mini_screen {
	display: inline-block;
	position: relative;
	/*
	width:120px;	
	height:70px;
	*/
	padding:8px;
	margin-top:-16px;	
}

.mini_screen img {
	width:100%;
	height:auto;
	opacity:0.5;
	cursor:pointer;
	transition: all 0.2s linear;
}

.mini_image img{
	padding:8% 0;
	background-color: #000;
}

.mini_screen img.current, 
.mini_screen img:hover {
	opacity:1;
}


/* =============================================================================
   IMAGES ADDTHIS
   ========================================================================== */
   
#images_share {
	position:absolute;
	right:20px;
	top:100px;
	width:50px;
	height:auto;
	overflow:hidden;
	cursor:pointer;
}
#images_share_content {
  position:relative;
  float:left;  
  display:inline-block;  
}
#images_share_content a {
	float:left;
	color:#ffffff;
	text-decoration:none;
}
#images_share_content a:hover {
	color:#ff9d00;
}

/* BOUTONS SHARE SOCIAL */
#images_addthis .btn-share {
	background-color: #3a4051;
	text-transform: uppercase;		
	display: inline-block;
	position: relative;
	float: left;	
	width:50px;
	height:50px;
	color:#fff;
	text-align:center;
	font-size:33px;
	line-height:52px;
}

#images_addthis .btn-share:hover {
	background-color: #fff;
	color:#000;
}
#images_addthis .fa-download {
	background-color: #c91f25;
	margin-bottom: 8px;	
}
#images_addthis .fa-facebook {
	background-color: #3b5998;	
	margin-bottom: 8px;	
}
#images_addthis .fa-twitter {
	background-color: #00bef6;	
	margin-bottom: 8px;	
}
#images_addthis .fa-share-alt {
	background-color: #ff9d00;
	color:#1b1b1b;
}

#images_addthis .addthis_button_compact {
	overflow:hidden;
}
/* pour cacher les boutons AddThis */
#images_addthis .addthis_button_twitter span, 
#images_addthis .addthis_button_facebook span,
#images_addthis .addthis_button_compact span {
	display:none;
}


/* =============================================================================
   MEDIAQUERIES POUR LES VERSIONS TABLETTE ET MOBILE
   ========================================================================== */
	 
/* POUR LE ADDTHIS */
@media only screen and (max-width: 1280px) {
	#images_share {
		right:0px;
		left:20px;
		top:20px;
		width:230px;
	}
	#images_addthis .fa-facebook {
		margin-bottom:0px;	
		margin-right:8px;
	}
	#images_addthis .fa-twitter {
		margin-bottom:0px;	
		margin-right:8px;	
	}
	#images_addthis .fa-download {
		margin-bottom:0px;	
		margin-right:8px;
	}
	#images_nav_content {
		padding-left:8%;
		padding-right:8%;
	}
}
@media only screen and (max-width: 340px) {
	#images_share {
		left:10px;
		top:10px;
	}
	#closeButton {
		right:10px;
		top:10px;
	}
	#nextArrow {
	 right:10px;
	}
	#prevArrow {
		left:10px;
	}
}
/* POUR LES MINIATURES */
@media only screen and (min-width:601px) and (max-width:900px) {
	#images_nav_content {
		padding-left:2%;
		padding-right:2%;
	}
}	
@media only screen and (max-width: 600px) {
	#images_nav, 
	#images_nav_content	{
		display:none;
	}
	#prevArrow, #nextArrow {
		top:85%;
	}
}	
/* POUR LES RESOLUTIONS PETITE HAUTEUR (IPHONE4, etc..) */
@media only screen and (max-height: 600px) {
	#images_share {
		display:none;
	}
	#images_nav {
		display:none;	
	}		
	
}	

