/* Needed for the lightbox */

html, body {
	height: 100%;
	width: 100%;
}

/* CSS for the loading div */

.sp-loading {
	text-align: center;
	max-width: 100%;
	padding: 1.5vw;
	border: 0px solid #eee;
	border-radius: 0.3vw;
	font-size: 1.2vw;
	color: #888;
	height: 100%;
}

/* Element wrapper */

.sp-wrap {
// overflow: hidden;
	display: none;
	line-height: 0;
	font-size: 0;
	background: none;
	border: 0px solid #000;
	border-radius: 0.3vw;
	position: relative;
	margin: 0 2.5vw 0 0;
	float: left;
	/**************
	  Set max-width to your thumbnail width
	***************/
	max-width: 100%;
    max-height: 100%;
	width: 100%;
	height: 100%;
	background-size: 100% 100%;
	background-repeat: no-repeat;
}

.sp-current {
	position: relative;
	max-width: 100%;
	max-height: 100%;
	position: relative;
	background-size: 100% 100%;
	background-repeat: no-repeat;
	border: 0px solid #00ff00;	
}

.sp-current:before {    /* create a full-height inline block pseudo=element */
    content: ' ';
    display: inline-block;
    vertical-align: middle;  /* vertical alignment of the inline element */
    height: 100%;
}

.sp-current-big {
	max-width: 100%;
    height: 100%;
	position: relative;
	background-size: 100% 100%;
	background-repeat: no-repeat;
    font: 0/0 a;         /* remove the gap between inline(-block) elements */
    text-align: center;  /* align the inline(-block) elements horizontally */
	border: 0px solid #0000ff;	
}

.sp-current-big:before {    /* create a full-height inline block pseudo=element */
    content: ' ';
    display: inline-block;
    vertical-align: middle;  /* vertical alignment of the inline element */
    height: 100%;
}

.sp-current-big img{
	max-width: 100%;
    max-height: 100%;
	background-size: 100% 100%;
	background-repeat: no-repeat;
    display: inline-block;
    vertical-align: middle;  /* vertical alignment of the inline element */

}

/* Thumbnails */

.sp-thumbs {
	// position: absolute;
	// bottom: 0;
	max-width: 100%;
	max-height: 100%;	
	text-align: center;
	border: 0vw solid #000;
	border: 0px solid #00ff00;	
}
.sp-thumbs img {
	width: 100%;
	height: auto;
	max-width: 100%;
	max-height: 100%;
	padding: 0; margin: 0

}
.sp-thumbs a:link, .sp-thumbs a:visited {
	width: 5vw;
	height: 5vw;
	overflow: hidden;
	opacity: .3;
	display: inline-block;
	background-size: cover;
	background-position: center;
	-webkit-transition: all .2s ease-out;
	-moz-transition: all .2s ease-out;
	-ms-transition: all .2s ease-out;
	-o-transition: all .2s ease-out;
	transition: all .2s ease-out;
}
.sp-thumbs a:hover {
	opacity: 1;
}

/* Styles for the currently selected thumbnail */

.sp-thumbs a:active, .sp-current {
	opacity: 1!important;
	position: relative;
}

/* Image currently being viewed */

.sp-large {
	position: relative;
	overflow: hidden;
	top: 0;
	left: 0;
	width: 100%;
    height: 30vw;
	border: 0px solid #fff000;
}

.sp-large a img {
	max-width: 100%;
	max-height: 100%;
}
.sp-large a {
	display: block;
	max-height: 100%;
	/* max-width: 90%; */	
}

/* Panning Zoomed Image */

.sp-zoom {
	position: absolute;
	left: -50%;
	top: -50%;
	cursor: -webkit-zoom-in;
	cursor: -moz-zoom-in;
	cursor: zoom-in;
	display: none;
}
/* Lightbox */

.sp-lightbox {
	position: fixed;
	top: 0;
	left: 0;
	height: 100%;
	width: 100%;
	background: rgb(0, 0, 0);
	background: rgba(0, 0, 0, .9);
	z-index: 999999;
	display: none;
	cursor: pointer;
}
.sp-lightbox img {
	position: absolute;
	margin: auto;
	top: 0;
	bottom: 0;
	left: 0;
	right: 0;
	max-width: 90%;
	max-height: 90%;
	border: 0.2vw solid #fff;
}
#sp-prev, #sp-next {
	position: absolute;
	top: 50%;
	margin-top: -2.5vw;
	z-index: 501;
	color: #fff;
	padding: 1.4vw;
	text-decoration: none;
	background: #000;
	border-radius: 2.5vw;
	border: 0.2vw solid #fff;
	width: 5vw;
	height: 5vw;
	box-sizing: border-box;
	transition: .2s;
}
#sp-prev {
	left: 1vw;
}
#sp-prev:before {
	content: '';
	border: 0.7vw solid transparent;
	border-right: 1.5vw solid #fff;
	position: absolute;
	top: 1.6vw;
	left: 0.7vw;
}
#sp-next {
	right: 1vw;
}
#sp-next:before {
	content: '';
	border: 0.7vw solid transparent;
	border-left: 1.5vw solid white;
	position: absolute;
	top: 1.6vw;
	left: 1.8vw;
}
#sp-prev:hover, #sp-next:hover {
	background: #444;
}

/* Tweak styles for small viewports */

@media screen and (max-width: 400px) {
	.sp-wrap {
		margin: 0 0 0 0;
	}
	#sp-prev, #sp-next {
		top: auto;
		margin-top: 0;
		bottom: 2.5vw;
	}
}

@media (max-width: 768px) {
.sp-large {
	width: 100%;
    height: 90vw;
}

.sp-thumbs a:link, .sp-thumbs a:visited {
	width: 12.5vw;
	height: 12.5vw;
}	
}

