/* Identical cached CSS. The native proxy supplies the document language. */
html { --fotogenic-language-direction: ltr; direction: var(--fotogenic-language-direction); }
html:is(:lang(ar), :lang(fa), :lang(ur), :lang(iw), :lang(he)) {
  --fotogenic-language-direction: rtl;
}

/* These motion owners measure physical left edges and scrollLeft. Keep their
   media coordinates stable while their actual prose follows the document. */
.editorial-hero,
.campaign-story__layout,
.campaign-story__navigation,
.ad-story__stage,
.ad-story__progress,
.ad-story__navigation,
.scene-unfold__stage,
.workflow-story__presets,
.setting-story__thumbnails,
.home-access__workflows,
.details-map__board {
  direction: ltr;
}
.editorial-hero__copy,
.editorial-hero__source-label,
.editorial-hero__result-label,
.campaign-story__selection,
.scene-unfold__panel figcaption,
.scene-unfold__drop-prompt,
.scene-unfold__source-label,
.workflow-story__presets button,
.setting-story__thumbnail-label,
.home-access__copy,
.home-access__story-label,
.details-map__group {
  direction: var(--fotogenic-language-direction);
}

/* Do not reverse email addresses, URLs or source/code examples. */
input:is([type="email"], [type="url"], [type="tel"]),
code,
pre {
  direction: ltr;
  unicode-bidi: isolate;
}
