/*
 * @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: 50%;
	left: 50%;
	min-height: 200px;
	min-width: 200px;
	z-index: 100001; /* show on top of everything */
	background-color: #222;
	border: 1px solid #ddd;
	-moz-box-shadow: 2px 2px 9px #222;
	-webkit-box-shadow: 2px 2px 9px #222;
	box-shadow: 2px 2px 9px #222;
}

.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: -14px;
	right: -14px;
	top: -2px\9; /** IE8 and below position close button in lightbox */
	right: 0px\9;
	cursor: pointer;
	margin: 4px 2px;
	border: 2px solid #909090;
	-moz-border-radius: 16px;
	-webkit-border-radius: 17px;
	border-radius: 18px;
	-moz-box-shadow: 1px 1px 5px #141414;
	-webkit-box-shadow: 1px 1px 5px #141414;
	box-shadow: 1px 1px 5px #141414;
	background-color: #060606;
	background-image: -moz-linear-gradient(top, #515151, #060606);
	background-image: -o-linear-gradient(top, #515151, #060606);
	background-image: -webkit-gradient(linear,left top,left bottom,color-stop(0, #515151),color-stop(1, #060606));
	background-image: -webkit-linear-gradient(#515151, #060606);
	background-image: linear-gradient(top, #515151, #060606);
	line-height: 10px;
	z-index: 10; /* Fix z-index in IE */
	zoom: 1;
}

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

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

}

/* image container for one or multiple images */
.lb-c-image-container {
	position: relative;
	float: left;
	text-align: center;
	zoom: 1; /* Fix hasLayout in IE */
}

.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: 0px;
	margin: 0px;
	zoom: 1; /* Fix hasLayout in IE */
}

.lb-cic-images img {
	display: block;
	max-width: none;
	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: -999em;
	bottom: 0px;
	height: 100%;
	width: 100%;
	text-align: center;
}

/* Number of images and active image */
.lb-cicn-pages {
	position: absolute;
	display: block;
	top: 0;
	left: -999em;
	margin: 8px;
	padding: 4px 8px;
	background-color: #141414;
	background-color: rgba(20, 20, 20, 0.6);
	filter: progid:DXImageTransform.Microsoft.gradient(startColorStr='#99141414',EndColorStr='#99141414');
	border: 1px solid #555;
	-moz-border-radius: 8px;
	-webkit-border-radius: 8px;
	border-radius: 8px;
	-moz-box-shadow: 0px 0px 4px #141414;
	-webkit-box-shadow: 0px 0px 4px #141414;
	box-shadow: 0px 0px 4px #141414;
	color: #fff;
	font: 11px normal Verdana, Geneva, Arial, Helvetica, sans-serif;
}

/* show pages and navigation on lightbox mouseover */

.pbuic-lightbox:hover .lb-cic-navigation,
.pbuic-lightbox:hover .lb-cicn-pages {
	left: 0;
}

.lb-cic-next, .lb-cic-previous {
	position: absolute;
	display: block;
	top: 0;
	right: 0;
	width: 50%;
	height: 100%;
	background: url(empty.gif);
	text-indent: -999em;
	zoom: 1;
	cursor: pointer;
	z-index: 5;
}

.lb-cic-next-button span,
.lb-cic-previous-button span,
.lb-cic-download span {
	display: block;
	height: 26px;
	width: 26px;
	background: url(pbuic-lightbox-sprite.png) no-repeat 4px -50px;
	text-indent: -999em;
}

.lb-cic-previous-button span {
	background: url(pbuic-lightbox-sprite.png) no-repeat 2px -24px;
}

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

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

.lb-cic-previous-button,
.lb-cic-next-button,
.lb-cic-download {
	position: absolute;
	display: block;
	bottom: 5px;
	right: 0;
	width: 26px;
	height: 26px;
	margin: 4px 2px;
	border: 2px solid #909090;
	-moz-border-radius: 16px;
	-webkit-border-radius: 17px;
	border-radius: 17px;
	-moz-box-shadow: 0px 0px 2px #141414;
	-webkit-box-shadow: 0px 0px 2px #141414;
	box-shadow: 0px 0px 2px #141414;
	background-color: #060606;
	background-image: -moz-linear-gradient(top, #515151, #060606);
	background-image: -o-linear-gradient(top, #515151, #060606);
	background-image: -webkit-gradient(linear,left top,left bottom,color-stop(0, #515151),color-stop(1, #060606));
	background-image: -webkit-linear-gradient(#515151, #060606);
	background-image: linear-gradient(top, #515151, #060606);
	text-indent: 0;
	cursor: pointer;
	zoom: 1;
}

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

}

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

.lb-previous .lb-cic-previous-button, .lb-cic-previous-button:hover {
	border: 2px solid #fff;
}

.lb-next .lb-cic-next-button, .lb-cic-next-button:hover {
	border: 2px solid #fff;
}

.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 {
	right: 8px;
	z-index: 10;
}

a:hover.lb-cic-download {
	border-color: #fff;
	color: #fff;
}

/* footer with number of images and description */
.lb-c-footer {
	height: 40px;
	width: 100%;
	overflow: auto;
	font: 11px / 13px normal Verdana, Geneva, Arial, Helvetica, sans-serif;
	text-align: left;
	color: #fff;
	background: url("pbuic-lightbox-transparent-bg.png") repeat;
}

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

.lb-c-f-top,
.lb-c-f-bottom {
	position: absolute;
	bottom: 32px;
	left: 0;
	height: 8px;
	width: 100%;
}

.lb-c-f-bottom {
	bottom: 0px;
}

/* correct IE6 layout and replace png background images by colors */
* html .lb-cic-navigation {
	left: 0px;
}

* html .lb-cicn-pages {
	left: 0;
}

* html .lb-c-image-container {
	height: 200px;
}

* html .lb-c-footer {
	height: 40px;
	background: #222 none;
}

* html .pbuic-blocker {
	background: #222 none;
}

* html .lb-c-close span,
* html .lb-cic-next-button span,
* html .lb-cic-previous-button span {
	background-image: url(pbuic-lightbox-sprite-ie6.png);
}
