/**
 * Aureline — RTL overrides.
 *
 * Loaded only when the site language is right-to-left (see
 * aureline_scripts() in functions.php). Most of the theme already
 * follows the text direction automatically: layouts use flexbox and
 * grid, and spacing uses CSS logical properties (margin-inline-start,
 * inset-inline-end and friends) in style.css. Only the rules below
 * are physical in the main stylesheet and need mirroring.
 */

/* Floated content images swap sides. */
[dir="rtl"] .alignleft {
	float: right;
	margin: 0.4em 0 1em 1.2em;
}

[dir="rtl"] .alignright {
	float: left;
	margin: 0.4em 1.2em 1em 0;
}

/* The "Continue reading" arrow points in the reading direction. */
[dir="rtl"] .read-more-arrow {
	display: inline-block;
	transform: scaleX(-1);
}

/* Desktop dropdown sub-menus open towards the reading direction. */
[dir="rtl"] .main-navigation ul ul {
	left: auto;
	right: 0;
}

[dir="rtl"] .main-navigation ul ul ul {
	left: auto;
	right: 100%;
}

@media (max-width: 860px) {
	[dir="rtl"] .main-navigation .sub-menu {
		padding-left: 0;
		padding-right: 18px;
	}
}
