.sc-lightbox {
	position: relative;
	display: block;
	cursor: zoom-in;
}

.sc-lightbox-zoom {
	position: absolute;
	right: 10px;
	bottom: 10px;
	display: grid;
	place-items: center;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: rgba(8, 10, 40, 0.72);
	color: #fff;
	opacity: 0;
	transition: opacity 0.15s;
	pointer-events: none;
}

.sc-lightbox:hover .sc-lightbox-zoom,
.sc-lightbox:focus-visible .sc-lightbox-zoom {
	opacity: 1;
}

@media (hover: none) {
	.sc-lightbox-zoom {
		opacity: 0.9;
	}
}

.lb {
	position: fixed;
	inset: 0;
	z-index: 200;
	display: grid;
	place-items: center;
	padding: 56px 16px 24px;
	background: rgba(6, 8, 30, 0.92);
	cursor: zoom-out;
}

.lb[hidden] {
	display: none;
}

.lb-figure {
	display: grid;
	gap: 12px;
	max-width: min(100%, 1200px);
	max-height: 100%;
	margin: 0;
	justify-items: center;
}

.lb-figure img {
	max-width: 100%;
	max-height: calc(100vh - 140px);
	width: auto;
	height: auto;
	border-radius: 6px;
	cursor: default;
}

.lb-figure figcaption {
	max-width: 70ch;
	color: #dfe2f7;
	font-size: 0.875rem;
	text-align: center;
}

.lb-close {
	position: absolute;
	top: 8px;
	right: 8px;
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.12);
	color: #fff;
	cursor: pointer;
}

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

body.lb-open {
	overflow: hidden;
}
