.cj-lightbox-open {
	overflow: hidden;
}

.cj-lightbox {
	position: fixed;
	z-index: 99999;
	inset: 0;
	display: none;
	align-items: center;
	justify-content: center;
	background: rgba(0, 0, 0, 0.88);
	padding: 28px;
	box-sizing: border-box;
}

.cj-lightbox.is-active {
	display: flex;
}

.cj-lightbox__figure {
	margin: 0;
	max-width: 100%;
	max-height: 100%;
	text-align: center;
}

.cj-lightbox__image {
	display: block;
	max-width: calc(100vw - 56px);
	max-height: calc(100vh - 96px);
	width: auto;
	height: auto;
	margin: 0 auto;
	box-shadow: 0 18px 60px rgba(0, 0, 0, 0.45);
}

.cj-lightbox__caption {
	color: #fff;
	font-size: 14px;
	line-height: 1.4;
	margin-top: 12px;
}

.cj-lightbox__button {
	position: fixed;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.16);
	color: #fff;
	font-size: 30px;
	line-height: 1;
	cursor: pointer;
}

.cj-lightbox__button:hover,
.cj-lightbox__button:focus {
	background: rgba(255, 255, 255, 0.28);
	outline: 2px solid rgba(255, 255, 255, 0.55);
	outline-offset: 2px;
}

.cj-lightbox__close {
	top: 18px;
	right: 18px;
}

.cj-lightbox__prev,
.cj-lightbox__next {
	top: 50%;
	transform: translateY(-50%);
}

.cj-lightbox__prev {
	left: 18px;
}

.cj-lightbox__next {
	right: 18px;
}

@media (max-width: 640px) {
	.cj-lightbox {
		padding: 16px;
	}

	.cj-lightbox__image {
		max-width: calc(100vw - 32px);
		max-height: calc(100vh - 112px);
	}

	.cj-lightbox__button {
		width: 38px;
		height: 38px;
		font-size: 26px;
	}
}
