/*
 * Lightbox tải ảnh lớn khi bấm.
 * FILE DÙNG CHUNG — giống hệt từng byte giữa hai bản plugin.
 */
img.wsl-zoom { cursor: zoom-in; }

html.wsl-lb-lock,
html.wsl-lb-lock body { overflow: hidden; }

.wsl-lb {
	position: fixed;
	top: 0; right: 0; bottom: 0; left: 0;
	z-index: 100000;
	display: none;
	align-items: center;
	justify-content: center;
	background: rgba(0, 0, 0, .9);
	-webkit-tap-highlight-color: transparent;
}
.wsl-lb.is-open { display: flex; }

.wsl-lb__stage {
	margin: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	max-width: 100%;
	max-height: 100%;
	padding: 56px 64px;
	box-sizing: border-box;
}
.wsl-lb__img {
	display: block;
	max-width: 100%;
	max-height: calc(100vh - 150px);
	width: auto;
	height: auto;
	object-fit: contain;
	transition: opacity .2s ease;
}
.wsl-lb.is-loading .wsl-lb__img { opacity: .55; }

.wsl-lb__cap {
	margin-top: 12px;
	max-width: 900px;
	color: #eee;
	font-size: 15px;
	line-height: 1.4;
	text-align: center;
}
.wsl-lb__cap:empty { display: none; }

.wsl-lb__count {
	position: absolute;
	top: 18px;
	left: 20px;
	color: #ccc;
	font-size: 14px;
}

.wsl-lb__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, .12);
	color: #fff;
	cursor: pointer;
	transition: background .15s ease;
}
.wsl-lb__btn:hover,
.wsl-lb__btn:focus-visible { background: rgba(255, 255, 255, .28); outline: none; }
.wsl-lb__btn svg {
	width: 22px;
	height: 22px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2.5;
	stroke-linecap: round;
	stroke-linejoin: round;
}
.wsl-lb__close { top: 12px; right: 12px; }
.wsl-lb__prev  { left: 12px;  top: 50%; margin-top: -22px; }
.wsl-lb__next  { right: 12px; top: 50%; margin-top: -22px; }
.wsl-lb.is-single .wsl-lb__prev,
.wsl-lb.is-single .wsl-lb__next { display: none; }

.wsl-lb__spin {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 36px;
	height: 36px;
	margin: -18px 0 0 -18px;
	border: 3px solid rgba(255, 255, 255, .25);
	border-top-color: #fff;
	border-radius: 50%;
	display: none;
	animation: wsl-spin .8s linear infinite;
}
.wsl-lb.is-loading .wsl-lb__spin { display: block; }

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

@media (max-width: 600px) {
	.wsl-lb__stage { padding: 56px 8px 64px; }
	.wsl-lb__prev,
	.wsl-lb__next { top: auto; bottom: 12px; margin-top: 0; }
	.wsl-lb__prev { left: calc(50% - 56px); }
	.wsl-lb__next { right: calc(50% - 56px); }
}

@media (prefers-reduced-motion: reduce) {
	.wsl-lb__img { transition: none; }
	.wsl-lb__spin { animation-duration: 2s; }
}
