/* 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;
}

/* Element wrapper */

.sp-wrap {
	display: none;
line-height: 0;
    font-size: 0;
    border: none;
    border-radius: 0;
    position: relative;
    margin: 0;
    float: left;
    width: 100%;
}

/* Thumbnails */


.sp-thumbs {
       width: 100px;
    text-align: center;
    position: absolute;
    bottom: 0;
    left: -140px;

}
     @media (max-width: 767px) {
   .sp-thumbs {
       width: 100%;
    position: relative;
    bottom: initial;
    left:initial;

}
}


@media (max-width: 1023px) {
    .sp-thumbs {
         left: -150px;
    }
}

@media (max-width: 767px) {
    .sp-thumbs {
        width: 100%;
        position: relative;
        bottom: initial;
        left: initial;
    }

        .sp-thumbs img {
            width: 50px;
        }
}
.sp-thumbs a:link,
.sp-thumbs a:visited {
    width:100px;
    height:100px;

    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;
}





@media (max-width: 1023px) {
    .sp-thumbs {
         left: -150px;
    }
}

@media (max-width: 767px) {
    .sp-thumbs {
        width: 100%;
        position: relative;
        bottom: initial;
        left: initial;
    }

        .sp-thumbs a:link,
.sp-thumbs a:visited {
    width:50px;
    height:50px;

}
}
/* 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;
}
.sp-large a img {
	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;
}
/* Lightbox */

.sp-lightbox {
	position: fixed;
	top: 0;
	left: 0;
	height: 100%;
	width: 100%;
    background: #fff;
    z-index: 10000;
	display: none;
	cursor: pointer;
}
.sp-lightbox img {
	position: absolute;
	margin: auto;
	top: 0;
	bottom: 0;
	left: 0;
	right: 0;
	max-width: 96%;
	max-height: 96%;
    cursor:zoom-out;

}
#sp-prev, #sp-next {
    position: absolute;
    top: 50%;
    margin-top: -25px;
    z-index: 501;
    color: #999;
    /* padding: 14px; */
    font-size: 30px;
    line-height: 25px;
    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: 10px;
}
#sp-prev:before {
	  font-family: 'icomoon' !important;
    content: "\e704";


	position: absolute;
	top: 16px;
	left: 7px;
}
#sp-next {
	right: 10px;
}
#sp-next:before {
	  font-family: 'icomoon' !important;
    content: "\e705";
	position: absolute;
	top: 16px;
	left: 18px;
}
#sp-prev:hover, #sp-next:hover {
	color: #666;
}

/* Tweak styles for small viewports */

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