/* Needed for the lightbox */

html, body {
	height: 100%;
	width: 100%;
}

/* CSS for the loading div */

.sp-loading {
	text-align: center;
	max-width: 540px;
	/* border: 1px solid #fff; */
	border-radius: 3px;
	font-size: 12px;
	color: #545454;
}

/* Element wrapper */

.sp-wrap {
	display: none;
	line-height: 0;
	font-size: 0;
	/* background: #eee; */
	/* border: 1px solid #eee; */
	border-radius: 0px;
	position: relative;
	margin: 0 0px 0px 0;
	float: left;
	/**************
	  Set max-width to your thumbnail width
	***************/
	
	max-width: 540px;
}

/* Thumbnails */

.sp-thumbs {
	text-align: left;
	display: flex;
	justify-content:center;
	background: #eee;
}
.sp-thumbs img {
	min-height: 50px;
	min-width: 50px;
	max-width: 50px;
}
.sp-thumbs a:link, .sp-thumbs a:visited {
	width: 100px;
	height: 80px;
	overflow: hidden;
	opacity: .5;
	display: inline-block;
	background-size: cover;
	background-position: center;cursor: crosshair;
/* -webkit-transition: all .2s cubic-bezier(0, 1.45, 0, 1); */
	/* -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;
}

/* 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 {
	max-width: 100%;
	height: auto;
  	visibility: hidden;
}
.sp-large a {
	display: block;
}

/* Panning Zoomed Image */

.sp-zoom {
	position: absolute;
	cursor: Crosshair;
	cursor: Crosshair;
	cursor: Crosshair;
	display: none;
}
/* Lightbox */

.sp-lightbox {
	position: fixed;
	top: 0;
	left: 0;
	height: 100%;
	width: 100%;
	background: rgb(0, 0, 0);
	background: rgba(255, 255, 255, 1);
	z-index: 500;
	display: none;
	cursor: zoom-out;
}
.sp-lightbox img {
	position: absolute;
	margin: auto;
	top: 200px;
	bottom: 0;
	left: 0;
	right: 0;
	max-width: 80%;
	max-height: 80%;
	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: 10px;
}
#sp-prev:before {
	content: '';
	border: 7px solid transparent;
	border-right: 15px solid #fff;
	position: absolute;
	top: 16px;
	left: 7px;
}
#sp-next {
	right: 10px;
}
#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: auto;
		margin-top: 0;
		bottom: 25px;
	}
}
@media only screen and (min-width: 319px) and (max-width: 735px){
	.sp-thumbs a:link, .sp-thumbs a:visited{
         width:80px;
		 height:50px;
    }
	.sp-lightbox img{
        top:0;
		max-width:100%;
		max-height:100%;
    }
	.#sp-prev, #sp-next{
         /*! top: auto; */
    }
}

#magnify {
  background-size: 100% 100%;
  background-repeat: no-repeat;
  cursor: crosshair;
}
#magnify[zoomed] {
  background-size: 400% 400%;
  background-position: calc(var(--x) * 100%) calc(var(--y) * 100%);
}

#video_img {
  position: absolute;
  bottom: 0px;
  right: 0px;
  width: 100px;
  height: 80px;
  background-size: cover;
}
		
#product_video {
  width: 101%;
  height: 100%;
  position: absolute;
  top: 0px;
  left: 0px;
  display: none;
}

.play_icon {
  position: absolute;
  font-size: 60px !important;
  right: 20px;
  bottom: 10px;
  opacity: 0.6;
  color: #338c56;
}

@media only screen and (min-width: 319px) and (max-width: 735px){
	#video_img {
      position: absolute;
      bottom: 0px;
      right: 0px;
      width: 80px;
      height: 50px;
      background-size: cover;
    }
  .play_icon {
    position: absolute;
    font-size: 32px !important;
    right: 20px;
    bottom: 10px;
    opacity: 0.6;
    color: #338c56;
  }
}