/*
	Colorbox Core Style:
	The following CSS is consistent between example themes and should not be altered.
*/
#colorbox, #cboxOverlay, #cboxWrapper { position: absolute; top: 0; left: 0; z-index: 99998; -webkit-transform: translate3d(0,0,0); }
#cboxWrapper { max-width: none; }
#cboxOverlay { position: fixed; width: 100%; height: 100%;}
#cboxMiddleLeft, #cboxBottomLeft { clear: left; }
#cboxContent { position: relative; background: none; }
#cboxLoadedContent { overflow: auto; -webkit-overflow-scrolling: touch; }
#cboxLoadingOverlay, #cboxLoadingGraphic { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
#cboxPrevious, #cboxNext, #cboxClose, #cboxSlideshow { cursor: pointer; }
.cboxPhoto { float: left; margin: auto; border: 0; display: block; max-width: none; -ms-interpolation-mode: bicubic; }
.cboxIframe { width: 100%; height: 100%; display: block; border: 0; padding: 0; margin: 0; }
#colorbox, #cboxContent, #cboxLoadedContent { box-sizing: content-box; }
#colorbox { outline: 0; }
#cboxCurrent { position: absolute; top: 0; right: 0; color: #FFFFFF; }
#cboxPrevious, #cboxNext, #cboxSlideshow, #cboxClose { border: 0; padding: 0; margin: 0; overflow: visible; width: auto; background: none; }
#cboxPrevious:active, #cboxNext:active, #cboxSlideshow:active, #cboxClose:active { outline: 0; }
#cboxSlideshow { position: absolute; top: 0; right: 0; color: #FFFFFF; }
#cboxClose, #cboxPrevious, #cboxNext { display:none !important; }

#cboxLoadingGraphic {
	display: inline-block;
	position: fixed;
	top: 50%;
	left: 50%;
	border: 1px solid #B7B7B7;
	border-top-color: transparent;
	border-radius: 50%;
	width: 30px;
	height: 30px;
	margin: -15px 0 0 -15px;
	z-index: 9999;
	-webkit-animation: spin .4s infinite linear;
	-ms-animation: spin .4s infinite linear;
	animation: spin .4s infinite linear;
}
@-webkit-keyframes spin { 0%{ -webkit-transform: rotate(0deg); } 100%{ -webkit-transform: rotate(360deg); }}
@-ms-keyframes spin { 0%{ -ms-transform: rotate(0deg); } 100%{ -ms-transform: rotate(360deg); }}
@keyframes spin { 0%{ transform: rotate(0deg); } 100%{ transform: rotate(360deg); }}

#cboxOverlay {
	background-color: #FFFFFF;
	opacity: 1;
	filter: alpha(opacity = 100);
}

.cboxIframe {
	background-color: #000000;
}

#colorbox, #cboxContent, #cboxLoadedContent {
	max-height: calc(100vh - 220px);
}

.cboxPhoto {
	width: auto !important;
	max-width: calc(100% - 240px);
	height: auto !important;
	max-height: 100%;
}

.modal-close {
	display: none;
	top: 35px;
	right: 35px;
	background: url(../img/share/btn-close.svg) no-repeat center center;
	background-size: 37px 37px;
	width: 37px;
	height: 37px;
	opacity: 0;
	transition: none;
}

.modal-prev, .modal-next {
	top: 50%;
	margin-top: -60px;
	background: url(../img/share/btn-arrow.svg) no-repeat center center;
	background-size: 42px 43px;
	width: 120px;
	height: 120px;
	transition: none;
}

.modal-close:hover, .modal-prev:hover, .modal-next:hover {
	transition: .15s linear;
	opacity: 0.5 !important;
}

.modal-prev { left: -120px; -webkit-transform: scaleX(-1) !important; -ms-transform: scaleX(-1) !important; transform: scaleX(-1) !important;}
.modal-next { right: -120px; }

.modal-close, .modal-prev, .modal-next {
	position: fixed;
	text-indent: -9999px;
	cursor: pointer;
	z-index: 99999;
}