/* Final event hero layer: use the same unframed image treatment as the about hero. */

html body .copp-event-detail .copp-program-article__media {
    background: var(--copp-soft, #eaf8f6) !important;
}

html body .copp-event-detail .copp-program-article__media img {
    object-fit: contain !important;
    object-position: center bottom !important;
}

@media (min-width: 901px) {
    html body .copp-news-hero.copp-events-hero {
        height: auto !important;
        max-height: none !important;
        min-height: 0 !important;
        overflow: visible !important;
        padding: 0 !important;
    }

    html body .copp-news-hero.copp-events-hero > .copp-news-hero__inner {
        align-items: center !important;
        box-sizing: border-box !important;
        gap: 42px !important;
        grid-template-columns: minmax(0, 470px) minmax(0, 1fr) !important;
        height: auto !important;
        max-height: none !important;
        min-height: 396px !important;
        padding: 28px clamp(28px, 7vw, 108px) 34px !important;
    }

    html body .copp-news-hero.copp-events-hero .copp-news-hero__copy {
        align-self: center !important;
        justify-self: start !important;
    }

    html body .copp-news-hero.copp-events-hero .copp-events-hero__media {
        align-self: center !important;
        background: transparent !important;
        display: block !important;
        height: 380px !important;
        max-height: 380px !important;
        min-height: 380px !important;
        overflow: visible !important;
        position: relative !important;
        width: min(100%, 560px) !important;
    }

    html body .copp-news-hero.copp-events-hero .copp-events-hero__media::before,
    html body .copp-news-hero.copp-events-hero .copp-events-hero__media::after {
        display: none !important;
    }

    html body .copp-news-hero.copp-events-hero .copp-events-hero__media > img {
        display: block !important;
        height: 100% !important;
        max-height: none !important;
        max-width: none !important;
        min-height: 0 !important;
        object-fit: contain !important;
        object-position: center bottom !important;
        position: relative !important;
        width: auto !important;
        margin-left: auto !important;
        margin-right: 0 !important;
    }

    html body .copp-news-hero.copp-events-hero .copp-events-hero__media > .copp-news-hero__tile,
    html body .copp-news-hero.copp-events-hero .copp-events-hero__media > .copp-news-hero__badge {
        display: block !important;
    }
}

@media (max-width: 900px) {
    html body .copp-news-hero.copp-events-hero {
        height: auto !important;
        max-height: none !important;
        min-height: 0 !important;
        overflow: visible !important;
        padding: 0 !important;
    }

    html body .copp-news-hero.copp-events-hero > .copp-news-hero__inner {
        align-items: stretch !important;
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        height: auto !important;
        max-height: none !important;
        min-height: 0 !important;
        padding: 42px 24px 36px !important;
    }

    html body .copp-news-hero.copp-events-hero .copp-events-hero__media {
        align-self: center !important;
        background: transparent !important;
        display: block !important;
        height: 260px !important;
        max-height: 260px !important;
        min-height: 260px !important;
        overflow: visible !important;
        position: relative !important;
        width: 100% !important;
    }

    html body .copp-news-hero.copp-events-hero .copp-events-hero__media::before,
    html body .copp-news-hero.copp-events-hero .copp-events-hero__media::after {
        display: none !important;
    }

    html body .copp-news-hero.copp-events-hero .copp-events-hero__media > img {
        display: block !important;
        height: 100% !important;
        max-height: none !important;
        max-width: 100% !important;
        min-height: 0 !important;
        object-fit: contain !important;
        object-position: center bottom !important;
        width: auto !important;
        margin-left: auto !important;
        margin-right: 0 !important;
    }

    html body .copp-news-hero.copp-events-hero .copp-events-hero__media > .copp-news-hero__tile,
    html body .copp-news-hero.copp-events-hero .copp-events-hero__media > .copp-news-hero__badge {
        display: block !important;
    }
}

@media (max-width: 640px) {
    html body .copp-news-hero.copp-events-hero > .copp-news-hero__inner {
        display: flex !important;
        flex-direction: column !important;
        gap: 22px !important;
        padding: 34px 18px 24px !important;
    }

    html body .copp-news-hero.copp-events-hero .copp-events-hero__media {
        height: 230px !important;
        max-height: 230px !important;
        min-height: 230px !important;
    }

    html body .copp-news-hero.copp-events-hero .copp-events-hero__media > .is-mobile-hidden {
        display: none !important;
    }
}
