.ce-textpic, .ce-nowrap .ce-bodytext, .ce-gallery, .ce-row, .ce-uploads li, .ce-uploads div {
    overflow: hidden;
}

.ce-gallery figure {
    display: table;
    margin: 0;
}

.ce-gallery figcaption {
    display: table-caption;
    caption-side: bottom;
}

.ce-gallery img {
    display: inline-block;
    max-width: 100%;
    height: auto;
}

.ce-gallery iframe {
    border-width: 0;
}

.ce-intext.ce-right .ce-gallery, .ce-intext.ce-left .ce-gallery, .ce-above .ce-gallery {
    margin-bottom: 16px;
}

.ce-below .ce-gallery {
    margin-top: 16px;
}

.ce-row {
    margin-bottom: 16px;
}

.ce-row:last-child {
    margin-bottom: 0;
}

.ce-above .ce-bodytext {
    clear: both;
}

.ce-intext.ce-left ol, .ce-intext.ce-left ul {
    padding-left: 40px;
    overflow: auto;
}

@include breakpoint($mobile-m) {
    .ce-left .ce-gallery {
        float: left;
    }

    .ce-left .ce-gallery {
        float: left;
        width: 50%;
    }
    .ce-right .ce-gallery {
        float: right;
        width: 50%;
    }

    .ce-intext.ce-right .ce-gallery {
        margin-left: 16px;
    }
    .ce-intext.ce-left .ce-gallery {
        margin-right: 16px;
    }

    .ce-column {
        margin-right: 16px;
    }
    .ce-column:last-child {
        margin-right: 0;
    }
}

.ce-media {
    text-align: center;

    video, img {
        display: inline-block;
        max-width: 100%;
        height: auto;
    }

    a:after {
        content: normal;
    }
}

.responsive-video {
    position: relative;
    padding-top: 56.25%;
    height: auto;
    overflow: hidden;

    &.noTopPadding {
        padding-top: 0;
    }
}

.responsive-video iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.uc-embedding-container {
    margin-top: -56.25%;
    overflow: hidden;
}
