
/* Image currently being viewed */
.sp-wrap  {
	display: flex !important;
	flex-direction: column;
	width: 100%;
	height: 100%;
}
.sp-large {
	position: relative;
	overflow: hidden;
	top: 0;
	left: 0;
	width: 100%;
	flex: 1;
}
.sp-large a img {
	width: 100%;
	height: 100%;
}
.sp-large a {
	width: 100%;
	display: block;
    height: 100%;
}

/* Thumbnails */

.sp-thumbs {
	width: 100%;
	height: .3rem;
	text-align: left;
	display: inline-block;
	background-color: #eee;
}
.sp-thumbs img {
	min-height: .3rem;
	width: calc(100%/6);
}
.sp-thumbs a:link, .sp-thumbs a:visited {
	width: calc(100%/6);
	height: .3rem;
	overflow: hidden;
	opacity: 1;
	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: .9;
}

/* 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: 500;
	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: 2px solid #fff;
}


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