/* Default styling for the positions of the gallery settings */
img,
iframe {
    max-width: 100%;
}
.ce-gallery figure {
    display: table;
    margin: 0 auto 1rem auto;
}
.ce-gallery figure:not(.image) {
    width: 100%;
    height: 100%;
}
.ce-gallery img {
    display: block;
}

iframe {
    border-width: 0;
}

.ce-image .ce-gallery {
    margin-bottom: 0;
}

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

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

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

.ce-gallery .row {
    align-items: flex-end;
}

@container (min-width: 504px) {
    .ce-right .ce-column,
    .ce-right .ce-gallery {
        float: right;
    }
    .ce-right .ce-gallery {
        max-width: 40%;
        margin-left: 2rem;
        width: 100%;
    }
    .ce-right::after,
    .banner:after {
        display: table;
        clear: right;
        content: '';
    }
    .ce-nowrap {
        display: -webkit-box;
        display: -ms-flexbox;
        display: -webkit-flex;
        display: flex;
        margin-top: 2rem;
    }
    .ce-nowrap.ce-right {
        flex-direction: row-reverse;
    }
    .ce-nowrap .ce-bodytext {
        min-width: 56%;
        width: fit-content;
    }
    .ce-nowrap .ce-bodytext *:first-child {
        margin-top: 0;
    }
    .ce-left::after {
        display: table;
        clear: left;
        content: '';
    }
    .ce-left .ce-gallery,
    .ce-left .ce-column {
        float: left;
    }
    .ce-left .ce-gallery {
        max-width: 40%;
        margin-right: 2rem;
    }
}
