/*
 * @author:	Johan Voeten
 * @about: Layout for the lightbox used on images added in the Probase editor or through a constructor
 */

.pbuic-blocker {
	position: absolute;
	top: 0;
	left: 0;
	z-index: 100000; /* show on top of everything */
	width: 100%;
	height: 100%;
	background: url("pbuic-lightbox-transparent-bg.png") repeat;
	cursor: pointer;
}

/* contains all elements, image, close en navigation */
.has-js .pbuic-lightbox {
    box-sizing: content-box;
	position: absolute;
	display: none;
	top: 0;
	left: 50%;
	min-height: 200px;
	min-width: 200px;
	z-index: 100001; /* show on top of everything */
	background-color: #222;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
	touch-action: pan-y;
}

.has-js .lb-preloader {
	position: absolute;
	display: none;
	top: 50%;
	left: 50%;
	margin: -16px 0 0 -16px;
}

.has-js.lightbox-open .pbuic-lightbox, .has-js.lightbox-open .lb-preloader {
	display: block;
}

.lb-c-close {
	position: absolute;
	top: 8px;
	right: 8px;
    padding: 4px;
	cursor: pointer;
	border-radius: 2px;
    opacity: 0.7;
    background-color: rgba(20, 20, 20, 0.8);
	line-height: 10px;
	z-index: 10; /* Fix z-index in IE */
	zoom: 1;
}

.lb-c-close:hover {
    opacity: 1;
}

.lb-c-close span {
	display: block;
	height: 24px;
	width: 24px;
	background: url(pbuic-lightbox-sprite.png) no-repeat 2px 2px;
    background-size: 20px 120px;
	text-indent: -999em;
}

.lb-c-close img {
	padding: 4px;

}

/* image container for one or multiple images */
.lb-c-image-container {
	position: relative;
	float: left;
	width: 100%;
	text-align: center;
}

.lb-cic-images {
	position: relative;
	display: block;
	float: left;
	min-height: 200px;
	min-width: 200px;
	width: 100%;
}

.lb-cic-images ul, .lb-cic-images li {
	float: left;
	width: 100%;
	padding: 0;
	margin: 0;
}

.lb-cic-images img {
    display: block;
    max-width: none !important;
    margin: auto;
}

.lb-cic-images li {
	position: absolute;
	left: -999em;
	top: -999em;
	list-style: none;
}

.lb-cic-images li.active {
	position: static;
	zoom: 1; /* Fix hasLayout in IE */
}

/* navigation for gallery with multiple images */
.lb-cic-navigation {
	position: absolute;
	clear: both;
	left: 0;
	bottom: 0;
	height: 100%;
	width: 100%;
	text-align: center;
    pointer-events: none;
}

/* Number of images and active image */
.lb-cicn-pages {
	position: absolute;
	display: block;
	top: 0;
	left: 0;
	margin: 8px;
	padding: 8px;
	border-radius: 4px;
	color: rgba(255, 255, 255, 0.6);
	font: 11px normal Verdana, Geneva, Arial, Helvetica, sans-serif;
}

.lb-cic-next, .lb-cic-previous {
	position: absolute;
	display: block;
	top: 0;
	right: 0;
	width: 40%;
	height: 100%;
	text-indent: -999em;
	zoom: 1;
	cursor: pointer;
	z-index: 5;
    pointer-events: all;
}

.lb-cic-next-button span,
.lb-cic-previous-button span,
.lb-cic-download span {
	display: block;
	height: 24px;
	width: 24px;
	background: url(pbuic-lightbox-sprite.png) no-repeat 2px -51px;
    background-size: 20px 120px;
	text-indent: -999em;
}

.lb-cic-previous-button span {
	background-position: 2px -25px;
}

.lb-cic-previous {
	left: 0;
	right: auto;
}

.lb-cic-download span {
	background-position: 2px -82px;
}

.lb-cic-previous-button,
.lb-cic-next-button,
.lb-cic-download {
	position: absolute;
    box-sizing: content-box;
	display: block;
	bottom: 8px;
	right: 8px;
	width: 24px;
	height: 24px;
    padding: 4px;
	border-radius: 2px;
    opacity: 0.7;
    background-color: rgba(20, 20, 20, 0.8);
	text-indent: 0;
	cursor: pointer;
	zoom: 1;
    pointer-events: all;
}

.lb-cic-previous-button img,
.lb-cic-next-button img{
	position: absolute;
	top: 50%;
	left: 50%;
	margin: -3px 0 0 -8px;

}

.lb-cic-previous-button,
.lb-cic-next-button {
    top: calc(50% - 16px);
    bottom: auto;
}

.lb-cic-previous-button {
    right: auto;
    left: 8px;
}

.lb-cic-previous:hover .lb-cic-previous-button {
	opacity: 1;
}

.lb-cic-next:hover .lb-cic-next-button {
	opacity: 1;
}

.lb-last .lb-cicn-next,
.lb-first .lb-cicn-previous,
.lb-last .lb-cic-next,
.lb-first .lb-cic-previous {
	display: none;
}

/** Download button */
.lb-cic-download {
    top: 8px;
    right: 44px;
    z-index: 10;
}

a:hover.lb-cic-download {
	opacity: 1;
}

/* footer with number of images and description */
.lb-c-footer {
    display: flex;
    align-items: center;
	height: 40px;
	width: 100%;
	overflow: auto;
	font: 11px / 13px normal Verdana, Geneva, Arial, Helvetica, sans-serif;
	text-align: left;
	color: #b3b3b3;
	background: rgba(20, 20, 20, 0.6);
}

.lb-c-footer p {
	padding: 8px;
	margin: 0;
}
