﻿
#overlay {
	position: fixed;
	top: 0;
	left: 0;
	z-index: 90;
	width: 100vw;
	height: 100vh;
	background-color: rgba(0, 0, 0, 0.7);
	padding-bottom: 100%;
	overflow: hidden;
}


#lightbox {
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	z-index: 100;
	display: flex;
	justify-content: center;
	align-items: center;
	text-align: center;
	line-height: 0;
	padding: 0;
	margin: 0;
}

	
#outerImageContainer {
	position: relative;
	background-color: #fff;
	max-width: 90vw;
	max-height: 90vh;
	overflow: hidden;
	display: flex;
	justify-content: center;
	align-items: center;
	margin: 0;
	border-radius: 10px;
	box-shadow: 0 0 25px rgba(0, 0, 0, 0.5);
}


#lightbox a img {
	border: none;
}


#outerImageContainer img {
	width: auto;         
	height: auto;        
	max-width: 90vw;    
	max-height: 90vh;    
	object-fit: contain; 
	object-position: center;
	display: block;
}




#imageContainer {
	padding: 10px;
}


#loading {
	position: absolute;
	top: 40%;
	left: 0;
	height: 25%;
	width: 100%;
	text-align: center;
	line-height: 0;
}


#hoverNav {
	position: absolute;
	top: 0;
	left: 0;
	height: 100%;
	width: 100%;
	z-index: 10;
}

#imageContainer > #hoverNav {
	left: 0;
}

#hoverNav a {
	outline: none;
}

#prevLink, #nextLink {
	width: 49%;
	height: 100%;
	background: transparent url(../images/blank.gif) no-repeat;
	display: block;
}

#prevLink {
	left: 0;
	float: left;
}

#nextLink {
	right: 0;
	float: right;
}

#prevLink:hover, #prevLink:visited:hover {
	background: url(../images/prevlabel.gif) left 50% no-repeat;
}

#nextLink:hover, #nextLink:visited:hover {
	background: url(../images/nextlabel.gif) right 50% no-repeat;
}

#imageDataContainer {
	font: 10px Verdana, Helvetica, sans-serif;
	background-color: #fff;
	margin: 0 auto;
	line-height: 1.4em;
	display: none;
}

#imageData {
	padding: 0 10px;
}

	#imageData #imageDetails {
		width: 70%;
		float: left;
		text-align: left;
	}

	#imageData #caption {
		font-weight: bold;
	}

	#imageData #numberDisplay {
		display: block;
		clear: left;
		padding-bottom: 1em;
	}

	#imageData #bottomNavClose {
		width: 6006px;
		float: right;
		padding-bottom: 0.7em;
	}
#bottomNavClose {
	position: absolute;
	right: 10px;
	bottom: 10px;
	z-index: 20;
	width: 40px;
	height: 40px;
	display: flex;
	justify-content: center;
	align-items: center;
	background: rgba(0,0,0,0.6);
	border-radius: 50%;
	transition: background 0.3s;
}

	#bottomNavClose:hover {
		background: rgba(0,0,0,0.8);
	}
