/* CheFit Media Lightbox — Elementor-style fullscreen viewer */

.chefit-lightbox-zoomable {
	cursor: zoom-in;
}

.chefit-lightbox-trigger {
	display: block;
	width: 100%;
	padding: 0;
	margin: 0;
	border: none;
	background: none;
	cursor: zoom-in;
	text-align: inherit;
}

.chefit-lightbox-trigger img {
	display: block;
	width: 100%;
	height: auto;
}

#chefit-media-lightbox {
	position: fixed;
	inset: 0;
	z-index: 10000010;
	display: none;
	background: rgba(0, 0, 0, 0.92);
	color: #fff;
	font-family: inherit;
	direction: ltr;
	touch-action: none;
	user-select: none;
	-webkit-user-select: none;
}

#chefit-media-lightbox.is-open {
	display: block;
}

.chefit-lb-close {
	position: absolute;
	top: 16px;
	right: 16px;
	z-index: 5;
	width: 44px;
	height: 44px;
	border: none;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.12);
	color: #ffffff !important;
	-webkit-text-fill-color: #ffffff;
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
	transition: background 0.15s ease;
}

.chefit-lb-close:hover,
.chefit-lb-close:focus-visible {
	background: rgba(255, 255, 255, 0.22) !important;
	color: #ffffff !important;
	-webkit-text-fill-color: #ffffff;
	outline: none;
}

.chefit-lb-counter {
	position: absolute;
	bottom: 20px;
	left: 50%;
	transform: translateX(-50%);
	z-index: 5;
	padding: 6px 14px;
	font-size: 14px;
	font-weight: 500;
	letter-spacing: 0.02em;
	color: rgba(255, 255, 255, 0.85);
	background: rgba(0, 0, 0, 0.45);
	border-radius: 999px;
	pointer-events: none;
}

.chefit-lb-viewport {
	position: absolute;
	inset: 0;
	overflow: hidden;
}

.chefit-lb-track {
	display: flex;
	height: 100%;
	will-change: transform;
}

.chefit-lb-slide {
	flex: 0 0 100%;
	width: 100%;
	min-width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	box-sizing: border-box;
}

.chefit-lb-zoom {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	transform-origin: center center;
	will-change: transform;
}

.chefit-lb-zoom img {
	display: block;
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
	object-fit: contain;
	pointer-events: none;
	-webkit-user-drag: none;
}

body.chefit-lightbox-open {
	overflow: hidden;
}

body.chefit-theme-dark #chefit-media-lightbox .chefit-lb-close {
	color: #ffffff !important;
	-webkit-text-fill-color: #ffffff;
}

@media (max-width: 640px) {
	.chefit-lb-close {
		top: 12px;
		right: 12px;
		width: 40px;
		height: 40px;
		font-size: 24px;
	}
}
