.single-post-wrap .hestia-post-content-layout__body img.hestia-post-image-viewer__trigger {
	cursor: zoom-in;
	transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.single-post-wrap .hestia-post-content-layout__body img.hestia-post-image-viewer__trigger:hover {
	transform: translateY(-2px);
	filter: saturate(1.02);
	box-shadow: 0 22px 46px rgba(15, 23, 42, 0.18);
}

.hestia-post-image-viewer-open,
.hestia-post-image-viewer-open body {
	overflow: hidden;
}

.hestia-post-image-viewer {
	position: fixed;
	inset: 0;
	z-index: 999999;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 0.24s ease, visibility 0.24s ease;
}

.hestia-post-image-viewer.is-open {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}

.hestia-post-image-viewer__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(10, 16, 32, 0.72);
	backdrop-filter: blur(8px);
}

.hestia-post-image-viewer__shell {
	position: relative;
	width: 100%;
	height: 100%;
}

.hestia-post-image-viewer__close,
.hestia-post-image-viewer__nav,
.hestia-post-image-viewer__toolbar button {
	appearance: none;
	-webkit-appearance: none;
	border: 0;
	cursor: pointer;
}

.hestia-post-image-viewer__close,
.hestia-post-image-viewer__nav {
	position: absolute;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	border-radius: 18px;
	background: rgba(255, 255, 255, 0.92);
	box-shadow: 0 18px 40px rgba(15, 23, 42, 0.2);
	color: #0f172a;
	transition: transform 0.2s ease, background-color 0.2s ease, opacity 0.2s ease;
}

.hestia-post-image-viewer__close:hover,
.hestia-post-image-viewer__nav:hover,
.hestia-post-image-viewer__toolbar button:hover {
	transform: translateY(-1px);
}

.hestia-post-image-viewer__close {
	top: 28px;
	right: 28px;
	z-index: 4;
}

.hestia-post-image-viewer__nav {
	top: 50%;
	z-index: 3;
	transform: translateY(-50%);
}

.hestia-post-image-viewer__nav:hover {
	transform: translateY(calc(-50% - 1px));
}

.hestia-post-image-viewer__nav--prev {
	left: 28px;
}

.hestia-post-image-viewer__nav--next {
	right: 28px;
}

.hestia-post-image-viewer__nav:disabled {
	opacity: 0.34;
	cursor: default;
	transform: translateY(-50%);
}

.hestia-post-image-viewer__stage {
	position: absolute;
	inset: 32px 104px 140px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.hestia-post-image-viewer__frame {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	min-width: 0;
	min-height: 0;
}

.hestia-post-image-viewer__image {
	display: block;
	max-width: min(88vw, 1280px);
	max-height: calc(100vh - 220px);
	width: auto;
	height: auto;
	border-radius: 24px;
	box-shadow: 0 28px 80px rgba(15, 23, 42, 0.32);
	transform-origin: center center;
	transition: transform 0.22s ease, opacity 0.22s ease;
	user-select: none;
	-webkit-user-drag: none;
}

.hestia-post-image-viewer.is-loading .hestia-post-image-viewer__image {
	opacity: 0.24;
}

.hestia-post-image-viewer__meta {
	position: absolute;
	left: 50%;
	bottom: 106px;
	z-index: 3;
	width: min(88vw, 900px);
	transform: translateX(-50%);
	text-align: center;
	color: #fff;
}

.hestia-post-image-viewer__counter {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 84px;
	padding: 8px 14px;
	border-radius: 999px;
	background: rgba(15, 23, 42, 0.56);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.04em;
}

.hestia-post-image-viewer__caption {
	margin-top: 12px;
	color: rgba(255, 255, 255, 0.88);
	font-size: 14px;
	line-height: 1.75;
}

.hestia-post-image-viewer__caption:empty {
	display: none;
}

.hestia-post-image-viewer__toolbar {
	position: absolute;
	left: 50%;
	bottom: 28px;
	z-index: 4;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 12px 14px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.96);
	box-shadow: 0 24px 54px rgba(15, 23, 42, 0.18);
	transform: translateX(-50%);
}

.hestia-post-image-viewer__toolbar button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 46px;
	height: 46px;
	padding: 0 14px;
	border-radius: 14px;
	background: transparent;
	color: #0f172a;
	font-size: 13px;
	font-weight: 700;
	line-height: 1;
	transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.hestia-post-image-viewer__toolbar button:hover {
	background: rgba(37, 99, 235, 0.1);
	color: #2563eb;
}

.hestia-post-image-viewer__toolbar button:disabled {
	opacity: 0.4;
	cursor: default;
}

.hestia-post-image-viewer__toolbar button:disabled:hover {
	transform: none;
	background: transparent;
	color: #0f172a;
}

.hestia-post-image-viewer__toolbar-divider {
	width: 1px;
	height: 30px;
	background: rgba(148, 163, 184, 0.32);
}

.hestia-post-image-viewer__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
}

.hestia-post-image-viewer__icon svg {
	display: block;
	width: 100%;
	height: 100%;
}

.hestia-post-image-viewer__glyph {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 1em;
	font-size: 34px;
	font-weight: 400;
	line-height: 1;
}

.hestia-post-image-viewer__close .hestia-post-image-viewer__glyph {
	font-size: 28px;
}

.screen-reader-text.hestia-post-image-viewer__sr {
	clip: rect(1px, 1px, 1px, 1px);
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

@media (max-width: 991px) {
	.hestia-post-image-viewer__stage {
		inset: 24px 78px 168px;
	}

	.hestia-post-image-viewer__image {
		max-width: calc(100vw - 120px);
		max-height: calc(100vh - 260px);
	}

	.hestia-post-image-viewer__meta {
		bottom: 126px;
	}
}

@media (max-width: 767px) {
	.hestia-post-image-viewer__close {
		top: 18px;
		right: 18px;
		width: 48px;
		height: 48px;
		border-radius: 16px;
	}

	.hestia-post-image-viewer__nav {
		width: 46px;
		height: 46px;
		border-radius: 16px;
	}

	.hestia-post-image-viewer__nav--prev {
		left: 14px;
	}

	.hestia-post-image-viewer__nav--next {
		right: 14px;
	}

	.hestia-post-image-viewer__stage {
		inset: 18px 18px 204px;
	}

	.hestia-post-image-viewer__image {
		max-width: calc(100vw - 36px);
		max-height: calc(100vh - 288px);
		border-radius: 18px;
	}

	.hestia-post-image-viewer__meta {
		bottom: 138px;
		width: calc(100vw - 36px);
	}

	.hestia-post-image-viewer__toolbar {
		left: 18px;
		right: 18px;
		bottom: 18px;
		transform: none;
		border-radius: 22px;
	}

	.hestia-post-image-viewer__toolbar button {
		flex: 1 1 52px;
		min-width: 52px;
	}
}
