.lb-lightbox-enabled {
	cursor: zoom-in;
}

img.lb-lightbox-enabled:focus {
	outline: 3px solid currentColor;
	outline-offset: 4px;
}

.lb-lightbox {
	width: 96vw;
	max-width: 96vw;
	height: 94vh;
	max-height: 94vh;
	margin: auto;
	padding: 0;
	border: 0;
	border-radius: 4px;
	background: #151515;
	color: #fff;
	box-shadow: 0 10px 45px rgba(0, 0, 0, .65);
	overflow: hidden;
}

.lb-lightbox::backdrop {
	background: rgba(0, 0, 0, .84);
}

.lb-lightbox__window {
	display: grid;
	grid-template-rows: auto minmax(0, 1fr) auto;
	height: 100%;
}

.lb-lightbox__toolbar {
	display: flex;
	justify-content: flex-end;
	align-items: center;
	gap: .5rem;
	min-height: 48px;
	padding: .35rem .5rem;
	background: #151515;
}

.lb-lightbox__toolbar button {
	min-height: 40px;
	margin: 0;
	border: 1px solid #aaa;
	border-radius: 3px;
	background: #2b2b2b;
	color: #fff;
	font: 600 14px/1.2 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	cursor: pointer;
}

.lb-lightbox__size {
	padding: .45rem .75rem;
}

.lb-lightbox__close {
	width: 40px;
	padding: 0;
	font-size: 28px !important;
	line-height: 1 !important;
}

.lb-lightbox__toolbar button:hover,
.lb-lightbox__toolbar button:focus {
	border-color: #fff;
	background: #444;
	outline: 2px solid #fff;
	outline-offset: 2px;
}

.lb-lightbox__stage {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 0;
	padding: 0 1rem 1rem;
	overflow: auto;
	overscroll-behavior: contain;
}

.lb-lightbox__image {
	display: block;
	width: auto;
	height: auto;
	max-width: 100%;
	max-height: 100%;
	margin: auto;
	box-shadow: none;
	object-fit: contain;
	cursor: zoom-in;
}

.lb-lightbox.is-actual-size .lb-lightbox__stage {
	display: block;
	text-align: center;
}

.lb-lightbox.is-actual-size .lb-lightbox__image {
	max-width: none;
	max-height: none;
	cursor: zoom-out;
}

.lb-lightbox__caption {
	margin: 0;
	padding: .65rem 1rem .85rem;
	background: #151515;
	color: #fff;
	font: 400 15px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	text-align: center;
}

body.lb-lightbox-open {
	overflow: hidden;
}

@media (max-width: 600px) {
	.lb-lightbox {
		width: 100vw;
		max-width: 100vw;
		height: 100vh;
		max-height: 100vh;
		border-radius: 0;
	}

	.lb-lightbox__stage {
		padding: 0 .5rem .5rem;
	}
}

@media print {
	.lb-lightbox {
		display: none;
	}
}
