/* ANE Photo v2 — צילום מונפש: עומק / שכבות (פירוק והרכבה) / בולטים קופצים */
.ane-photo{position:relative;display:block;width:100%;overflow:hidden;border-radius:var(--ane-photo-radius,20px);background:#E9F2EA;isolation:isolate;font-family:'Assistant',system-ui,-apple-system,'Segoe UI',Arial,sans-serif}
.ane-photo>img{display:block;width:100%;height:auto;position:relative;z-index:0}
.ane-photo .ane-photo-gl{position:absolute;inset:0;width:100%;height:100%;display:block;z-index:1;opacity:0;transition:opacity .6s ease}
.ane-photo.ane-gl-on .ane-photo-gl{opacity:1}
.ane-photo.ane-gl-on>img,.ane-photo.ane-layers-on>img{visibility:hidden}
/* Ken Burns fallback (בלי מפת עומק / בלי WebGL) */
.ane-photo.ane-kenburns>img{animation:ane-kb 18s ease-in-out infinite alternate;transform-origin:60% 40%}
@keyframes ane-kb{from{transform:scale(1) translate(0,0)}to{transform:scale(1.08) translate(-1.5%,1%)}}

/* ---------- שכבות ---------- */
.ane-stage{position:absolute;inset:0;z-index:1;overflow:hidden}
.ane-stage .ane-bg{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;will-change:transform}
.ane-layer{position:absolute;will-change:transform,filter;transform-origin:50% 60%}
.ane-layer>img{display:block;width:100%;height:100%;pointer-events:none;user-select:none;-webkit-user-drag:none}

/* ---------- בולטים קופצים ---------- */
.ane-co{position:absolute;z-index:5;width:0;height:0;pointer-events:none;direction:rtl}
.ane-co-dot{position:absolute;left:-8px;top:-8px;width:16px;height:16px;border-radius:50%;background:#fff;border:3px solid #12903E;box-shadow:0 0 0 0 rgba(18,144,62,.55);animation:ane-hs-pulse 2.2s ease-out infinite;pointer-events:auto;cursor:pointer;transition:transform .25s}
.ane-co.is-on .ane-co-dot,.ane-co.is-hover .ane-co-dot{transform:scale(1.25);background:#12903E;border-color:#fff}
@keyframes ane-hs-pulse{0%{box-shadow:0 0 0 0 rgba(18,144,62,.55)}70%{box-shadow:0 0 0 14px rgba(18,144,62,0)}100%{box-shadow:0 0 0 0 rgba(18,144,62,0)}}
/* קו מחבר מהנקודה לכרטיס: ברירת מחדל למעלה-ימינה; .flip = למעלה-שמאלה; .down = למטה (כשהנקודה קרובה לקצה העליון) */
.ane-co-line{position:absolute;left:0;top:0;width:54px;height:2px;background:#12903E;transform-origin:0 50%;transform:rotate(-40deg) scaleX(0);transition:transform .35s cubic-bezier(.2,.8,.2,1);opacity:.9}
.ane-co-line.flip{transform:rotate(-140deg) scaleX(0)}
.ane-co.down .ane-co-line{transform:rotate(40deg) scaleX(0)}
.ane-co.down .ane-co-line.flip{transform:rotate(140deg) scaleX(0)}
.ane-co.is-on .ane-co-line,.ane-co.is-hover .ane-co-line{transform:rotate(-40deg) scaleX(1)}
.ane-co.is-on .ane-co-line.flip,.ane-co.is-hover .ane-co-line.flip{transform:rotate(-140deg) scaleX(1)}
.ane-co.down.is-on .ane-co-line,.ane-co.down.is-hover .ane-co-line{transform:rotate(40deg) scaleX(1)}
.ane-co.down.is-on .ane-co-line.flip,.ane-co.down.is-hover .ane-co-line.flip{transform:rotate(140deg) scaleX(1)}
/* הכרטיס. --dx/--dy = תיקון מיקום אוטומטי (גבולות התמונה / חפיפה עם כרטיס אחר) */
.ane-co-card{position:absolute;left:40px;bottom:32px;min-width:150px;max-width:232px;background:rgba(18,33,26,.94);color:#fff;border-radius:12px;padding:9px 12px;box-shadow:0 10px 30px -10px rgba(18,33,26,.5);backdrop-filter:blur(6px);
  opacity:0;transform:translate(var(--dx,0px),calc(var(--dy,0px) + 8px)) scale(.94);transform-origin:left bottom;transition:opacity .3s ease .15s,transform .35s cubic-bezier(.2,.8,.2,1) .15s;pointer-events:auto;text-align:right}
.ane-co-card.flip{left:auto;right:40px;transform-origin:right bottom}
.ane-co.down .ane-co-card{bottom:auto;top:32px;transform-origin:left top}
.ane-co.down .ane-co-card.flip{transform-origin:right top}
.ane-co.is-on .ane-co-card,.ane-co.is-hover .ane-co-card{opacity:1;transform:translate(var(--dx,0px),var(--dy,0px)) scale(1)}
.ane-co.is-hover{z-index:9}
.ane-co-card b{display:block;font-size:14.5px;font-weight:700;line-height:1.3}
.ane-co-card i{display:block;font-style:normal;font-size:12.5px;line-height:1.4;color:#C8ECD4;margin-top:2px}
.ane-co-card::after{content:"";position:absolute;left:-6px;bottom:8px;width:10px;height:10px;background:rgba(18,33,26,.94);transform:rotate(45deg)}
.ane-co-card.flip::after{left:auto;right:-6px}
.ane-co.down .ane-co-card::after{bottom:auto;top:8px}

/* קונטיינר צר (כרטיסים / מובייל): כרטיסים קומפקטיים */
.ane-co-compact .ane-co-card{min-width:110px;max-width:160px;padding:6px 9px}.ane-co-compact .ane-co-card b{font-size:12.5px}.ane-co-compact .ane-co-card i{font-size:11px;line-height:1.3}.ane-co-compact .ane-co-line{width:36px}
/* מובייל: הכרטיסים קטנים יותר */
@media (max-width:640px){.ane-co-card{min-width:120px;max-width:170px;padding:7px 9px}.ane-co-card b{font-size:12.5px}.ane-co-card i{font-size:11px}.ane-co-line{width:36px}.ane-co-card{left:28px;bottom:22px}.ane-co-card.flip{right:28px}}
@media (prefers-reduced-motion:reduce){.ane-photo.ane-kenburns>img,.ane-co-dot{animation:none}.ane-co-card,.ane-co-line{transition:none}}
