html {
    /* קפיצות # ו־scrollIntoView — ריווח קל (אין תפריט sticky עליון) */
    scroll-padding-top: 2.5rem;
    /* מניעת קפיצות גלילה כש־JS משנה DOM (תפריט תמה, hero stage, מיקרו־קופי) — scroll anchoring */
    overflow-anchor: none;
    scrollbar-gutter: stable;
    overflow-x: hidden;
}
body {
    font-family: 'Segoe UI', sans-serif;
    background-color: #111;
    margin: 0;
    padding: 0;
    color: #fff;
    overflow-x: hidden;
    max-width: 100%;
}
/* קישורים: בלי סגול של :visited בדפדפן — כחול־אפור עקבי */
body a:any-link {
    color: #b4c9ed;
    text-decoration-color: rgba(180, 207, 237, 0.45);
}
body a:visited {
    color: #a3b8dc;
}
body a:hover {
    color: #e8f0ff;
    text-decoration-color: rgba(232, 240, 255, 0.55);
}
body a:active {
    color: #fff;
}
.brand { position: absolute; top: 20px; left: 30px; font-size: 22px; letter-spacing: 3px; font-weight: bold; color: #fff; text-transform: uppercase; z-index: 1001; }
nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    row-gap: 8px;
    padding: 20px 10px;
    background: #111;
    border-bottom: 1px solid #222;
    position: sticky;
    top: 0;
    z-index: 1000;
    direction: ltr;
}
nav a:any-link,
nav a:visited {
    color: #888;
    text-decoration: none;
    margin: 0 15px;
    font-size: 13px;
    text-transform: uppercase;
    transition: 0.3s;
    font-weight: 600;
}
nav a:hover,
nav a.active {
    color: #fff;
}

.content { max-width: 1120px; margin: 0 auto; padding: 24px 20px 70px; }
/* לפני ואחרי עטיפת JS: אותו מיכל flex — אחרת ביטול :has(> .hero) מחזיר .content ל-block וגורם לקפיצה (למשל stormbay ללא Back) */
.content:has(> .hero:not(.hero--video)),
.content:has(> .ex-hero-stage) {
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
}
.back-link {
    display: inline-block;
    color: #666;
    text-decoration: none;
    font-size: 12px;
    margin: 6px 0 24px;
    transition: 0.3s;
}
.back-link:any-link,
.back-link:visited {
    color: #666;
}
.back-link:hover {
    color: #fff;
}
/* דפי curation/*.html — חזרה ל־curatorial מעל הכותרת, באותה עמודה כמו .ex-bicols (ימין = תחילת כותרת עברית) */
.curation-doc__top-nav {
    box-sizing: border-box;
    width: 100%;
    max-width: 46rem;
    margin-inline: auto;
    padding-inline: 0;
    direction: ltr;
    unicode-bidi: isolate;
    text-align: right;
}
.curation-doc__top-nav .back-link {
    margin: 6px 0 18px;
    display: inline-block;
}
/* דפים בלי .ex-bicols (למשל ruth / granada): עמודת המסמך המלאה */
.content.curation-doc:not(:has(.ex-bicols)) > .curation-doc__top-nav {
    max-width: 100%;
}
.content.curation-doc:not(:has(.ex-bicols)):has(> h1[dir="ltr"]) > .curation-doc__top-nav {
    text-align: left;
}
/* תוכן מאמר אוצר: מתחת לערימת המותג הצפה — לא בשורה אופקית עם ORA */
.content.curation-doc {
    padding-top: max(5.85rem, calc(env(safe-area-inset-top, 0px) + 5.1rem));
}
/* passion2 ודפי טקסט דומים מחוץ ל־.content.curation-doc */
body.text-from-curators > .curation-doc__top-nav {
    max-width: 46rem;
    margin-inline: auto;
    padding-top: max(5.85rem, calc(env(safe-area-inset-top, 0px) + 5.1rem));
}
/* naked-men#tal-dekel מ-Curators: ← Curators ליד EN מעל כותרת המאמר */
body.text-from-curators .ex-text-lang-head [data-curators-embed] {
    display: inline-block;
}
.ex-text-lang-head .ex-text-curators-back {
    margin: 0;
    flex: 0 0 auto;
    font-size: 12px;
    white-space: nowrap;
}
.ex-text-lang-head--en-only:has([data-curators-embed]:not([hidden])) {
    gap: 10px;
}
/* תפריט תמה: מסתיר Back (כולל Clean URLs בניטלייפיי כש־JS מצליח לבנות את התפריט).
   חריג: חזרה ל־Works בתתי־דפי Works — נשארת גלויה כי אין לה מקבילה בתפריט הצף. */
.has-ex-theme-nav .content > a.back-link.site-back:not([href="works.html"]) {
    display: none !important;
}
/* תוכן עם תמונת פתיחה: מתחיל מתחת לערימת ORA (לא באותה שורה חזותית) */
body.has-ex-theme-nav .content:has(> .hero:not(.hero--video)),
body.has-ex-theme-nav .content:has(> .ex-hero-stage),
body.has-ex-theme-nav .content:has(> .hero.hero--video) {
    padding-top: max(1.5rem, calc(env(safe-area-inset-top, 0px) + 5.75rem));
}
/* כותרת התערוכה מתחת להירו: קצת מעל גודל שורת EN בתפריט הנפתח (~11.2px) */
body.has-ex-theme-nav .content > .meta .title {
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: 0.12em;
    line-height: 1.35;
    text-transform: uppercase;
}
.ex-theme-nav {
    position: fixed;
    left: max(18px, env(safe-area-inset-left, 0px));
    right: auto;
    top: 50%;
    bottom: auto;
    transform: translateY(-50%);
    z-index: 2400;
    width: min(198px, 26vw);
    max-height: min(58vh, 400px);
    overflow-x: hidden;
    overflow-y: auto;
    text-align: left;
    direction: ltr;
    color: #d9d9d9;
    font-size: 9.5px;
    line-height: 1.32;
    letter-spacing: 0.03em;
    background: linear-gradient(160deg, rgba(26, 28, 34, 0.78), rgba(12, 14, 19, 0.65));
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 10px;
    padding: 8px 9px 10px;
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px) saturate(128%);
    -webkit-backdrop-filter: blur(12px) saturate(128%);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    box-sizing: border-box;
}
.ex-theme-nav-title {
    display: flex;
    flex-direction: column;
    gap: 2px;
    width: 100%;
    margin-bottom: 7px;
    padding-bottom: 7px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}
.ex-theme-nav-title-en {
    display: block;
    color: #f4f4f4;
    font-weight: 700;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}
.ex-theme-nav-title-he {
    display: block;
    color: #b9bcc5;
    font-weight: 500;
    font-size: 9px;
    letter-spacing: 0.01em;
    direction: rtl;
}
.ex-theme-nav-links {
    display: block;
    width: 100%;
    font-size: inherit;
}
.ex-theme-nav-mobile-toggle {
    display: none;
}
.ex-theme-nav a.ex-theme-nav-link:any-link,
.ex-theme-nav a.ex-theme-nav-link:visited {
    color: #d9d9d9;
}
.ex-theme-nav-link {
    display: block;
    color: #d9d9d9;
    text-decoration: none;
    padding: 2px 2px;
    text-align: left;
    max-width: 100%;
    position: relative;
}
.ex-theme-nav-link + .ex-theme-nav-link {
    margin-top: 2px;
}
.ex-theme-nav-link-inner {
    display: block;
    border-radius: 6px;
    padding: 5px 6px 5px 8px;
    position: relative;
    transition: background-color 0.2s ease, transform 0.2s ease;
}
.ex-theme-nav-link-en {
    display: inline-block;
    position: relative;
    font-size: 9.5px;
    line-height: 1.32;
    color: #ececec;
    letter-spacing: 0.03em;
}
.ex-theme-nav-link-en::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -2px;
    height: 1px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.0), rgba(255, 255, 255, 0.75), rgba(255, 255, 255, 0.0));
    transform: scaleX(0);
    transform-origin: left center;
    opacity: 0.92;
    transition: transform 0.2s ease;
}
.ex-theme-nav-link-he {
    display: block;
    margin-top: 1px;
    font-size: 8.5px;
    line-height: 1.28;
    color: #9ba0ac;
    letter-spacing: 0.01em;
    direction: rtl;
}
.ex-theme-nav--fallback .ex-theme-nav-link {
    padding: 4px 3px;
    font-size: 9.5px;
    line-height: 1.38;
}
.ex-theme-nav-link:hover .ex-theme-nav-link-inner,
.ex-theme-nav-link:focus-visible .ex-theme-nav-link-inner {
    background: rgba(255, 255, 255, 0.07);
    transform: translateX(1px);
}
.ex-theme-nav-link:hover .ex-theme-nav-link-en::after,
.ex-theme-nav-link:focus-visible .ex-theme-nav-link-en::after {
    transform: scaleX(1);
}
.ex-theme-nav-link.is-current {
    color: #fff;
}
.ex-theme-nav-link.is-current .ex-theme-nav-link-inner {
    background: rgba(255, 255, 255, 0.1);
}
.ex-theme-nav-link.is-current .ex-theme-nav-link-inner::before {
    content: "";
    position: absolute;
    top: 5px;
    bottom: 5px;
    left: 0;
    right: auto;
    width: 2px;
    border-radius: 2px;
    background: linear-gradient(180deg, #f8f8f8 0%, rgba(226, 182, 122, 0.9) 100%);
}
.ex-theme-nav-link.is-current .ex-theme-nav-link-en {
    color: #fff;
    font-weight: 600;
}
.ex-theme-nav-link.is-current .ex-theme-nav-link-he {
    color: #c6cad6;
}
.ex-theme-nav-sep {
    display: none;
}
/* תמה: תפריט צף בשמאל, מתחת לערימת המותג — קו עליון מיושר לתחילת אזור ההירו (כמו padding-top של .content) */
@media (min-width: 901px) {
    /* אין אלמנט .ex-theme-nav (תפריט תמה הוסר) — בלי עמודת ריווח שמאלית ריקה */
    body.has-ex-theme-nav:not(:has(.ex-theme-nav)) {
        padding-left: 0 !important;
    }
    body.has-ex-theme-nav {
        --ex-theme-nav-w: min(198px, 26vw);
        --ex-theme-nav-gutter: 22px;
        padding-left: max(
            0px,
            calc(env(safe-area-inset-left, 0px) + var(--ex-theme-nav-w) + var(--ex-theme-nav-gutter))
        );
        box-sizing: border-box;
    }
    body.has-ex-theme-nav.ex-theme-digital:not(.page-exhibitions) {
        --ex-theme-nav-w: min(178px, 23vw);
    }
    body.has-ex-theme-nav.page-exhibitions {
        --ex-theme-nav-w: min(168px, 21vw);
    }
    body.has-ex-theme-nav .ex-theme-nav {
        left: max(18px, env(safe-area-inset-left, 0px));
        right: auto;
        width: var(--ex-theme-nav-w);
        /* אותו קו גובה כמו תחילת .content עם הירו (מרווח מספיק מהמותג הקבוע) */
        top: max(1.5rem, calc(env(safe-area-inset-top, 0px) + 5.75rem));
        transform: none;
        bottom: auto;
        max-height: min(
            56vh,
            calc(100dvh - max(1.5rem, calc(env(safe-area-inset-top, 0px) + 5.75rem)) - 20px)
        );
    }
    /* דף Exhibitions: רוחב הגריד — body כבר שומר עמודה לשמאל */
    body.page-exhibitions .container {
        max-width: min(980px, calc(100vw - 48px));
        padding-right: 14px;
        padding-left: 14px;
    }
    body.page-exhibitions h1 {
        max-width: min(32rem, calc(100vw - 48px));
        margin-left: auto;
        margin-right: auto;
    }
}
@media (max-width: 900px) {
    body.has-ex-theme-nav {
        padding-left: 0;
    }
    body.has-ex-theme-nav .content {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        padding-left: max(12px, env(safe-area-inset-left, 0px));
        padding-right: max(12px, env(safe-area-inset-right, 0px));
    }
    body.has-ex-theme-nav .content > .hero:not(.hero--video),
    body.has-ex-theme-nav .content > .ex-hero-stage .hero:not(.hero--video),
    body.has-ex-theme-nav .content > .meta,
    body.has-ex-theme-nav .content > .video-grid,
    body.has-ex-theme-nav .content > .ex-hero-microcopy-below,
    body.has-ex-theme-nav .content > .ex-text.ex-bicols {
        width: 100%;
        max-width: min(920px, 100%);
        margin-inline: auto;
        box-sizing: border-box;
    }
    /* מובייל: התפריט כאקורדיון בתוך הזרימה (לא קופסה קבועה שמכסה חצי מסך) */
    body.has-ex-theme-nav .ex-theme-nav {
        position: static;
        left: auto;
        right: auto;
        top: auto;
        bottom: auto;
        transform: none;
        width: 100%;
        max-width: 100%;
        max-height: none;
        overflow: visible;
        margin: 10px 0 10px;
        padding: 0;
        border-radius: 9px;
        box-shadow: 0 10px 22px rgba(0, 0, 0, 0.24);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
    }
    body.has-ex-theme-nav .ex-theme-nav-title {
        display: none;
    }
    body.has-ex-theme-nav .ex-theme-nav-mobile-toggle {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
        padding: 8px 10px;
        border: 0;
        border-radius: 9px 9px 0 0;
        background: rgba(255, 255, 255, 0.04);
        color: #ececec;
        font: inherit;
        cursor: pointer;
        box-sizing: border-box;
        text-align: left;
    }
    body.has-ex-theme-nav .ex-theme-nav-mobile-toggle-title {
        display: inline-flex;
        align-items: baseline;
        gap: 8px;
        flex-wrap: wrap;
    }
    body.has-ex-theme-nav .ex-theme-nav-mobile-toggle-en {
        font-size: 10.5px;
        font-weight: 700;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        line-height: 1.12;
    }
    body.has-ex-theme-nav .ex-theme-nav-mobile-toggle-he {
        font-size: 9.5px;
        color: #b7bcc8;
        letter-spacing: 0.01em;
        direction: rtl;
        line-height: 1.12;
    }
    body.has-ex-theme-nav .ex-theme-nav-mobile-toggle-icon {
        font-size: 14px;
        line-height: 1;
        transition: transform 0.2s ease;
        color: #dbdbdb;
    }
    body.has-ex-theme-nav .ex-theme-nav.is-open .ex-theme-nav-mobile-toggle-icon {
        transform: rotate(180deg);
    }
    body.has-ex-theme-nav .ex-theme-nav-links {
        display: none;
        padding: 5px 6px 8px;
        border-top: 1px solid rgba(255, 255, 255, 0.12);
        max-height: min(38vh, 260px);
        overflow-y: auto;
    }
    body.has-ex-theme-nav .ex-theme-nav.is-open .ex-theme-nav-links {
        display: block;
    }
    body.has-ex-theme-nav .ex-theme-nav-link,
    body.has-ex-theme-nav .ex-theme-nav-link.is-current {
        text-align: left;
        padding-top: 1px;
        padding-bottom: 1px;
    }
    body.has-ex-theme-nav .ex-theme-nav-link-inner {
        padding: 5px 6px;
    }
    body.has-ex-theme-nav .ex-theme-nav-link.is-current .ex-theme-nav-link-inner::before {
        right: auto;
        left: 0;
        top: 5px;
        bottom: 5px;
        width: 2px;
        height: auto;
        transform: none;
    }
    body.has-ex-theme-nav .ex-theme-nav-link-en,
    body.has-ex-theme-nav .ex-theme-nav-link-he {
        text-align: left;
    }
    body.has-ex-theme-nav .ex-theme-nav-link-he {
        direction: rtl;
    }
    body.has-ex-theme-nav .ex-hero-stage {
        min-height: 0;
        justify-content: flex-start;
        padding-top: 0;
        padding-bottom: 8px;
    }
}

/* מכשירי מגע: חץ והטקסט «Scroll» מיותרים כריסה מקובלת והם תופסים גובה */
@media (max-width: 900px) {
    @media (hover: none) {
        .ex-scroll-indicator {
            display: none !important;
        }
    }
}

/* דפי תערוכה עם תפריט תמה: עד 900px — סדר זרימה נכון + מיקרו־קופי מתחת לתמונה (לא מעליה) */
@media (max-width: 900px) {
    body.has-ex-theme-nav .content {
        display: flex;
        flex-direction: column;
    }
    body.has-ex-theme-nav .content > * {
        order: 10;
    }
    body.has-ex-theme-nav .content > a.back-link {
        order: 1;
    }
    body.has-ex-theme-nav .content > .ex-hero-stage,
    body.has-ex-theme-nav .content > .hero:not(.hero--video) {
        order: 2;
    }
    body.has-ex-theme-nav .content > .ex-scroll-indicator {
        order: 2;
    }
    body.has-ex-theme-nav .content > .meta {
        order: 3;
    }
    body.has-ex-theme-nav .content > .ex-hero-microcopy-below {
        order: 4;
    }
    body.has-ex-theme-nav .content > .ex-theme-nav {
        order: 5;
    }
    body.has-ex-theme-nav .content > .ex-text:not(.ex-bicols) {
        order: 6;
    }
    body.has-ex-theme-nav .content > .works-page-title,
    body.has-ex-theme-nav .content > .works-page-subtitle {
        /* אחרי Back, לפני/עם ההירו — לפי סדר ב-HTML */
        order: 2;
    }
    /* Works / אקוורל: כותרת קבוצה + קישור PDF באותו «שכבה» כמו הגלריה — סדר מקור DOM */
    body.has-ex-theme-nav .content > .ex-gallery-group-title,
    body.has-ex-theme-nav .content > .ex-gallery-group-read {
        order: 7;
    }
    body.has-ex-theme-nav .content > .ex-gallery,
    body.has-ex-theme-nav .content > .video-grid {
        order: 7;
    }
    body.has-ex-theme-nav .content > .ex-text.ex-bicols {
        order: 8;
    }
    /* Home Of: קוביות קפיצה למאמרים ואז המאמרים הארוכים — אחרי הגלריה */
    body.has-ex-theme-nav .content > nav.ex-text-jump-cubes {
        order: 8;
    }
    body.has-ex-theme-nav .content > .ex-text.ex-text--home-essays {
        order: 9;
    }
    body.has-ex-theme-nav .content > .video-overlay {
        order: 88;
    }

    body.has-ex-theme-nav .hero.hero--microcopy-hover .hero-microcopy,
    body.has-ex-theme-nav .hero.hero--long-microcopy .hero-microcopy,
    body.has-ex-theme-nav .hero.hero--video .hero-microcopy,
    body.has-ex-theme-nav .ex-hero-microcopy-below .hero-microcopy {
        position: static !important;
        left: auto;
        right: auto;
        top: auto;
        bottom: auto;
        transform: none !important;
        width: 100%;
        max-width: 100%;
        max-height: none;
        overflow: visible;
        margin-top: 0;
        padding: 0;
        border-radius: 0;
        background: transparent;
        text-shadow: none;
        opacity: 1 !important;
    }
    body.has-ex-theme-nav .ex-hero-microcopy-below {
        margin-bottom: 4px;
    }
    body.has-ex-theme-nav .hero.hero--microcopy-hover .hero-microcopy-he,
    body.has-ex-theme-nav .hero.hero--microcopy-hover .hero-microcopy-en,
    body.has-ex-theme-nav .hero.hero--long-microcopy .hero-microcopy-he,
    body.has-ex-theme-nav .hero.hero--long-microcopy .hero-microcopy-en,
    body.has-ex-theme-nav .ex-hero-microcopy-below .hero-microcopy-he,
    body.has-ex-theme-nav .ex-hero-microcopy-below .hero-microcopy-en {
        background: transparent;
    }
    body.has-ex-theme-nav .hero.hero--microcopy-hover .hero-microcopy-he p,
    body.has-ex-theme-nav .hero.hero--microcopy-hover .hero-microcopy-en p,
    body.has-ex-theme-nav .hero.hero--long-microcopy .hero-microcopy-he p,
    body.has-ex-theme-nav .hero.hero--long-microcopy .hero-microcopy-en p,
    body.has-ex-theme-nav .ex-hero-microcopy-below .hero-microcopy-he p,
    body.has-ex-theme-nav .ex-hero-microcopy-below .hero-microcopy-en p {
        font-size: 16px;
        line-height: 1.55;
        color: #dadada;
        margin: 0 0 0.55em;
    }
    body.has-ex-theme-nav .hero.hero--microcopy-hover .hero-microcopy-en p,
    body.has-ex-theme-nav .hero.hero--long-microcopy .hero-microcopy-en p,
    body.has-ex-theme-nav .ex-hero-microcopy-below .hero-microcopy-en p {
        color: #bfc4cc;
    }
    body.has-ex-theme-nav .hero.hero--microcopy-hover img,
    body.has-ex-theme-nav .hero.hero--long-microcopy img {
        opacity: 1 !important;
        filter: none !important;
    }
}

/* דף Video Works (דסקטופ): פריסה כמו עם תפריט תמה מהפריים הראשון — בלי has-ex-theme-nav (מונע קפיצה ברענון) */
@media (min-width: 901px) {
    body.page-video-works .ex-theme-nav {
        top: clamp(300px, 44vh, 430px);
        left: max(18px, env(safe-area-inset-left, 0px));
        right: auto;
        width: var(--ex-theme-nav-w, min(178px, 23vw));
        transform: none;
        max-height: min(44vh, 300px);
    }
    body.page-video-works h1 {
        max-width: min(36rem, calc(100vw - 40px));
        margin-left: auto;
        margin-right: auto;
        padding-inline: max(24px, env(safe-area-inset-left, 0px));
        box-sizing: border-box;
    }
    body.page-video-works .video-page-intro {
        max-width: min(30rem, calc(100vw - 40px));
        margin-left: auto;
        margin-right: auto;
        padding-inline: max(24px, env(safe-area-inset-left, 0px));
        box-sizing: border-box;
    }
    body.page-video-works .works-video-grid {
        max-width: min(980px, calc(100vw - 40px));
        margin-left: auto;
        margin-right: auto;
        padding-left: max(20px, env(safe-area-inset-left, 0px));
        padding-right: max(20px, env(safe-area-inset-right, 0px));
        box-sizing: border-box;
        gap: 22px;
    }
    body.page-video-works .works-video-grid .image-container {
        margin-bottom: 6px;
    }
}
@media (max-width: 900px) {
    body.page-video-works.has-ex-theme-nav .video-page-intro {
        max-width: min(32rem, 100%);
    }
    body.page-video-works.has-ex-theme-nav .works-video-grid,
    body.page-video-works.has-ex-theme-nav h1 {
        max-width: min(1200px, 100%);
    }
    /* תפריט 0/1 למעלה: מרחק מהכותרת שלא תיכנס תחת הבלוק הקבוע */
    body.page-video-works.has-ex-theme-nav h1 {
        padding-top: clamp(120px, 22svh, 200px);
        margin-top: 0;
    }
}

.hero {
    width: 88%;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    padding-top: 56.25%;
    height: 0;
    overflow: hidden;
    background: #222;
    border: none;
    margin-bottom: 20px;
}
.hero img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    z-index: 0;
}

/*
 * לפני ש־exhibition-gallery.js עוטף את ה־hero ב־.ex-hero-stage:
 * אותם מימדי תיבה ותמונה כבתוך ה־stage; בנוסף .content:has(> .hero) ממורכז אנכית כמו ה־stage — מפחית קפיצה במעבר בין תערוכות.
 */
.content > .hero:not(.hero--video):not(.hero--contain) {
    width: min(920px, calc(100vw - 64px));
    aspect-ratio: 16 / 9;
    height: auto !important;
    max-height: calc(100svh - 180px);
    margin-left: auto;
    margin-right: auto;
    margin-top: auto;
    margin-bottom: auto;
    padding-top: 0 !important;
    overflow: hidden;
    position: relative;
    background: #000;
    border: none;
}
.content > .hero.hero--contain:not(.hero--video) {
    display: block;
    width: min(920px, calc(100vw - 64px));
    aspect-ratio: 16 / 9;
    height: auto !important;
    max-height: calc(100svh - 180px);
    margin-left: auto;
    margin-right: auto;
    margin-top: auto;
    margin-bottom: auto;
    padding-top: 0 !important;
    overflow: hidden;
    position: relative;
    background: #000;
    min-height: 0;
}
.content > .hero:not(.hero--video) img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    object-fit: contain !important;
    object-position: center !important;
    display: block;
    z-index: 0;
}
body.page-mosques .content > .hero:not(.hero--video):not(.hero--contain),
body.page-dna .content > .hero:not(.hero--video):not(.hero--contain),
body.page-children .content > .hero:not(.hero--video):not(.hero--contain) {
    width: min(860px, calc(100vw - 84px));
    max-height: calc(100svh - 230px);
}
body.page-mosques .content > .hero.hero--contain:not(.hero--video),
body.page-dna .content > .hero.hero--contain:not(.hero--video),
body.page-children .content > .hero.hero--contain:not(.hero--video) {
    width: min(860px, calc(100vw - 84px));
    max-height: calc(100svh - 230px);
}
body.page-sculpture .content > .hero:not(.hero--video):not(.hero--contain),
body.page-aquarelle .content > .hero:not(.hero--video):not(.hero--contain),
body.page-stormbay .content > .hero:not(.hero--video):not(.hero--contain) {
    width: min(780px, calc(100vw - 96px));
    max-height: calc(100svh - 280px);
}
body.page-sculpture .content > .hero.hero--contain:not(.hero--video),
body.page-aquarelle .content > .hero.hero--contain:not(.hero--video),
body.page-stormbay .content > .hero.hero--contain:not(.hero--video) {
    width: min(780px, calc(100vw - 96px));
    max-height: calc(100svh - 280px);
}

/* תמונה ראשית ללא חיתוך — גובה הפריים לפי יחס התמונה (למשל פורטרט) */
.hero.hero--contain {
    padding-top: 0;
    height: auto;
    overflow: hidden;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hero.hero--contain img {
    position: relative;
    top: auto;
    left: auto;
    display: block;
    margin: 0 auto;
    max-width: none;
    max-height: none;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

/* כתובית על תמונה ראשית — מופיעה במעבר עכבר / במיקוד (כמו גלריית תערוכה) */
/* מסגרת 16:9; התמונה ממלאת את המלבן (object-fit: cover). אם יחס הקובץ לא 16:9 — יהיה חיתוך שוליים קל */
figure.hero.hero--caption-hover {
    margin: 0;
    padding: 0;
    padding-top: 0;
    height: auto;
    aspect-ratio: 16 / 9;
    max-height: none;
    overflow: hidden;
    position: relative;
    background-color: #111;
}
.ex-scroll-indicator {
    margin: 8px 0 0;
    display: block;
    width: 100%;
    text-align: center;
    direction: ltr;
    font-size: 12px;
    line-height: 1.35;
    letter-spacing: 0.04em;
    color: #d8d8d8;
    pointer-events: none;
    opacity: 0.92;
    animation: hero-scroll-hint 2.4s ease-in-out infinite;
}
.ex-scroll-indicator .ex-scroll-indicator-arrow {
    display: block;
    font-size: 16px;
    line-height: 1;
    margin-bottom: 4px;
}
.ex-firstscreen-spacer {
    width: 100%;
    pointer-events: none;
}
.ex-hero-stage {
    /* 100dvh הוסר — משתנה עם סרגל כתובות בנייד וגורם לקפיצות גלילה/פריסה מתמשכות */
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
    padding: clamp(56px, 8svh, 96px) 20px clamp(16px, 3svh, 30px);
    overflow: hidden;
}
.ex-hero-stage .hero:not(.hero--video) {
    width: min(920px, calc(100vw - 64px));
    aspect-ratio: 16 / 9;
    height: auto !important;
    max-height: calc(100svh - 180px);
    margin: 0;
    padding-top: 0 !important;
    border: none;
    background: #000;
    overflow: hidden;
    position: relative;
}
.ex-hero-stage .ex-scroll-indicator {
    margin: 10px 0 0;
    flex-shrink: 0;
}
/* התאמות נקודתיות לדפים עם hero שעדיין יצא גדול מדי */
body.page-mosques .ex-hero-stage .hero:not(.hero--video),
body.page-dna .ex-hero-stage .hero:not(.hero--video),
body.page-children .ex-hero-stage .hero:not(.hero--video) {
    width: min(860px, calc(100vw - 84px));
    max-height: calc(100svh - 230px);
}
body.page-mosques .ex-hero-stage,
body.page-dna .ex-hero-stage,
body.page-children .ex-hero-stage {
    padding-top: clamp(60px, 9svh, 104px);
    padding-bottom: clamp(20px, 4svh, 34px);
}
body.page-mosques .ex-hero-stage .ex-scroll-indicator,
body.page-dna .ex-hero-stage .ex-scroll-indicator,
body.page-children .ex-hero-stage .ex-scroll-indicator {
    margin-top: 8px;
}
/* דפים עם hero תמונה: הקטנה כדי שחץ «Scroll to continue» יישאר בתוך מסך הפתיחה */
body.page-sculpture .ex-hero-stage .hero:not(.hero--video),
body.page-aquarelle .ex-hero-stage .hero:not(.hero--video),
body.page-stormbay .ex-hero-stage .hero:not(.hero--video) {
    width: min(780px, calc(100vw - 96px));
    max-height: calc(100svh - 280px);
}
body.page-sculpture .ex-hero-stage,
body.page-aquarelle .ex-hero-stage,
body.page-stormbay .ex-hero-stage {
    padding-top: clamp(56px, 8svh, 96px);
    padding-bottom: clamp(28px, 5.5svh, 48px);
}
body.page-sculpture .ex-hero-stage .ex-scroll-indicator,
body.page-aquarelle .ex-hero-stage .ex-scroll-indicator,
body.page-stormbay .ex-hero-stage .ex-scroll-indicator {
    margin-top: 6px;
}
/* בתוך מסך הפתיחה: אותה מסגרת פיזית לכל סוגי ה-hero */
.ex-hero-stage .hero:not(.hero--video) img {
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    object-fit: contain !important;
    object-position: center !important;
    display: block;
}
.ex-hero-stage .hero.hero--contain,
.ex-hero-stage figure.hero.hero--caption-hover {
    width: 100%;
    height: 100%;
    max-height: none;
}
.ex-hero-stage figure.hero.hero--caption-hover {
    /* בלי זה ובמהלך הרסקה ל־height:100%, מסגרת ה־figure עלולה לצמצם ל־גובה 0 עם תמונה absolute */
    aspect-ratio: 16 / 9;
    min-height: 0;
}
.ex-hero-stage figure.hero.hero--caption-hover > img {
    position: absolute;
    inset: 0;
}
@keyframes hero-scroll-hint {
    0%, 100% { transform: translateY(0); opacity: 0.75; }
    50% { transform: translateY(4px); opacity: 1; }
}
figure.hero.hero--caption-hover > img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    z-index: 0;
}
figure.hero.hero--caption-hover > figcaption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    margin: 0;
    padding: 14px 14px 16px;
    font-size: 13px;
    line-height: 1.45;
    text-align: center;
    color: #f0f0f0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.5) 55%, transparent 100%);
    box-sizing: border-box;
    transition: opacity 0.22s ease;
    pointer-events: none;
}
@media (hover: hover) and (pointer: fine) {
    figure.hero.hero--caption-hover > figcaption {
        opacity: 0;
    }
    figure.hero.hero--caption-hover:hover > figcaption,
    figure.hero.hero--caption-hover:focus-within > figcaption {
        opacity: 1;
    }
}

/* מיקרו־טקסט במרכז hero; עמעום התמונה כשהטקסט גלוי */
.hero-microcopy {
    position: absolute;
    left: 50%;
    top: 50%;
    right: auto;
    bottom: auto;
    transform: translate(-50%, -50%);
    z-index: 2;
    width: min(92%, 34rem);
    margin: 0;
    padding: 1.15rem 1.35rem;
    text-align: center;
    font-size: 14px;
    line-height: 1.65;
    font-weight: 400;
    color: #e8e8e8;
    text-shadow: 0 1px 12px rgba(0, 0, 0, 0.65);
    background: rgba(0, 0, 0, 0.28);
    border-radius: 4px;
    box-sizing: border-box;
    /* לא לחרוג ממסגרת ה־hero; גלילה כשהטקסט ארוך (במיוחד אחרי הגדלת פונט בנייד) */
    max-height: min(88%, 78vh);
    overflow-y: auto;
    overflow-x: hidden;
    overflow-wrap: anywhere;
    word-break: break-word;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    pointer-events: none;
    transition: opacity 0.8s cubic-bezier(0.33, 0, 0.25, 1);
}
/* מגע / עכבר כשהטקסט גלוי — אפשר גלילה ומיקוד */
@media (hover: none), (pointer: coarse) {
    .hero.hero--microcopy-hover .hero-microcopy {
        pointer-events: auto;
    }
}
.hero-microcopy-he {
    text-align: center;
}
.hero-microcopy-en {
    margin-top: 0.85rem;
    padding-top: 0;
    border-top: none;
    font-size: 13px;
    line-height: 1.6;
    color: #c8c8c8;
    text-align: center;
}
.hero-microcopy-he p,
.hero-microcopy-en p {
    margin: 0 0 0.45em;
}
.hero-microcopy-he p:last-child,
.hero-microcopy-en p:last-child {
    margin-bottom: 0;
}
.hero-microcopy .ex-text-em {
    color: #6eb0ff;
    font-weight: 600;
}

/* טקסט מורחב על hero (למשל DNA — ביוגרפיה מצוירת) */
.hero.hero--long-microcopy .hero-microcopy {
    width: min(96%, 44rem);
    max-height: min(78vh, 520px);
    overflow-y: auto;
    overflow-x: hidden;
    padding: 1rem 1.2rem;
    text-align: start;
    pointer-events: auto;
    -webkit-overflow-scrolling: touch;
}
.hero.hero--long-microcopy .hero-microcopy-he {
    text-align: right;
}
.hero.hero--long-microcopy .hero-microcopy-en {
    text-align: left;
    margin-top: 1rem;
    padding-top: 0.85rem;
    border-top: 1px solid rgba(255, 255, 255, 0.22);
    font-size: 12px;
}
.hero.hero--long-microcopy .hero-microcopy h3 {
    margin: 0 0 0.35em;
    font-size: 1.08em;
    font-weight: 600;
    line-height: 1.25;
}
.hero.hero--long-microcopy .hero-microcopy .ex-muted {
    margin: 0 0 0.75em;
    opacity: 0.9;
    font-size: 0.93em;
}
.hero.hero--long-microcopy .hero-microcopy-he p,
.hero.hero--long-microcopy .hero-microcopy-en p {
    margin: 0 0 0.65em;
    font-size: 12px;
    line-height: 1.58;
}
.hero.hero--long-microcopy .hero-microcopy-he p:last-child,
.hero.hero--long-microcopy .hero-microcopy-en p:last-child {
    margin-bottom: 0;
}

/* מגע: טקסט תמיד גלוי — תמונה מעומעמת תמיד לקריאות */
@media (hover: none), (pointer: coarse) {
    .hero.hero--microcopy-hover img {
        filter: brightness(0.52);
    }
}
/* עכבר עדין: תמונה מלאה עד מעבר; במעבר / מיקוד — עמעום + טקסט (פייד עדין) */
@media (hover: hover) and (pointer: fine) {
    .hero.hero--microcopy-hover img {
        transition: filter 0.8s cubic-bezier(0.33, 0, 0.25, 1);
    }
    .hero.hero--microcopy-hover .hero-microcopy {
        opacity: 0;
    }
    .hero.hero--microcopy-hover:hover .hero-microcopy,
    .hero.hero--microcopy-hover:focus-within .hero-microcopy {
        opacity: 1;
        pointer-events: auto;
    }
    .hero.hero--microcopy-hover:hover img,
    .hero.hero--microcopy-hover:focus-within img {
        filter: brightness(0.42);
    }
}
.hero.hero--microcopy-hover:focus {
    outline: 2px solid rgba(126, 200, 255, 0.55);
    outline-offset: 2px;
}
.hero.hero--microcopy-hover:focus:not(:focus-visible) {
    outline: none;
}

/* Hero וידאו (YouTube) — אותו רוחב כמו .hero, מסגרת וסרגל כמו נגן */
.hero.hero--video {
    height: auto;
    padding-top: 0;
    overflow: visible;
    background: transparent;
    border: none;
    margin-bottom: 24px;
}
.hero-video-shell {
    position: relative;
    background: linear-gradient(165deg, #1c1c1c 0%, #0a0a0a 55%, #111 100%);
    border: 1px solid #3d3d3d;
    border-radius: 5px;
    box-shadow:
        0 20px 56px rgba(0, 0, 0, 0.58),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    overflow: hidden;
}
.hero-video-shell::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 3px;
    z-index: 4;
    pointer-events: none;
    background: linear-gradient(90deg, #7a1f2b 0%, #c73e4c 35%, #2a1810 100%);
    opacity: 0.92;
}
.hero-video-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 14px;
    background: rgba(0, 0, 0, 0.42);
    border-bottom: 1px solid #2c2c2c;
    font-size: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #6a6a6a;
    direction: ltr;
}
.hero-video-topbar__dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #c73e4c;
    box-shadow: 0 0 10px rgba(199, 62, 76, 0.55);
    flex-shrink: 0;
}
.hero-video-topbar__title {
    flex: 1;
    text-align: center;
    color: #9a9a9a;
    font-weight: 600;
    letter-spacing: 1.8px;
}
.hero-video-topbar__link {
    flex-shrink: 0;
    color: #8eb4d4;
    text-decoration: none;
    font-size: 10px;
    letter-spacing: 1px;
    transition: color 0.2s ease;
}
.hero-video-topbar__link:hover {
    color: #b8d4ec;
    text-decoration: underline;
}
.hero-video-main {
    position: relative;
    padding-top: 56.25%;
    background: #000;
}
.hero-video-main iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}
.hero-video-foot {
    padding: 16px 18px 18px;
    border-top: 1px solid #2a2a2a;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.35) 0%, rgba(12, 12, 12, 0.9) 100%);
}
.hero.hero--video .hero-microcopy {
    position: static;
    left: auto;
    top: auto;
    right: auto;
    bottom: auto;
    transform: none;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    pointer-events: auto;
    background: transparent;
    text-shadow: none;
    box-shadow: none;
    border-radius: 0;
    text-align: right;
}
.hero.hero--video .hero-microcopy-he {
    text-align: right;
}
.hero.hero--video .hero-microcopy-en {
    text-align: left;
    margin-top: 0.85rem;
    padding-top: 0;
    border-top: none;
}
.hero.hero--video .hero-microcopy-he p,
.hero.hero--video .hero-microcopy-en p {
    color: #c4c4c4;
    font-size: 13px;
    line-height: 1.65;
}
body.is-file-protocol .hero-video-main iframe {
    display: none !important;
    visibility: hidden;
    pointer-events: none;
}
.hero-video-main .video-file-fallback {
    z-index: 2;
}

/* כותרות דפי Works — כמו iPad paintings: מעל ההירו, דק, ממורכז */
.works-page-title {
    text-align: center;
    font-weight: 200;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    font-size: clamp(1.15rem, 2.2vw, 1.35rem);
    color: #d4d4d4;
    margin: 0 0 0.45rem;
    line-height: 1.35;
}
.works-page-subtitle {
    text-align: center;
    color: #9e9e9e;
    font-size: 0.9rem;
    margin: 0 0 1.2rem;
    letter-spacing: 0.04em;
}
body.has-ex-theme-nav .content > .works-page-title {
    font-size: clamp(1.15rem, 2.2vw, 1.35rem);
    font-weight: 200;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #d4d4d4;
}
/* כותרת מעל הירו — בלי min-height/יישור אנכי שדוחפים את התמונה הראשית למטה */
.content:has(> .works-page-title) {
    min-height: 0;
    display: block;
}
.content:has(> .works-page-title) > .hero:not(.hero--video),
.content:has(> .works-page-title) > .ex-hero-stage {
    margin-top: 0.35rem;
    margin-bottom: 1.25rem;
}
body.page-painting .content > .hero.hero--contain:not(.hero--video),
body.page-sculpture .content > .hero.hero--contain:not(.hero--video),
body.page-aquarelle .content > .hero.hero--contain:not(.hero--video),
body.page-stormbay .content > .hero.hero--contain:not(.hero--video) {
    width: min(780px, calc(100vw - 96px));
    max-height: calc(100svh - 280px);
}

.meta { margin-bottom: 26px; line-height: 1.6; color: #bcbcbc; }
.meta .title { display: block; font-size: 21px; font-weight: 600; color: #fff; margin-bottom: 5px; }
.meta .details { display: block; font-size: 14px; color: #b8b8b8; }
.meta .curator { display: block; font-size: 14px; color: #9f9f9f; margin-top: 2px; }
/* מקום/אוצר באנגלית עם dir=ltr — עדיין מתחת לכותרת, מיושר לימין כמו שאר שורות ה־meta בדפי תערוכה (RTL) */
.meta .curator[dir="ltr"] {
    text-align: right;
}
/* שורת meta + EN משמאל לכותרת (RTL: EN משמאל לבלוק הכותרת) */
.meta.meta--with-en {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 14px 18px;
}
.meta.meta--with-en .meta-main {
    flex: 1;
    min-width: min(100%, 12em);
    text-align: right;
}
.meta.meta--with-en .meta-en-jump {
    flex-shrink: 0;
    align-self: flex-start;
    margin-top: 2px;
}

/* שתי קוביות קישור למאמרים (דף home-of — מתחת לגלריה) */
.ex-text-jump-cubes {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    max-width: 920px;
    margin: 2.25rem auto 2rem;
}
.ex-text-jump-cube {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 18px 16px 20px;
    text-align: center;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 4px;
}
.ex-text-jump-cube__author {
    display: block;
    margin-top: 14px;
    font-size: 13px;
    font-weight: 500;
    color: #7a7a7a;
    letter-spacing: 0.03em;
    width: 100%;
    max-width: 22em;
}
.ex-text-jump-cube__link {
    display: block;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.45;
    color: #dedede !important;
    text-decoration: none;
    text-align: center;
    transition: color 0.15s ease;
}
.ex-text-jump-cube__link:any-link,
.ex-text-jump-cube__link:visited {
    color: #dedede !important;
}
.ex-text-jump-cube__link:hover {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.ex-text-jump-cube__link--en {
    font-size: 14px;
    font-weight: 500;
    color: #b8b8b8 !important;
    text-align: center;
}
.ex-text-jump-cube__link--en:any-link,
.ex-text-jump-cube__link--en:visited {
    color: #b8b8b8 !important;
}
.ex-text-jump-cube__link--en:hover {
    color: #e4e4e4;
}
@media (max-width: 640px) {
    .ex-text-jump-cubes {
        grid-template-columns: 1fr;
    }
}
#essay-asad-he,
#essay-asad-en,
#essay-ora-ruven,
#essay-ora-en {
    scroll-margin-top: 7rem;
}

/* דף הבית של — שני מאמרים: עברית ואז אנגלית לכל מאמר (בלי שתי עמודות ארוכות) */
.ex-text.ex-text--home-essays {
    display: flex;
    flex-direction: column;
    gap: 2.75rem;
    max-width: 46rem;
    margin-inline: auto;
    /* בלי הקו והריווח הכלליים של .ex-text — נראה כמו «פס לבן» מתחת לקוביות */
    border-top: none;
    padding-top: 0;
    margin-top: 0.25rem;
}
/* נקודת עוגן לגלילה — בדיוק בשורה שלפני הכותרת */
.ex-text--home-essays .ex-home-scroll-mark {
    display: block;
    height: 0;
    margin: 0;
    padding: 0;
    border: 0;
    overflow: hidden;
    visibility: hidden;
    pointer-events: none;
}
.ex-text.ex-text--home-essays .ex-paired-essay {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}
.ex-text.ex-text--home-essays .ex-paired-essay__he {
    direction: rtl;
    text-align: right;
    color: #d4d4d4;
}
.ex-text.ex-text--home-essays .ex-paired-essay__he > h3:first-child {
    margin-top: 0;
}
.ex-text.ex-text--home-essays .ex-paired-essay__en {
    direction: ltr;
    text-align: left;
    color: #c8c8c8;
    padding-top: 1.35rem;
    border-top: 1px solid #333;
}
.ex-text--home-essays .ex-essay-foot {
    margin: 0;
    padding: 0.85rem 0 0;
    text-align: center;
    font-size: 0.8125rem;
    line-height: 1.45;
    color: #8a93a3;
    border-top: 1px solid #2c2c2c;
}
.ex-text--home-essays .ex-essay-foot a:any-link,
.ex-text--home-essays .ex-essay-foot a:visited {
    color: #9db6d8;
    text-decoration: none;
}
.ex-text--home-essays .ex-essay-foot a:hover {
    color: #c8daf5;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.ex-text.ex-text--home-essays .ex-paired-essay__en > h3:first-child {
    margin-top: 0;
}
.ex-text.ex-text--home-essays p {
    margin: 0 0 1em;
}
.ex-text.ex-text--home-essays p:last-child {
    margin-bottom: 0;
}
/* גלילה לעוגן בדף זה ב-JS — דורסים את scroll-margin הגלובלי על אותם id */
.ex-text--home-essays #essay-asad-he,
.ex-text--home-essays #essay-asad-en,
.ex-text--home-essays #essay-ora-ruven,
.ex-text--home-essays #essay-ora-en {
    scroll-margin-top: 0;
}

/* טקסט תערוכה בעמודה אחת (עברית) */
.ex-text.ex-text--single-col {
    max-width: 46rem;
    margin-left: auto;
    margin-right: auto;
}
.ex-text.ex-text--single-col > p {
    margin: 0 0 1em;
}
.ex-text.ex-text--single-col > p:last-child {
    margin-bottom: 0;
}
.ex-footnotes {
    margin-top: 1.5em;
    padding-top: 1em;
    border-top: 1px solid #333;
    font-size: 0.92em;
    color: #b0b0b0;
    line-height: 1.75;
}
.ex-footnotes p {
    margin: 0 0 0.85em;
}
.ex-signature {
    margin-top: 1.25em;
    color: #aaa;
    font-style: italic;
}

.ex-text {
    margin-top: 12px;
    padding-top: 26px;
    border-top: 1px solid #333;
    max-width: none;
    color: #d0d0d0;
    line-height: 1.9;
    font-size: 16px;
}

/* עברית למעלה, אנגלית למטה; כפתור EN ליד כותרת העברית */
.ex-bicols {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    align-items: stretch;
    max-width: 46rem;
    margin-inline: auto;
}
/* רשת קוביות לפרקים — רוחב גדול יותר לשורות של 2–3 קוביות */
.ex-text.ex-bicols:has(.ex-section-cubes) {
    max-width: min(72rem, 94vw);
}
.ex-bicols .col-he {
    order: 1;
    direction: rtl;
    text-align: right;
    color: #d4d4d4;
}
.ex-bicols .col-en {
    order: 2;
    direction: ltr;
    text-align: left;
    color: #c8c8c8;
}
.ex-bicols.ex-bicols--loose-paragraphs {
    gap: 2.85rem;
}
.ex-bicols.ex-bicols--loose-paragraphs .col-he > p,
.ex-bicols.ex-bicols--loose-paragraphs .col-en > p {
    margin-bottom: 1.35em;
}
.ex-bicols.ex-bicols--loose-paragraphs .col-he > p:last-child,
.ex-bicols.ex-bicols--loose-paragraphs .col-en > p:last-child {
    margin-bottom: 0;
}
.ex-bicols p { margin: 0 0 1em; }
.ex-bicols p:last-child { margin-bottom: 0; }
#ex-text-en {
    scroll-margin-top: 7rem;
}
#tal-dekel-exhibition-text,
#tal-dekel-exhibition-text-en {
    scroll-margin-top: 7rem;
}

/* TOP — חזרה לראש הדף (תערוכות עם טקסט EN); שמאל למטה — לא על INDEX מימין */
button.article-scroll-top {
    display: none;
    position: fixed;
    bottom: max(18px, calc(env(safe-area-inset-bottom, 0px) + 10px));
    left: max(18px, env(safe-area-inset-left, 0px));
    right: auto;
    z-index: 49990;
    min-width: 52px;
    min-height: 44px;
    padding: 10px 14px;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    cursor: pointer;
    -webkit-tap-highlight-color: rgba(255, 255, 255, 0.1);
    transition: background 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}
button.article-scroll-top.is-visible {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
button.article-scroll-top:hover,
button.article-scroll-top:focus-visible {
    background: rgba(0, 0, 0, 0.78);
    border-color: rgba(255, 255, 255, 0.65);
    outline: none;
}
@media (max-width: 700px) {
    button.article-scroll-top {
        bottom: max(12px, calc(env(safe-area-inset-bottom, 0px) + 8px));
        left: max(12px, env(safe-area-inset-left, 0px));
        min-width: 48px;
        min-height: 44px;
        font-size: 10px;
    }
}
.ex-text-lang-head {
    display: flex;
    flex-direction: row;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}
/* שורת EN בלבד (כותרת התערוכה רק מתחת ל־hero) — ב־RTL הכפתור נשאר בצד ההתחלתי של קריאת העברית */
.ex-text-lang-head--en-only {
    justify-content: flex-end;
}
.ex-text-lang-head .ex-text-heading {
    margin-bottom: 0;
}
.ex-lang-jump {
    flex: 0 0 auto;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-decoration: none;
    color: #7ec8ff;
    border: 1px solid #4a6a8a;
    padding: 5px 11px;
    border-radius: 3px;
    line-height: 1.2;
}
.ex-lang-jump:any-link,
.ex-lang-jump:visited,
.meta-en-jump:any-link,
.meta-en-jump:visited {
    color: #7ec8ff;
}
.ex-lang-jump:hover {
    background: rgba(126, 200, 255, 0.1);
    border-color: #7ec8ff;
    color: #9ed4ff;
}
.ex-text-heading {
    display: block;
    font-size: 18px;
    font-weight: 600;
    color: #ddd;
    letter-spacing: 0.5px;
    margin-bottom: 14px;
}
.ex-text-lang-head:has(.ex-text-head-sub) .ex-text-heading {
    margin-bottom: 0.25em;
}
.ex-bicols .ex-text-head-sub {
    display: block;
    font-size: 14px;
    line-height: 1.55;
    color: #9f9f9f;
    margin-bottom: 0;
}
.ex-bicols .col-en > .ex-text-heading:first-of-type {
    margin-bottom: 0.25em;
}
.ex-bicols .col-en > .ex-text-head-sub {
    margin-bottom: 14px;
}
.ex-text h3 {
    font-size: 17px;
    font-weight: 600;
    color: #e4e4e4;
    margin: 1.35em 0 0.55em;
    line-height: 1.35;
}
.ex-bicols .col-en > h3:first-child {
    margin-top: 0;
}
.ex-text .ex-text-lang-head + h3 {
    margin-top: 0.35em;
}
.ex-text.ex-text--single-col > h3:first-child {
    margin-top: 0;
}
.ex-text blockquote {
    margin: 0.8em 0;
    padding: 10px 14px;
    border-inline-start: 3px solid #444;
    color: #c8c8c8;
    font-style: italic;
}
.ex-text p.ex-muted {
    font-size: 14px;
    line-height: 1.75;
    font-weight: 400;
    color: #888;
    margin-bottom: 1em;
}
.ex-text .ex-text-em {
    font-size: 1.22em;
    font-weight: 600;
    color: #6eb0ff;
}
/* טקסט תערוכה בעמודה אחת (עברית) */
.ex-text.ex-text--single {
    max-width: 42em;
    margin-inline: auto;
}
.ex-text p.ex-lead {
    font-weight: 600;
    color: #eaeaea;
    margin-bottom: 1.25em;
    font-size: 1.06em;
    line-height: 1.55;
}
/* פרקי טקסט + תמונה כקוביות סמוכות (תערוכות) */
.ex-text .ex-section-cubes {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 272px), 1fr));
    gap: 14px;
    margin-top: 1.5rem;
}
.ex-bicols .col-en .ex-section-cubes.ex-section-cubes--en {
    margin-top: 0.75rem;
}
.ex-text .ex-section-cubes.ex-section-cubes--en .ex-section-cube-title {
    text-align: left;
}
.ex-text .ex-section-cube {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 14px 16px;
    border: 1px solid #3d3d3d;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.035);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.35);
    min-height: 0;
}
.ex-text .ex-section-cube-title {
    margin: 0 !important;
    font-size: 15px;
    font-weight: 600;
    color: #eaeaea;
    line-height: 1.35;
}
/* תמונה שזורה בטקסט — מקצרת את גובה הקובייה, בלי «עמודה» ריקה מתחת לתמונה */
.ex-text .ex-section-cube-inner:not(.ex-section-cube-inner--bilingual) {
    display: flow-root;
}
.ex-text .ex-section-cube-fig {
    margin: 0;
    width: 84px;
    max-width: 30%;
}
.ex-bicols .col-he .ex-section-cube-fig {
    float: right;
    margin: 0 0 6px 12px;
}
.ex-bicols .col-en .ex-section-cube-fig {
    float: left;
    margin: 0 12px 6px 0;
}
.ex-text .ex-section-cube-fig img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
    border: 1px solid #333;
}
.ex-text .ex-section-cube-text {
    min-width: 0;
}
.ex-text .ex-section-cube-text p {
    margin: 0;
    font-size: 14px;
    line-height: 1.65;
    color: inherit;
}
.ex-text .ex-section-cube-text > p {
    margin-bottom: 1em;
}
.ex-text .ex-section-cube-text > p:last-child {
    margin-bottom: 0;
}
.ex-text .ex-text-emphasis {
    color: #6eb0ff;
    font-weight: 500;
}
@media (max-width: 380px) {
    .ex-bicols .col-he .ex-section-cube-fig,
    .ex-bicols .col-en .ex-section-cube-fig {
        float: none;
        width: auto;
        max-width: 120px;
        margin: 0 0 10px;
    }
}

/* פומפיי: מלבנים ברוחב התוכן — EN | תמונה | עברית */
.ex-text.ex-bicols.ex-bicols--merged-cubes {
    max-width: none;
    width: 100%;
}
.ex-bicols--merged-cubes .ex-en-lead {
    direction: ltr;
    text-align: left;
    color: #c8c8c8;
    margin-bottom: 0.5rem;
}
.ex-text .ex-section-cubes.ex-section-cubes--bilingual {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-top: 1rem;
}
/* פומפיי: שורה מעל הקוביות — משמאל אנגלית, מימין עברית (כמו כותרות הקוביות) */
.ex-pompeii-cubes-banner {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: flex-start;
    gap: 10px 16px;
    margin: 0 0 0.15rem;
    padding: 0 20px;
    direction: ltr;
    unicode-bidi: isolate;
}
.ex-pompeii-cubes-banner__en {
    flex: 1 1 0;
    min-width: 0;
    margin: 0;
    text-align: left;
    direction: ltr;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.35;
    color: #b8c0c8;
}
.ex-pompeii-cubes-banner__he {
    flex: 1 1 0;
    min-width: 0;
    margin: 0;
    text-align: right;
    direction: rtl;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.35;
    color: #d4d4d4;
}
.ex-text .ex-section-cube.ex-section-cube--bilingual {
    width: 100%;
    max-width: none;
    padding: 18px 20px 20px;
}
/* DOM: אנגלית ואז עברית + direction:ltr על הכותר → משמאל אנגלית, מימין עברית (לא תלוי ב-RTL של העמוד) */
.ex-section-cube-head {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 10px 16px;
    margin-bottom: 14px;
    direction: ltr;
    unicode-bidi: isolate;
    text-align: start;
}
.ex-section-cube-head .ex-section-cube-title {
    flex: 1 1 0;
    min-width: 0;
    font-size: 15px;
    line-height: 1.35;
    font-weight: 600;
}
.ex-section-cube-head .ex-section-cube-title--en {
    text-align: left;
    direction: ltr;
    color: #b8c0c8;
}
.ex-section-cube-head .ex-section-cube-title:not(.ex-section-cube-title--en) {
    text-align: right;
    direction: rtl;
    color: #d4d4d4;
}
.ex-text .ex-section-cube-inner.ex-section-cube-inner--bilingual {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    gap: clamp(14px, 2.2vw, 28px);
    align-items: start;
    direction: ltr;
}
.ex-section-cube-inner--bilingual .ex-section-cube-text[lang="en"] {
    color: #c8c8c8;
    text-align: left;
}
.ex-section-cube-inner--bilingual .ex-section-cube-text[dir="rtl"] {
    color: #d4d4d4;
    text-align: right;
}
.ex-section-cube--bilingual .ex-section-cube-fig {
    float: none;
    width: auto;
    max-width: none;
    margin: 0;
    justify-self: center;
    align-self: start;
}
.ex-section-cube--bilingual .ex-section-cube-fig img {
    width: clamp(112px, 16vw, 200px);
    max-width: min(220px, 28vw);
    height: auto;
    display: block;
}
@media (min-width: 900px) {
    .ex-section-cube--bilingual .ex-section-cube-fig img {
        width: clamp(140px, 14vw, 240px);
        max-width: min(260px, 22vw);
    }
}
@media (max-width: 720px) {
    .ex-text .ex-section-cube-inner.ex-section-cube-inner--bilingual {
        grid-template-columns: 1fr;
        justify-items: stretch;
    }
    .ex-text .ex-section-cube-inner.ex-section-cube-inner--bilingual .ex-section-cube-fig {
        order: -1;
        justify-self: center;
    }
    .ex-text .ex-section-cube-inner.ex-section-cube-inner--bilingual .ex-section-cube-text[dir="rtl"] {
        order: 0;
    }
    .ex-text .ex-section-cube-inner.ex-section-cube-inner--bilingual .ex-section-cube-text[lang="en"] {
        order: 1;
    }
    .ex-section-cube-head {
        flex-direction: column;
    }
    .ex-section-cube-head .ex-section-cube-title:not(.ex-section-cube-title--en) {
        order: -1;
        text-align: right;
        direction: rtl;
    }
    .ex-section-cube-head .ex-section-cube-title--en {
        order: 0;
        text-align: left;
        direction: ltr;
    }
}

.ex-media-heading {
    font-size: 15px;
    font-weight: 600;
    color: #aaa;
    letter-spacing: 0.5px;
    margin: 2em 0 0.75em;
    padding-top: 1.25em;
    border-top: 1px solid #333;
}
.ex-media-after-text p.ex-muted {
    font-size: 14px;
    color: #888;
    text-align: center;
    margin-top: 14px;
}
.ex-media-after-text p.ex-muted a {
    color: #7ec8ff;
    text-decoration: none;
}
.ex-media-after-text p.ex-muted a:hover {
    text-decoration: underline;
}

/* כרטיסי וידאו בדפי תערוכה — גודל אחיד קומפקטי (~260px) כמו בדף המגדר */
.video-grid {
    margin-top: 24px;
    display: grid;
    /* auto-fit ולא auto-fill — ב־RTL עמודות ריקות מזיזות כרטיס יחיד לצד; auto-fit מצמצם מסלולים ריקים וממרכז */
    grid-template-columns: repeat(auto-fit, minmax(200px, 260px));
    gap: 18px;
    justify-content: center;
    max-width: 920px;
    margin-inline: auto;
}
.video-grid .video-item {
    max-width: 260px;
    width: 100%;
    margin-inline: auto;
}
/* כרטיס וידאו יחיד — ממורכז, רוחב כמו כרטיס בודד במגדר */
.video-grid.video-grid--single {
    grid-template-columns: 1fr;
    max-width: 280px;
}
/* בדיוק שני סרטונים בשורה — כמו המגדר */
.video-grid.video-grid--two {
    grid-template-columns: repeat(2, minmax(0, 260px));
    max-width: 560px;
    gap: 18px;
    align-items: start;
}
@media (max-width: 700px) {
    .ex-scroll-indicator {
        font-size: 11px;
        margin: 6px 0 0;
    }
    .ex-scroll-indicator .ex-scroll-indicator-arrow {
        font-size: 14px;
    }
    .ex-hero-stage {
        padding: clamp(52px, 8svh, 80px) 12px clamp(12px, 3svh, 22px);
    }
    .ex-hero-stage .hero:not(.hero--video) {
        width: min(92vw, 760px);
        max-height: calc(100svh - 160px);
    }
    body.page-mosques .ex-hero-stage .hero:not(.hero--video),
    body.page-dna .ex-hero-stage .hero:not(.hero--video),
    body.page-children .ex-hero-stage .hero:not(.hero--video) {
        width: min(90vw, 700px);
        max-height: calc(100svh - 200px);
    }
    body.page-sculpture .ex-hero-stage .hero:not(.hero--video),
    body.page-aquarelle .ex-hero-stage .hero:not(.hero--video),
    body.page-stormbay .ex-hero-stage .hero:not(.hero--video) {
        width: min(86vw, 620px);
        max-height: calc(100svh - 230px);
    }
    .content > .hero:not(.hero--video) {
        width: min(92vw, 760px);
        max-height: calc(100svh - 160px);
    }
    body.page-mosques .content > .hero:not(.hero--video),
    body.page-dna .content > .hero:not(.hero--video),
    body.page-children .content > .hero:not(.hero--video) {
        width: min(90vw, 700px);
        max-height: calc(100svh - 200px);
    }
    body.page-sculpture .content > .hero:not(.hero--video),
    body.page-aquarelle .content > .hero:not(.hero--video),
    body.page-stormbay .content > .hero:not(.hero--video) {
        width: min(86vw, 620px);
        max-height: calc(100svh - 230px);
    }
    body.page-sculpture .ex-hero-stage,
    body.page-aquarelle .ex-hero-stage,
    body.page-stormbay .ex-hero-stage {
        padding-bottom: clamp(20px, 4.5svh, 36px);
    }
    .video-grid.video-grid--two {
        grid-template-columns: 1fr;
        max-width: 280px;
    }
}
/* שלושה סרטונים בשורה (למשל golem) */
.video-grid.video-grid--three {
    grid-template-columns: repeat(3, minmax(0, 260px));
    max-width: 840px;
    gap: 16px;
    align-items: start;
}
@media (max-width: 900px) {
    .video-grid.video-grid--three {
        grid-template-columns: repeat(2, minmax(0, 260px));
        max-width: 560px;
    }
}
@media (max-width: 700px) {
    .video-grid.video-grid--three {
        grid-template-columns: 1fr;
        max-width: 280px;
    }
}
.video-item .label-sub {
    display: block;
    font-size: 0.82em;
    font-weight: 400;
    color: #9a9a9a;
    margin-top: 4px;
    line-height: 1.35;
}
.video-item { text-decoration: none; color: inherit; text-align: center; transition: opacity 0.25s ease-in-out; }
.video-item:hover { opacity: 0.85; }
.video-item {
    border: 0;
    background: transparent;
    padding: 0;
    width: 100%;
    cursor: pointer;
    font: inherit;
}
/* תמונת וידאו — מסגרת בסגנון פס סרט (35מ״מ): פסים בצדדים עם «סלילים» בולטים */
.video-item .thumb {
    width: 100%;
    position: relative;
    padding-top: 56.25%;
    height: 0;
    overflow: hidden;
    border: 1px solid #444;
    background: #1a1a1a;
    margin-bottom: 10px;
    border-radius: 3px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
}
.video-item .thumb::before,
.video-item .thumb::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 16px;
    z-index: 3;
    pointer-events: none;
    /* פס פילם + חריצים כהים — ניגוד חזק יותר */
    background: repeating-linear-gradient(
        to bottom,
        #4a4a4a 0px,
        #4a4a4a 4px,
        #0d0d0d 4px,
        #0d0d0d 9px
    );
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.12),
        3px 0 8px rgba(0, 0, 0, 0.55);
}
.video-item .thumb::before {
    left: 0;
    border-right: 2px solid #666;
}
.video-item .thumb::after {
    right: 0;
    border-left: 2px solid #666;
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.12),
        -3px 0 8px rgba(0, 0, 0, 0.55);
}
.video-item .thumb img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    z-index: 1;
}

/* משולש Play על ממוזערי וידאו — אלמנט ב־DOM (מוזרק ב־exhibition-gallery.js) */
.ex-video-play-chip {
    box-sizing: border-box;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 4;
    pointer-events: none;
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 0.58em;
    border-radius: 50%;
    aspect-ratio: 1;
    min-width: 0;
    min-height: 0;
    background: rgba(0, 0, 0, 0.58);
    border: 1.5px solid rgba(255, 255, 255, 0.52);
    color: #fff;
    font-size: clamp(10px, 2.6vw, 12px);
    font-weight: 700;
    line-height: 1;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.45);
    direction: ltr;
    unicode-bidi: isolate;
}
.ex-video-play-chip__ic {
    display: block;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0.42em 0 0.42em 0.68em;
    border-color: transparent transparent transparent #fff;
    flex-shrink: 0;
    margin-left: 0.08em;
}
.ex-video-play-chip__tx {
    display: none !important;
}
.ex-video-play-chip--icon-only {
    gap: 0;
    padding: 0.58em;
    border-radius: 50%;
    aspect-ratio: 1;
}
a.hero-video-link > .ex-video-play-chip {
    z-index: 4;
}

/* כיתוב על תמונת מיצב הסאונד (golem) — מעל ה־thumbnail, בין פסי הפילם */
.thumb--sound-overlay .thumb-sound-caption {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 0;
    z-index: 2;
    margin: 0;
    padding: 10px 6px 8px;
    font-size: 10px;
    font-weight: 400;
    line-height: 1.4;
    letter-spacing: 0.02em;
    color: #f2f2f2;
    text-align: right;
    text-transform: none;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.35) 72%, transparent 100%);
    pointer-events: none;
}
@media (max-width: 700px) {
    .thumb--sound-overlay .thumb-sound-caption {
        font-size: 9px;
        padding: 8px 4px 6px;
    }
}
.video-item .label { font-size: 13px; color: #aaa; letter-spacing: 1px; text-transform: uppercase; line-height: 1.4; }

.video-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.82);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: var(--site-modal-z);
    padding: 26px;
}
.video-overlay.open { display: flex; }
.video-dialog {
    width: min(980px, 100%);
    background: #0f0f0f;
    border: 1px solid #333;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
}
.video-dialog-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    border-bottom: 1px solid #2f2f2f;
    direction: ltr;
}
.video-dialog-title {
    margin: 0;
    font-size: 14px;
    color: #ccc;
    letter-spacing: 0.3px;
}
.video-dialog-close {
    border: 1px solid #505050;
    background: transparent;
    color: #ddd;
    font-size: 13px;
    padding: 6px 10px;
    cursor: pointer;
    text-decoration: none;
}
.video-frame-wrap {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    background: #000;
}
.video-frame-wrap iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* קובץ מקומי file:// — לא טוענים אמבד יוטיוב (שגיאה 153) */
body.is-file-protocol .video-frame-wrap iframe#videoFrame {
    display: none !important;
    visibility: hidden;
    pointer-events: none;
}

/* כשאין אפשרות לאמבד (למשל file://) */
/* display:flex דרס את [hidden] — בלי זה הטקסט של file:// הופיע גם ב־localhost */
.video-file-fallback[hidden] {
    display: none !important;
}
.video-file-fallback {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 22px;
    background: #0a0a0a;
    text-align: center;
    color: #bbb;
    font-size: 14px;
    line-height: 1.55;
    direction: rtl;
}
.video-file-fallback code {
    font-size: 12px;
    color: #888;
}
.video-file-fallback a {
    margin-top: 16px;
    color: #7ec8ff;
    font-weight: 600;
    text-decoration: none;
}
.video-file-fallback a:hover {
    text-decoration: underline;
}

/* פסקת פתיחה בין וידאו לגלריה — אותו עדין כמו ex-muted בתוך טקסט תערוכה */
.ex-exhibition-lead {
    max-width: min(46rem, 94vw);
    margin: 22px auto 0;
    padding-bottom: 4px;
}
.ex-exhibition-lead h3 {
    font-size: 17px;
    font-weight: 600;
    color: #e4e4e4;
    margin: 0 auto 0.4em;
    max-width: 42em;
    text-align: right;
    line-height: 1.35;
}
.ex-exhibition-lead p.ex-muted {
    margin: 0 auto 0.85em;
    max-width: 42em;
    text-align: right;
    font-size: 14px;
    line-height: 1.75;
    font-weight: 400;
    color: #888;
}
.ex-exhibition-lead p.ex-muted:last-child {
    margin-bottom: 0;
}
.ex-exhibition-lead > p:not(.ex-muted) {
    margin: 0 auto 0.85em;
    max-width: 42em;
    text-align: right;
    font-size: 14px;
    line-height: 1.75;
    font-weight: 400;
    color: #b0b0b0;
}
.ex-exhibition-lead > p:not(.ex-muted):last-child {
    margin-bottom: 0;
}
.ex-bicols--merged-cubes .ex-en-lead h3 {
    font-size: 17px;
    font-weight: 600;
    color: #e4e4e4;
    margin: 0 0 0.4em;
    line-height: 1.35;
}
.ex-bicols--merged-cubes .ex-en-lead p:not(.ex-muted) {
    margin: 0 0 0.85em;
    font-size: 14px;
    line-height: 1.75;
    color: #b0b0b0;
}

/* גלריית תמונות מתחת לווידאו / ליד טקסט תערוכה — מסגרות רחבות 16:9, ללא חיתוך (contain) */
.ex-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
    gap: 14px;
    margin: 28px 0 8px;
}
.ex-gallery figure {
    margin: 0;
    border: 1px solid #333;
    background: #151515;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
}
.ex-gallery figure.ex-gallery-figure--zoomable {
    cursor: zoom-in;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.ex-gallery figure.ex-gallery-figure--zoomable:hover {
    border-color: #555;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06);
}
.ex-gallery figure.ex-gallery-figure--zoomable:focus {
    outline: 2px solid #7ec8ff;
    outline-offset: 2px;
}
/* תמונה שלא נטענה — מוסתרת לחלוטין (בלי שאריות קווים/מסגרת); exhibition-gallery.js מוסיף hidden + מחלקה */
.ex-gallery figure.ex-gallery-figure--broken {
    display: none !important;
    margin: 0 !important;
    border: none !important;
    padding: 0 !important;
    min-height: 0 !important;
}
.ex-gallery img {
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    object-fit: contain;
    object-position: center;
    display: block;
    flex: 0 0 auto;
}
/* כתוביות גלריה — גלויות במעבר עכבר / במיקוד; במסכי מגע (ללא hover עדין) נשארות גלויות */
.ex-gallery figcaption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    margin: 0;
    padding: 12px 12px 14px;
    font-size: 12px;
    line-height: 1.45;
    text-align: center;
    color: #f0f0f0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.5) 55%, transparent 100%);
    box-sizing: border-box;
    transition: opacity 0.22s ease;
    pointer-events: none;
}
@media (hover: hover) and (pointer: fine) {
    .ex-gallery figcaption {
        opacity: 0;
    }
    .ex-gallery figure:hover figcaption,
    .ex-gallery figure:focus-within figcaption {
        opacity: 1;
    }
}

/* גלריית מזונרי — עמודות (column): גבהים שונים בלי רווחים מתים גדולים כמו ב־Grid */
.ex-gallery.ex-gallery--masonry {
    display: block;
    column-count: 3;
    column-gap: 12px;
    margin: 28px 0 8px;
}
.ex-gallery.ex-gallery--masonry figure {
    break-inside: avoid;
    margin: 0 0 12px;
    display: block;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}
/* פריט רוחב מלא על פני כל העמודות (אם ייעשה שימוש ב־HTML) */
.ex-gallery.ex-gallery--masonry figure.ex-gallery-figure--span-2 {
    column-span: all;
}
.ex-gallery.ex-gallery--masonry img {
    aspect-ratio: auto;
    width: 100%;
    height: auto;
    max-height: none;
    object-fit: contain;
    object-position: center;
    display: block;
}
@media (max-width: 900px) {
    .ex-gallery.ex-gallery--masonry {
        column-count: 2;
    }
}
@media (max-width: 520px) {
    .ex-gallery.ex-gallery--masonry {
        column-count: 1;
    }
    .ex-gallery.ex-gallery--masonry figure.ex-gallery-figure--span-2 {
        column-span: none;
    }
}

/* רצף ויזואלי שמאל→ימין (לא עמודות masonry מלמעלה למטה) */
.ex-gallery.ex-gallery--sequence {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin: 28px 0 8px;
}
.ex-gallery.ex-gallery--sequence + .ex-gallery.ex-gallery--masonry {
    margin-top: 12px;
}
.ex-gallery.ex-gallery--sequence figure {
    margin: 0;
    min-width: 0;
}
.ex-gallery.ex-gallery--sequence img {
    aspect-ratio: auto;
    width: 100%;
    height: auto;
    max-height: none;
    object-fit: contain;
    object-position: center;
    display: block;
}
@media (max-width: 900px) {
    .ex-gallery.ex-gallery--sequence {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 520px) {
    .ex-gallery.ex-gallery--sequence {
        grid-template-columns: 1fr;
    }
}

/* מודלים / לייטבוקס — מעל שכבת Back / INDEX (עד ~50001) */
:root {
    --site-modal-z: 60000;
}

/* לייטבוקס לגלריית תערוכה — סגירה שמאל עליון (ימין פנוי ל־Back כשהוא גלוי; מוסתר בפתיחה) */
.ex-lightbox {
    position: fixed;
    inset: 0;
    z-index: var(--site-modal-z);
    background: rgba(0, 0, 0, 0.92);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 48px 20px 20px;
    box-sizing: border-box;
}
.ex-lightbox.open {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.ex-lightbox-inner {
    max-width: min(96vw, 1400px);
    max-height: 78vh;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 1 auto;
}
.ex-lightbox-inner img {
    max-width: 100%;
    max-height: 78vh;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.6);
}
.ex-lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 48px;
    height: 72px;
    padding: 0;
    font-size: 36px;
    line-height: 1;
    color: #eee;
    background: rgba(30, 30, 30, 0.75);
    border: 1px solid #555;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
}
.ex-lightbox-nav:hover {
    background: rgba(60, 60, 60, 0.95);
    color: #fff;
}
.ex-lightbox-prev {
    inset-inline-start: 12px;
}
.ex-lightbox-next {
    inset-inline-end: 12px;
}
.ex-lightbox-caption {
    margin-top: 12px;
    max-width: min(96vw, 720px);
    text-align: center;
    font-size: 14px;
    color: #bbb;
    line-height: 1.4;
}
.ex-lightbox-counter {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 12px;
    color: #888;
    letter-spacing: 1px;
}
.ex-lightbox-close,
.ipad-lightbox-close {
    position: absolute;
    top: max(16px, env(safe-area-inset-top, 0px));
    left: max(16px, env(safe-area-inset-left, 0px));
    right: auto;
    z-index: 10;
    width: 44px;
    height: 44px;
    padding: 0;
    font: inherit;
    font-size: 22px;
    line-height: 1;
    letter-spacing: 0;
    text-transform: none;
    color: #f2f2f2;
    background: rgba(40, 40, 40, 0.95);
    border: 1px solid #555;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.ex-lightbox-close:hover,
.ipad-lightbox-close:hover {
    background: #333;
    color: #fff;
}
/* חלון צף ל־PDF (דבר אמן וכו׳) — נשארים באתר; × לחזרה */
.ex-pdf-overlay {
    position: fixed;
    inset: 0;
    z-index: var(--site-modal-z);
    background: rgba(0, 0, 0, 0.94);
    display: none;
    align-items: stretch;
    justify-content: center;
    padding: max(56px, calc(env(safe-area-inset-top, 0px) + 48px)) 12px 12px;
    box-sizing: border-box;
}
.ex-pdf-overlay.open {
    display: flex;
}
.ex-pdf-overlay-frame-wrap {
    flex: 1 1 auto;
    width: min(1100px, 100%);
    margin: 0 auto;
    background: #111;
    border: 1px solid #444;
    border-radius: 6px;
    overflow: hidden;
    min-height: 0;
}
.ex-pdf-overlay-frame-wrap iframe,
.ex-pdf-overlay-frame-wrap embed {
    width: 100%;
    height: 100%;
    min-height: calc(100vh - 80px);
    border: 0;
    background: #1a1a1a;
    display: block;
}
.ex-pdf-overlay-close {
    position: absolute;
    top: max(16px, env(safe-area-inset-top, 0px));
    left: max(16px, env(safe-area-inset-left, 0px));
    right: auto;
    z-index: 10;
    width: 44px;
    height: 44px;
    padding: 0;
    font: inherit;
    font-size: 22px;
    line-height: 1;
    color: #f2f2f2;
    background: rgba(40, 40, 40, 0.95);
    border: 1px solid #555;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.ex-pdf-overlay-close:hover {
    background: #333;
    color: #fff;
}
.ex-pdf-overlay-fallback {
    display: none;
    padding: 2rem 1.25rem;
    color: #ccc;
    text-align: center;
    max-width: 28rem;
    margin: 3rem auto;
    line-height: 1.5;
}
.ex-pdf-overlay-fallback[data-show="1"] {
    display: block;
}
.ex-pdf-overlay-fallback a {
    color: #eee;
    text-decoration: underline;
}

body.ex-pdf-overlay-open .site-brand-stack,
body.ex-pdf-overlay-open .ex-theme-nav,
body.ex-pdf-overlay-open .mobile-smart-back-bar,
body.ex-pdf-overlay-open a.site-home,
body.ex-pdf-overlay-open a.site-back,
body.ex-lightbox-open .site-brand-stack,
body.ex-lightbox-open .ex-theme-nav,
body.ex-lightbox-open .mobile-smart-back-bar,
body.ex-lightbox-open a.site-home,
body:has(.ipad-lightbox.open) .site-brand-stack,
body:has(.ipad-lightbox.open) .ex-theme-nav,
body:has(.ipad-lightbox.open) .mobile-smart-back-bar,
body:has(.ipad-lightbox.open) a.site-home,
body:has(.ex-pdf-overlay.open) .site-brand-stack,
body:has(.ex-pdf-overlay.open) .ex-theme-nav,
body:has(.ex-pdf-overlay.open) .mobile-smart-back-bar,
body:has(.ex-pdf-overlay.open) a.site-home,
body:has(.ex-pdf-overlay.open) a.site-back,
body:has(.video-overlay.open) .site-brand-stack,
body:has(.video-overlay.open) .ex-theme-nav,
body:has(.video-overlay.open) .mobile-smart-back-bar,
body:has(.video-overlay.open) a.site-home {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.18s ease, visibility 0.18s ease;
}
body.ex-lightbox-open {
    overflow: hidden;
}
body.ex-pdf-overlay-open {
    overflow: hidden;
}

/* iPad Paintings — אותה שכבת מודל כמו ex-lightbox */
.ipad-lightbox {
    z-index: var(--site-modal-z) !important;
}

/* press.html — מודאל תמונה / וידאו מעל ה-chrome הצף */
#imageModal {
    z-index: var(--site-modal-z) !important;
}
#imageModal .close-modal {
    top: max(16px, env(safe-area-inset-top, 0px));
    left: max(16px, env(safe-area-inset-left, 0px));
    right: auto;
    z-index: calc(var(--site-modal-z) + 2);
}
.press-video-overlay {
    z-index: var(--site-modal-z) !important;
}
.press-video-overlay-close {
    top: max(16px, env(safe-area-inset-top, 0px));
    left: max(16px, env(safe-area-inset-left, 0px));
    right: auto;
    z-index: 10;
}
body:has(#imageModal[style*="flex"]) .site-brand-stack,
body:has(#imageModal[style*="flex"]) .ex-theme-nav,
body:has(#imageModal[style*="flex"]) .mobile-smart-back-bar,
body:has(#imageModal[style*="flex"]) a.site-home,
body:has(.press-video-overlay.open) .site-brand-stack,
body:has(.press-video-overlay.open) .ex-theme-nav,
body:has(.press-video-overlay.open) .mobile-smart-back-bar,
body:has(.press-video-overlay.open) a.site-home {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.18s ease, visibility 0.18s ease;
}
@media (max-width: 700px) {
    /* ריווח אנכי מאוזן: הברנד, מסלול לכפתור Back בזרימה, ואז התמונה */
    .brand { position: static; text-align: center; padding-top: 20px; margin-bottom: 12px; }
    /* תפריט עליון — קצת גדול יותר לנגיעה ולקריאה (היה 11px) */
    nav a { margin: 0 6px; font-size: 12px; }
    .content {
        /* שוליים רחבים; padding-top נמוך — הכפתור Back (בזרימה) יושב במרווח בין הברנד לתמונה */
        padding: 10px clamp(20px, 5.5vw, 32px) 72px;
        box-sizing: border-box;
    }
    /* Back ל־index: מוסתר בנייד (INDEX למטה); שאר ה־Back נשארים */
    a.back-link.site-back[href="index.html"],
    a.back-link.site-back[href="../index.html"] {
        display: none !important;
    }
    /*
     * Back לתערוכות וכו': מיקום ב־site-index-button.css (relative, בזרימה) —
     * לא fixed, כדי שלא יכסה את ה־hero. כאן רק תאום לתמונה מלאה מתחת.
     */
    .content > a.back-link.site-back + *,
    .content-container > a.back-link.site-back + *,
    .container > a.back-link.site-back + * {
        clear: both !important;
    }
    /*
     * בנייד: תווית קצרה «← BACK» לדפים עם חזרה ארוכה (תערוכות / Works) —
     * מפחית חפיפה עם ORA RUVEN במרכז. הטקסט המלא נשאר ב־DOM לנגישות; היעד לפי href בלבד.
     */
    a.back-link.site-back[href="exhibitions.html"],
    a.back-link.site-back[href="works.html"] {
        font-size: 0 !important;
        line-height: 0 !important;
        color: transparent !important;
        overflow: visible !important;
        text-overflow: clip !important;
        max-width: none !important;
        padding: 7px 10px !important;
    }
    a.back-link.site-back[href="exhibitions.html"]::after,
    a.back-link.site-back[href="works.html"]::after {
        content: "← BACK";
        font-size: 11px !important;
        line-height: 1 !important;
        color: #eaeaea !important;
        display: inline-block;
        letter-spacing: 0.02em;
    }
    .site-home {
        right: 12px !important;
        bottom: 12px !important;
    }
    img,
    video,
    iframe {
        max-width: 100%;
        height: auto;
    }
    .meta .title,
    .meta .details,
    .meta .curator,
    .label,
    .video-item .label {
        overflow-wrap: anywhere;
        word-break: break-word;
    }

    /* טקסט תערוכה בנייד: היררכיה ברורה יותר, ריווח גדול יותר בין פסקאות ולכותרות משנה */
    .meta {
        margin-bottom: 16px;
    }
    .meta .title {
        font-size: clamp(1.08rem, 5vw, 1.28rem);
        font-weight: 600;
        margin-bottom: 9px;
        line-height: 1.3;
    }
    body.has-ex-theme-nav .content > .meta .title {
        font-size: 12.5px;
        letter-spacing: 0.12em;
        text-transform: uppercase;
    }
    .meta .details {
        font-size: 16px;
        line-height: 1.55;
        margin-bottom: 0.35em;
    }
    .ex-text {
        font-size: 18px;
        line-height: 2;
        padding-top: 32px;
        margin-top: 18px;
        -webkit-text-size-adjust: 100%;
        text-size-adjust: 100%;
    }
    /* עברית בנייד: קרוב לעיתונים — גוף ~20px+, שורות נוחות (הארץ / יישומים) */
    .ex-bicols .col-he {
        font-size: clamp(19px, 5.4vw, 22px);
        line-height: 2.12;
        letter-spacing: 0.015em;
    }
    .ex-bicols .col-he p {
        margin-bottom: 1.5em;
    }
    .ex-bicols .col-he p.ex-muted {
        font-size: clamp(17px, 4.5vw, 19px);
        line-height: 1.95;
    }
    /* הפרדה ברורה: כותרת פרק מול פסקה — לא «עוד משפט מודגש» */
    .ex-bicols .col-he h3 {
        font-size: clamp(1.45rem, 4.8vw, 1.75rem);
        font-weight: 700;
        color: #f2f2f2;
        margin-top: 2.15em;
        margin-bottom: 0.75em;
        padding-bottom: 0.5em;
        line-height: 1.28;
        border-bottom: 1px solid rgba(255, 255, 255, 0.14);
    }
    .ex-bicols .col-he .ex-text-lang-head + h3 {
        margin-top: 0.35em;
    }
    .ex-bicols .col-he h3:first-of-type {
        margin-top: 0;
    }
    .ex-bicols .col-he p strong {
        font-weight: 600;
        font-size: inherit;
    }
    /* דפים בלי שתי עמודות — כותרות משנה */
    .ex-text:not(.ex-bicols) h3 {
        font-size: 1.28rem;
        font-weight: 700;
        color: #ececec;
        margin-top: 1.7em;
        margin-bottom: 0.65em;
        line-height: 1.28;
    }
    /* אנגלית: לפחות ~18px לגוף בנייד */
    .ex-bicols .col-en {
        font-size: clamp(18px, 4.8vw, 20px);
        line-height: 2;
    }
    .ex-bicols .col-en p.ex-muted {
        font-size: clamp(16px, 4.2vw, 18px);
    }
    .ex-text .ex-text-lang-head + h3 {
        margin-top: 0.5em;
    }
    .ex-bicols .col-en h3 {
        font-size: clamp(1.3rem, 4.2vw, 1.55rem);
        margin-top: 2em;
        margin-bottom: 0.7em;
        padding-bottom: 0.45em;
        border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    }
    .ex-bicols .col-en h3:first-child {
        margin-top: 0;
    }
    .ex-bicols {
        gap: 3.25rem;
    }
    .ex-bicols p {
        margin-bottom: 1.38em;
    }
    .ex-text .ex-muted {
        font-size: 15px;
        line-height: 1.8;
        margin-bottom: 1.15em;
    }
    .ex-bicols .col-he .ex-text-em {
        font-size: 1.08em;
    }
    .ex-text .ex-text-em {
        font-size: 1.12em;
    }
    .hero-microcopy {
        font-size: clamp(16px, 4.5vw, 19px);
        line-height: 1.9;
        padding: 1.1rem 1rem;
        width: min(94%, 36rem);
        /* יחסית לגובה ה־hero בנייד — לא לגלוש מתחת/מעל המסגרת */
        max-height: min(82%, 62vh);
    }
    .hero-microcopy-en {
        font-size: clamp(15px, 4vw, 17px);
        line-height: 1.8;
        margin-top: 1rem;
    }
    /* DNA וכו' — תיבה ארוכה בנייד */
    .hero.hero--long-microcopy .hero-microcopy {
        max-height: min(58vh, 400px);
    }
}

/* נייד: שורת «Back to…» + ערימת מותג/MENU בלי חפיפה (דפי תערוכה בלי text-article-nav) */
@media (max-width: 1100px) {
    .site-brand-stack {
        position: fixed;
        top: max(12px, env(safe-area-inset-top, 0px));
        left: max(14px, env(safe-area-inset-left, 0px));
        z-index: 10050;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        pointer-events: auto;
        box-sizing: border-box;
    }
    html[dir="rtl"] .site-brand-stack:has(> a.mobile-top-menu-btn) {
        left: max(12px, env(safe-area-inset-left, 0px));
        right: auto;
    }
    .site-brand-stack:has(> a.mobile-top-menu-btn) {
        direction: ltr;
        unicode-bidi: isolate;
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: center;
        justify-content: space-between;
        left: max(12px, env(safe-area-inset-left, 0px));
        right: max(12px, env(safe-area-inset-right, 0px));
        width: auto;
        max-width: none;
    }
    .site-brand-stack .brand {
        position: static !important;
        top: auto !important;
        left: auto !important;
        margin: 0 !important;
        padding: 0 !important;
        text-align: left;
    }
    .site-brand-stack:has(> a.mobile-top-menu-btn) > .brand {
        flex: 1 1 auto;
        min-width: 0;
        max-width: calc(100% - 108px);
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    .site-brand-stack > a.mobile-top-menu-btn {
        flex: 0 0 auto;
    }

    /* קישור Works/Exhibitions בערימה — לא לחפוף לשורת Back to… החיצונית */
    body.mobile-smart-back-on #ex-brand-stack-section-back {
        display: none !important;
    }

    /* מיקום/עיצוב Back — site-index-button.css (פינה ימין, מתחת ל־ORA+MENU) */
    body.mobile-smart-back-on:not(.page-mobile-home):not(.page-mobile-menu) .content > a.back-link {
        display: none !important;
    }
}
