/* ── Panel media — float-based inline image layout ────────────────────────
 * Used by any [data-ve-panel] section that has an optional attached image.
 * Add class "pm-outer" to the direct container you want the clearfix on.
 * ─────────────────────────────────────────────────────────────────────── */

.pm-figure {
    margin: 0;
    padding: 0;
    max-width: 100%;
    box-sizing: border-box;
}
.pm-figure.pm-left {
    float: left;
    margin: .1em 1.75rem 1rem 0;
}
.pm-figure.pm-right {
    float: right;
    margin: .1em 0 1rem 1.75rem;
}
.pm-figure img {
    display: block;
    width: 100%;
    height: auto;
    max-width: 100%;
}
.pm-caption {
    display: block;
    font-size: .8rem;
    line-height: 1.5;
    color: var(--muted, #6b7280);
    margin-top: .4rem;
    text-align: center;
}

/* Clearfix — add class pm-outer to the container wrapping content + image */
.pm-outer::after {
    content: '';
    display: block;
    clear: both;
}

/* Mobile: stack full-width above text regardless of placement */
@media (max-width: 640px) {
    .pm-figure.pm-left,
    .pm-figure.pm-right {
        float: none !important;
        width: 100% !important;
        margin: 0 0 1.4rem 0 !important;
    }
}

/* ── VE live-preview figure (injected by bridge, replaced on reload) ────── */
.ve-pm-live {
    transition: opacity .2s ease;
}
