/*
 * Production hero contract.
 * Desktop geometry is owned by copp-redesign.css. This file only closes the
 * mobile overflow left by the legacy desktop grid rules.
 */

@media (max-width: 767.98px) {
    html body .copp-hero {
        box-sizing: border-box !important;
        min-height: 0 !important;
        overflow: visible !important;
        width: 100% !important;
    }

    html body .copp-hero__inner {
        box-sizing: border-box !important;
        display: grid !important;
        gap: 20px !important;
        grid-template-columns: minmax(0, 1fr) !important;
        height: auto !important;
        max-width: 100% !important;
        min-height: 0 !important;
        padding: 28px 16px 68px !important;
        width: 100% !important;
    }

    html body .copp-hero__copy {
        box-sizing: border-box !important;
        display: flex !important;
        min-width: 0 !important;
        width: 100% !important;
    }

    html body .copp-hero__copy h1,
    html body .copp-hero__copy > p {
        max-width: 100% !important;
        min-width: 0 !important;
        width: 100% !important;
    }

    html body .copp-hero__actions {
        box-sizing: border-box !important;
        display: flex !important;
        flex-direction: column !important;
        flex-wrap: nowrap !important;
        gap: 10px !important;
        max-width: none !important;
        width: 100% !important;
    }

    html body .copp-hero__btn {
        box-sizing: border-box !important;
        flex: 0 0 auto !important;
        width: 100% !important;
    }

    html body .copp-hero__visual {
        display: none !important;
    }

    html body .copp-news-hero,
    html body .copp-gallery-hero {
        box-sizing: border-box !important;
        max-width: 100vw !important;
        overflow: visible !important;
        width: 100vw !important;
        margin-left: calc(50% - 50vw) !important;
        margin-right: calc(50% - 50vw) !important;
    }

    html body .copp-news-hero__inner,
    html body .copp-gallery-hero__inner {
        box-sizing: border-box !important;
        grid-template-columns: minmax(0, 1fr) !important;
        max-width: 100% !important;
        min-width: 0 !important;
        width: 100% !important;
    }

    html body .copp-news-hero__media,
    html body .copp-gallery-hero__media {
        display: none !important;
    }

    html body .copp-news-hero__copy,
    html body .copp-gallery-hero__copy {
        min-width: 0 !important;
        width: 100% !important;
    }

    html body .copp-news-hero__actions {
        display: flex !important;
        flex-direction: column !important;
        flex-wrap: nowrap !important;
        max-width: none !important;
        width: 100% !important;
    }

    html body .copp-news-hero__actions .copp-news-btn {
        box-sizing: border-box !important;
        width: 100% !important;
    }
}

    /* The programs archive sits inside a Bootstrap row with a -15px gutter. */
    html body .copp-programs-page-hero {
        position: relative !important;
        transform: translateX(8px) !important;
    }
