.lightbox-overlay {
	position: fixed;
	inset: 0;
	z-index: 100000;
	background: rgba(0, 0, 0, 0.85);
	display: flex;
	align-items: center;
	justify-content: center;
}

.lightbox-overlay[hidden] {
	display: none;
}

body.lightbox-open {
	overflow: hidden;
}

.lightbox-stage {
	max-width: 92vw;
	max-height: 88vh;
	display: flex;
	flex-direction: column;
	align-items: center;
}

.lightbox-img {
	max-width: 92vw;
	max-height: 80vh;
	object-fit: contain;
	display: block;
	box-shadow: 0 4px 32px rgba(0, 0, 0, 0.6);
}

.lightbox-caption {
	color: #f0f0f0;
	font-size: 0.95rem;
	text-align: center;
	margin-top: 0.75rem;
	max-width: 80vw;
}

.lightbox-caption[hidden] {
	display: none;
}

.lightbox-counter {
	position: fixed;
	top: 1rem;
	left: 50%;
	transform: translateX(-50%);
	color: #f0f0f0;
	font-size: 0.9rem;
	background: rgba(0, 0, 0, 0.4);
	padding: 0.25rem 0.75rem;
	border-radius: 999px;
}

.lightbox-counter[hidden] {
	display: none;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
	position: fixed;
	background: rgba(0, 0, 0, 0.4);
	color: #fff;
	border: none;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	line-height: 1;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
	background: rgba(0, 0, 0, 0.7);
}

.lightbox-close {
	top: 1rem;
	right: 1rem;
	width: 2.75rem;
	height: 2.75rem;
	font-size: 1.75rem;
	border-radius: 50%;
}

.lightbox-prev,
.lightbox-next {
	top: 50%;
	transform: translateY(-50%);
	width: 3rem;
	height: 3rem;
	font-size: 1.25rem;
	border-radius: 50%;
}

.lightbox-prev {
	left: 1rem;
}

.lightbox-next {
	right: 1rem;
}

.lightbox-prev[hidden],
.lightbox-next[hidden] {
	display: none;
}

@media (max-width: 600px) {
	.lightbox-close {
		top: 0.5rem;
		right: 0.5rem;
		width: 2.25rem;
		height: 2.25rem;
		font-size: 1.4rem;
	}

	.lightbox-prev,
	.lightbox-next {
		width: 2.5rem;
		height: 2.5rem;
		font-size: 1rem;
	}

	.lightbox-prev {
		left: 0.25rem;
	}

	.lightbox-next {
		right: 0.25rem;
	}
}
