/* VHL Zoom - trinh xem anh mat bang phong to */

.vhl-zoomable,
.vhl-zoomable img {
	cursor: zoom-in;
}

/* Nam tren moi thu cua theme/plugin (header dinh, nut hotline, popup Estatik 99999...). */
.vhl-zoom {
	position: fixed;
	inset: 0;
	z-index: 2147483000;
	display: none;
	background: rgba(0, 0, 0, 0.92);
}

.vhl-zoom.is-open {
	display: block;
}

html.vhl-zoom-open,
html.vhl-zoom-open body {
	overflow: hidden;
}

.vhl-zoom__viewer {
	position: absolute;
	inset: 0;
}

.vhl-zoom__close {
	position: absolute;
	top: 12px;
	right: 12px;
	z-index: 3;
	width: 44px;
	height: 44px;
	padding: 0;
	font-size: 24px;
	line-height: 44px;
	color: #fff;
	text-align: center;
	background: rgba(255, 255, 255, 0.15);
	border: 0;
	border-radius: 50%;
	cursor: pointer;
}

.vhl-zoom__close:hover,
.vhl-zoom__close:focus {
	background: rgba(255, 255, 255, 0.3);
}

/* Nut + / - / toan canh: o vuong trang goc trai tren (kieu ban do). */
.vhl-zoom__ctrl {
	position: absolute;
	top: 12px;
	left: 12px;
	z-index: 3;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.vhl-zoom__group {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	background: #fff;
	border: 2px solid rgba(0, 0, 0, 0.25);
	border-radius: 6px;
	background-clip: padding-box;
}

.vhl-zoom__group button {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	padding: 0;
	font: 400 26px/1 Arial, sans-serif;
	color: #222;
	background: #fff;
	border: 0;
	border-radius: 0;
	cursor: pointer;
}

.vhl-zoom__group button + button {
	border-top: 1px solid #ccc;
}

.vhl-zoom__group button:hover,
.vhl-zoom__group button:focus-visible {
	background: #f2f2f2;
}

/* Bieu tuong "toan canh": 4 goc vuong + o vuong giua. */
.vhl-zoom__fit {
	position: relative;
	width: 18px;
	height: 18px;
	background:
		linear-gradient(#222, #222) top left / 6px 2px,
		linear-gradient(#222, #222) top left / 2px 6px,
		linear-gradient(#222, #222) top right / 6px 2px,
		linear-gradient(#222, #222) top right / 2px 6px,
		linear-gradient(#222, #222) bottom left / 6px 2px,
		linear-gradient(#222, #222) bottom left / 2px 6px,
		linear-gradient(#222, #222) bottom right / 6px 2px,
		linear-gradient(#222, #222) bottom right / 2px 6px;
	background-repeat: no-repeat;
}

.vhl-zoom__fit::after {
	content: "";
	position: absolute;
	top: 5px;
	left: 5px;
	width: 8px;
	height: 8px;
	background: #222;
	border-radius: 1px;
}

.vhl-zoom__hint {
	position: absolute;
	left: 50%;
	bottom: 16px;
	z-index: 2;
	max-width: calc(100% - 32px);
	padding: 6px 14px;
	font: 13px/1.4 Arial, sans-serif;
	color: #fff;
	text-align: center;
	background: rgba(0, 0, 0, 0.6);
	border-radius: 20px;
	transform: translateX(-50%);
	pointer-events: none;
}

.vhl-zoom__loading {
	position: absolute;
	top: 50%;
	left: 50%;
	z-index: 2;
	display: none;
	font: 15px Arial, sans-serif;
	color: #fff;
	transform: translate(-50%, -50%);
}

.vhl-zoom.is-loading .vhl-zoom__loading {
	display: block;
}

@media (max-width: 600px) {
	.vhl-zoom__hint {
		bottom: 10px;
		font-size: 12px;
	}
}

/* Mui ten ‹ › chuyen giua cac anh mat bang co zoom trong cung trang. */
.vhl-zoom__nav {
	position: absolute;
	top: 50%;
	z-index: 3;
	display: none;
	width: 48px;
	height: 72px;
	margin-top: -36px;
	padding: 0;
	font: 300 56px/68px Arial, sans-serif;
	color: #fff;
	text-align: center;
	background: rgba(0, 0, 0, 0.35);
	border: 0;
	border-radius: 6px;
	cursor: pointer;
}

.vhl-zoom__nav:hover,
.vhl-zoom__nav:focus-visible {
	background: rgba(0, 0, 0, 0.6);
}

.vhl-zoom__nav--prev {
	left: 12px;
}

.vhl-zoom__nav--next {
	right: 12px;
}

.vhl-zoom.has-nav .vhl-zoom__nav {
	display: block;
}

.vhl-zoom__count {
	position: absolute;
	top: 20px;
	left: 50%;
	z-index: 3;
	font: 14px/1 Arial, sans-serif;
	color: #fff;
	transform: translateX(-50%);
	pointer-events: none;
}

.vhl-zoom.has-nav .vhl-zoom__count {
	padding: 6px 12px;
	background: rgba(0, 0, 0, 0.6);
	border-radius: 14px;
}

@media (max-width: 600px) {
	.vhl-zoom__nav {
		width: 36px;
		height: 56px;
		margin-top: -28px;
		font-size: 44px;
		line-height: 52px;
	}
}

/* ---------------------------------------------------------------------------
 * Phong to nhe trong lightbox cua theme (moi anh, khong can "Tao ban zoom").
 * ------------------------------------------------------------------------- */
.mfp-wrap.vhl-lbz figure {
	overflow: hidden; /* anh phong to chi nam trong khung anh, khong de len nut dong / mui ten */
	touch-action: none; /* chum / keo trong khung anh la cua anh, khong de trinh duyet phong to ca trang */
}

.mfp-wrap.vhl-lbz img.mfp-img {
	transform-origin: 0 0;
	touch-action: none;
	-webkit-user-drag: none;
	user-select: none;
	cursor: zoom-in;
	will-change: transform;
}

.mfp-wrap.vhl-lbz.is-zoomed img.mfp-img {
	cursor: grab;
}

.mfp-wrap.vhl-lbz.is-dragging img.mfp-img {
	cursor: grabbing;
}

.vhl-lbz__ctrl {
	position: fixed;
	top: 12px;
	left: 12px;
	z-index: 100010;
}

.vhl-lbz__ctrl .vhl-zoom__group button {
	width: 36px;
	height: 36px;
	font-size: 24px;
}
