.lightbox-overlay {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 10000;
	background: rgba(0, 0, 0, 0.88);
}

.lightbox-overlay.is-open {
	display: block;
}

.lightbox-stage {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 32px;
}

.lightbox-figure {
	margin: 0;
	max-width: min(92vw, 1200px);
	max-height: 92vh;
	text-align: center;
}

.lightbox-image {
	display: block;
	max-width: 100%;
	max-height: calc(92vh - 72px);
	margin: 0 auto;
	border: 4px solid #fff;
	box-sizing: border-box;
	background: #fff;
}

.lightbox-caption {
	margin-top: 12px;
	color: #fff;
	font: 12px/1.4 Verdana, Arial, Helvetica, sans-serif;
}

.lightbox-close,
.lightbox-nav {
	position: absolute;
	border: 0;
	background: rgba(255, 255, 255, 0.14);
	color: #fff;
	cursor: pointer;
	font: bold 28px/1 Arial, sans-serif;
}

.lightbox-close {
	top: 16px;
	right: 16px;
	width: 44px;
	height: 44px;
}

.lightbox-nav {
	top: 50%;
	width: 48px;
	height: 64px;
	margin-top: -32px;
}

.lightbox-prev {
	left: 16px;
}

.lightbox-next {
	right: 16px;
}

.lightbox-close:hover,
.lightbox-close:focus,
.lightbox-nav:hover,
.lightbox-nav:focus {
	background: rgba(255, 255, 255, 0.28);
	outline: none;
}

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

body.lightbox-open {
	overflow: hidden;
}

@media screen and (max-width: 640px) {
	.lightbox-stage {
		padding: 16px;
	}

	.lightbox-close {
		top: 8px;
		right: 8px;
	}

	.lightbox-nav {
		width: 40px;
		height: 56px;
		margin-top: -28px;
	}

	.lightbox-prev {
		left: 8px;
	}

	.lightbox-next {
		right: 8px;
	}
}
