/*
 * تمام‌عرض‌کردن محتوای صفحه اصلی و پنهان‌سازی سایدبار
 * این فایل فقط در صورت فعال بودن افزودنی‌ها و خاموش بودن نمایش سایدبار بارگذاری می‌شود.
 */

body.afz-home-fullwidth .main-con > .main-container,
body.afz-home-fullwidth .main-con > main.container,
body.afz-home-fullwidth .main-con > .container {
    box-sizing: border-box;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    margin-right: auto !important;
    margin-left: auto !important;
    padding-right: clamp(8px, 1.25vw, 24px) !important;
    padding-left: clamp(8px, 1.25vw, 24px) !important;
}

/* سایدبار فقط در صفحه اصلی پنهان می‌شود؛ سایدبار سایر صفحات دست‌نخورده می‌ماند. */
body.afz-home-fullwidth #main > aside.side-bar,
body.afz-home-fullwidth #main > .side-bar {
    display: none !important;
}

/* ستون اصلی در قالب‌های مختلف آذین‌فایل تمام عرض می‌شود. */
body.afz-home-fullwidth #main > .col-lg-9,
body.afz-home-fullwidth #main > .azin-archive-con,
body.afz-home-fullwidth #main > article.col-lg-9,
body.afz-home-fullwidth #main > article.home-page,
body.afz-home-fullwidth #main > .single-con {
    box-sizing: border-box;
    flex: 0 0 100% !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
}

/* جلوگیری از ایجاد اسکرول افقی در نمایشگرهای کوچک و محتوای عریض. */
body.afz-home-fullwidth .main-con,
body.afz-home-fullwidth .main-con > *,
body.afz-home-fullwidth #main,
body.afz-home-fullwidth #main > * {
    min-width: 0;
}

body.afz-home-fullwidth .main-con {
    width: 100%;
    max-width: 100%;
}

@media (max-width: 991.98px) {
    body.afz-home-fullwidth .main-con > .main-container,
    body.afz-home-fullwidth .main-con > main.container,
    body.afz-home-fullwidth .main-con > .container {
        padding-right: 10px !important;
        padding-left: 10px !important;
    }

    body.afz-home-fullwidth #main > .col-lg-9,
    body.afz-home-fullwidth #main > .azin-archive-con,
    body.afz-home-fullwidth #main > article.home-page {
        flex: 0 0 100% !important;
        width: 100% !important;
        max-width: 100% !important;
    }
}

@media (max-width: 575.98px) {
    body.afz-home-fullwidth .main-con > .main-container,
    body.afz-home-fullwidth .main-con > main.container,
    body.afz-home-fullwidth .main-con > .container {
        padding-right: 6px !important;
        padding-left: 6px !important;
    }
}
