/* ============================================================
   RIVALS MEDIA — Work / Portfolio · RTL (Arabic) overrides
   Loaded after work.css only when the current language is RTL.
   Only direction-dependent rules live here; everything else is
   inherited so the two stylesheets never drift apart.
   ============================================================ */

/* ---------- work page hero ---------- */
html[dir="rtl"] .work-hero-orb{left:auto;right:-180px}
html[dir="rtl"] .work-hero-title,
html[dir="rtl"] .work-hero-text{max-width:none}

/* ---------- cards ---------- */
html[dir="rtl"] .wcard-cta{right:auto;left:18px}
html[dir="rtl"] .wcard-cta svg{transform:scaleX(-1)}
html[dir="rtl"] .wcard-year{left:auto;right:16px}

/* ---------- challenge & solution ---------- */
html[dir="rtl"] .wcs-mark{right:auto;left:30px}

/* ---------- meta / links ---------- */
html[dir="rtl"] .wmeta-link svg{transform:scaleX(-1)}

/* ---------- gallery lightbox ---------- */
html[dir="rtl"] .wlb-close{right:auto;left:26px}
html[dir="rtl"] .wlb-prev{left:auto;right:20px;transform:translateY(-50%) scaleX(-1)}
html[dir="rtl"] .wlb-next{right:auto;left:20px;transform:translateY(-50%) scaleX(-1)}

/* ---------- next project ---------- */
html[dir="rtl"] .wnext-arrow svg{transform:scaleX(-1)}
html[dir="rtl"] .wnext-link:hover .wnext-arrow{transform:translateX(-6px)}

/* ---------- filter strip: scroll from the right on mobile ---------- */
@media(max-width:760px){
  html[dir="rtl"] .wlb-prev{right:8px;left:auto}
  html[dir="rtl"] .wlb-next{left:8px;right:auto}
  html[dir="rtl"] .wlb-close{left:12px;right:auto}
}

/* Arabic headlines run slightly taller than the Latin ones —
   give the big display type a touch more breathing room. */
html[dir="rtl"] .work-hero-title,
html[dir="rtl"] .wsingle-title,
html[dir="rtl"] .wnext-title{line-height:1.22;letter-spacing:0}
html[dir="rtl"] .wquote-text{letter-spacing:0;line-height:1.7}
html[dir="rtl"] .wcard-title{letter-spacing:0;line-height:1.45}
html[dir="rtl"] .wcard-chip,
html[dir="rtl"] .wmeta .k,
html[dir="rtl"] .wnext-label{letter-spacing:.04em}
