.picbox {	
	display: block;
	width: 100%;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
}

a.picbox {
	cursor: pointer;
}

.picbox-position-top {
	background-position: top center;
}

.picbox-position-bottom {
	background-position: bottom center;
}

.picbox-contain {
	background-size: contain;
}

.picbox > img {
	width: 100%;
}

#picbox-container {
	z-index:2050 !important; 
	position:fixed; 
	top:0; 
	bottom:0; 
	left:0; 
	right:0; 
	background-color:rgba(0,0,0,0.9);
	width: 100%;
	display: block;
	padding: 0;
	cursor: pointer;
}

#picbox-container:before,
#picbox-container:after {
	content:"";
	color: rgba(0,0,0,0);
	position: absolute;
	right: 20px;
	top: 10px;
	font-size: 1em;
	border-right: 1px solid #fff;
	height: 20px;
	width: 1px;
	z-index: 100;
}

#picbox-container:before {
	transform:rotate(45deg);
	-ms-transform:rotate(45deg); /* IE 9 */
	-webkit-transform:rotate(45deg); /* Opera, Chrome, and Safari */
}

#picbox-container:after {
	transform:rotate(-45deg);
	-ms-transform:rotate(-45deg); /* IE 9 */
	-webkit-transform:rotate(-45deg); /* Opera, Chrome, and Safari */
}

#picbox-container > #picbox-img {
	display: block;
	position: relative;
	margin: auto;
	width: 100% !important;
	height: 100% !important;
	
	background-position: center center;
    background-repeat: no-repeat;
    background-size: contain;
}

.picbox-load {
	color: #fff;
	text-align: center;
	margin: auto;
	position: absolute;
	top: 50%;
	left: 50%;
	margin-top: -25px;
	margin-left: -100px;
	width: 200px;
	height: 50px;
	display: block;
	
	background-position: center bottom;
	background-repeat: no-repeat;
	background-image: url('loader.gif');
}

#picbox-container > #picbox-right,
#picbox-container > #picbox-left {
	width: 50px;
	height: 100px;
	top: 40%;
	right: 0;
	position: fixed;
	background-color: rgba(0,0,0,0.5);
	z-index:10;
}

#picbox-container > #picbox-right {
	right: 0;
}

#picbox-container > #picbox-left {
	left: 0;
}

#picbox-left:before,
#picbox-left:after,
#picbox-right:before,
#picbox-right:after {
	content:"";
	color: rgba(0,0,0,0);
	position: absolute;
	right: 20px;
	font-size: 1em;
	border-right: 1px solid #fff;
	height: 20px;
	width: 1px;
}

#picbox-left:before,
#picbox-left:after {
	left: 20px;
}
#picbox-right:before,
#picbox-right:after {
	right: 20px;
}

#picbox-right:before {
	transform:rotate(45deg);
	-ms-transform:rotate(45deg); /* IE 9 */
	-webkit-transform:rotate(45deg); /* Opera, Chrome, and Safari */
	top: 44px;
}

#picbox-right:after {
	transform:rotate(-45deg);
	-ms-transform:rotate(-45deg); /* IE 9 */
	-webkit-transform:rotate(-45deg); /* Opera, Chrome, and Safari */
	top: 30px;
}


#picbox-left:before {
	transform:rotate(45deg);
	-ms-transform:rotate(45deg); /* IE 9 */
	-webkit-transform:rotate(45deg); /* Opera, Chrome, and Safari */
	top: 30px;
}

#picbox-left:after {
	transform:rotate(-45deg);
	-ms-transform:rotate(-45deg); /* IE 9 */
	-webkit-transform:rotate(-45deg); /* Opera, Chrome, and Safari */
	top: 44px;
}
