/**
 * Alamin Ahmed Smart Tools - Universal Frontend CSS (v1.0.2)
 * Author: Alamin Ahmed
 * Works on ALL WordPress themes, builders, and full site editing templates.
 */

/* 1. Guaranteed wrapper from the_content filter */
.aa-smart-tools-justified-content,
.aa-smart-tools-justified-content p,
.aa-smart-tools-justified-content li,
.aa-smart-tools-justified-content blockquote {
    text-align: justify !important;
    text-justify: inter-word !important;
    text-align-last: left !important;
    -webkit-hyphens: auto;
    -moz-hyphens: auto;
    hyphens: auto;
    word-spacing: normal !important;
}

/* 2. Theme CSS selectors fallback */
body.single .entry-content p,
body.single .post-content p,
.single .entry-content p,
.single .post-content p,
.single-post .entry-content p,
.single-post .post-content p,
.single article .content p,
.single .td-post-content p,
.single .tdb_single_content p,
.single .elementor-widget-theme-post-content p,
.single .wp-block-post-content p {
    text-align: justify !important;
    text-justify: inter-word !important;
    text-align-last: left !important;
}

/* 3. Image container safety rules */
.single .post-thumbnail,
.single .featured-media,
.single .td-post-featured-image,
.single-post .post-thumbnail,
.single-post .featured-media,
.single-post .td-post-featured-image {
    max-width: 100%;
    box-sizing: border-box;
}

/* 4. Fluid responsive rendering for 16:9 images */
@media (max-width: 768px) {
    .single .post-thumbnail img,
    .single .featured-media img,
    .single .td-post-featured-image img,
    .single .wp-block-post-featured-image img,
    .single-post .post-thumbnail img,
    .single-post .featured-media img,
    .single-post .td-post-featured-image img,
    .single-post .wp-block-post-featured-image img {
        aspect-ratio: 16 / 9 !important;
        width: 100% !important;
        height: auto !important;
    }
}
