/* CSS for the loading div */

.sp-loading {
	text-align: center;
	max-width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
}


/* Element wrapper */

.sp-wrap {
	width: 100%;
	display: none;
	position: relative;
}


/* Thumbnails */

.sp-thumbs {
	display: flex;
	border-top: solid 5px #fff;
	margin: 0 -5px
}

.sp-thumbs a {
	min-height: auto;
	max-width: calc(100% / 4);
}

.sp-thumbs a:link,
.sp-thumbs a:visited {
	border-radius: 10px;
	width: calc(100% / 4);
	height: 140px;
	margin: 0 5px;
	overflow: hidden;
	opacity: .3;
	display: inline-block;
	background-repeat: no-repeat;
	background-size: 100% auto;
	background-position: center;
	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;
	border-radius: 10px;
}

.sp-large a img {
	max-width: 100%;
	height: auto;
}

.sp-large a {
	display: block;
}


/* Panning Zoomed Image */

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

.sp-zoom img {
	width: auto !important;
}


/* 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: 999;
	display: none;
	cursor: pointer;
}

.sp-lightbox img {
	position: absolute;
	margin: auto;
	top: 0;
	bottom: 0;
	left: 0;
	right: 0;
	max-width: auto !important;
	max-height: 95% !important;
	width: auto !important;
	border-radius: 10px;
}

#sp-prev,
#sp-next {
	position: absolute;
	top: 50%;
	z-index: 501;
	color: #fff;
	padding: 17px;
	text-decoration: none;
	background: #000;
	border-radius: 25px;
	width: 50px;
	height: 50px;
	box-sizing: border-box;
	transition: .2s;
}

#sp-prev {
	left: 10px;
}

 
#sp-next {
	right: 10px;
}
 
#sp-prev:hover,
#sp-next:hover {
	background: #444;
}


/* Tweak styles for small viewports */

@media screen and (max-width:992px) {
	.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: 999;
		display: none;
		cursor: pointer;
	}
	.sp-lightbox img {
		position: absolute;
		margin: auto;
		top: 0;
		bottom: 0;
		left: 0;
		right: 0;
		max-width: auto !important;
		max-height: !important;
		width: 85% !important;
	}
}

@media screen and (max-width:640px) {
	#sp-prev,
	#sp-next {
		height: 40px;
		width: 40px;
		padding: 12px;
	}
}