/* Image lightbox. */

.lightbox {
	position: fixed;
	inset: 0;
	z-index: 9999;
	display: none;
	align-items: center;
	justify-content: center;
	background: rgba(0, 0, 0, 0.87);
	user-select: none;
}
.lightbox.is-open {
	display: flex;
}
html.has-lightbox {
	overflow: hidden;
}
.lightbox__stage {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	padding: 60px 70px;
	box-sizing: border-box;
}
.lightbox__stage img {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
	box-shadow:
		0 0 30px rgba(0, 0, 0, 0.3),
		0 0 8px -5px rgba(0, 0, 0, 0.3);
	border-radius: 2px;
	opacity: 0;
	transition: opacity 0.3s;
}
.lightbox__stage img.is-loaded {
	opacity: 1;
}
.lightbox__counter {
	position: absolute;
	top: 0;
	left: 0;
	padding: 20px;
	font-size: 15px;
	color: rgba(238, 238, 238, 0.9);
	font-family: "Montserrat", Sans-serif;
}
.lightbox button {
	background: none;
	border: 0;
	padding: 0;
	cursor: pointer;
	color: rgba(238, 238, 238, 0.9);
	transition: color 0.3s;
}
.lightbox button:hover,
.lightbox button:focus {
	color: #fff;
	background: none;
}
.lightbox__close {
	position: absolute;
	top: 0;
	right: 0;
	padding: 10px 20px !important;
	font-size: 40px;
	line-height: 1;
}
.lightbox__nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 70px;
	height: 120px;
	display: flex;
	align-items: center;
	justify-content: center;
}
.lightbox__nav svg {
	width: 25px;
	height: 25px;
	fill: currentColor;
}
.lightbox__prev {
	left: 0;
}
.lightbox__next {
	right: 0;
}
.lightbox.is-single .lightbox__nav,
.lightbox.is-single .lightbox__counter {
	display: none;
}
@media (max-width: 767px) {
	.lightbox__stage {
		padding: 50px 0;
	}
	.lightbox__nav {
		width: 50px;
	}
}
