/* ==========================================================================
   לוח מודעות אינטראקטיבי — ריחוף צבעוני + הגדלה
   ========================================================================== */

.mz-board {
	position: relative;
	width: 100%;
	aspect-ratio: var(--mz-ratio, 0.69);
	isolation: isolate;
	--mz-ease: cubic-bezier(.22, .9, .24, 1);
}

.mz-board .mz-board__base {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: contain;
	user-select: none;
	-webkit-user-drag: none;
}

/* one hotspot per ad; the polygon clip is also its hit area.
   Doubled class beats Hello's button reset (pink hover background) and Elementor's img rules. */
.mz-board .mz-ad,
.mz-board .mz-ad:hover,
.mz-board .mz-ad:focus {
	background: none;
	color: inherit;
	box-shadow: none;
	text-decoration: none;
}

.mz-ad {
	position: absolute;
	display: block;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: none;
	cursor: zoom-in;
	clip-path: var(--mz-clip);
	transform-origin: 50% 50%;
	transition: transform .55s var(--mz-ease);
	-webkit-tap-highlight-color: transparent;
	--mx: 50%;
	--my: 50%;
}

.mz-board .mz-ad .mz-ad__color {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	max-width: none;
	max-height: none;
	border-radius: 0;
	object-fit: cover;
	clip-path: circle(0% at var(--mx) var(--my));
	transition: clip-path .8s var(--mz-ease);
	pointer-events: none;
}

/* cylinder shading so the flat print sits on the curved column */
.mz-ad::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, rgba(0, 0, 0, .34), rgba(0, 0, 0, 0) 22%, rgba(0, 0, 0, 0) 78%, rgba(0, 0, 0, .34));
	opacity: 0;
	transition: opacity .6s var(--mz-ease);
	pointer-events: none;
}

.mz-ad__shine {
	position: absolute;
	inset: 0;
	background: linear-gradient(105deg, rgba(255, 255, 255, 0) 38%, rgba(255, 255, 255, .5) 50%, rgba(255, 255, 255, 0) 62%);
	transform: translateX(-130%);
	pointer-events: none;
	z-index: 1;
}

.mz-ad:hover,
.mz-ad:focus-visible,
.mz-ad.is-lit {
	z-index: 3;
	transform: scale(1.035);
}

.mz-board .mz-ad:hover .mz-ad__color,
.mz-board .mz-ad:focus-visible .mz-ad__color,
.mz-board .mz-ad.is-lit .mz-ad__color {
	clip-path: circle(150% at var(--mx) var(--my));
}

.mz-ad:hover::after,
.mz-ad:focus-visible::after,
.mz-ad.is-lit::after {
	opacity: 1;
}

.mz-ad:hover .mz-ad__shine,
.mz-ad:focus-visible .mz-ad__shine {
	transform: translateX(130%);
	transition: transform 1s var(--mz-ease) .12s;
}

.mz-ad:focus-visible {
	outline: none;
}

/* keyboard focus: a cyan edge that survives the polygon clip */
.mz-ad:focus-visible::after {
	box-shadow: inset 0 0 0 4px #00B4D8;
}

/* editor helper: show every hotspot */
.mz-board--outlines .mz-ad {
	background: rgba(0, 180, 216, .28);
}

.mz-board--outlines .mz-ad::before {
	content: attr(data-index);
	position: absolute;
	top: 6px;
	right: 6px;
	z-index: 2;
	font: 700 13px/1 Heebo, sans-serif;
	color: #0F141C;
	background: #00B4D8;
	padding: 3px 6px;
	border-radius: 3px;
}

.mz-board__toast {
	position: absolute;
	left: 50%;
	bottom: 8px;
	transform: translateX(-50%);
	z-index: 10;
	background: #0F141C;
	color: #fff;
	font: 500 13px/1.4 Heebo, sans-serif;
	padding: 6px 12px;
	border-radius: 6px;
	border: 1px solid #00B4D8;
	direction: ltr;
	pointer-events: none;
}

/* ---------- lightbox ---------- */

.mz-lb {
	position: fixed;
	inset: 0;
	z-index: 99999;
	direction: rtl;
}

.mz-lb__bg {
	position: absolute;
	inset: 0;
	background: rgba(8, 12, 18, .86);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	opacity: 0;
	transition: opacity .45s ease;
}

.mz-lb.is-open .mz-lb__bg {
	opacity: 1;
}

.mz-lb__frame {
	position: fixed;
	overflow: hidden;
	border-radius: 10px;
	box-shadow: 0 30px 90px rgba(0, 119, 182, .28), 0 10px 30px rgba(0, 0, 0, .5);
	background: #161f2c;
	will-change: left, top, width, height;
}

.mz-lb .mz-lb__frame img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	max-height: none;
	object-fit: cover;
	transition: opacity .3s ease;
}

.mz-lb__ui {
	opacity: 0;
	transition: opacity .35s ease;
}

.mz-lb.is-open .mz-lb__ui {
	opacity: 1;
	transition-delay: .25s;
}

.mz-lb__caption {
	position: fixed;
	left: 50%;
	bottom: 3vh;
	transform: translateX(-50%);
	display: flex;
	align-items: center;
	gap: 18px;
	max-width: 92vw;
	font-family: Heebo, sans-serif;
	color: #fff;
	white-space: nowrap;
}

.mz-lb__title {
	font-weight: 700;
	font-size: 20px;
	overflow: hidden;
	text-overflow: ellipsis;
}

.mz-lb__count {
	font-weight: 300;
	font-size: 15px;
	color: rgba(255, 255, 255, .6);
	direction: ltr;
}

.mz-lb__link {
	font-weight: 700;
	font-size: 16px;
	color: #00B4D8;
	text-decoration: none;
}

.mz-lb__link:hover {
	color: #fff;
}

.mz-lb .mz-lb__btn {
	position: fixed;
	display: grid;
	place-items: center;
	width: 52px;
	height: 52px;
	padding: 0;
	border: 1px solid rgba(0, 180, 216, .5);
	border-radius: 50%;
	background: rgba(15, 20, 28, .7);
	color: #fff;
	cursor: pointer;
	transition: background .25s ease, border-color .25s ease, transform .25s ease;
}

.mz-lb .mz-lb__btn:hover,
.mz-lb .mz-lb__btn:focus-visible {
	background: #00B4D8;
	border-color: #00B4D8;
	color: #0F141C;
	outline: none;
}

.mz-lb__btn svg {
	width: 22px;
	height: 22px;
}

.mz-lb__close {
	top: 20px;
	left: 20px;
}

.mz-lb__prev {
	top: 50%;
	right: 20px;
	transform: translateY(-50%);
}

.mz-lb__next {
	top: 50%;
	left: 20px;
	transform: translateY(-50%);
}

.mz-lb__prev:hover { transform: translateY(-50%) translateX(3px); }
.mz-lb__next:hover { transform: translateY(-50%) translateX(-3px); }

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

@media (max-width: 767px) {
	.mz-lb__btn {
		width: 44px;
		height: 44px;
	}

	.mz-lb__prev,
	.mz-lb__next {
		top: auto;
		bottom: 2.5vh;
		transform: none;
	}

	.mz-lb__prev:hover,
	.mz-lb__next:hover {
		transform: none;
	}

	.mz-lb__caption {
		bottom: calc(2.5vh + 56px);
		flex-wrap: wrap;
		justify-content: center;
		white-space: normal;
		text-align: center;
		gap: 4px 14px;
	}

	.mz-lb__title {
		font-size: 17px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.mz-ad,
	.mz-ad__color,
	.mz-ad::after,
	.mz-lb__bg,
	.mz-lb__ui {
		transition: none !important;
	}

	.mz-ad:hover .mz-ad__shine,
	.mz-ad:focus-visible .mz-ad__shine {
		transition: none;
		transform: translateX(-130%);
	}

	.mz-ad:hover,
	.mz-ad:focus-visible,
	.mz-ad.is-lit {
		transform: none;
	}
}
