/* Mitchell - Gallery Lightbox */

.mgl {
	box-sizing: border-box;
	width: 100vw;
	width: 100dvw;
	height: 100vh;
	height: 100dvh;
	max-width: none;
	max-height: none;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	color: #fff;
}

.mgl[open] {
	display: flex;
	align-items: center;
	justify-content: center;
}

.mgl::backdrop {
	background: rgba(0, 0, 0, 0.88);
}

html:has(.mgl[open]) {
	overflow: hidden;
}

.mgl .mgl-figure {
	margin: 0;
	max-width: 90vw;
	text-align: center;
}

.mgl .mgl-image {
	display: block;
	width: auto;
	height: auto;
	max-width: 90vw;
	max-height: 82vh;
	max-height: 82dvh;
	margin: 0 auto;
	border: 0;
}

.mgl .mgl-caption {
	margin: 0.5em 0 0;
	font-size: 0.95rem;
}

.mgl button {
	position: absolute;
	margin: 0;
	padding: 0.3em 0.5em;
	border: 0;
	border-radius: 0;
	background: transparent;
	color: #fff;
	font-size: 2.5rem;
	line-height: 1;
	cursor: pointer;
}

.mgl button:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 2px;
}

.mgl button[hidden] {
	display: none;
}

.mgl .mgl-close {
	top: 0.25em;
	right: 0.25em;
}

.mgl .mgl-prev,
.mgl .mgl-next {
	top: 50%;
	transform: translateY(-50%);
}

.mgl .mgl-prev {
	left: 0.25em;
}

.mgl .mgl-next {
	right: 0.25em;
}

.mgl .mgl-counter {
	position: absolute;
	right: 0;
	bottom: 0.75em;
	left: 0;
	margin: 0;
	font-size: 0.9rem;
	text-align: center;
}
