/* Arabic stays RTL inside each caption; its placement follows the artwork. */
html:lang(ar) #MainContent :is(.cherry-hero-copy, .bs-home-posters .bs-poster-caption) {
  text-align: right;
  letter-spacing: normal;
}

html:lang(ar) #MainContent :is(.cherry-hero-copy, .bs-home-posters .bs-poster-caption) :is(h2, h3, p) {
  letter-spacing: normal;
  overflow-wrap: normal;
  word-break: normal;
  text-wrap: balance;
}

html:lang(ar) #MainContent .bs-home-posters .bs-poster-caption small {
  direction: ltr;
  unicode-bidi: isolate;
}

@media (min-width: 1025px), (max-width: 599px) and (orientation: landscape) {
  html[dir="rtl"]:lang(ar) body #MainContent > .premium-hero.fidelity-hero[data-ad-slot="home-hero"] .swiper-slide .cherry-hero-copy {
    inset: 52% auto auto 5.6% !important;
    width: 32% !important;
    max-width: 38rem !important;
    padding: 0 !important;
    transform: translateY(-50%) !important;
  }

  html[dir="rtl"]:lang(ar) body #MainContent > .premium-hero.fidelity-hero[data-ad-slot="home-hero"] .swiper-slide.bs-duo-poster .cherry-hero-copy,
  html[dir="rtl"]:lang(ar) body #MainContent > .premium-hero.fidelity-hero[data-ad-slot="home-hero"] .swiper-slide[data-ad-item="home-hero-mini-camera-v1"] .cherry-hero-copy {
    width: 28% !important;
  }

  html[dir="rtl"]:lang(ar) body #MainContent > .premium-hero.fidelity-hero[data-ad-slot="home-hero"] .swiper-slide h2 {
    font-size: clamp(30px, 4.05vw, 60px) !important;
    line-height: 1.18;
    margin-block: .32em;
  }
}

@media (max-width: 599px) and (orientation: portrait), (min-width: 600px) and (max-width: 1024px) {
  html[dir="rtl"]:lang(ar) body #MainContent > .premium-hero.fidelity-hero.bs-complete-hero .swiper-slide h2 {
    line-height: 1.2;
  }
}

html[dir="rtl"]:lang(ar) body #MainContent .bs-home-posters :is(.bs-poster-wide, .bs-poster-smart) .bs-poster-caption {
  inset: auto auto 8% 5.5% !important;
  width: 35%;
  max-width: none;
  padding: 0;
  translate: none;
}

html[dir="rtl"]:lang(ar) body #MainContent .bs-home-posters .bs-poster-smart .bs-poster-caption {
  inset: 43% auto auto 5.5% !important;
  width: 36%;
  translate: 0 -50%;
}

html[dir="rtl"]:lang(ar) body #MainContent .bs-home-posters .bs-poster-product .bs-poster-caption {
  inset: auto 5.5% 7% auto !important;
  width: 42%;
  max-width: none;
  padding: 0;
}

html[dir="rtl"]:lang(ar) body #MainContent .bs-home-posters .bs-poster-caption h3 {
  font-size: clamp(19px, 2.4vw, 38px);
  line-height: 1.22;
}

html[dir="rtl"]:lang(ar) body #MainContent .bs-home-posters .bs-poster-product h3 {
  font-size: clamp(14px, 1.6vw, 25px);
}

html[dir="rtl"]:lang(ar) body #MainContent .bs-home-posters .bs-poster-smart h3 {
  font-size: clamp(21px, 4vw, 56px);
}

html[dir="rtl"]:lang(ar) body #MainContent .bs-home-posters .bs-poster-caption p {
  font-size: clamp(12px, 1.25vw, 18px);
  line-height: 1.45;
}

@media (min-width: 601px) {
  html[dir="rtl"]:lang(ar) #MainContent .bs-home-posters :is(.bs-poster-wide, .bs-poster-smart) .bs-poster-frame::after {
    background: linear-gradient(90deg, rgb(8 22 36 / 88%), rgb(8 22 36 / 22%) 42%, transparent 65%);
  }
}

@media (max-width: 600px) {
  html[dir="rtl"]:lang(ar) #MainContent .bs-home-posters .bs-poster-product .bs-poster-frame img {
    width: 48%;
    inset-inline-end: 5.5%;
  }
}
