.media-with-text {
    overflow: visible;
}
.media-with-text .container {
    display: flex;
}
.media-with-text.reverse .container {
    flex-direction: row-reverse;
}
.media-with-text .left-block {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-right: 7.5rem;
}
.media-with-text.reverse .left-block {
    padding-left: 7.5rem;
    padding-right: 0;
}
.media-with-text .image-caption {
    display: block;
    text-align: right;
    font-size: calc(1.6rem * var(--text-scaler));
    padding-top: 0.5rem;
}
.text-above-media {
    margin: 0 0 3.6rem;
}
.text-position-bottom .left-block {
    justify-content: flex-end;
}
.text-position-bottom75 .left-block {
    justify-content: flex-end;
    padding-bottom: 7.5rem;
}
.text-position-top .left-block {
    justify-content: flex-start;
}
.media-with-text h3 a, .html_content h3 a {
    position: relative;
    display: inline-block;
}
.media-with-text h3 a::after,
.html_content h3 a::after {
    content: '';
    position: absolute;
    width: 1.4rem;
    height: 100%;
    background-color: var(--text-color);
    -webkit-mask: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 45 19"><path stroke="%23000" stroke-width="2" d="M0-1h27.452" transform="matrix(.81709 .57651 -.79762 .60316 0 2.62)"/><path stroke="%23000" stroke-width="2" d="M0-1h27.164" transform="matrix(.79762 -.60316 .81709 .57651 22.43 18.384)"/></svg>') no-repeat center / contain;
    mask: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 45 19"><path stroke="%23000" stroke-width="2" d="M0-1h27.452" transform="matrix(.81709 .57651 -.79762 .60316 0 2.62)"/><path stroke="%23000" stroke-width="2" d="M0-1h27.164" transform="matrix(.79762 -.60316 .81709 .57651 22.43 18.384)"/></svg>') no-repeat center / contain;
    transition: 0.3s;
    transform: translateY(-50%) rotate(-90deg);
    margin-left: 0.8rem;
    transform-origin: center;
    top: calc(50% + -2px);
    right: -1.5rem;
}
.media-with-text h3 a:hover::after,
.html_content h3 a:hover::after {
    opacity: 1;
}
@media screen and (min-width: 1001px) {
    .media-with-text .right-block {
        flex: 0 0 auto;
        max-width: 68.9rem;
    }
    .media-with-text .left-block {
        flex: 1 1 auto;
    }

    .media-with-text .media {
        width: 68.9rem;
        height: 91.9rem;
    }

    .media-with-text .media img,
    .media-with-text .media video {
        position: absolute;
        width: 100%;
        height: 100%;
        z-index: 1;
        object-fit: cover;
        object-position: center;
    }

    .text-position-center .container {
        align-items: center;
    }
}
@media screen and (max-width: 1000px) {
    .media-with-text .container {
        
        row-gap: 6.4rem;
        flex-direction: column-reverse;
    }
    .media-with-text.reverse .container {
        flex-direction: column-reverse;
    }
    .media-with-text.reverse .media-container {
        margin-right: -3.6rem;
    }
    .media-with-text:not(.reverse) .media-container {
        margin-right: -3.6rem;
        margin-left: -3.6rem;
    }
    .media-with-text.reverse .left-block,
    .media-with-text .left-block {
        padding: 0;
    }

    .media-with-text .cdm-vid {
        position: relative;
        height: 63rem;
        width: 100%;
    }

    .media-with-text .media video {
        position: absolute;
        width: 100%;
        height: 100%;
        z-index: 1;
        object-fit: cover;
        object-position: center;
    }
    .media-with-text h3 a::after {
        opacity: 1;
    }
}
