/* Needed for the lightbox */

html, body {
	height: 100%;
	width: 100%;
}
/* CSS for the loading div */
.sp-loading {text-align: center;max-width: 270px;padding: 15px;border: 5px solid #eee;border-radius: 3px;font-size: 12px;color: #888;}
.sp-wrap {display: none;line-height: 0;font-size: 0;border-radius: 3px;position: relative;width:100%;}
.sp-thumbs {display:block;     width: 100%;}
.sp-thumbs a{ width:77px; height:77px; margin:10px 6px 0 0;  border:1px solid #ccc;border-radius:4px;}
.sp-thumbs a:last-child{ margin-right:0}
.sp-thumbs a:link, .sp-thumbs a:visited {overflow: hidden;opacity: .5;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;border:1px solid #d9251e;}
.sp-thumbs a:active, .sp-current {opacity: 1!important;position: relative;border:1px solid #d9251e !important;}
/* Image currently being viewed */
.sp-large {position: relative;overflow: hidden;top: 0;left: 0;border:1px solid #ddd; border-radius:6px;}
.sp-large a img {
	max-width: 100%;border-radius:6px;
	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;
}
/* 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;
}
#sp-prev, #sp-next {
	position: absolute;
	top: 50%;
	margin-top: -25px;
	z-index: 501;
	color: #fff;
	padding: 14px;
	text-decoration: none;
	background: #000;
	border-radius: 25px;
	border: 2px solid #fff;
	width: 50px;
	height: 50px;
	box-sizing: border-box;
	transition: .2s;
}
#sp-prev {
	left: 80px;
}
#sp-prev:before {
	content: '';
	border: 7px solid transparent;
	border-right: 15px solid #fff;
	position: absolute;
	top: 16px;
	left: 7px;
}
#sp-next {
	right: 80px;
}
#sp-next:before {
	content: '';
	border: 7px solid transparent;
	border-left: 15px solid white;
	position: absolute;
	top: 16px;
	left: 18px;
}
#sp-prev:hover, #sp-next:hover {
	background: #444;
}

/* Tweak styles for small viewports */



@media screen and (max-width: 400px) {
	.sp-wrap {
		margin: 0 0 15px 0;
	}
	#sp-prev, #sp-next {
		top: 50px;
		margin-top: 0;
	}
	.sp-thumbs a{ width:70px; height:70px;}
}
.sp-current-big img{ width:100%;}
.sp-large img{ max-width:none;}