/*
 * Sürüm 3.5.0 — Gezi yazısı genişlik eşitlemesi
 * Kapak, başlık, slayt ve metinler aynı 980 px içerik eksenini kullanır.
 */

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;
}

/* Başlık alanını da kapak görselinin gerçek genişliğine eşitle. */
body.hd-site.single-post .hd-centered-entry-header,
body.hd-site.single .hd-centered-entry-header {
    width: 100% !important;
    max-width: 980px !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: 100% !important;
    max-width: 980px !important;
    margin-right: auto !important;
    margin-left: auto !important;
}

/* Astra şablonuna düşülen durumlarda aynı genişliği koruyan yedek kurallar. */
body.hd-site.single-post .entry-content,
body.hd-site.single .entry-content {
    float: none !important;
    width: min(980px, calc(100% - 48px)) !important;
    max-width: 980px !important;
    margin-right: auto !important;
    margin-left: auto !important;
}

/* Gutenberg ve klasik editör içeriklerini ana sütuna yay. */
body.hd-site.single-post .hd-article-content > *,
body.hd-site.single .hd-article-content > *,
body.hd-site.single-post .entry-content > *,
body.hd-site.single .entry-content > * {
    width: 100% !important;
    max-width: 100% !important;
}

/* Smart Slider, MetaSlider, Gutenberg galeri ve yaygın slayt eklentileri. */
body.hd-site.single-post .hd-article-content :where(
    .wp-block-nextend-smartslider3,
    .n2_clear,
    .n2-section-smartslider,
    .n2-ss-slider,
    [id^="n2-ss-"],
    .metaslider,
    .ml-slider,
    .flexslider,
    .swiper,
    .swiper-container,
    .slick-slider,
    .wp-block-gallery,
    .wp-block-image,
    .wp-block-video,
    .wp-block-embed
),
body.hd-site.single .hd-article-content :where(
    .wp-block-nextend-smartslider3,
    .n2_clear,
    .n2-section-smartslider,
    .n2-ss-slider,
    [id^="n2-ss-"],
    .metaslider,
    .ml-slider,
    .flexslider,
    .swiper,
    .swiper-container,
    .slick-slider,
    .wp-block-gallery,
    .wp-block-image,
    .wp-block-video,
    .wp-block-embed
) {
    width: 100% !important;
    max-width: 100% !important;
    margin-right: 0 !important;
    margin-left: 0 !important;
}

/* Blok temaları ve sayfa oluşturucuların eklediği iç kapsayıcıları daraltma. */
body.hd-site.single-post .hd-article-content :where(
    .wp-block-group__inner-container,
    .wp-block-cover__inner-container,
    .elementor,
    .elementor-section,
    .elementor-container,
    .e-con
),
body.hd-site.single .hd-article-content :where(
    .wp-block-group__inner-container,
    .wp-block-cover__inner-container,
    .elementor,
    .elementor-section,
    .elementor-container,
    .e-con
) {
    width: 100% !important;
    max-width: 100% !important;
    margin-right: 0 !important;
    margin-left: 0 !important;
}

body.hd-site.single-post .hd-article-content .alignwide,
body.hd-site.single-post .hd-article-content .alignfull,
body.hd-site.single .hd-article-content .alignwide,
body.hd-site.single .hd-article-content .alignfull {
    width: 100% !important;
    max-width: 100% !important;
    margin-right: 0 !important;
    margin-left: 0 !important;
}

body.hd-site.single-post .hd-article-content img,
body.hd-site.single .hd-article-content img,
body.hd-site.single-post .hd-article-content iframe,
body.hd-site.single .hd-article-content iframe,
body.hd-site.single-post .hd-article-content video,
body.hd-site.single .hd-article-content video {
    max-width: 100% !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 {
        width: calc(100% - 30px) !important;
    }

    body.hd-site.single-post .hd-centered-entry-header,
    body.hd-site.single .hd-centered-entry-header {
        width: 100% !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;
    }
}
