/* CSS Document */
/**{
  margin: 0;
  padding: 0;
  outline: none;
  border: none;
    box-sizing: border-box;
}*/
*:before,
*:after{
	box-sizing: border-box;
}

.gallery{
	background:url(../images/banner4.jpg);
    float: left;
    width: 100%;
    color:#fff !important;
	-webkit-animation: backgroundScroll 35s linear infinite;
	animation: backgroundScroll 10s linear infinite;
	background-size:130% 100%;
	background-position:top;
	background-attachment:fixed;
	border-bottom:2px solid #08a0a9;
	position:relative;
}
.gallery > .fa-plus-circle{position:absolute;top:44%;left:15%;}
.gallery > .fa-minus-circle{position:absolute;top:44%;right:15%;}
.gallery .container{
	margin: 4% auto;
	width: 210px;
	height: 140px;
	position: relative;
	perspective: 1000px;
}
.gallery #carousel{
	width: 100%;
	height: 100%;
	position: absolute;
	transform-style: preserve-3d;
	animation: rotation 20s infinite linear;
}
.gallery #carousel:hover{
	animation-play-state: paused;
}
.gallery #carousel figure{
	display: block;
	position: absolute;
	width: 90%;
	height: 50%px;
	left: 10px;
	top: 10px;
	background: black;
	overflow: hidden;
	border: solid 5px black;
}
.gallery #carousel figure:nth-child(1){transform: rotateY(0deg) translateZ(288px);}
.gallery #carousel figure:nth-child(2) { transform: rotateY(40deg) translateZ(288px);}
.gallery #carousel figure:nth-child(3) { transform: rotateY(80deg) translateZ(288px);}
.gallery #carousel figure:nth-child(4) { transform: rotateY(120deg) translateZ(288px);}
.gallery #carousel figure:nth-child(5) { transform: rotateY(160deg) translateZ(288px);}
.gallery #carousel figure:nth-child(6) { transform: rotateY(200deg) translateZ(288px);}
.gallery #carousel figure:nth-child(7) { transform: rotateY(240deg) translateZ(288px);}
.gallery #carousel figure:nth-child(8) { transform: rotateY(280deg) translateZ(288px);}
.gallery #carousel figure:nth-child(9) { transform: rotateY(320deg) translateZ(288px);}

.gallery img{
	//-webkit-filter: grayscale(1);
	cursor: pointer;
	transition: all .5s ease;
}
.gallery img:hover{
	-webkit-filter: grayscale(0);
  transform: scale(1.2,1.2);
}

@keyframes rotation{
	from{
		transform: rotateY(0deg);
	}
	to{
		transform: rotateY(360deg);
	}
}

@keyframes backgroundScroll {
from {background-position: 0 0;}
to {background-position: -400px 0;}
}