
/**
 * This element is using CSS from the following:
 *
 * - opengemeenten_cefeaturecollapsible/Feature/Collapsible/OpenGemeentenCeFeatureCollapsible.css
 * - opengemeenten_cefeaturecollapsible/Feature/Collapsible/OpenGemeentenCeFeatureCollapsible-Header.css
 * - opengemeenten_cefeaturecollapsible/Feature/Collapsible/OpenGemeentenCeFeatureCollapsible-Panel.css
 *
 * Variables can be set there globally or override them here!
 */

.ce-textpic {
    --font-size: var(--root-font-size); /* Reset, use REM */
}

.ce-textpic__header {
    /*
    --color-text: initial;
    --font-family: initial;
    --font-size: initial;
    --font-style: initial;
    --font-weight: initial;
    --line-height: initial;
     */
}

.ce-textpic .ce-bodytext {
    --color: var(--root-color-text);
    --font-family: inherit;
    --font-size: 1em; /* Mobile 16px / > Mobile 18px */
    --font-style: normal;
    --font-weight: var(--root-font-weight--normal);
    --line-height: inherit;
}

.ce-textpic:after {
    content: '';
    display: block;
    height: 0;
    clear: both;
}

.ce-above .ce-gallery + .ce-bodytext,
.ce-below .ce-bodytext + .ce-gallery,
.ce-center .ce-gallery,
.ce-intext-nowrap .ce-gallery {
    margin-top: 1rem;
}

.ce-bodytext ol,
.ce-bodytext ul {
    overflow: auto;
}

@media (min-width: 30rem) {
    .ce-intext-nowrap {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 1rem;
        align-items: start;
    }

    .ce-intext.ce-left .ce-gallery,
    .ce-intext.ce-right .ce-gallery {
        width: calc(50% - 0.5rem);
        margin-bottom: 1rem;
    }

    .ce-intext.ce-left .ce-gallery {
        float: left;
        margin-right: 1rem;

    }

    .ce-intext.ce-right .ce-gallery {
        float: right;
        margin-left: 1rem;
    }
}

.ce-textpic {
    font-size: var(--font-size, 1rem);
}

.ce-textpic__header {
    color: var(--color-text, black);
    font-family: var(--font-family, inherit);
    font-size: var(--font-size, 1.777em);
    font-weight: var(--font-weight, bold);
    font-style: var(--font-style, normal);
    line-height: var(--line-height, inherit);
}

.ce-textpic .ce-bodytext {
    color: var(--color, black);
    font-family: var(--font-family, inherit);
    font-size: var(--font-size, 1em);
    font-weight: var(--font-weight, normal);
    font-style: var(--font-style, normal);
    line-height: var(--line-height, inherit);
}
