.aa-lightbox {
	max-width: 100vw;
	max-height: 100dvh;
	width: 100%;
	height: 100%;
	padding: 0;
	border: 0;
	background: transparent;
	display: none;
	place-items: center;
}
.aa-lightbox[open] {
	display: grid;
	animation: aa-lightbox-in 200ms ease;
}
.aa-lightbox::backdrop {
	background: rgb(10 10 20 / 0.88);
	backdrop-filter: blur(4px);
}
.aa-lightbox figure {
	margin: 0;
	display: grid;
	gap: 0.75rem;
	justify-items: center;
	pointer-events: none;
}
.aa-lightbox img {
	max-width: min(92vw, 1600px);
	max-height: 85dvh;
	width: auto;
	height: auto;
	border-radius: 0.5rem;
	box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.25);
	pointer-events: auto;
}
.aa-lightbox figcaption {
	color: #e5e7eb;
	font-size: 0.875rem;
	text-align: center;
	max-width: 60ch;
}
.aa-lightbox figcaption:empty {
	display: none;
}
.aa-lightbox button {
	position: fixed;
	border: 0;
	background: rgb(255 255 255 / 0.1);
	color: #fff;
	width: 2.75rem;
	height: 2.75rem;
	border-radius: 999px;
	font-size: 1.75rem;
	line-height: 1;
	cursor: pointer;
	transition: background-color 150ms ease;
}
.aa-lightbox button:hover {
	background: rgb(255 255 255 / 0.2);
}
.aa-lightbox-close {
	top: 1rem;
	right: 1rem;
}
.aa-lightbox-prev,
.aa-lightbox-next {
	top: 50%;
	translate: 0 -50%;
	display: none;
}
.aa-lightbox-prev {
	left: 1rem;
}
.aa-lightbox-next {
	right: 1rem;
}
.aa-lightbox.has-nav .aa-lightbox-prev,
.aa-lightbox.has-nav .aa-lightbox-next {
	display: block;
}
@keyframes aa-lightbox-in {
	from {
		opacity: 0;
	}
}
@media (prefers-reduced-motion: reduce) {
	.aa-lightbox[open] {
		animation: none;
	}
}
