.ce-rsarticle {
    margin: 2.35rem 0;
    width: 100%;
    --rsarticle-content-width: var(--layout-width-content);
    --rsarticle-text-width: var(--layout-width-text);
    --rsarticle-narrow-width: var(--layout-width-narrow);
    --rsarticle-side-item-overhang: calc((var(--rsarticle-content-width) - var(--rsarticle-text-width)) / 2);
    --rsarticle-side-item-width: calc(var(--rsarticle-side-item-overhang) * 2);
}

.ce-rsarticle::after {
    clear: both;
    content: "";
    display: block;
}

.ce-rsarticle > :is(p, ul, ol) {
    font-size: 1.0625rem;
    line-height: 1.65;
}

.ce-rsarticle__item {
    max-width: 100%;
}

.ce-rsarticle__item .ce-gallery,
.ce-rsarticle__item .ce-outer,
.ce-rsarticle__item .ce-inner,
.ce-rsarticle__item .ce-row,
.ce-rsarticle__item .ce-column,
.ce-rsarticle__item figure,
.ce-rsarticle__item a {
    width: 100%;
    max-width: none;
}

.ce-rsarticle__item figure {
    margin: 0;
}

.ce-rsarticle__item a,
.ce-rsarticle__item img {
    display: block;
    height: auto;
    width: 100%;
    max-width: 100%;
}

.ce-rsarticle__item img {
    border-radius: 0.28rem;
    box-shadow: 0 0.8rem 2rem rgba(35, 31, 26, 0.08);
}

.ce-rsarticle__item .ce-gallery {
    margin-left: 0;
    margin-right: 0;
}

.ce-rsarticle__item .ce-column {
    padding-left: 0;
    padding-right: 0;
}

.ce-rsarticle__item .ce-column figure {
    display: block;
    margin-left: 0;
    margin-right: 0;
}

.ce-rsarticle__item .ce-column img {
    margin-left: 0;
    margin-right: 0;
}

.ce-rsarticle__item .caption {
    color: var(--color-text-soft, #6b6f68);
    display: block;
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0.7rem 0 1.35rem;
}

.ce-rsarticle__item .caption::before {
    background-color: color-mix(in srgb, var(--color-accent, #d47519) 58%, transparent);
    content: "";
    display: block;
    height: 1px;
    margin: 0 0 0.45rem;
    width: 2.4rem;
}

.ce-rsarticle__item-meta {
    border-left: 2px solid color-mix(in srgb, var(--color-accent, #d47519) 42%, transparent);
    margin-top: 0.72rem;
    padding-left: 0.75rem;
}

.ce-rsarticle__item-title {
    color: var(--color-heading, #1c1f21);
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.4;
}

.ce-rsarticle__item-description {
    color: var(--color-text-soft, #6b6f68);
    font-size: 0.92rem;
    line-height: 1.54;
    margin-top: 0.32rem;
}

@media (min-width: 66rem) {
    .ce-rsarticle {
        max-width: var(--rsarticle-text-width);
        margin-left: auto;
        margin-right: auto;
    }

    .ce-rsarticle__item {
        max-width: none;
        overflow: visible;
        width: var(--rsarticle-side-item-width);
    }

    .ce-rsarticle__item--left {
        clear: left;
        float: left;
        margin-left: calc(-1 * var(--rsarticle-side-item-overhang));
        margin-right: 1.7rem;
    }

    .ce-rsarticle__item--right {
        clear: right;
        float: right;
        margin-left: 1.7rem;
        margin-right: calc(-1 * var(--rsarticle-side-item-overhang));
    }

    .ce-rsarticle__item--middle {
        margin-left: calc(-1 * var(--rsarticle-side-item-overhang));
        margin-right: calc(-1 * var(--rsarticle-side-item-overhang));
        max-width: none;
        width: calc(100% + (2 * var(--rsarticle-side-item-overhang)));
    }
}

@media (min-width: 48rem) and (max-width: 65.98rem) {
    .ce-rsarticle {
        max-width: none;
    }

    .ce-rsarticle__item {
        max-width: none;
        overflow: visible;
        width: min(15rem, 42%);
    }

    .ce-rsarticle__item--left {
        clear: left;
        float: left;
        margin-left: 0;
        margin-right: 1.25rem;
    }

    .ce-rsarticle__item--right {
        clear: right;
        float: right;
        margin-left: 1.25rem;
        margin-right: 0;
    }

    .ce-rsarticle__item--middle {
        margin-left: 0;
        margin-right: 0;
        max-width: none;
        width: 100%;
    }
}

@media (max-width: 47.98rem) {
    .ce-rsarticle {
        max-width: none;
    }

    .ce-rsarticle__item {
        float: none;
        width: 100%;
        max-width: none;
        margin: 1.5rem 0;
        overflow: visible;
    }

    .ce-rsarticle__item--left,
    .ce-rsarticle__item--right,
    .ce-rsarticle__item--middle {
        clear: both;
        margin-left: 0;
        margin-right: 0;
    }
}
