/* PIZA FAMILY — "who is in the painting?" (2026-11-24)
   Tap / hover / focus a photo in #story-photos → the story painting dims except a ring around that person. */

#story-photos figure {
	cursor: pointer;
	transition: transform .3s cubic-bezier(.23, 1, .32, 1), box-shadow .3s ease, opacity .3s ease;
	-webkit-tap-highlight-color: transparent;
}
#story-photos figure:focus-visible {
	outline: 3px solid #F5C518;
	outline-offset: 3px;
}
html.pzs-on #story-photos figure {
	opacity: .5;
}
html[data-pzs="father"] #story-photos figure:has(img[alt$=": אבא"]),
html[data-pzs="mother"] #story-photos figure:has(img[alt$=": אמא"]),
html[data-pzs="noa"] #story-photos figure:has(img[alt$=": נועה"]),
html[data-pzs="yoav"] #story-photos figure:has(img[alt$=": יואב"]),
html[data-pzs="max"] #story-photos figure:has(img[alt$=": מקס"]) {
	opacity: 1;
	transform: rotate(0deg) translateY(-6px) scale(1.07) !important;
	box-shadow: 0 0 0 3px #F5C518, 0 16px 30px rgba(0, 0, 0, .55) !important;
	z-index: 2;
}

/* layer over the painting (inside its 4px yellow border) */
.pzx-spot {
	position: absolute;
	inset: 4px;
	overflow: hidden;
	pointer-events: none;
	opacity: 0;
	transition: opacity .35s ease;
}
html.pzs-on .pzx-spot {
	opacity: 1;
}
.pzx-spot__ring {
	position: absolute;
	left: var(--pzs-x, 50%);
	top: var(--pzs-y, 50%);
	width: var(--pzs-d, 22%);
	aspect-ratio: 1;
	transform: translate(-50%, -50%);
	border-radius: 50%;
	border: 3px solid #F5C518;
	box-shadow: 0 0 0 3px rgba(11, 11, 10, .85), 0 0 0 200vmax rgba(11, 11, 10, .68);
	transition: left .5s cubic-bezier(.23, 1, .32, 1), top .5s cubic-bezier(.23, 1, .32, 1), width .5s cubic-bezier(.23, 1, .32, 1);
}
.pzx-spot__label {
	position: absolute;
	top: 12px;
	left: 12px;
	background: #F5C518;
	color: #0B0B0A;
	font: 600 13px/1 'IBM Plex Mono', 'Rubik', monospace;
	padding: 7px 10px;
	box-shadow: 3px 3px 0 #0B0B0A;
}
.pzx-spot__label::after {
	content: var(--pzs-label, "");
}
@media (prefers-reduced-motion: reduce) {
	.pzx-spot, .pzx-spot__ring, #story-photos figure { transition: none; }
}
