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

/* Element wrapper */
.sp-wrap {
    display:none;
    line-height:0;
    font-size:0;
    background:#FFFFFF;
    position:relative;
    margin:0 0px 0px 0;
    /*float:left;*/
    /**************
      Set max-width to your thumbnail width
    ***************/
 /*   max-width: 300px;*/
}

/* Thumbnails */
.sp-thumbs {
    text-align:left;
    border-top:2px solid #000;
    display:inline-block;
}
.sp-thumbs img {
    width:60px;
    height:48px;
}
.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 {
	padding-top:4px;
}

.sp-current:after {
    content:'';
/*    border:6px solid transparent;
    border-top:6px solid #000;*/
	background-image: url("data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpolygon points='0 0 0 2 2 2 2 4 4 4 4 6 6 6 6 4 8 4 8 2 10 2 10 0 0 0'/%3E%3C/svg%3E");
	width:10px;
	height:6px;
    position: absolute;
    left:50%;
    top:0;
    margin-left:-6px;
}

/* Unzoomed, big thumbnail */
.sp-large {
    position:relative;
    overflow:hidden;
    top:0;
    left:0;
	padding-bottom:0px;
}
.sp-large a img {
    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;
}

/* Button to go full size */
.sp-full-screen {
    position: absolute;
    z-index: 1;
    display: block;
    right: 0;
    top: 0;
    width: 20px;
    height: 20px;
    padding: 0px;
    background-color: #FFF;
	background-image: url("data:image/svg+xml,%3Csvg id='Layer_2' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14.17 14.17'%3E%3Crect x='2.83' y='2.84' width='1.42' height='1.42' style='fill:%23000%3B'/%3E%3Crect x='4.25' y='4.25' width='1.42' height='1.42' style='fill:%23000%3B'/%3E%3Crect x='8.5' y='8.5' width='1.42' height='1.42' style='fill:%23000%3B'/%3E%3Crect x='9.92' y='9.92' width='1.42' height='1.42' style='fill:%23000%3B'/%3E%3Crect x='8.5' y='4.25' width='1.42' height='1.42' style='fill:%23000%3B'/%3E%3Crect x='4.25' y='8.5' width='1.42' height='1.42' style='fill:%23000%3B'/%3E%3Crect x='2.83' y='9.92' width='1.42' height='1.42' style='fill:%23000%3B'/%3E%3Crect x='9.92' y='2.84' width='1.42' height='1.42' style='fill:%23000%3B'/%3E%3Cpolygon points='0 0 5.67 0 5.67 1.42 2.83 1.42 2.83 2.84 1.42 2.84 1.42 5.67 0 5.67 0 0' style='fill:%23000%3B'/%3E%3Cpolygon points='14.17 0 14.17 5.67 12.76 5.67 12.76 2.83 11.34 2.83 11.34 1.42 8.5 1.42 8.5 0 14.17 0' style='fill:%23000%3B'/%3E%3Cpolygon points='14.17 14.17 8.5 14.17 8.5 12.76 11.34 12.76 11.34 11.34 12.76 11.34 12.76 8.5 14.17 8.5 14.17 14.17' style='fill:%23000%3B'/%3E%3Cpolygon points='0 14.17 0 8.5 1.42 8.5 1.42 11.34 2.84 11.34 2.84 12.76 5.67 12.76 5.67 14.17 0 14.17' style='fill:%23000%3B'/%3E%3C/svg%3E");
	background-position: top 2px left 2px;
	background-repeat: no-repeat;
	background-size: 16px 16px;

}

.sp-full-screen a:link,
.sp-full-screen a:visited {
    background: none;
    color: #000;
    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%;
}

/* Remove margin in mobile view */
@media screen and (max-width: 400px) {
    .sp-wrap {
        margin:0 0 15px 0;
    }
}
