/* ============================================================
   BOXXHEAD GAMING
   PUBLIC STORY / WEEKLY UPDATE EDITORIAL LAYOUT
   ============================================================ */

body.public-page main.article-shell {
    box-sizing: border-box !important;
    display: block !important;
    width: min(100% - 40px, 1120px) !important;
    max-width: 1120px !important;
    min-width: 0 !important;

    margin: 0 auto !important;
    padding: 46px 0 80px !important;
}

/* ---------- TOP ---------- */

body.public-page main.article-shell .back-news {
    display: inline-flex !important;
    margin: 0 0 28px !important;
}

body.public-page main.article-shell .news-kicker {
    margin: 0 0 12px !important;
}

body.public-page main.article-shell > h1 {
    width: min(100%, 940px) !important;
    max-width: 940px !important;

    margin: 0 !important;

    font-size: clamp(2.5rem, 5.4vw, 5rem) !important;
    line-height: .98 !important;
    letter-spacing: -.045em !important;

    text-wrap: balance;
}

body.public-page main.article-shell .article-source {
    width: min(100%, 940px) !important;
    max-width: 940px !important;

    margin: 20px 0 28px !important;
}

/* ---------- HERO ---------- */

body.public-page main.article-shell > .article-image {
    display: block !important;

    width: min(100%, 1040px) !important;
    max-width: 1040px !important;
    height: auto !important;
    min-height: 480px !important;

    margin: 0 0 44px !important;

    background-size: contain !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    background-color: #080808 !important;

    border-top: 3px solid #e00032 !important;
}

/* ---------- ARTICLE ---------- */

body.public-page main.article-shell > article.article-body {
    box-sizing: border-box !important;

    display: block !important;

    width: min(100%, 780px) !important;
    max-width: 780px !important;
    min-width: 0 !important;

    margin: 0 !important;
    padding: 0 !important;

    font-size: 18px !important;
    line-height: 1.78 !important;
}

body.public-page main.article-shell > article.article-body p {
    display: block !important;

    width: 100% !important;
    max-width: none !important;

    margin: 0 0 25px !important;
    padding: 0 !important;

    font-size: 18px !important;
    line-height: 1.78 !important;

    white-space: normal !important;
}

body.public-page main.article-shell > article.article-body p:first-child {
    font-size: 20px !important;
    line-height: 1.7 !important;
}

/* Make rich HTML inside future stories editorial-sized too */

body.public-page main.article-shell > article.article-body h2 {
    width: 100% !important;

    margin: 54px 0 20px !important;
    padding-top: 14px !important;

    border-top: 3px solid #e00032 !important;

    font-size: clamp(1.65rem, 3vw, 2.25rem) !important;
    line-height: 1.1 !important;
}

body.public-page main.article-shell > article.article-body h3 {
    margin: 36px 0 15px !important;

    font-size: 1.35rem !important;
    line-height: 1.2 !important;
}

body.public-page main.article-shell > article.article-body ul,
body.public-page main.article-shell > article.article-body ol {
    width: 100% !important;
    max-width: none !important;

    margin: 18px 0 30px !important;
    padding-left: 26px !important;
}

body.public-page main.article-shell > article.article-body li {
    margin-bottom: 12px !important;
    font-size: 18px !important;
    line-height: 1.65 !important;
}

/* ---------- IMAGES INSIDE ARTICLE ---------- */

body.public-page main.article-shell > article.article-body img {
    display: block !important;

    width: auto !important;
    max-width: 100% !important;
    height: auto !important;

    margin: 34px auto !important;
}

body.public-page main.article-shell > article.article-body figure {
    display: block !important;

    width: 100% !important;
    max-width: 780px !important;

    margin: 38px 0 !important;
}

body.public-page main.article-shell > article.article-body figure img {
    width: 100% !important;
    max-width: 780px !important;

    margin: 0 auto !important;
}

body.public-page main.article-shell > article.article-body figcaption {
    margin-top: 9px !important;

    font-size: 13px !important;
    line-height: 1.45 !important;
}

/* ---------- SOURCE ---------- */

body.public-page main.article-shell > .article-source-box {
    box-sizing: border-box !important;

    width: min(100%, 780px) !important;
    max-width: 780px !important;

    margin: 50px 0 0 !important;
    padding: 24px !important;
}

/* ============================================================
   TABLET
   ============================================================ */

@media (max-width: 900px) {

    body.public-page main.article-shell {
        width: min(100% - 32px, 780px) !important;
        padding-top: 30px !important;
    }

    body.public-page main.article-shell > .article-image {
        min-height: 400px !important;
    }

    body.public-page main.article-shell > article.article-body {
        width: 100% !important;
        max-width: 780px !important;
    }
}

/* ============================================================
   MOBILE
   ============================================================ */

@media (max-width: 600px) {

    body.public-page main.article-shell {
        width: 100% !important;
        max-width: none !important;

        margin: 0 !important;
        padding: 24px 18px 60px !important;
    }

    body.public-page main.article-shell > h1 {
        width: 100% !important;
        max-width: none !important;

        font-size: clamp(2rem, 10vw, 3.15rem) !important;
        line-height: 1 !important;
    }

    body.public-page main.article-shell .article-source {
        width: 100% !important;
    }

    body.public-page main.article-shell > .article-image {
        width: calc(100% + 36px) !important;
        max-width: none !important;

        min-height: 0 !important;
        aspect-ratio: 16 / 9 !important;

        margin-left: -18px !important;
        margin-right: -18px !important;
        margin-bottom: 30px !important;

        background-size: contain !important;
    }

    body.public-page main.article-shell > article.article-body {
        width: 100% !important;
        max-width: none !important;

        font-size: 17px !important;
        line-height: 1.7 !important;
    }

    body.public-page main.article-shell > article.article-body p,
    body.public-page main.article-shell > article.article-body li {
        width: 100% !important;
        max-width: none !important;

        font-size: 17px !important;
        line-height: 1.7 !important;
    }

    body.public-page main.article-shell > article.article-body p:first-child {
        font-size: 18px !important;
    }

    body.public-page main.article-shell > article.article-body img,
    body.public-page main.article-shell > article.article-body figure,
    body.public-page main.article-shell > article.article-body figure img {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
    }

    body.public-page main.article-shell > .article-source-box {
        width: 100% !important;
        max-width: none !important;
    }
}
