.clear {
	clear: both;
}

#slideshow {
	position: relative;
	width: 840px;
	height: 340px;
	border: 0px solid #888;
	background-color: #F4F4F4;
	border-radius: 0px 0px 0px 0px;
	-webkit-box-shadow: 0px -1px 4px 0px rgba(0,0,0,0.20);
	-moz-box-shadow: 0px -1px 4px 0px rgba(0,0,0,0.20);
	box-shadow: 0px -1px 4px 0px rgba(0,0,0,0.20);
}

/* SLIDES */

#slideshow .slides {
	position: relative;
	width: 840px;
	height: 340px;
	padding: 0px;
	margin: 0px;
	margin-left: auto;
	margin-right: auto;
	border: 0px solid #777;
	background-color: rgba(45,65,92,1);
	overflow: hidden;
	z-index: 1;
	cursor: zoom-in;
}

#slideshow .slides .slide {
	position: absolute;
	display: none;
	top: 0px;
	left: 0%;
	bottom: 0px;
	width: 100%;
	margin: 0px;
	padding: 0px;
	border: 0px dotted green;
	background-position: center center;
	background-size: cover;
	background-repeat: no-repeat;
	z-index: 1;
	overflow: hidden;
}

#slideshow .slides .slide img {
	opacity: 0.0;
}

#slideshow .slides .slide.tall {
	width: 50%;
	width: 30%;
}

#slideshow .slides .slide.next {
	display: block;
	z-index: 3;
	left: 100%;
}

#slideshow .slides .slide.next.tall {
	z-index: 3;
	left: 125%;
	left: 135%;
}

#slideshow .slides .slide.prev {
	display: block;
	z-index: 3;
	left: -100%;
}

#slideshow .slides .slide.prev.tall {
	z-index: 3;
	left: -75%;
	left: -65%
}

#slideshow .slides .slide.current {
	display: block;
	z-index: 2;
	left: 0%;
}

#slideshow .slides .slide.current.tall {
	z-index: 2;
	left: 25%;
	left: 35%;
}

/* BUTTONS
 * * * * * * * * * * * * * * * * * * * * * * * * * * */

#slideshow .button {
	cursor: pointer;
}

/* * * * * * * * * * * */
/*
#slideshow .button {
	position: absolute;
	width: 47px;
	height: 47px;
	top: 150px;
	background-image: url('../images/prev-next-image.png');
	overflow: hidden;
	cursor: pointer;
	z-index: 3;
	opacity: 0.5;
}

#slideshow .button:hover {
	opacity: 0.8;
}

#slideshow .button.close {
	display: none;
}

#slideshow .button.prev {
	left: 20px;
	background-position: top left;
}

#slideshow .button.next {
	right: 20px;
	background-position: top right;
}
*/

#slideshow .footer {
	position: absolute;
	z-index: 3;
	left: 0px;
	right: 0px;
	bottom: 0px;
	height: 40px;
	background-color: rgba(45,65,92,0.5);
	text-align: center;
}

#slideshow .footer .button.prev,
#slideshow .footer .button.next {
	position: absolute;
	width: 47px;
	height: 47px;
	top: -150px;
	background-image: url('../images/prev-next-image.png');
	overflow: hidden;
	text-indent: -100px;
	z-index: 3;
	opacity: 0.5;
}

#slideshow.slide-count-1 .footer .button.prev,
#slideshow.slide-count-1 .footer .button.next {
	display: none;
}

#slideshow .footer .button.prev:hover,
#slideshow .footer .button.next:hover {
	opacity: 0.8;
}

#slideshow .footer .button.prev {
	left: 20px;
	background-position: top left;
}

#slideshow .footer .button.next {
	right: 20px;
	background-position: top right;
}

#slideshow .footer .button.fullscreen {
	position: absolute;
	right: 5px;
	top: 5px;
	width: 30px;
	height: 30px;
	padding: 0px;
	margin: 0px;
	background-image: url("https://www.primemanhattan.net/test/css/slideshow/images/fullscreen-icon.png");
	background-position: center center;
	background-size: cover;
	background-repeat: no-repeat;
	opacity: 0.6;
}

#slideshow .footer .button.fullscreen:hover {
	opacity: 1.0;
}

#slideshow span.dots {
	display: block;
	list-style: none;
	margin: 0px;
	padding: 0px;
	margin-top: 10px;
	margin-left: auto;
	margin-right: auto;
	opacity: 1.0;
}

#slideshow.slide-count-1 span.dots {
	display: none;
}

#slideshow span.dots span.button.num {
	display: inline-block;
	width: 20px;
	height: 20px;
	margin: 0px;
	margin-left: 1px;
	margin-right: 1px;
	padding: 0px;
	background-image: url('../images/dots.png');
	cursor: pointer;
}

#slideshow span.dots span.button.num.hidden {
	display: none;
}

#slideshow span.dots span.button.num span {
	display: none;
	width: 20px;
	height: 20px;
	background-image: url('../images/dots.png');
	background-position: center center;
	overflow: hidden;
	text-indent: -50px;
}

#slideshow span.dots span.button.num.current {
	background-position: center right;
}

#slideshow span.dots span.button.num:hover span,
#slideshow span.dots span.button.num.current span {
	display: inline-block;
}

/* FULL SCREEN 
 * * * * * * * * * * * * * * * * * * * * * * * * * * */

#slideshow.fullscreen {
	position: fixed;
	width: auto;
	height: auto;
	top: 0px;
	left: 0px;
	right: 0px;
	bottom: 0px;
	margin: 0px;
}

#slideshow.fullscreen .slides {
	position: absolute;
	width: auto;
	height: auto;
	top: 0px;
	left: 0px;
	right: 0px;
	bottom: 0px;
	margin-left: 0px;
	margin-right: 0px;
	cursor: auto;
}

#slideshow.fullscreen .footer {
	
}

#slideshow.fullscreen .footer .button.prev,
#slideshow.fullscreen .footer .button.next {
	position: fixed;
	display: block;
	top: 50%;
	margin-top: -20px;
}

#slideshow.fullscreen.slide-count-1 .footer .button.prev,
#slideshow.fullscreen.slide-count-1 .footer .button.next {
	display: none;
}

#slideshow.fullscreen .footer .button.prev {
	
}

#slideshow.fullscreen .footer .button.next {
	
}

#slideshow.fullscreen .footer .button.fullscreen {
	position: fixed;
	top: 20px;
	right: 20px;
	width: 40px;
	height: 40px;
	background-image: url("https://www.primemanhattan.net/test/css/slideshow/images/fullscreen-off-icon.png");
	background-color: rgba(45,65,92,0.6);
}

/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */

@media screen and (max-width: 770px) {
	
	#slideshow {
		width: 740px;
	}
}

/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */

@media screen and (max-width: 430px) {
	
	#slideshow {
		width: auto;
		height: 200px;
	}
	
	#slideshow .slides {
		width: auto;
		height: 200px;
		cursor: default;
		overflow-x: auto;
   		overflow-y: hidden;
   		white-space: nowrap;
		-webkit-overflow-scrolling: touch;
      	-webkit-scroll-snap-type: mandatory;
      	scroll-snap-type: x mandatory;
	}
	
	#slideshow .slides .slide {
		position: relative;
		width: 85vw;
		height: 200px;
		margin-right: 3px;
		display: inline-block;
		scroll-snap-align: start;
		scroll-snap-stop: always;
	}
	
	#slideshow .slides .slide:last-child {
		margin-right: 0px;
	}
	
	#slideshow .slides .slide.tall {
		width: 150px;
	}
	
	#slideshow .slides .slide.tall,
	#slideshow .slides .slide.next,
	#slideshow .slides .slide.prev,
	#slideshow .slides .slide.prev.tall,
	#slideshow .slides .slide.current,
	#slideshow .slides .slide.current.tall {
		display: inline-block;
		left: auto;
	}
}

@media screen and (max-width: 320px) {
	
	#slideshow {
		height: 180px;
	}
	
	#slideshow .slides {
		height: 180px;
		cursor: default;
	}
	
	#slideshow .slides .slide {
		height: 180px;
	}
	
	#slideshow .slides .slide.tall {
		width: 130px;
	}
}

