/* JR_RTL_LISTING_CONTAIN_v2
 * Arabic/Hebrew listing pages: hero carousel flex+translateX expands
 * document scrollWidth (~10kpx). Viewport lands on empty dark void.
 * Keep gallery math in LTR; collapse horizontal overflow for real.
 */
html[dir="rtl"] {
  overflow-x: hidden !important;
  max-width: 100vw !important;
  width: 100% !important;
}

html[dir="rtl"] body {
  overflow-x: hidden !important;
  max-width: 100vw !important;
  width: 100% !important;
  position: relative;
}

html[dir="rtl"] .jr2-listing-shell,
html[dir="rtl"] .jr2-page,
html[dir="rtl"] .jr2-root,
html[dir="rtl"] .page-wrapper,
html[dir="rtl"] .page-wrapper > *,
html[dir="rtl"] body.jr-listing-v2-page {
  overflow-x: hidden !important;
  max-width: 100% !important;
}

html[dir="rtl"] .jr2-hero-shell,
html[dir="rtl"] .jr2-hero-accent,
html[dir="rtl"] .jr2-gallery-card {
  direction: ltr !important;
  overflow: hidden !important;
  contain: paint !important;
  max-width: 100% !important;
}

html[dir="rtl"] .jr2-hero-track {
  direction: ltr !important;
  width: 100% !important;
  max-width: 100% !important;
}

html[dir="rtl"] .jr2-hero-slide {
  flex: 0 0 100% !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
}

/* Off-screen skip link must not widen RTL scrollport */
html[dir="rtl"] .jr-skip-link,
html[dir="rtl"] a.jr-skip-link {
  position: absolute !important;
  inset-inline-start: 0 !important;
  left: 0 !important;
  top: -100px !important;
  transform: none !important;
}
