/* Content image lightbox — tour / visa / blog */

.bt-lightbox-target {
	cursor: zoom-in;
}

.bt-content-lightbox {
	position: fixed;
	inset: 0;
	z-index: 10060;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
}

.bt-content-lightbox[hidden] {
	display: none !important;
}

body.bt-content-lightbox-open {
	overflow: hidden;
}

.bt-content-lightbox__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(10, 8, 20, 0.92);
	cursor: pointer;
}

.bt-content-lightbox__close {
	position: absolute;
	top: 18px;
	right: 18px;
	z-index: 3;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.14);
	color: #fff;
	font-size: 1.75rem;
	line-height: 1;
	cursor: pointer;
	transition: background 0.22s ease, transform 0.22s ease;
}

.bt-content-lightbox__close:hover,
.bt-content-lightbox__close:focus-visible {
	background: rgba(255, 255, 255, 0.28);
	transform: scale(1.04);
}

.bt-content-lightbox__nav {
	position: absolute;
	top: 50%;
	z-index: 3;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.12);
	color: #fff;
	font-size: 2rem;
	line-height: 1;
	cursor: pointer;
	transform: translateY(-50%);
	transition: background 0.22s ease, color 0.22s ease;
}

.bt-content-lightbox__nav:hover,
.bt-content-lightbox__nav:focus-visible {
	background: #fff;
	color: #6c3cff;
}

.bt-content-lightbox__nav--prev {
	left: max(12px, 2vw);
}

.bt-content-lightbox__nav--next {
	right: max(12px, 2vw);
}

.bt-content-lightbox__nav[hidden] {
	display: none !important;
}

.bt-content-lightbox__stage {
	position: relative;
	z-index: 2;
	display: flex;
	flex-direction: column;
	align-items: center;
	max-width: min(96vw, 1200px);
	max-height: 92vh;
}

.bt-content-lightbox__image {
	display: block;
	max-width: min(96vw, 1200px);
	max-height: min(82vh, 900px);
	width: auto;
	height: auto;
	object-fit: contain;
	border-radius: 8px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
	background: rgba(255, 255, 255, 0.04);
}

.bt-content-lightbox__counter {
	margin: 12px 0 0;
	color: rgba(255, 255, 255, 0.88);
	font-size: 14px;
	font-weight: 600;
	line-height: 1.4;
	text-align: center;
}

.bt-content-lightbox__counter[hidden] {
	display: none !important;
}

.bt-content-lightbox__caption {
	margin: 6px 0 0;
	max-width: min(88vw, 900px);
	color: rgba(255, 255, 255, 0.82);
	font-size: 14px;
	line-height: 1.5;
	text-align: center;
}

.bt-content-lightbox__caption[hidden] {
	display: none;
}

@media (max-width: 575px) {
	.bt-content-lightbox {
		padding: 12px;
	}

	.bt-content-lightbox__nav {
		width: 42px;
		height: 42px;
		font-size: 1.6rem;
	}

	.bt-content-lightbox__close {
		top: 12px;
		right: 12px;
		width: 40px;
		height: 40px;
	}
}
