/* Yusuz Lightbox */

html.yzlb-lock {
	overflow: hidden;
}

.yzlb-overlay {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: none;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 12px;
	padding: 16px;
	box-sizing: border-box;
	background: rgba(12, 14, 18, 0.94);
	-webkit-tap-highlight-color: transparent;
}

.yzlb-overlay.yzlb-open {
	display: flex;
	animation: yzlb-fade 0.18s ease-out;
}

.yzlb-overlay [hidden] {
	display: none !important;
}

.yzlb-stage {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	max-width: 100%;
	min-height: 0;
}

.yzlb-img {
	max-width: 100%;
	max-height: calc(100vh - 132px);
	border-radius: 6px;
	box-shadow: 0 8px 40px rgba(0, 0, 0, 0.55);
	opacity: 0;
	transform: scale(0.985);
	transition: opacity 0.18s ease-out, transform 0.18s ease-out;
}

.yzlb-img.yzlb-loaded {
	opacity: 1;
	transform: none;
}

.yzlb-spinner {
	position: absolute;
	width: 36px;
	height: 36px;
	border: 3px solid rgba(255, 255, 255, 0.2);
	border-top-color: #3fb7ef;
	border-radius: 50%;
	opacity: 0;
	pointer-events: none;
}

.yzlb-spinner.yzlb-active {
	opacity: 1;
	animation: yzlb-spin 0.8s linear infinite;
}

.yzlb-error {
	margin: 0;
	color: rgba(255, 255, 255, 0.85);
	font-size: 14px;
	padding: 24px 12px;
}

.yzlb-caption {
	margin: 0;
	max-width: min(90vw, 720px);
	color: rgba(255, 255, 255, 0.92);
	font-size: 14px;
	line-height: 1.6;
	text-align: center;
	overflow-wrap: anywhere;
	text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}

.yzlb-counter {
	position: absolute;
	top: 22px;
	left: 18px;
	margin: 0;
	color: rgba(255, 255, 255, 0.72);
	font-size: 13px;
	letter-spacing: 0.04em;
}

.yzlb-btn {
	position: absolute;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.08);
	color: #fff;
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
	user-select: none;
	transition: background 0.15s ease-out;
}

.yzlb-btn:hover {
	background: rgba(255, 255, 255, 0.18);
}

.yzlb-btn:focus-visible {
	outline: 2px solid #3fb7ef;
	outline-offset: 2px;
}

.yzlb-close {
	top: 14px;
	right: 14px;
}

.yzlb-prev,
.yzlb-next {
	top: 50%;
	transform: translateY(-50%);
	font-size: 32px;
	padding-bottom: 4px;
}

.yzlb-prev {
	left: 12px;
}

.yzlb-next {
	right: 12px;
}

@keyframes yzlb-fade {
	from {
		opacity: 0;
	}
	to {
		opacity: 1;
	}
}

@keyframes yzlb-spin {
	to {
		transform: rotate(360deg);
	}
}

@media (max-width: 600px) {
	.yzlb-btn {
		width: 40px;
		height: 40px;
	}

	.yzlb-caption {
		font-size: 13px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.yzlb-overlay.yzlb-open {
		animation: none;
	}

	.yzlb-img {
		transition: none;
		transform: none;
	}
}
