.wdg-lightbox-overlay {
	position: fixed;
	inset: 0;
	display: none;
	align-items: center;
	justify-content: center;
	background: rgba( 0, 0, 0, 0.9 );
	opacity: 0;
	z-index: 999999;
	transition: opacity 0.2s ease;
}

.wdg-lightbox-overlay.is-open {
	display: flex;
	opacity: 1;
}

html.wdg-lightbox-locked {
	overflow: hidden;
}

.wdg-lightbox-stage {
	position: relative;
	display: inline-flex;
	align-items: center;
	max-width: 92vw;
	max-height: 88vh;
}

.wdg-lightbox-figure {
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	margin: 0;
	max-width: 92vw;
}

.wdg-lightbox-img {
	display: block;
	max-width: 92vw;
	max-height: 80vh;
	object-fit: contain;
	touch-action: none;
	cursor: zoom-in;
	transition: transform 0.15s ease;
}

.wdg-lightbox-img.is-zoomed {
	cursor: grab;
}

.wdg-lightbox-caption {
	margin-top: 0.75rem;
	max-width: 92vw;
	color: #fff;
	font-size: 0.9rem;
	text-align: center;
}

.wdg-lightbox-close,
.wdg-lightbox-prev,
.wdg-lightbox-next {
	position: absolute;
	border: none;
	background: rgba( 0, 0, 0, 0.45 );
	color: #fff;
	line-height: 1;
	cursor: pointer;
}

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

.wdg-lightbox-close {
	top: 1rem;
	right: 1rem;
	width: 2.25rem;
	height: 2.25rem;
	border-radius: 4px;
	font-size: 1.5rem;
}

.wdg-lightbox-prev,
.wdg-lightbox-next {
	top: 50%;
	transform: translateY( -50% );
	width: 1.85rem;
	height: 2.5rem;
	font-size: 0.9rem;
	border-radius: 4px;
}

.wdg-lightbox-prev {
	left: 0.5rem;
}

.wdg-lightbox-next {
	right: 0.5rem;
}

@media ( max-width: 600px ) {
	.wdg-lightbox-prev,
	.wdg-lightbox-next {
		width: 1.5rem;
		height: 2.1rem;
		font-size: 0.75rem;
	}
}

@media ( prefers-reduced-motion: reduce ) {
	.wdg-lightbox-overlay,
	.wdg-lightbox-img {
		transition: none;
	}
}
