.section-media-and-text-side-by-side {
    display: block;
    position: relative;
    padding: 0 0 45px 0;
    overflow: hidden;

    @media screen and (min-width: 750px) {
        padding: 0;
    }

    .container {
        display: block;

        @media screen and (min-width: 750px) {
            display: grid;
            grid-template-columns: 1fr 1fr;
            grid-column-gap: 70px;
        }

        &.text-first {
            .content {
                order: 1;
            }

            .media-wrapper {
                order: 2;
            }
        }

        &.media-first {
            .content {
                order: 2;
            }

            .media-wrapper {
                order: 1;
            }
        }

        &.media-width-35 {
            @media screen and (min-width: 750px) {
                grid-template-columns: calc(50% - 35px) calc(50% - 35px);
            }

            @media screen and (min-width: 1000px) {
                grid-template-columns: calc(65% - 35px) calc(35% - 35px);
            }

            &.media-first {
                @media screen and (min-width: 750px) {
                    grid-template-columns: calc(50% - 35px) calc(50% - 35px);
                }

                @media screen and (min-width: 1000px) {
                    grid-template-columns: calc(35% - 35px) calc(65% - 35px);
                }
            }

            .text-container {
                max-width: 100%;
            }
        }
    }

    .media-wrapper {
        display: block;
        position: relative;
        width: 100%;
        height: 100%;

        @media screen and (min-width: 750px) {
            display: flex;
            justify-content: center;
            align-items: center;
        }

        img {
            display: block;
        }

        &.square {
            @media screen and (min-width: 750px) {
                div {
                    display: block;
                    width: 100%;
                    position: relative;
                    aspect-ratio: 1/1;

                    img {
                        object-fit: cover;
                        object-position: center center;
                        width: 100%;
                        height: 100%;
                    }
                }
            }

            @media screen and (min-width: 1150px) {
                div {
                    height: unset;
                }
            }
        }
    }

    video {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center center;
        position: absolute;
        top: 0;
        left: 0;
        z-index: 0;
    }

    .content {
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 40px 0;

        @media screen and (min-width: 750px) {
            padding: 80px 0;
        }

        &.text-left {
            justify-content: flex-start;
        }

        &.text-center {
            justify-content: center;
        }

        &.text-right {
            justify-content: flex-end;
        }
    }

    .text-container {
        display: block;
        position: relative;
        z-index: 1;
        color: white;
        max-width: 710px;
        width: 100%;

        h2 {
            margin-top: 0;

            @media screen and (min-width: 750px) {
                font-size: 34px;
                line-height: 38px;
            }

            @media screen and (min-width: 1150px) {
                font-size: 50px;
                line-height: 60px;
            }
        }

        .cta {
            display: block;
            text-transform: uppercase;
            font-size: 18px;
            font-weight: bold;
            color: #494949;
        }
    }

    &.white {
        background-color: white;

        .section-eyebrow,
        .section-spec-line {
            color: var(--color-bixpy-blue);
        }

        h2 {
            color: var(--color-medium-blue);
        }

        .section-text a {
            color: var(--color-medium-blue);
        }

        .section-text p,
        .section-text li {
            color: var(--color-dark-blue);
        }
    }

    &.bixpy-blue {
        background-color: var(--color-bixpy-blue);

        .section-text a {
            color: var(--color-seafoam);
        }

        .section-text p,
        .section-text li,
        h2 {
            color: white;
        }
    }

    &.medium-blue {
        background-color: var(--color-medium-blue);

        .section-eyebrow,
        .section-spec-line {
            color: var(--color-light-seafoam);
        }

        h2 {
            color: var(--color-seafoam);
        }

        .section-text a {
            color: var(--color-seafoam);
        }

        .section-text p,
        .section-text li {
            color: white;
        }

        .section-button {
            border: 1px solid var(--color-light-seafoam);
            background-color: var(--color-light-seafoam);
            color: var(--color-dark-blue);

            &:hover {
                background-color: white;
                border: 1px solid white;
            }
        }
    }

    &.dark-blue {
        background-color: var(--color-dark-blue);

        .section-eyebrow,
        .section-spec-line {
            color: var(--color-bixpy-blue);
        }

        h2 {
            color: var(--color-seafoam);
        }

        .section-text a {
            color: var(--color-seafoam);
        }

        .section-text p,
        .section-text li {
            color: white;
        }
    }

    &.seafoam {
        background-color: var(--color-seafoam);

        .section-eyebrow,
        .section-spec-line {
            color: var(--color-medium-blue);
        }

        h2 {
            color: var(--color-dark-blue);
        }

        .section-text p,
        .section-text a,
        .section-text li {
            color: var(--color-dark-blue);
        }
    }

    &.light-seafoam {
        background-color: var(--color-light-seafoam);

        .section-eyebrow,
        .section-spec-line {
            color: var(--color-dark-blue);
        }

        h2 {
            color: var(--color-medium-blue);
        }

        .section-text a {
            color: var(--color-medium-blue);
        }

        .section-text p,
        .section-text li {
            color: var(--color-dark-blue);
        }
    }
}
