.falcon-ew-pd-element {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.falcon-ew-pd-element--right {
    flex-direction: row-reverse;
}

/*
 * width is a plain, non-flex-basis property here on purpose -- the
 * widget's Image Width style control sets `width` directly, and this
 * only works as long as flex-basis stays `auto` so the browser falls
 * back to `width` for sizing. flex-grow/shrink are 0 so the Elementor
 * control's percentage is the actual rendered width, not just a
 * starting point something else can grow or shrink away from.
 */
.falcon-ew-pd-image {
    flex: 0 0 auto;
    width: 45%;
    min-width: 240px;
}

.falcon-ew-pd-content {
    flex: 1 1 0%;
    min-width: 240px;
}

.falcon-ew-pd-element--no-image .falcon-ew-pd-content {
    flex: 1 1 auto;
    width: 100%;
}

.falcon-ew-pd-image img {
    display: block;
    width: 100%;
    height: auto;
}

.falcon-ew-pd-title {
    margin: 0 0 8px;
}

.falcon-ew-pd-subtitle {
    margin: 0 0 12px;
    opacity: 0.75;
}

.falcon-ew-pd-body {
    margin-bottom: 20px;
}

.falcon-ew-pd-body p:last-child {
    margin-bottom: 0;
}

.falcon-ew-pd-cta {
    display: inline-block;
    padding: 12px 28px;
    text-decoration: none;
}

/*
 * Always stack on narrow screens regardless of which side the image was
 * on -- !important overrides both the row-reverse rule above and the
 * Elementor-generated inline width rule, which otherwise wins on
 * specificity alone and would leave a stacked image rendered at its
 * desktop percentage width instead of filling the column.
 */
@media (max-width: 767px) {
    .falcon-ew-pd-element,
    .falcon-ew-pd-element--right {
        flex-direction: column;
    }

    .falcon-ew-pd-image,
    .falcon-ew-pd-content {
        width: 100% !important;
    }
}
