/*
 * İçerik merkezleme düzeltmesi.
 * Ayrı dosya adı, LiteSpeed/birleştirilmiş CSS önbelleğinin eski kuralları
 * kullanmasını engellemek için bilinçli olarak sürümlendirilmiştir.
 */

body.hd-site.single-post .hd-centered-entry,
body.hd-site.single .hd-centered-entry {
    width: 100% !important;
    margin: 0 !important;
}

body.hd-site.single-post .hd-centered-entry-shell,
body.hd-site.single .hd-centered-entry-shell {
    width: min(980px, calc(100% - 48px)) !important;
    max-width: 980px !important;
    margin-right: auto !important;
    margin-left: auto !important;
}

body.hd-site.single-post .hd-centered-entry-header,
body.hd-site.single .hd-centered-entry-header {
    margin-right: auto !important;
    margin-left: auto !important;
}

body.hd-site.single-post .hd-centered-article,
body.hd-site.single .hd-centered-article,
body.hd-site.single-post .hd-article-content,
body.hd-site.single .hd-article-content {
    float: none !important;
    width: min(800px, 100%) !important;
    max-width: 800px !important;
    margin-right: auto !important;
    margin-left: auto !important;
}

body.hd-site.single-post .hd-article-content > *,
body.hd-site.single .hd-article-content > * {
    max-width: 100%;
}

body.hd-site.single-post .hd-article-content img,
body.hd-site.single .hd-article-content img {
    display: block !important;
    max-width: 100% !important;
    height: auto !important;
    margin-right: auto !important;
    margin-left: auto !important;
}

/* Astra veya atanmış bir sayfa şablonu içeriği üretirse uygulanacak yedek. */
body.hd-site.single-post #content .ast-container,
body.hd-site.single #content .ast-container,
body.hd-site.single-post #primary,
body.hd-site.single #primary,
body.hd-site.single-post #main,
body.hd-site.single #main,
body.hd-site.single-post article.ast-article-single,
body.hd-site.single article.ast-article-single {
    float: none !important;
    width: 100% !important;
    max-width: none !important;
    margin-right: auto !important;
    margin-left: auto !important;
}

body.hd-site.single-post .entry-content,
body.hd-site.single .entry-content {
    float: none !important;
    width: min(800px, calc(100% - 48px)) !important;
    max-width: 800px !important;
    margin-right: auto !important;
    margin-left: auto !important;
}

body.hd-site.single-post .entry-content > *,
body.hd-site.single .entry-content > * {
    max-width: 100% !important;
}

body.hd-site.single-post .entry-content img,
body.hd-site.single .entry-content img {
    display: block !important;
    max-width: 100% !important;
    height: auto !important;
    margin-right: auto !important;
    margin-left: auto !important;
}

/* Sabit sayfalardaki metin de aynı merkez ekseninde kalır. */
body.hd-site.page:not(.home) .hd-page-content {
    float: none !important;
    width: min(900px, calc(100% - 48px)) !important;
    max-width: 900px !important;
    margin-right: auto !important;
    margin-left: auto !important;
}

body.hd-site.page:not(.home) .entry-content {
    float: none !important;
    width: min(800px, 100%) !important;
    max-width: 800px !important;
    margin-right: auto !important;
    margin-left: auto !important;
}

@media (max-width: 760px) {
    body.hd-site.single-post .hd-centered-entry-shell,
    body.hd-site.single .hd-centered-entry-shell,
    body.hd-site.single-post .entry-content,
    body.hd-site.single .entry-content,
    body.hd-site.page:not(.home) .hd-page-content {
        width: calc(100% - 30px) !important;
    }

    body.hd-site.single-post .hd-centered-article,
    body.hd-site.single .hd-centered-article,
    body.hd-site.single-post .hd-article-content,
    body.hd-site.single .hd-article-content {
        width: 100% !important;
    }
}
