/**
 * WP Auto RTL Align - Styles
 */

/* Support for the detection class on post containers or body tag */
.wp-auto-rtl-detected .entry-title,
.wp-auto-rtl-detected .post-title,
.wp-auto-rtl-detected h1,
.wp-auto-rtl-detected h2,
.wp-auto-rtl-detected h3,
.wp-auto-rtl-detected h4,
.wp-auto-rtl-detected .jnews_post_title, /* JNews specific */
.wp-auto-rtl-detected a {
    direction: rtl;
    text-align: right;
    unicode-bidi: embed;
}

/* Specific fix for single post H1 if it uses standard classes */
body.wp-auto-rtl-detected h1.entry-title,
body.wp-auto-rtl-detected .entry-header h1 {
    direction: rtl;
    text-align: right;
}

.wp-auto-rtl-content {
    direction: rtl;
    text-align: right;
    unicode-bidi: embed;
    width: 100%;
}

/* Ensure images and other elements inside RTL content behave correctly */
.wp-auto-rtl-content img {
    max-width: 100%;
    height: auto;
}
