/* Lightbox (js/lightbox.js) */
html.lb-open { overflow: hidden; }

.lb {
	position: fixed;
	inset: 0;
	z-index: 2000;
	display: flex;
	flex-direction: column;
	background: rgba(4, 10, 24, 0.94);
	font-family: Lato, Verdana, Arial, Helvetica, sans-serif;
	color: #fff;
	-webkit-tap-highlight-color: transparent;
}
.lb[hidden] { display: none; }

.lb-stage {
	position: relative;
	flex: 1 1 auto;
	min-height: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 48px 64px 8px;
}
.lb-img {
	display: block;
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
	box-shadow: 0 6px 30px rgba(0, 0, 0, 0.6);
	transition: opacity 0.15s;
}
.lb-loading .lb-img { opacity: 0.25; }

.lb-spinner {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 36px;
	height: 36px;
	margin: -18px 0 0 -18px;
	border: 3px solid rgba(255, 255, 255, 0.25);
	border-top-color: #fff;
	border-radius: 50%;
	opacity: 0;
	animation: lb-spin 0.8s linear infinite;
	pointer-events: none;
}
.lb-loading .lb-spinner { opacity: 1; }
@keyframes lb-spin { to { transform: rotate(360deg); } }

.lb-bar {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	gap: 14px;
	min-height: 44px;
	padding: 6px 16px 10px;
	font-size: 13px;
}
.lb-counter { flex: 0 0 auto; color: #9fb3d1; font-variant-numeric: tabular-nums; }
.lb-caption { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb a.lb-original,
.lb a.lb-original:visited {
	flex: 0 0 auto;
	color: #9cc7ff !important;
	text-decoration: underline !important;
}

.lb-btn {
	position: absolute;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.1);
	color: #fff;
	font: 34px/1 Arial, Helvetica, sans-serif;
	cursor: pointer;
}
.lb-btn:hover,
.lb-btn:focus-visible { background: rgba(255, 255, 255, 0.25); outline: none; }
.lb-prev, .lb-next { top: 50%; margin-top: -46px; padding-bottom: 4px; }
.lb-prev { left: 8px; }
.lb-next { right: 8px; }
.lb-close { top: 8px; right: 8px; font-size: 30px; }
.lb-single .lb-prev, .lb-single .lb-next { display: none; }

@media (max-width: 640px) {
	.lb-stage { padding: 56px 0 4px; }
	/* on phones the arrows sit over the image's edges; swiping works as well */
	.lb-prev, .lb-next { width: 40px; height: 40px; background: rgba(0, 0, 0, 0.45); }
	.lb-prev { left: 4px; }
	.lb-next { right: 4px; }
	.lb-bar { font-size: 12px; gap: 10px; padding: 6px 10px 12px; }
}
