/* Language names stay native; captions and forms follow the selected reading direction. */
.language-switch { min-width: 0; }
.language-switch select { max-width: 100%; text-overflow: ellipsis; }
.language-switch option { font-family: system-ui, sans-serif; }
html:is([lang=ar],[lang=fa],[lang=ur],[lang=hi],[lang=bn],[lang=th],[lang=ja],[lang=ko],[lang=zh-Hans]) {
  --sans: Arial, system-ui, sans-serif;
  --serif: Georgia, 'Times New Roman', system-ui, serif;
}
html:is([lang=ar],[lang=fa],[lang=ur],[lang=hi],[lang=bn],[lang=th],[lang=ja],[lang=ko]) :is(h1,h2,h3,.eyebrow,.brand-name,.brand-name>span,.photo-title,.photo-category,.hero-caption p,.footer-name,.series-name,.lightbox-brand,.lightbox-footer p) { letter-spacing: normal; }
html:is([lang=ar],[lang=fa],[lang=ur],[lang=hi],[lang=bn],[lang=th]) :is(h1,h2,h3,.photo-title,.series-name) { line-height: 1.5; }
html:not([lang=is]):not([lang=en]) :is(.intro-copy,.section-heading>p) { overflow-wrap: anywhere; }
html:not([lang=is]):not([lang=en]) .site-header nav { gap: clamp(10px, 1.4vw, 24px); }
html[dir=rtl] :is(.photo-button,.hero-slide,.featured-refresh .plain-button) { text-align: start; }
html[dir=rtl] .header-actions { margin-left: 0; margin-inline-start: auto; }
html[dir=rtl] .brand-mark { direction: ltr; }
html[dir=rtl] .brand-name { text-align: start; }
html[dir=rtl] .photo-category { white-space: normal; }
html[dir=rtl] :is(.hero-track,.viewer-filmstrip,.lightbox-stage,.hero-controls,#hero-count,#lightbox-count) { direction: ltr; }
html[dir=rtl] .hero-caption { direction: rtl; }
html[dir=rtl] .hero-controls { margin-left: 0; margin-inline-start: auto; }
html[dir=rtl] :is(.contact-email,a[href^='mailto:'],.contact-secondary a[href*='instagram.com']) { direction: ltr; unicode-bidi: isolate; }
html[dir=rtl] :is(.text-link>span,.outline-button>span) { unicode-bidi: isolate; }
html[dir=rtl] :is(input,textarea,select) { text-align: start; }
html[dir=rtl] :is(.photo-comment-message,.search-result-title,.activity-event-copy) { unicode-bidi: plaintext; }
@media(max-width:680px) {
  html[dir=rtl] .hero-controls { margin-inline-start: 0; }
  html[dir=rtl] .hero-scroll-hint { margin-left: 0; margin-inline-start: auto; text-align: start; }
  html:not([lang=is]):not([lang=en]) .photo-category { white-space: normal; }
}
@media(max-width:480px) {
  html[dir=rtl] .header-actions { margin: 0; }
  html:is([lang=ar],[lang=fa],[lang=ur],[lang=hi],[lang=bn],[lang=th],[lang=ja],[lang=ko]) .intro-heading h1 { font-size: clamp(36px,11vw,58px); letter-spacing: normal; }
}
/* Preserve natural spacing for joined and non-Latin scripts in compact landscape headings. */
html:is([lang=ar],[lang=fa],[lang=ur],[lang=hi],[lang=bn],[lang=th],[lang=ja],[lang=ko])[dir] .intro-heading h1 { letter-spacing: normal; }
