#lightbox {
	position: absolute;
	width: 100%;
	height: 100%;
}
#image {
	position: absolute;
	width: 100%;
	top: 0px;
	bottom: 20%;
	left: 0px;
	right: 0px;
	margin: auto;
	background: no-repeat;
	background-position: center center;
	background-size: contain;
	-moz-box-sizing:border-box;
	/*box-shadow: 0px 0px 10px #888;*/ /*ugly if the screen is too small. see js */
	/*background-color: black;*/
}
#legend {
	position: absolute;
	bottom: 0px;
	height: 20%;
	width: 100%;
	margin: auto;
	box-sizing:border-box;
	-moz-box-sizing:border-box;
	text-align: center;
	/*background-color: #ccc;*/
}
.ruler {
	width: 90%;
	margin: auto;
	margin-top: 5px;
	margin-bottom: 5px;
	top: 5px;
	border: 0px;
	height: 1px;
	background-image: -webkit-linear-gradient(left, rgba(0,0,0,0), rgba(0,0,0,0.4), rgba(0,0,0,0));
	background-image: -moz-linear-gradient(left, rgba(0,0,0,0), rgba(0,0,0,0.4), rgba(0,0,0,0));
	background-image: -ms-linear-gradient(left, rgba(0,0,0,0), rgba(0,0,0,0.4), rgba(0,0,0,0));
	background-image: -o-linear-gradient(left, rgba(0,0,0,0), rgba(0,0,0,0.4), rgba(0,0,0,0));
}
.title {
	display: block;
	height: 20px;
	color: #000;
}
.descriptionContainer {
	font-size: 0.95em;
	position: absolute;
	top: 30px; /* title height + legend padding */
	padding-top: 15px;
	bottom: 0px;
	left: 100px; /* next/previous buttons */
	right: 100px;
	margin: auto;
	overflow-y: auto;
}
.description {
	margin: 0px;
	margin-bottom: 10px;
	color: #444;
	/* preserve new lines without <br/> */
	white-space: pre-wrap;
	word-wrap: break-word;
}

.imageInfos {
	list-style-type: none;
	color: #444;
	margin: 0px;
	padding: 0px;
	display: inline-block;
}

.imageInfos li {
	clear: both;
}

.imageInfos li span {
	margin-left: 10px;
}

.infoLeft {
	float: left;
}
.infoRight {
	float: right;
}

.btnLink {
	font-style: italic;
	display: block;
	position: absolute;
	top: 0px;
	bottom: 0px;
	margin: auto;
	width: 100px;
	height: 100%;
	color: #666;
	text-shadow: 0px 0px 10px #888;
	transition: color 0.15s, text-shadow 0.15s;
}
.btnLink:hover {
	color: #000;
	text-shadow: 0px 0px 10px #444;
}
.extendedBtnLink {
	width: 50px !important;
}
.aBtnContent {
	line-height: 50px;
	vertical-align: middle;
	height: 50px;
	position: absolute;
	top: 0px;
	bottom: 0px;
	left: 0px;
	right: 0px;
	margin: auto;
}
.previous {
	left: 0px;
}
.next {
	right: 0px;
}
.backTothumbs {
	border: 0px;
	text-decoration: none;
}
