#lightbox {
	position: fixed;
	display: block;
	width: 100%;
	height: 100%;
	z-index: 1000;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	overflow: auto;
	/*background: url(fadeout.png);*/
	background: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABAAQMAAACQp+OdAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAOwgAADsIBFShKgAAAABp0RVh0U29mdHdhcmUAUGFpbnQuTkVUIHYzLjUuMTAw9HKhAAAAA1BMVEUAAACnej3aAAAAAXRSTlOzEo46UAAAAA5JREFUGBljGAWjgAIAAAJAAAHwmIKcAAAAAElFTkSuQmCC');
	-webkit-transition: all 0.1s ease-in;
	-moz-transition: all 0.1s ease-in;
	transition: all 0.1s ease-in;
}
#lightbox .background {
	position: fixed;
	width: 100%;
	height: 100%;
}
#lightbox.inactive {
	opacity: 0;
}
#lightbox .control {
	position: fixed;
	display: block;
	width: 50px;
	height: 50px;
	cursor: pointer;
	background-image: url(controls.png);
	z-index: 2;
}
#lightbox .control.close {
	background-position: 0 -50px;
}
#lightbox .control.close:hover {
	background-position: 0 0;
}
#lightbox .control.zoom {
	background-position: -50px -50px;
}
#lightbox .control.zoom:hover {
	background-position: -50px 0;
}
#lightbox .control.download {
	background-position: -100px -50px;
}
#lightbox .control.download:hover {
	background-position: -100px 0;
}
#lightbox img {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	margin: auto;
	max-width: 90%;
	max-height: 90%;
}
#lightbox img.full {
	position: static;
	max-width: none;
	max-height: none;
	border: 0;
	padding: 0 50px;
}