.cft-responsive-img {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    padding: 10px;
    box-sizing: border-box;
    border-radius: 8px; /* added globally */
}

.common-summary-wrapper img,
.table-responsive img {
    object-fit: cover;
    aspect-ratio: auto;
    height: auto;
    max-width: 100%;
    border-radius: 8px; /* ensure rounded corners */
    margin: 1.5rem 0;
}

.image-wrapper-wide {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px;
    border-radius: 8px; /* ensure wrapper itself rounds */
}


/* SAFETY FIX: limit visually oversized images without affecting normal ones */
.image-wrapper-wide img,
.image-wrapper-medium2 img {
    max-height: min(420px, 65vh);
    width: auto;
    max-width: 100%;
    object-fit: contain;
}


/* ==================================================
   ADDITIVE IMAGE SIZE UTILITIES (OPT-IN ONLY)
   Does NOT touch existing selectors
   ================================================== */

/* Medium-width editorial images */
.cft-img-medium {
    max-width: 720px;
    max-height: 360px;
    width: 100%;
    height: auto;
    margin: 1.5rem auto;
    display: block;
    object-fit: contain;
    border-radius: 8px;
}

/* Small / inline support images */
.cft-img-small {
    max-width: 420px;
    width: 42%;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
}

/* Alignment helpers (desktop only) */
.cft-float-left {
    float: left;
    margin: 0 1.5rem 1rem 0;
}

.cft-float-right {
    float: right;
    margin: 0 0 1rem 1.5rem;
}

/* Mobile safety (no overrides, only scoped helpers) */
@media (max-width: 768px) {
    .cft-img-small {
        width: 100%;
        max-width: 100%;
        margin: 1rem auto;
        display: block;
        float: none;
    }

    .cft-float-left,
    .cft-float-right {
        float: none;
    }
}

/* ======================================
   AIR MOBILITY – PAGE-SPECIFIC IMAGE FIX
   ADDITIVE ONLY
   ====================================== */

.air-mobility-hero img {
    max-height: 360px;
    width: 100%;
    object-fit: contain;
}

.air-mobility-inline img {
    max-height: 260px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
}


/* ======================================
   EV PAGE – LIMIT INLINE IMAGE WIDTH
   ADDITIVE ONLY (NO REMOVALS)
   ====================================== */

/* Second & third images (inline content images) */
.ev-inline img {
    max-height: 260px;      /* already fine */
    max-width: 420px;       /* NEW: prevents wide stretching */
    width: 100%;
    object-fit: contain;
}

/* Extra safety for small screens */
@media (max-width: 768px) {
    .ev-inline img {
        max-width: 100%;
    }
}
