/* Royal Realty hero slideshow - full-bleed background carousel (5 slides) */

.slideshow {
	list-style: none;
	margin: 0;
	padding: 0;
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 0;
	overflow: hidden;
}

.slideshow li {
	margin: 0;
	padding: 0;
}

.slideshow li span {
	width: 100%;
	height: 100%;
	position: absolute;
	top: 0;
	left: 0;
	color: transparent;
	font-size: 0;
	background-size: cover;
	background-position: center center;
	background-repeat: no-repeat;
	opacity: 0;
	z-index: 0;
	-webkit-backface-visibility: hidden;
	backface-visibility: hidden;
	-webkit-animation: imageAnimation 30s linear infinite 0s;
	-moz-animation: imageAnimation 30s linear infinite 0s;
	animation: imageAnimation 30s linear infinite 0s;
}

.slideshow li:nth-child(1) span {
	background-image: url(../uploads/slider_01.jpg);
}

.slideshow li:nth-child(2) span {
	background-image: url(../uploads/slider_02.jpg);
	-webkit-animation-delay: 6s;
	-moz-animation-delay: 6s;
	animation-delay: 6s;
}

.slideshow li:nth-child(3) span {
	background-image: url(../uploads/slider_03.jpg);
	-webkit-animation-delay: 12s;
	-moz-animation-delay: 12s;
	animation-delay: 12s;
}

.slideshow li:nth-child(4) span {
	background-image: url(../uploads/slider_04.jpg);
	-webkit-animation-delay: 18s;
	-moz-animation-delay: 18s;
	animation-delay: 18s;
}

.slideshow li:nth-child(5) span {
	background-image: url(../uploads/slider_05.jpg);
	-webkit-animation-delay: 24s;
	-moz-animation-delay: 24s;
	animation-delay: 24s;
}

/* 5 slides × 6s = 30s cycle */
@-webkit-keyframes imageAnimation {
	0% { opacity: 0; -webkit-animation-timing-function: ease-in; }
	6% { opacity: 1; -webkit-animation-timing-function: ease-out; }
	18% { opacity: 1; }
	25% { opacity: 0; }
	100% { opacity: 0; }
}

@-moz-keyframes imageAnimation {
	0% { opacity: 0; -moz-animation-timing-function: ease-in; }
	6% { opacity: 1; -moz-animation-timing-function: ease-out; }
	18% { opacity: 1; }
	25% { opacity: 0; }
	100% { opacity: 0; }
}

@keyframes imageAnimation {
	0% { opacity: 0; animation-timing-function: ease-in; }
	6% { opacity: 1; animation-timing-function: ease-out; }
	18% { opacity: 1; }
	25% { opacity: 0; }
	100% { opacity: 0; }
}

.no-cssanimations .slideshow li span {
	opacity: 1;
}
