html.cc-category-lightbox-open,
body.cc-category-lightbox-open {
	overflow: hidden;
}

.wp-block-image img[data-cc-lightbox-full] {
	cursor: zoom-in;
}

.cc-category-lightbox {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: none;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	padding: 24px 72px;
	background: rgba(0, 0, 0, 0.94);
}

.cc-category-lightbox.is-open {
	display: flex;
}

.cc-category-lightbox__figure {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	max-width: 100%;
	max-height: 100%;
	margin: 0;
}

.cc-category-lightbox__image {
	display: block;
	width: auto;
	height: auto;
	max-width: 100%;
	max-height: calc(100vh - 110px);
	object-fit: contain;
}

.cc-category-lightbox__caption {
	max-width: min(900px, 90vw);
	margin-top: 12px;
	color: #fff;
	font-size: 14px;
	line-height: 1.4;
	text-align: center;
}

.cc-category-lightbox__caption:empty,
.cc-category-lightbox button[hidden] {
	display: none;
}

.cc-category-lightbox__close,
.cc-category-lightbox__previous,
.cc-category-lightbox__next {
	position: absolute;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.14);
	color: #fff;
	font-size: 30px;
	line-height: 1;
	cursor: pointer;
}

.cc-category-lightbox__close {
	top: 18px;
	right: 18px;
}

.cc-category-lightbox__previous {
	top: 50%;
	left: 16px;
	transform: translateY(-50%);
}

.cc-category-lightbox__next {
	top: 50%;
	right: 16px;
	transform: translateY(-50%);
}

@media (max-width: 700px) {
	.cc-category-lightbox {
		padding: 64px 14px 72px;
	}

	.cc-category-lightbox__image {
		max-height: calc(100vh - 150px);
	}

	.cc-category-lightbox__previous,
	.cc-category-lightbox__next {
		top: auto;
		bottom: 14px;
		transform: none;
	}
}
