.lightbox {
	border: 0;
	padding: 0;
	width: 100%;
	height: 100%;
	max-width: 100vw;
	max-height: 100vh;
	background: rgba(10, 10, 8, 0.96);
	position: fixed;
	inset: 0;
}
.lightbox::backdrop {
	background: rgba(10, 10, 8, 0.96);
}
.lightbox[open] {
	display: flex;
	align-items: center;
	justify-content: center;
}

.lightbox-image {
	max-width: min(92vw, 1600px);
	max-height: 88vh;
	width: auto;
	height: auto;
	object-fit: contain;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
	position: absolute;
	background: none;
	border: 0;
	color: var(--color-bg);
	font-size: 2rem;
	line-height: 1;
	cursor: pointer;
	padding: var(--space-2);
}
.lightbox-close {
	top: var(--space-3);
	right: var(--space-3);
}
.lightbox-prev {
	left: var(--space-3);
	top: 50%;
	transform: translateY(-50%);
}
.lightbox-next {
	right: var(--space-3);
	top: 50%;
	transform: translateY(-50%);
}

.lightbox-counter {
	position: absolute;
	bottom: var(--space-3);
	left: 50%;
	transform: translateX(-50%);
	color: var(--color-bg);
	font-size: 0.875rem;
}
