#gallery,
#gallery article,
#gallery article ul {
	-webkit-transform-style:preserve-3d;
	-moz-transform-style:preserve-3d;
	-ms-transform-style:preserve-3d;
	-o-transform-style:preserve-3d;
	transform-style:preserve-3d;
}
#gallery {
	width:200px;/*Ширина картинки*/
	height:200px;/*Высота картинки*/
	margin:50px auto;
}
#gallery article {
	width:200px;/*Ширина картинки*/
	height:200px;/*Высота картинки*/
	margin:80px auto 80px auto;
}

#gallery img {
	width:100%;
	height:100%;
	margin:0;
	padding:0;
}

#gallery article li {
	position:absolute;
	width:200px;/*Ширина картинки*/
	height:200px;/*Высота картинки*/
	border:0px solid rgba(0,0,139,0.95);/*Окантовка карусели Толщина - Стиль - Цвет*/
	list-style:none;
	-webkit-transition:1s;
	-moz-transition:1s;
	-ms-transition:1s;
	-o-transition:1s;
	transition:1s;
}
input:nth-of-type(2):checked ~ article,
.carousel {
	width:200px;
	height:200px;
	-webkit-animation:spin-carousel 15s infinite linear;/*Скорость 15секунд*/
	-moz-animation:spin-carousel 15s infinite linear;/*Скорость 15секунд*/
	-ms-animation:spin-carousel 15s infinite linear;/*Скорость 15секунд*/
	-o-animation:spin-carousel 15s infinite linear;/*Скорость 15секунд*/
	animation:spin-carousel 15s infinite linear;/*Скорость 15секунд*/
}
input:nth-of-type(2):checked ~ article li:first-child,
.carousel li:first-child {
	-webkit-transform:rotateY(0deg) translateZ(174px);
	-moz-transform:rotateY(0deg) translateZ(174px);
	-ms-transform:rotateY(0deg) translateZ(174px);
	-o-transform:rotateY(0deg) translateZ(174px);
	transform:rotateY(0deg) translateZ(174px);
}

input:nth-of-type(2):checked ~ article li:nth-child(2),
.carousel li:nth-child(2) {
	-webkit-transform:rotateY(60deg) translateZ(174px);
	-moz-transform:rotateY(60deg) translateZ(174px);
	-ms-transform:rotateY(60deg) translateZ(174px);
	-o-transform:rotateY(60deg) translateZ(174px);
	transform:rotateY(60deg) translateZ(174px);
}

input:nth-of-type(2):checked ~ article li:nth-child(3),
.carousel li:nth-child(3) {
	-webkit-transform:rotateY(120deg) translateZ(174px);
	-moz-transform:rotateY(120deg) translateZ(174px);
	-ms-transform:rotateY(120deg) translateZ(174px);
	-o-transform:rotateY(120deg) translateZ(174px);
	transform:rotateY(120deg) translateZ(174px);
}

input:nth-of-type(2):checked ~ article li:nth-child(4),
.carousel li:nth-child(4) { 
	-webkit-transform:rotateY(180deg) translateZ(174px);
	-moz-transform:rotateY(180deg) translateZ(174px);
	-ms-transform:rotateY(180deg) translateZ(174px);
	-o-transform:rotateY(180deg) translateZ(174px);
	transform:rotateY(180deg) translateZ(174px);
}

input:nth-of-type(2):checked ~ article li:nth-child(5),
.carousel li:nth-child(5) {
	-webkit-transform:rotateY(240deg) translateZ(174px);
	-moz-transform:rotateY(240deg) translateZ(174px);
	-ms-transform:rotateY(240deg) translateZ(174px);
	-o-transform:rotateY(240deg) translateZ(174px);
	transform:rotateY(240deg) translateZ(174px);
}



input:nth-of-type(2):checked ~ article li:last-child,
.carousel li:last-child	{
	-webkit-transform:rotateY(300deg) translateZ(174px);
	-moz-transform:rotateY(300deg) translateZ(174px);
	-ms-transform:rotateY(300deg) translateZ(174px);
	-o-transform:rotateY(300deg) translateZ(174px);
	transform:rotateY(300deg) translateZ(174px);
}
@-webkit-keyframes spin-carousel {
	from	{ -webkit-transform:rotateY(0); }
	to 		{ -webkit-transform:rotateY(360deg); }
}
@-moz-keyframes spin-carousel {
	from	{ -moz-transform:rotateY(0); }
	to 		{ -moz-transform:rotateY(360deg); }
}
@-ms-keyframes spin-carousel {
	from	{ -ms-transform:rotateY(0); }
	to 		{ -ms-transform:rotateY(360deg); }
}
@-o-keyframes spin-carousel {
	from	{ -o-transform:rotateY(0); }
	to 		{ -o-transform:rotateY(360deg); }
}
@keyframes spin-carousel {
	from	{ transform:rotateY(0); }
	to 		{ transform:rotateY(360deg); }
}