/*
modal
*/
#colorbox, #cboxOverlay, #cboxWrapper{position:absolute; top:0; left:0; z-index:9999; /*overflow:hidden;*/}
#cboxWrapper {max-width:none;}
#cboxOverlay{position:fixed; width:100%; height:100%;}
#cboxMiddleLeft, #cboxBottomLeft{clear:left;}
#cboxContent{position:relative;}
#cboxLoadedContent{overflow:auto; -webkit-overflow-scrolling: touch;}
#cboxTitle{margin:0;}
#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:1024px; -ms-interpolation-mode:bicubic; width: 100%!important; height: auto!important; object-fit: cover;}
.cboxIframe{width:100%; height:100%; display:block; border:0; padding:0; margin:0;}
#colorbox, #cboxContent, #cboxLoadedContent{box-sizing:content-box; -moz-box-sizing:content-box; -webkit-box-sizing:content-box;}

#cboxOverlay{background:rgba(0,0,0,0.8);}
#colorbox{outline:0;}
.cboxIframe{background:#fff;}
#cboxError{padding:50px; border:1px solid #ccc;}
#cboxLoadedContent{
	max-width: 1024px;
	margin-bottom:0px;
	border-radius: 40px;
}
#cboxTitle{position:absolute; bottom:4px; left:0; text-align:center; width:100%; color:#949494;}
#cboxCurrent{display: none!important;}
#cboxLoadingOverlay{background:none;}
#cboxLoadingGraphic{background:url(images/loading.gif) no-repeat center center;}

#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; bottom:4px; right:30px; color:#0092ef;}
#cboxPrevious{
	position:absolute;
	top:50%;
	left:-25px;
	transform: translateY(-50%);
	background:var(--color-primary);
	width:50px;
	height:50px;
	text-indent:-9999px;
	border-radius: 50%;
	box-shadow: 0 4px 2px rgba(0,0,0,0.1);
	transition: all .25s ease;
}
#cboxPrevious::after{
	content: '';
	width: 6px;
	height: 6px;
	border: 0;
	border-top: solid 2px #fff;
	border-right: solid 2px #fff;
	transform: translate(50%,-50%) rotate(225deg);
	position: absolute;
	top: 50%;
	right: 50%;
	transition: all .25s ease;
}
#cboxNext{
	position:absolute;
	top:50%;
	right:-25px;
	transform: translateY(-50%);
	background:var(--color-primary);
	width:50px;
	height:50px;
	text-indent:-9999px;
	border-radius: 50%;
	box-shadow: 0 4px 2px rgba(0,0,0,0.1);
	transition: all .25s ease;
}
#cboxNext::after{
	content: '';
	width: 6px;
	height: 6px;
	border: 0;
	border-top: solid 2px #fff;
	border-right: solid 2px #fff;
	transform: translate(50%,-50%) rotate(45deg);
	position: absolute;
	top: 50%;
	right: 50%;
	transition: all .25s ease;
}
#cboxClose{
	position: fixed;
	top: 100px;
	right: 80px;
	background:var(--color-primary);
	width: 50px;
	height: 50px;
	text-indent: -9999px;
	border-radius: 50%;
	box-shadow: 0 4px 2px rgba(0,0,0,0.1);
	transition: all .25s ease;
}
#cboxClose::before,
#cboxClose::after{
	content: '';
	width: 18px;
	height: 2px;
	background: #fff;
	position: absolute;
	top: 50%;
	left: 50%;
	transition: all .25s ease;
}
#cboxClose::before{
	transform: translate(-50%,-50%) rotate(45deg);
}
#cboxClose::after{
	transform: translate(-50%,-50%) rotate(-45deg);
}
#cboxPrevious:hover,
#cboxNext:hover,
#cboxClose:hover{background:#fff;}
#cboxPrevious:hover::after,
#cboxNext:hover::after{border-color: var(--color-primary);}
#cboxClose:hover::before,
#cboxClose:hover::after{background: var(--color-primary);}

@media screen and (max-width: 768px){
	#cboxLoadedContent{
		border-radius: 14px;
	}
	#cboxPrevious{
		left:-15px;
		width:40px;
		height:40px;
	}
	#cboxNext{
		right:-15px;
		width:40px;
		height:40px;
	}
	#cboxClose{
		top: 50px;
		right: 4px;
		width: 40px;
		height: 40px;
	}
}
