.lightbox-overlay {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.85);
	z-index: 9999;
}

.lightbox-overlay.is-open {
	display: block;
}

body.lightbox-locked {
	overflow: hidden;
}

.lightbox-main {
	display: flex;
	height: 100%;
}

.lightbox-stage {
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 20px;
	min-width: 0;
	position: relative;
}

.lightbox-image {
	max-width: 100%;
	max-height: 75vh;
	object-fit: contain;
	border-radius: 6px;
}

.lightbox-caption {
	color: #fff;
	font-size: 14px;
	margin-top: 14px;
	max-width: 500px;
	text-align: center;
}

.lightbox-thumbs {
	width: 84px;
	overflow-y: auto;
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 64px 12px 16px;
	flex-shrink: 0;
}

.lightbox-thumb {
	width: 100%;
	aspect-ratio: 1;
	object-fit: cover;
	border-radius: 6px;
	cursor: pointer;
	opacity: 0.55;
	border: 2px solid transparent;
}

.lightbox-thumb.is-active {
	opacity: 1;
	border-color: #fff;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
	position: absolute;
	background: transparent;
	border: 1px solid rgba(255, 255, 255, 0.5);
	color: #fff;
	border-radius: 50%;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
}

.lightbox-icon {
	font-style: normal;
	line-height: 1;
}

.lightbox-close {
	top: 16px;
	left: 50%;
	transform: translateX(-50%);
	width: 40px;
	height: 40px;
	font-size: 22px;
}

body.lightbox-locked .wasap_2021 {
	display: none;
}

.lightbox-prev,
.lightbox-next {
	top: 50%;
	transform: translateY(-50%);
	width: 44px;
	height: 44px;
	font-size: 26px;
}

.lightbox-prev {
	left: 16px;
}

.lightbox-next {
	right: 16px;
}

@media (max-width: 700px) {
	.lightbox-main {
		flex-direction: column;
	}

	.lightbox-thumbs {
		width: 100%;
		flex-direction: row;
		overflow-x: auto;
		overflow-y: visible;
		padding: 10px;
	}

	.lightbox-thumb {
		width: 56px;
		height: 56px;
		flex-shrink: 0;
	}

	.lightbox-stage {
		flex: 1;
		padding: 12px;
	}

	.lightbox-image {
		max-height: 55vh;
	}
}
