
/* FAMEBAWT MOBILE LAYOUT FIX */

@media screen and (max-width: 767px) {

    .hero-grid {
        grid-template-columns: minmax(0, 1fr);
        max-width: 100%;
        box-sizing: border-box;
    }

    .hero-feature,
    .hero-sidebar,
    .feature-link,
    .feature-art {
        min-width: 0;
        max-width: 100%;
        box-sizing: border-box;
    }

    .feature-art img {
        display: block;
        width: 100%;
        max-width: 100%;
    }

    .ticker-inner {
        min-width: 0;
        max-width: 100%;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .ticker-inner::-webkit-scrollbar {
        display: none;
    }

    .feature-title {
        font-size: 30px;
        line-height: 1.12;
    }

}

/* MADAME NAPOLEON HOROSCOPE PAGE */
/* Applies on desktop, tablet and mobile */

.content-page:has(.mn-astro),
.content-page--horoscope {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

.content-page:has(.mn-astro) > .eyebrow,
.content-page:has(.mn-astro) > .page-title {
    display: none !important;
}

.content-page:has(.mn-astro) .article-text,
.content-page:has(.mn-astro) .entry-content,
.content-page:has(.mn-astro) .wp-block-shortcode,
.content-page--horoscope .article-text {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

.content-page:has(.mn-astro) .mn-astro,
.content-page--horoscope .mn-astro {
    margin-top: 0 !important;
}

/* MADAME NAPOLEON — CENTER THE ENTIRE PAGE */

body.page .content-page:has(.mn-astro) {
    width: min(1180px, calc(100vw - 48px)) !important;
    max-width: none !important;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 0 !important;
    padding: 0 !important;
}

body.page .content-page:has(.mn-astro)
.article-text.entry-content {
    width: 100% !important;
    max-width: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

body.page .content-page:has(.mn-astro)
.mn-astro.mn-astro--wide {
    width: 100% !important;
    max-width: 100% !important;
    position: static !important;
    left: auto !important;
    transform: none !important;
    margin: 0 auto 36px !important;
}

/* MADAME NAPOLEON COMPACT HOMEPAGE FEATURE */

body .fbw-madame-promo {
    grid-template-columns: minmax(0, 1fr) 125px !important;
    padding: 20px 26px !important;
    gap: 22px !important;
    margin: 24px 0 !important;
    border-radius: 16px !important;
}

body .fbw-madame-promo__title {
    font-size: 36px !important;
    line-height: 1.1 !important;
    margin: 6px 0 8px !important;
}

body .fbw-madame-promo__text {
    font-size: 15px !important;
    margin-bottom: 12px !important;
}

body .fbw-madame-promo__photo {
    width: 120px !important;
    height: 138px !important;
    aspect-ratio: auto !important;
    object-fit: cover !important;
}

body .fbw-madame-promo__link {
    padding: 9px 14px !important;
    font-size: 12px !important;
}

/* MOBILE */

@media (max-width: 767px) {
    body .fbw-madame-promo {
        grid-template-columns: minmax(0, 1fr) 90px !important;
        text-align: left !important;
        padding: 14px !important;
        gap: 12px !important;
    }

    body .fbw-madame-promo__title {
        font-size: 25px !important;
    }

    body .fbw-madame-promo__text {
        font-size: 13px !important;
    }

    body .fbw-madame-promo__photo {
        width: 90px !important;
        height: 110px !important;
    }
}
