/*
 * Minimal block compatibility for templates ported from WordPress.
 * Keep only the layout primitives still referenced by current Wagtail templates.
 */

.layout-columns {
    display: flex;
}

.layout-columns > .layout-column {
    flex-grow: 1;
    min-width: 0;
}

.flow-stack > * {
    margin-block-start: 0;
}

.flow-stack > * + * {
    margin-block-start: 1em;
}

.section-heading {
    margin-top: 0;
}

.text-left {
    text-align: left;
}

.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.media-frame {
    margin: 0;
}

.media-frame picture,
.media-frame img {
    display: block;
}

.media-frame img {
    max-width: 100%;
    height: auto;
}

.content-table {
    margin: 2.4rem 0;
}

.content-table table {
    width: 100%;
    border-collapse: collapse;
}

.content-table table.table-fixed-layout {
    table-layout: fixed;
}

.content-table th,
.content-table td {
    vertical-align: top;
}

.content-table thead th,
.content-table tfoot td {
    font-weight: 700;
}

@media (max-width: 767px) {
    .layout-columns {
        flex-wrap: wrap !important;
    }

    .layout-columns > .layout-column {
        flex-basis: 100% !important;
    }
}

@media (min-width: 768px) {
    .layout-columns {
        flex-wrap: nowrap !important;
    }
}

mark.has-black-color {
    color: #222;
    background: transparent;
}

mark.has-inline-color {
    background: transparent;
    color: inherit;
}
