/* Persistent provenance sits in normal document flow, outside image crops. */
.fw-ai-media {
    display: inline-block;
    vertical-align: top;
    max-width: 100%;
    min-width: 0;
    text-indent: 0;
}
.fw-ai-media > picture { display: block; }
.fw-ai-media > img, .fw-ai-media > picture > img { display: block; }
body .fw-ai-disclosure {
    position: static;
    display: block;
    box-sizing: border-box;
    width: 100%;
    margin: 0;
    padding: 7px 10px;
    background: #f1f5f7;
    color: #123d52;
    font: 500 12px/1.5 Inter, sans-serif;
    letter-spacing: 0;
    text-align: left;
    text-transform: none;
    white-space: normal;
}

/* Preserve the complete reception sign and the supplied trailer illustration. */
html body img[src*="empfang-logo-raeumlichkeiten"],
html body img[src*="wittmann-be-b96-anhaenger-ki-symbolbild"],
body.home .elementor-995 .fw-home-reception-photo img[src*="empfang-logo-raeumlichkeiten"],
body.home .elementor-995 .fw-home-location img[src*="empfang-logo-raeumlichkeiten"],
.page-id-2745 .fw-room-gallery .gallery-icon img[src*="empfang-logo-raeumlichkeiten"] {
    display: block !important;
    width: 100% !important;
    max-width: 380px !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    aspect-ratio: auto !important;
    object-fit: contain !important;
    object-position: center !important;
    margin-inline: auto !important;
}
/* Explicit ratios also prevent the browser's lazy-image placeholder from
   reserving 1500px when WordPress emits sizes="auto". */
html body img[src*="empfang-logo-raeumlichkeiten"] {
    aspect-ratio: 1100 / 1571 !important;
}
html body img[src*="wittmann-be-b96-anhaenger-ki-symbolbild"] {
    aspect-ratio: 2 / 3 !important;
}
body figure:has(img[src*="empfang-logo-raeumlichkeiten"]),
body figure:has(img[src*="wittmann-be-b96-anhaenger-ki-symbolbild"]),
body .fw-ai-media:has(img[src*="wittmann-be-b96-anhaenger-ki-symbolbild"]),
body .wm-hero-media:has(img[src*="empfang-logo-raeumlichkeiten"]),
body .wm-hero-media:has(img[src*="wittmann-be-b96-anhaenger-ki-symbolbild"]),
body .fw-photo-story-image:has(img[src*="empfang-logo-raeumlichkeiten"]) {
    box-sizing: border-box;
    width: 100%;
    max-width: 380px;
    margin-inline: auto;
}
body .elementor-widget-container:has(img[src*="empfang-logo-raeumlichkeiten"]) > .elementor-image-caption,
body figure:has(img[src*="empfang-logo-raeumlichkeiten"]) figcaption,
body figure:has(img[src*="wittmann-be-b96-anhaenger-ki-symbolbild"]) figcaption {
    box-sizing: border-box;
    width: 100%;
    max-width: 380px;
    margin-inline: auto;
}
.page-id-2745 .fw-room-gallery .gallery-item:has(img[src*="empfang-logo-raeumlichkeiten"]) {
    width: 100% !important;
    max-width: 380px !important;
    margin-inline: auto !important;
    justify-self: center;
}
body .wm-hero-media:has(img[src*="wittmann-be-b96-anhaenger-ki-symbolbild"]) .wm-ai-badge,
body .wm-split-media:has(img[src*="wittmann-be-b96-anhaenger-ki-symbolbild"]) .wm-ai-badge {
    position: static;
    display: block;
    margin: 0;
    border: 0;
    border-radius: 0;
    padding: 7px 10px;
    background: #f1f5f7;
    color: #123d52;
    backdrop-filter: none;
}
@media (forced-colors: active) {
    body .fw-ai-disclosure { color: CanvasText; background: Canvas; border: 1px solid CanvasText; }
}

/* Supplied practice portraits retain the complete riding posture and boots. */
html body img[src*="motorradfahrschule-muenchen-praxis-"] {
    display:block!important;width:100%!important;max-width:380px!important;
    height:auto!important;min-height:0!important;max-height:none!important;
    object-fit:contain!important;object-position:center!important;
    margin-inline:auto!important;border-radius:18px;
    aspect-ratio:941 / 1672!important;
}
html body img[src*="praxis-uebungsfahrt-ki-bearbeitet"] { aspect-ratio:940 / 1672!important; }
html body img[src*="praxis-pylonen-ki-bearbeitet"] { aspect-ratio:3 / 4!important; }
body .fw-motorcycle-practice-photo figure,
body .fw-motorcycle-practice-photo > .elementor-widget-container {
    max-width:380px;margin-inline:auto;
}
body .fw-motorcycle-practice-photo figcaption {
    font:500 12px/1.5 Inter,sans-serif;color:#123d52;text-align:left;margin-top:10px;
}
body .fw-first-ride-gallery > .elementor-container {
    display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px;
}
body .fw-first-ride-gallery > .elementor-container > .elementor-column { width:100%!important;min-width:0; }
body .fw-first-ride-gallery .elementor-widget-wrap { padding:0!important; }
html body img[src*="mwz-first-ride-muenchen-"] {
    display:block;width:100%!important;height:auto!important;min-height:0!important;
    aspect-ratio:3 / 4!important;object-fit:contain!important;border-radius:18px;
}
body .fw-first-ride-gallery figcaption { font:400 13px/1.6 Inter,sans-serif;color:#496677;text-align:left;margin-top:10px; }
@media(max-width:767px) {
    body .fw-first-ride-gallery > .elementor-container { grid-template-columns:minmax(0,1fr);gap:28px; }
    body .fw-first-ride-gallery .elementor-widget-image { width:100%;max-width:380px;margin-inline:auto; }
}
