/* Needed for the lightbox */

html {
	height: 100%;
	width: 100%;
}

/* CSS for the loading div */
.sp-loading .spinner {
	margin-top:0;
	margin-bottom:0;
	width:100%;
	}

.sp-loading {
	border-radius: 0;
	font-size: 1.2rem; 
	padding: 50%;
	position: relative;
	text-align: center;
}

.sp-loading p.loading {
	z-index: 999;
	margin: -45% 0px 5rem!important;
	display: block;
	width: 100%;
	float:left;
	}

/* Element wrapper */



/* Thumbnails */
.sp-thumbs a:link, 
.sp-thumbs a:visited {
	overflow: hidden;
	display: inline-block;
	background-size: cover;
	background-position: center;
	-webkit-transition: all .2s ease-out;
	-ms-transition: all .2s ease-out;
	transition: all .2s ease-out;
	padding-top: 100%;
	white-space:nowrap;
}

/* Styles for the currently selected thumbnail */

.sp-thumbs a:active, .sp-current {
	opacity: 1!important;
	position: relative;
}

.sp-thumbs a[data-id="repeat"] {
	display: inline-block;
}

/* Image currently being viewed */

@media (max-width: 568px) {	
	.sp-thumbs {
		margin-bottom:0;
	}
	.spec{
	width: 100%;
	float:none;
	}
}
	
@media (max-width: 360px) {	
	.sp-main, .spec{
	width: 100%;
	float:none;
	}
}


.sp-large {
	position: relative;
	overflow: hidden;
	top: 0;
	left: 0;
	width: 100%;
	margin:0 0 30px;
}

.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;
	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, .8);
	z-index: 500;
	display: none;
	
}
.sp-lightbox img {
	position: absolute;
	margin: auto;
	top: 0;
	bottom: 0;
	left: 0;
	right: 0;
	max-width: 80%;
	max-height: 80%;
	border: 12px solid #FFF;
	border-radius: 3px;
	-webkit-box-shadow: 2px 2px 7px rgba(0,0,0,0.5);
	box-shadow: 2px 2px 7px rgba(0,0,0,0.5);
	background:#efefef;
}

#sp-prev, #sp-next {
	position: absolute;
	top: 50%;
	margin-top: -25px;
	z-index: 501;
	color: #fff;

	box-sizing: border-box;
	
	background: none;
  border: 1.5px solid rgb(255,255,255);
  border-radius: 18px;
  height: 36px;
	width:36px;
  font-size: 16px;
outline: 1px solid rgba(255,255,255,.45);
  outline-offset: 4px;
  opacity: 1;
  padding: 0 12px;
		transform: translate(-50%, -50%);
  transition: background-color 0.1s linear 0s;
}
	
#sp-prev {
	left: 3rem;
}
#sp-prev svg {

	fill:#fff;
	position: absolute;
top: 5px;
  left: 4px;
  width: 22px;
  height: 22px;
	transform: rotate(180deg);
}

#sp-next {
	right: 3rem;
}
#sp-next svg {

	fill:#fff;
	position: absolute;
top: 5px;
  left: 7px;
  width: 22px;
  height: 22px;
}

#sp-prev:hover, 
#sp-next:hover {
	background: var(--btn-bkgnd-hov);
	opacity:1;
}

#sp-prev.end:hover, 
#sp-next.end:hover {
	opacity:.1;
	cursor:default;
}

#sp-prev.end:hover svg, 
#sp-next.end:hover svg {
	fill: rgb(255, 255, 255);
	cursor:default;
}

/* Tweak styles for small viewports */

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