/* Needed for the lightbox */
html, body {
	height: 100%;
	width: 100%;
}

/* Element wrapper */
.sp-wrap {
	display: none;
	line-height: 0;
	font-size: 0;
	position: relative;
	margin: 0 auto 30px;
	/**************
	 Set max-width to your thumbnail width
	 ***************/
	max-width: 520px;
	width: 100%;
}

/* Thumbnails */
.sp-thumbs {
	text-align: left;
	display: inline-block;
	padding: 0 10px;
}
.sp-thumbs img {
	width: 100%;
	height: auto;
}
.sp-thumbs a:link, .sp-thumbs a:visited {
	opacity: .4;
	display: inline-block;
	-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;
}
.sp-thumbs a:active, .sp-current {
	opacity: 1 !important;
	position: relative;
}

.sp-thumbs a {
	margin: 30px 1.5% 0;
	width: 30.3%;
}
/* Unzoomed, big thumbnail */
.sp-large {
	position: relative;
	overflow: hidden;
	top: 0;
	left: 0;
}
.sp-large a img {
	width: 100%;
	max-width: 100%;
	height: auto;
	cursor: -webkit-zoom-in;
	cursor: -moz-zoom-in;	
}
.sp-large a {
	display: inline-block;
}

/* Panning Zoomed Image */
.sp-zoom {
	position: absolute;
	left: 0;
	top: 0;
	cursor: zoom;
	cursor: -webkit-zoom-out;
	cursor: -moz-zoom-out;
	display: none;
}
.sp-zoom img{
	max-width: inherit;
}

/* Button to go full size */
.sp-full-screen {
	position: absolute;
	z-index: 1;
	display: block;
	right: 0;
	top: 0;
	font-size: 20px;
	line-height: 1em;
	width: 19px;
	height: 20px;
	padding: 0 0 2px 1px;
}
.sp-full-screen a:link, .sp-full-screen a:visited {
	background: none;
	color: #fff;
	font-size: 20px;
	width: 20px;
	height: 20px;
	text-decoration: none;
	text-align: center;
	display: block;
	-webkit-transform: rotate(45deg);
	-moz-transform: rotate(45deg);
	-ms-transform: rotate(45deg);
	-o-transform: rotate(45deg);
	transform: rotate(45deg);
}

/* Lightbox */
.sp-lightbox {
	position: fixed;
	top: 0;
	left: 0;
	height: 100%;
	width: 100%;
	background: rgb(0,0,0);
	background: rgba(0,0,0,.8);
	z-index: 999;
	display: none;
}
.sp-lightbox img {
	position: absolute;
	margin: auto;
	top: 0;
	bottom: 0;
	left: 0;
	right: 0;
	max-width: 100%;
	max-height: 100%;
}

@media screen and (min-width:768px) {
	.sp-wrap {
		margin: 0 auto;
	}
}

