#colorbox,
#cboxOverlay,
#cboxWrapper {
	overflow: hidden;
	position: absolute;
	top: 0;
	left: 0;
	z-index: 999999;
	-webkit-transform: translate3d(0, 0, 0);
}
#colorbox {
	max-width: 95%!important;
	max-height: 95%!important;
}

#cboxWrapper {
	max-width: none;
}

#cboxOverlay {
	position: fixed;
	width: 100%;
	height: 100%;
	background: #000;
}

#cboxMiddleLeft,
#cboxBottomLeft {
	clear: left;
}

#cboxContent {
	position: relative;
	margin: 20px 0;
	background: #000;
}
.popup-box #cboxContent {
	margin: 0;
	background: #fff;
}

#cboxLoadedContent {
	overflow: hidden!important;
	-webkit-overflow-scrolling: touch;
	background: #fff;
}

#cboxTitle {
	position: absolute;
	top: -20px;
	left: 0;
	right: 180px;
	color: #ccc;
	text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}

#cboxLoadingOverlay,
#cboxLoadingGraphic {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}

.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;
	background: #fff;
}

#cboxError {
	padding: 50px;
	border: 1px solid #ccc;
}

#cboxCurrent {
	position: absolute;
	top: -20px;
	right: 0;
	color: #ddd;
}

#cboxLoadingGraphic {
	background: url(/images/wait.svg) no-repeat center;
}

#cboxSlideshow {
	position: absolute;
	bottom: 0;
	right: 0;
	width: 24px;
	height: 24px;
	background: #ddd;
}
#cboxSlideshow.slideshow-stop {
	background: #333;
}

#cboxPrevious,
#cboxNext {
	position: absolute;
	top: 50%;
	margin-top: -21px;
	width: 36px;
	height: 42px;
	border: none;
	background: rgba(255,255,255,0.4) url(/images/icon-slider-left.svg) no-repeat center;
}
#cboxPrevious {
	left: 0;
}
#cboxNext {
	right: 0;
	background-image: url(/images/icon-slider-right.svg);
}
#cboxPrevious:hover,
#cboxNext:hover {
	background-color: #bbb;
}

#cboxClose {
	position: absolute;
	top: 0;
	right: 0;
	border: none;
	background: url(/images/icon-close.svg) no-repeat center;
	background-size: cover;
	width: 40px;
	height: 40px;
	border-radius: 50%;
}
#cboxClose:hover {
	background-color: rgba(0,0,0,0.1);
}