.side-by-side-with-graphic {
    margin-bottom: 30px;
}

.side-by-side-with-graphic .slides {
    display: grid;
    grid-template: auto / 1fr;
    gap: var(--space-2);
}

.side-by-side-with-graphic .slide .img-cont {
    position: relative;
}

.side-by-side-with-graphic .slide .img-cont::before,
.side-by-side-with-graphic .slide .img-cont::after {
    position: absolute;
    top: 0;
    bottom: 0;
    z-index: 2;
    display: block;
    content: '';
    pointer-events: none;
}

.side-by-side-with-graphic .slide .img-cont::before {
    left: 0;
    display: none;
    width: 25px;
    opacity: .5;

    /* This variable is defined in common shared.css, under "Color Palettes" */
    background: var(--bg-color);
}

.side-by-side-with-graphic .slide .img-cont::after {
    right: 0;
    width: 15px;
    
    /* This variable is defined in common shared.css, under "Color Palettes" */
    background: var(--accent-color);
}

.side-by-side-with-graphic .slide-img {
    position: relative;
    z-index: 1;
    width: 100%;
}

.side-by-side-with-graphic .slide .content-section {
    padding: 30px var(--space-5) 36px var(--space-5);

    /* These variable is defined in common shared.css, under "Color Palettes" */
    background: var(--bg-color);
    color: var(--text-color);

    text-align: center;
}

.side-by-side-with-graphic .slide-badge {
    width: 100%;
    max-width: 220px;
    margin: 0 auto 18px auto;
}

.side-by-side-with-graphic .slide-title {
    margin-bottom: var(--space-1);
    font-family: var(--font-display);
    font-weight: var(--font-weight-extrabold);
    font-size: 2.5rem;
    line-height: 1.125;
}

.side-by-side-with-graphic .slide-title a {
    font: inherit;
    color: inherit;
    text-decoration: inherit;
}

/*=====----- NO PALETTE -----=====*/

.side-by-side-with-graphic.no-palette .slide .img-cont::before {
    background: var(--green);
}

.side-by-side-with-graphic.no-palette .slide .img-cont::after {
    background: #67a51b;
}

.side-by-side-with-graphic.no-palette .slide .content-section {
    background: var(--green);
    color: var(--white);
}

/*=====----- MEDIA QUERIES -----=====*/

@media (min-width: 40em) {
    .side-by-side-with-graphic .slide .inner {
        display: grid;
        grid-template: auto / 1fr 1fr;
    }

    .side-by-side-with-graphic .slide .img-cont {
        order: 1;
        padding: 0;
        height: 100%;
    }

    .side-by-side-with-graphic .slide .img-cont::before {
        display: block;
    }

    .side-by-side-with-graphic .slide-img {
        height: 100%;
        object-fit: cover;
    }

    .side-by-side-with-graphic .slide .content-section {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: stretch;
    }
}

@media (min-width: 64em) {
    .side-by-side-with-graphic {
        margin-bottom: 60px;
    }

    .side-by-side-with-graphic .slide .content-section {
        padding: 36px var(--space-10) 44px var(--space-10);
    }

    .side-by-side-with-graphic .slide-badge {
        max-width: 283px;
        margin-bottom: 14px;
    }

    .side-by-side-with-graphic .slide-title {
        margin-bottom: 6px;
        font-size: 2.8125rem;
        line-height: var(--leading-none);
    }

    .side-by-side-with-graphic .slide-desc {
        font-size: var(--text-lg);
        line-height: 1.444;
    }
}

@media (min-width: 90em) {
    .side-by-side-with-graphic .slide .inner {
        grid-template: auto / 695px 1fr;
    }

    .side-by-side-with-graphic .slide .content-section {
        padding: 36px 60px 44px 60px;
    }
}