/* Keep TheGem's standard article masthead completely intact. */

body.scvip-editorial-post .post-image {
    position: relative;
    isolation: isolate;
    width: min(100%, 1180px) !important;
    height: clamp(330px, 42vw, 560px);
    margin: 20px auto 38px !important;
    overflow: hidden;
    background: #060609;
}

body.scvip-editorial-post .post-image:before {
    position: absolute;
    z-index: 0;
    inset: -30px;
    display: block;
    background-color: #08080b;
    background-image: linear-gradient(rgba(0, 0, 0, .5), rgba(0, 0, 0, .68)), var(--scvip-editorial-hero-image);
    background-position: center, var(--scvip-editorial-hero-position);
    background-size: cover, cover;
    background-repeat: no-repeat;
    content: "";
    filter: blur(22px) saturate(.72);
    transform: scale(1.08);
    pointer-events: none;
}

body.scvip-editorial-post .post-image > a,
body.scvip-editorial-post .post-image > picture,
body.scvip-editorial-post .post-image > img { position: relative; z-index: 1; }

body.scvip-editorial-post .post-image > a,
body.scvip-editorial-post .post-image > picture {
    display: flex !important;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
}

body.scvip-editorial-post .post-image img {
    position: relative;
    z-index: 1;
    display: block;
    margin: auto;
    object-position: var(--scvip-editorial-hero-position);
}

body.scvip-editorial-hero-cover .post-image img {
    width: 100% !important;
    max-width: none !important;
    height: 100% !important;
    max-height: none !important;
    object-fit: cover;
}

body.scvip-editorial-hero-contained .post-image img {
    width: auto !important;
    max-width: min(100%, var(--scvip-editorial-image-width)) !important;
    height: auto !important;
    max-height: min(100%, var(--scvip-editorial-image-height)) !important;
    object-fit: contain;
}

body.scvip-editorial-post .entry-content > :first-child { margin-top: 0; }

@media (max-width: 767px) {
    body.scvip-editorial-post .post-image {
        height: clamp(280px, 72vw, 430px);
        margin-top: 12px !important;
        margin-bottom: 28px !important;
    }
}
