/* CP-Lightbox : viewport-fit responsive lightbox (replaces Lightbox v2.04) */
#cplb-overlay {
	position: fixed;
	top: 0; left: 0; right: 0; bottom: 0;
	background: rgba(0, 0, 0, 0.88);
	z-index: 9999;
	display: -webkit-flex;
	display: flex;
	-webkit-align-items: center;
	align-items: center;
	-webkit-justify-content: center;
	justify-content: center;
	-webkit-flex-direction: column;
	flex-direction: column;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
}
#cplb-stage {
	position: relative;
	display: -webkit-flex;
	display: flex;
	-webkit-align-items: center;
	align-items: center;
	-webkit-justify-content: center;
	justify-content: center;
	max-width: 94vw;
	max-height: 86vh;
	cursor: default;
}
/* Core sizing rule:
   - never larger than natural size (an <img> without width/height renders at
     natural size; max-* only shrinks, never enlarges)
   - never larger than the viewport (94vw x 86vh) -> no scrollbars */
#cplb-img {
	display: block;
	max-width: 94vw;
	max-height: 86vh;
	width: auto;
	height: auto;
	box-shadow: 0 4px 30px rgba(0, 0, 0, 0.7);
	background: #111;
	border: 0;
}
#cplb-caption {
	color: #eee;
	font: 13px/1.5 Arial, Helvetica, sans-serif;
	text-align: center;
	max-width: 94vw;
	padding: 10px 12px 0;
	cursor: default;
}
#cplb-counter {
	color: #999;
	font: 11px/1.4 Arial, Helvetica, sans-serif;
	padding-top: 3px;
}
#cplb-close {
	position: fixed;
	top: 10px; right: 14px;
	color: #fff;
	font: bold 30px/1 Arial, sans-serif;
	text-decoration: none;
	opacity: 0.8;
	padding: 6px 10px;
}
#cplb-close:hover { opacity: 1; }
.cplb-nav {
	position: fixed;
	top: 50%;
	margin-top: -30px;
	color: #fff;
	font: bold 44px/60px Arial, sans-serif;
	text-decoration: none;
	opacity: 0.6;
	padding: 0 18px;
	user-select: none;
	-webkit-user-select: none;
}
.cplb-nav:hover { opacity: 1; }
#cplb-prev { left: 0; }
#cplb-next { right: 0; }
#cplb-spinner {
	position: absolute;
	color: #ccc;
	font: 12px Arial, sans-serif;
}
@media (max-width: 640px) {
	#cplb-stage, #cplb-img, #cplb-caption { max-width: 98vw; }
	#cplb-img { max-height: 80vh; }
	.cplb-nav { font-size: 34px; padding: 0 10px; }
}
