/* Adjustments for the Persian version. Logical properties do most of the work
   already, so this file only fixes what direction alone cannot. */

.record-list__item {
	direction: rtl;
}

.facts__row {
	direction: rtl;
}

.pagination__list,
.filter-bar__list,
.site-nav__list {
	direction: rtl;
}

.lightbox__nav--prev::before {
	transform: translate(-50%, -50%) rotate(135deg);
}

.lightbox__nav--next::before {
	transform: translate(-50%, -50%) rotate(-45deg);
}

/* Persian numerals stay legible in tabular columns without the Latin tracking. */
.record-list__year,
.index-list__year,
.prose--cv {
	letter-spacing: 0;
}

/* Untranslated text falls back to English. `plaintext` lets each paragraph
   take its direction from its own first strong character, so an English
   sentence inside the Persian site still reads left to right instead of
   being pushed to the wrong margin. */
.prose p,
.prose li,
.prose blockquote,
.work__lead,
.entry__lead,
.catalogue__lead,
.collection__subtitle,
.card__title,
.card__meta,
.index-list__title,
.record-list__title,
.record-list__venue,
.news-list__title,
.news-list__lead,
.facts__value,
.hero__subtitle,
.site-header__role,
.opening__lead,
.opening__subtitle,
.essay p,
.essay li,
.timeline__name,
.timeline__place,
.museums__item,
.record__text,
.film-card__title,
.film__lead,
.page-head__lead,
.sequence__title {
	unicode-bidi: plaintext;
}

/* The record's year column sits on the right of each row in Persian. */
.record__row,
.timeline__item {
	direction: rtl;
}

/* row-reverse would flip a second time in an RTL flex container. */
.sequence__link--next {
	flex-direction: row;
}

.sequence__link--prev {
	flex-direction: row;
}
