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

body.scvip-editorial-post .post-image {
    position: relative;
    isolation: isolate;
    left: 50%;
    width: min(calc(100vw - 32px), 1600px) !important;
    max-width: none !important;
    height: clamp(360px, 48vw, 720px);
    margin: 20px 0 38px !important;
    transform: translateX(-50%);
    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; }

/* Shared editorial alignment for publisher-authored media and actions. */
body.scvip-editorial-post .entry-content figure.wp-block-image {
    margin-right: auto !important;
    margin-left: auto !important;
    text-align: center;
}
body.scvip-editorial-post .entry-content figure.wp-block-image > img,
body.scvip-editorial-post .entry-content figure.wp-block-image > a > img {
    display: block;
    margin-right: auto !important;
    margin-left: auto !important;
}
body.scvip-editorial-post .entry-content figure.wp-block-image figcaption {
    text-align: center;
}
body.scvip-editorial-post .entry-content .wp-block-buttons {
    display: flex !important;
    justify-content: center !important;
    text-align: center;
}
body.scvip-editorial-post .entry-content .wp-block-buttons .wp-block-button {
    margin-right: auto;
    margin-left: auto;
}

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

body.scvip-editorial-post .entry-content .scvip-editorial-inline-figure {
    margin: 34px 0 38px;
}
body.scvip-editorial-post .entry-content .scvip-editorial-inline-figure img {
    display: block;
    width: 100%;
    max-height: 620px;
    object-fit: cover;
    border-radius: 2px;
}
body.scvip-editorial-post .entry-content .scvip-editorial-inline-figure figcaption {
    margin-top: 9px;
    color: #737373;
    font-size: 13px;
    line-height: 1.45;
}


/* 0.9.113 Atmosphere Models editorial gallery */
.single-post .scvip-atmosphere-gallery {
    box-sizing: border-box;
    width: 100%;
    max-width: 1170px;
    margin: 30px auto 38px !important;
    padding: 3px !important;
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 4px !important;
    background: #b79a56 !important;
}
.single-post .scvip-atmosphere-gallery__item {
    height: 300px;
    margin: 0 !important;
    overflow: hidden;
    background: #17171b;
}
.single-post .scvip-atmosphere-gallery__image {
    display: block;
    width: 100% !important;
    max-width: none !important;
    height: 100% !important;
    object-fit: cover !important;
    box-shadow: none !important;
}
@media (max-width: 760px) {
    .single-post .scvip-atmosphere-gallery {
        grid-template-columns: 1fr !important;
    }
    .single-post .scvip-atmosphere-gallery__item {
        height: min(78vw, 420px);
    }
}
