/* CMS image defaults */
.cms-content img {
    display: block;
    max-width: 100%;
    height: auto;
}

/* Default: always full width */
.cms-content img.cms-image-full {
    width: 100%;
    height: auto;
}

/* Centered, constrained by original image size */
.cms-content img.cms-image-constrained {
    width: auto;
    max-width: 100%;
    height: auto;
    margin-left: auto;
    margin-right: auto;
}

/* Float left: 50% desktop, full width on smaller screens */
.cms-content img.cms-image-fifty-left {
    width: 50%;
    max-width: 50%;
    height: auto;
    float: left;
    margin: 0.35em 1.5em 1em 0;
}

/* Float right: 50% desktop, full width on smaller screens */
.cms-content img.cms-image-fifty-right {
    width: 50%;
    max-width: 50%;
    height: auto;
    float: right;
    margin: 0.35em 0 1em 1.5em;
}

/* Float left: 30% desktop, full width on smaller screens */
.cms-content img.cms-image-thirty-left {
    width: 30%;
    max-width: 30%;
    height: auto;
    float: left;
    margin: 0.35em 1.5em 1em 0;
}

/* Float right: 30% desktop, full width on smaller screens */
.cms-content img.cms-image-thirty-right {
    width: 30%;
    max-width: 30%;
    height: auto;
    float: right;
    margin: 0.35em 0 1em 1.5em;
}

.cms-content::after {
    content: "";
    display: block;
    clear: both;
}

.cms-clear {
    display: block;
    clear: both;
    height: 0;
    margin: 0;
    padding: 0;
    line-height: 0;
    font-size: 0;
}

@media (max-width: 500px) {
    .cms-content img.cms-image-fifty-left,
    .cms-content img.cms-image-fifty-right,
    .cms-content img.cms-image-thirty-left,
    .cms-content img.cms-image-thirty-right {
        float: none;
        width: 100%;
        max-width: 100%;
        margin: 1em 0;
    }
}

.cms-content .video-iframe-wrapper {
    margin-top: 0;
    margin-bottom: 0;
}