.mod-text-media-module {
    color: black;
    font-size: 20px;
    margin-top: 60px;

    @include mq(desktop) {
        margin-top: 120px;
    }

    > .m-wrapper {
        display: flex;
        flex-direction: column;
        align-items: stretch;

        @include mq(desktop) {
            flex-direction: row;
        }


        &.is-left {
            flex-direction: column-reverse;
            align-items: stretch;

            //@media (min-width: $screen-sm-min) {
            //    flex-direction: row-reverse;
            //}
        }

        &.is-right {
            figcaption {
                text-align: right;
            }
        }

        > .m-left-section {
            padding: 32px 24px;
            background-color: var(--brand-color-one);
            width: 100%;
            max-height: 100%;
            height: 100%;

            @include mq(desktop) {
                width: 50%;
                padding: 60px;
                min-height: 600px;
                display: flex;
                flex-direction: column;
                justify-content: center;
                text-align: center;
                height: auto;
            }

            > .m-title {
                color: white;
                margin: 0 auto;
                text-align: center;

                @include mq(desktop) {
                    margin: 0;
                    text-align: left;
                    width: 70%;
                }
            }

            > h2 {
                font-size: 32px;
                line-height: 48px;

                @include mq(desktop) {
                    font-size: 48px;
                    line-height: 60px;
                }
            }

            > h3 {
                font-size: 24px;
                line-height: 32px;

                @include mq(desktop) {
                    font-size: 32px;
                    line-height: 48px;
                }
            }

            > .m-text {
                color: white;
                text-align: center;
                padding-top: 14px;

                @include mq(desktop) {
                    text-align: left;
                    padding-top: 21px;
                }

                &.with-space {
                    margin-top: 8px;
                }

                > ol, ul {
                    color: white;
                    font-size: 16px;
                    font-style: normal;
                    font-weight: 400;
                    line-height: 28px;
                    margin: 0 auto;
                    width: 100%;
                    text-align: center;
                    padding-left: 24px;
                    width: fit-content;

                    @include mq(desktop) {
                        font-size: 18px;
                        line-height: 32px;
                        margin: 0;
                        text-align: left;
                    }
                }

                &.m-bold {
                    padding-top: 17px;
                    font-weight: 700;
                    color: white;
                    text-align: center;

                    @include mq(desktop) {
                        text-align: left;
                    }

                    ol, ul {
                        font-weight: 700;
                    }
                }
            }

            > .m-button-container {
                margin: 0 auto;
                display: flex;
                justify-content: center;
                align-items: center;

                @include mq(desktop) {
                    margin: 0;
                    justify-content: left;
                }

                > .m-button {
                    border: 0;
                    display: flex;
                    height: 40px;
                    padding: 12px 24px;
                    justify-content: center;
                    align-items: center;
                    gap: 4px;
                    cursor: pointer;
                    background-color: white;
                    overflow: hidden;
                    text-overflow: ellipsis;
                    font-size: 14px;
                    font-weight: 700;
                    line-height: 16px;
                    letter-spacing: 0.5px;
                    width: max-content;
                    margin-top: 24px;

                    @include mq(desktop) {
                        padding: 17px 24px;
                        margin: 0;
                        height: 46px;
                        font-size: 16px;
                        line-height: 20px;
                        margin-top: 54px;
                    }

                    &:hover {
                        color: white;

                        &::after {
                            filter: brightness(0) invert(1);
                        }

                        path {
                            fill: white;
                        }
                    }

                    > svg {
                        margin-top: 5px;

                        path {
                            fill: var(--brand-color-one);
                        }
                    }
                }
            }
        }

        > .m-right-section {
            width: 100%;
            position: relative;

            @include mq(desktop) {
                max-width: 50%;
            }

            .m-image-slider {
                height: 100%;

                .m-picture {
                    height: 100%;

                    img {
                        width: 100%;
                        height: 250px;
                        object-fit: cover;

                        @include mq(desktop) {
                            height: 370px;
                        }

                        @include mq(desktop) {
                            height: 100%;
                        }
                    }

                    figcaption {
                        font-size: 14px;
                        position: absolute;
                        bottom: 20px;
                        left: 20px;
                        color: white;
                        font-weight: 600;

                        @include mq(desktop) {
                            position: unset;
                            height: 100%;
                            color: black;
                            font-weight: 400;
                        }
                    }
                }

                .slick-list {
                    height: 100%;

                    .slick-track {
                        height: 100%;
                        display: flex;

                        .slick-slide {
                            figure {
                                height: 100%;
                            }
                        }
                    }
                }
                figure {
                    height: 100%;
                }
            }
        }
    }
}
