a.airnightbox, .airnightbox a {
	cursor: zoom-in;
}
#airnightbox {
	display: flex; 
	justify-content: center; 
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-color: #eee;
	height: 100%;
	z-index: 10;
	color: black;
	border-bottom-style: solid;
}
#airnightbox.hidden {
	display: none; 
}
#airnightbox a {
	display: block;
	margin-top: 16px;
	margin-bottom: 16px;
	margin-left: 16px;
	margin-right: 16px;
	float: left;
}
#airnightbox a p {
	color: black;
	font-family: Arial, Helvetica, sans-serif;
}
.noscroll {
	overflow: hidden !important;
}
#airnightbox-main {
    display: inline-block;
    position: relative;
    background-color: #eee;
    margin: 16px;
    padding: 16px;
    margin:0 auto;
    height: 100%;
}
#airnightbox-close {
	position: absolute;
	top: 0;
	right: 0;
	padding: 6px;
	z-index: 20;
	color: black;
	cursor: pointer;
}
#airnightbox-content {
    display: inline-block;
    position: relative;
	float: right;
	height: 100%;
	max-width: 95%;
}
#airnightbox-content .images {
	height: 100%;
	width: 100%;
}
#airnightbox-previous {
	position: absolute;
	top: 40%;
	left: -10px;
	color: black;
	cursor: pointer;
}
#airnightbox-previous .button {
	position: absolute;
	top: 40%;
	left: 0px;
	color: black;
}
#airnightbox-next {
	position: absolute;
	top: 40%;
	right: -10px;
	cursor: pointer;
}	
#airnightbox-next .button {
	position: absolute;
	top: 40%;
	right: 0px;
	color: black;
}
#airnightbox-page {
	display: none;
	position: absolute;
	bottom: 30px;
	left: 46%;
	padding: 6px;
	z-index: 20;
    background-color: #eee;
	color: black;
}
#airnightbox-nav {
    display: inline-block;
	float: left;
	width: 144px;
	max-width: 144px;
	min-width: 144px;
}
#airnightbox-nav a {
	display: inline-block;
	border: 2px solid transparent;
	padding: 4px;
}
#airnightbox-nav a.active {
    border-color: #666;
}
#airnightbox-content img.preload {
	display: none;
	margin-top: 16px;
	margin-bottom: 16px;
	margin-left: 16px;
	margin-right: 16px;
	height: 95%;
	width: auto;
	max-width: 97%;
	object-fit: contain;
}
#airnightbox-content img.preload.current {
	display: inherit;
}
#airnightbox .disabled {
	display: none;
}
@media only screen and (max-width: 1024px) {
	#airnightbox {
		display: block; 
		background-color: #eee;
		overflow: hidden;
		border-bottom-style: dotted;
	}
	#airnightbox-main {
		display: block;
		background-color: #eee;
		margin: 0;
		padding: 0;
		height: 100%;
		overflow: hidden;
	}
	#airnightbox-close {
		width: 200px;
		height: 200px;
		z-index: 30;
		background-color: transparent;
	}
	#airnightbox .button {
		background-color: #eee;
		position: absolute;
		font-size: 3em;
	}
	#airnightbox-close .button {
		background-color: #eee;
		right: 0;
		top: 0;
		position: absolute;
		padding: 0px;
		border-style: solid;
		border-width: 16px;
		border-color: #eee;
		border-radius: 16px;
	}
	#airnightbox-content {
		display: inline-block;
		float: left;
		height: 100%;
		max-width: 100%;
		overflow: hidden;
	}
	#airnightbox-previous {
		width: 200px;
		height: 100%;
		top: 0;
		left: 0;
		background-color: transparent;
	}
	#airnightbox-previous .button {
		top: 45%;
		padding: 16px;
		background-color: #eee;
		padding: 0px;
		border-style: solid;
		border-width: 16px;
		border-color: #eee;
		border-radius: 16px;
	}
	#airnightbox-next {
		width: 200px;
		height: 100%;
		top: 0;
		right: 0;
		background-color: transparent;
	}	
	#airnightbox-next .button {
		top: 45%;
		padding: 16px;
		background-color: #eee;
		padding: 0px;
		border-style: solid;
		border-width: 16px;
		border-color: #eee;
		border-radius: 16px;
	}	
	#airnightbox-page.button {
		display: block;
		bottom: 36px;
		left: 42%;
		border-style: solid;
		border-width: 16px;
		border-color: #eee;
		border-radius: 16px;
	}
	#airnightbox-page.button.hidden {
		display: none;
	}
	#airnightbox-page.button p {
		line-height: 1.5em;
		font-size: 1.5em;
		font-weight: bold;
	}
	#airnightbox-nav {
		display: none;
		overflow: hidden;
	}
	#airnightbox-content img.preload.current {
		margin-top: 0;
		margin-bottom: 0;
		margin-left: 0%;
		margin-right: 0;
		height: 100%;
		width: auto;
		max-width: 100%;
		object-fit: contain;
		overflow: hidden;
	}
}
