/* =========================================================
   Project Lightbox
   ========================================================= */
#project-lightbox {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 99999;
}

#project-lightbox.lb-open {
	display: flex;
	align-items: center;
	justify-content: center;
}

.lb-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, .88);
}

.lb-stage {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	max-width: 1100px;
	padding: 1rem;
	gap: .75rem;
}

.lb-frame {
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	align-items: center;
	justify-content: center;
}

.lb-img {
	display: block;
	max-width: 100%;
	max-height: 82vh;
	object-fit: contain;
	border-radius: 4px;
	box-shadow: 0 8px 40px rgba(0, 0, 0, .6);
	animation: lbFade .25s ease;
	transition: opacity .2s ease;
}

.lb-spinner {
	display: none;
	width: 40px;
	height: 40px;
	border: 4px solid rgba(255, 255, 255, .2);
	border-top-color: #ffffff;
	border-radius: 50%;
	animation: lbSpin .7s linear infinite;
	position: absolute;
}

@keyframes lbSpin {
	to { transform: rotate(360deg); }
}

@keyframes lbFade {
	from { opacity: 0; transform: scale(.97); }
	to   { opacity: 1; transform: scale(1); }
}

.lb-close,
.lb-prev,
.lb-next {
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: rgba(255, 255, 255, .15);
	border: none;
	border-radius: 50%;
	color: #ffffff;
	cursor: pointer;
	transition: background .2s;
}

.lb-prev,
.lb-next {
	width: 48px;
	height: 48px;
	font-size: 2rem;
	line-height: 1;
}

.lb-prev:hover,
.lb-next:hover {
	background: rgba(255, 255, 255, .3);
}

.lb-close {
	position: absolute;
	top: .5rem;
	right: .5rem;
	width: 40px;
	height: 40px;
	font-size: 1.6rem;
}

.lb-close:hover {
	background: rgba(255, 255, 255, .3);
}

.lb-counter {
	position: absolute;
	bottom: .35rem;
	left: 50%;
	transform: translateX(-50%);
	margin: 0;
	color: rgba(255, 255, 255, .7);
	font-size: .8rem;
	pointer-events: none;
}

@media (max-width: 600px) {
	.lb-prev,
	.lb-next {
		width: 36px;
		height: 36px;
		font-size: 1.5rem;
	}

	.lb-stage {
		padding: .5rem;
		gap: .4rem;
	}
}
