.zmm-wrap,
.zmm-wrap * {
	box-sizing: border-box;
}

.zmm-wrap {
	--zmm-bg: #f6f1ea;
	--zmm-card: #fffdf9;
	--zmm-text: #5c554c;
	--zmm-soft: #7a6a58;
	--zmm-accent: #6b5846;
	--zmm-gold: #c19a61;
	--zmm-line: #e4d8ca;
	max-width: 980px;
	margin: 18px auto 28px;
	padding: 18px 16px 12px;
	background: linear-gradient(180deg, #fffdf9 0%, #f6f1ea 100%);
	border: 1px solid var(--zmm-line);
	border-radius: 22px;
	box-shadow: 0 18px 40px rgba(79, 65, 52, 0.08);
	color: var(--zmm-text);
}

.zmm-wrap button {
	font-family: inherit;
	appearance: none;
	-webkit-appearance: none;
	box-shadow: none;
	outline: none;
}

.zmm-cats {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	margin-bottom: 16px;
}

.zmm-wrap .zmm-cat {
	border: 1px solid var(--zmm-gold) !important;
	background: #fff !important;
	color: var(--zmm-accent) !important;
	border-radius: 2px !important;
	padding: 8px 14px;
	font-size: 12px;
	font-weight: 650;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	cursor: pointer;
}

.zmm-wrap .zmm-cat:hover,
.zmm-wrap .zmm-cat.is-active {
	background: var(--zmm-accent) !important;
	border-color: var(--zmm-accent) !important;
	color: #fff !important;
}

.zmm-stage {
	display: grid;
	grid-template-columns: 44px minmax(0, 1fr) 44px;
	align-items: center;
	gap: 8px;
}

.zmm-wrap .zmm-nav {
	width: 44px;
	height: 44px;
	border: 1px solid var(--zmm-gold) !important;
	background: #fff !important;
	border-radius: 2px !important;
	color: var(--zmm-accent) !important;
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
	display: grid;
	place-items: center;
	padding: 0;
}

.zmm-wrap .zmm-nav:hover {
	background: var(--zmm-accent) !important;
	color: #fff !important;
	border-color: var(--zmm-accent) !important;
}

.zmm-wrap .zmm-nav:disabled {
	opacity: 0.35;
	cursor: default;
	background: #fff !important;
	color: var(--zmm-soft) !important;
}

.zmm-wrap .zmm-frame {
	margin: 0;
	position: relative;
	width: 100%;
	height: 640px !important;
	min-height: 640px !important;
	max-height: 640px !important;
	background: #efe6dc;
	border-radius: 16px;
	overflow: hidden;
	box-shadow: inset 0 0 0 1px rgba(79, 65, 52, 0.06);
	cursor: zoom-in;
}

.zmm-page-slot {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 0;
	min-height: 0;
}

.zmm-page-box {
	position: relative;
	display: block;
	width: auto;
	height: auto;
	max-width: 100%;
	max-height: 100%;
	line-height: 0;
}

.zmm-wrap .zmm-page {
	display: block;
	width: 100% !important;
	height: 100% !important;
	max-width: 100% !important;
	max-height: 100% !important;
	object-fit: contain;
	background: transparent;
}

.zmm-caption-title {
	display: none !important;
}

.zmm-page-box .zmm-caption {
	position: absolute;
	right: 10px;
	bottom: 10px;
	padding: 7px 12px;
	border-radius: 2px;
	background: rgba(107, 88, 70, 0.88);
	color: #fff;
	font-size: 13px;
	font-weight: 650;
	pointer-events: none;
	z-index: 2;
}

.zmm-wrap .zmm-zoom {
	position: absolute;
	top: 10px;
	right: 10px;
	z-index: 2;
	border: 1px solid var(--zmm-gold) !important;
	border-radius: 2px !important;
	background: var(--zmm-accent) !important;
	color: #fff !important;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	padding: 7px 12px;
	cursor: pointer;
}

.zmm-thumbs {
	display: flex;
	gap: 8px;
	overflow-x: auto;
	padding: 14px 4px 6px;
	scrollbar-width: thin;
}

.zmm-wrap .zmm-thumb {
	flex: 0 0 72px;
	width: 72px;
	height: 96px;
	padding: 0;
	border: 2px solid transparent !important;
	border-radius: 8px !important;
	overflow: hidden;
	background: #efe6dc !important;
	cursor: pointer;
}

.zmm-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.zmm-wrap .zmm-thumb.is-active,
.zmm-wrap .zmm-thumb:hover {
	border-color: var(--zmm-accent) !important;
}

.zmm-hint {
	margin: 4px 0 0;
	text-align: center;
	color: var(--zmm-soft);
	font-size: 13px;
}

.zmm-lightbox {
	position: fixed;
	inset: 0;
	z-index: 100000;
	background: rgba(20, 16, 12, 0.92);
	display: grid;
	grid-template-columns: 56px minmax(0, 1fr) 56px;
	align-items: center;
	padding: 48px 12px 16px;
}

.zmm-lightbox[hidden] {
	display: none !important;
}

.zmm-lightbox img {
	width: 100%;
	max-height: 92vh;
	object-fit: contain;
	justify-self: center;
}

.zmm-lightbox button {
	border: 1px solid var(--zmm-gold);
	background: var(--zmm-accent);
	color: #fff;
	font-size: 28px;
	width: 48px;
	height: 48px;
	border-radius: 2px;
	cursor: pointer;
}

.zmm-lb-close {
	position: absolute;
	top: 12px;
	right: 16px;
	font-size: 24px;
}

body.page-id-3299:has(.zmm-wrap) .elementor-element-8980245,
body.page-id-3299:has(.zmm-wrap) .elementor-element-64b9dbe,
body.page-id-3299:has(.zmm-wrap) iframe.pdfjs-iframe,
body.page-id-3299:has(.zmm-wrap) .pdfjs-iframe,
body.page-id-3299:has(.zmm-wrap) a[href="#"][class*="pdf"],
body.page-id-3299:has(.zmm-wrap) a[href*="Skip to PDF"],
body.page:has(.zmm-wrap) iframe[src*="pdfjs-viewer"] {
	display: none !important;
}

@media (max-width: 760px) {
	.zmm-wrap {
		padding: 12px 8px 8px;
		border-radius: 16px;
	}

	.zmm-stage {
		grid-template-columns: 1fr;
	}

	.zmm-nav {
		display: none;
	}

	.zmm-wrap .zmm-frame {
		height: 480px !important;
		min-height: 480px !important;
		max-height: 480px !important;
	}

	.zmm-wrap .zmm-page {
		max-height: 480px !important;
	}

	.zmm-lightbox {
		grid-template-columns: 1fr;
		padding: 56px 8px 16px;
	}

	.zmm-lb-prev,
	.zmm-lb-next {
		position: absolute;
		bottom: 16px;
	}

	.zmm-lb-prev { left: 16px; }
	.zmm-lb-next { right: 16px; }
}
