/* Explicit heights prevent theme img height:auto from defeating aspect-ratio. */
.ut-card .ut-img { position:relative; width:100%; aspect-ratio:16/9; overflow:hidden; background:#f1f3f3; isolation:isolate; }
.ut-card .ut-img img, .ut-card .ut-img img.ut-logo {
 position:absolute; inset:0; box-sizing:border-box; display:block; width:100%!important; height:100%!important;
 max-width:100%; aspect-ratio:auto!important; padding:0; object-fit:contain; object-position:center;
 background:#f1f3f3; transform:none!important; padding:0!important;
}
.ut-card .ut-img img[src*="hero-"], .ut-card .ut-img img[src*="side-by-side"],
.ut-card .ut-img img[src*="editorial"] { object-fit:cover; background:#10262b; }
/* Legacy logo assets become intentional market cards, with the entire logo visible. */
.ut-card .ut-img:has(img[src*="wikimedia"]) {
 background:radial-gradient(ellipse at 80% 0%,#36565e,transparent 60%),linear-gradient(135deg,#081d23,#17343b);
 border-bottom:3px solid #d8ad50;
}
.ut-card .ut-img img[src*="wikimedia"] {
 inset:16% 23% 24%; width:54%!important; height:60%!important; object-fit:contain;
 background:#fff; border-radius:8px; padding:12px!important;
}
.ut-card .ut-img:has(img[src*="wikimedia"])::after {
 content:"CRYPTO MARKETS"; position:absolute; bottom:5%; left:0; right:0; text-align:center;
 color:#ead19b; font:700 clamp(9px,1vw,11px)/1.2 Arial,sans-serif; letter-spacing:.15em;
}
.ut-side .ut-img:has(img[src*="wikimedia"])::after { display:none; }
.ut-side .ut-img img[src*="wikimedia"] { inset:15%; width:70%!important; height:70%!important; padding:5px!important; }
/* Theme archives and article headers use the same uncropped, bounded frame. */
body.category #main .post-cover-image, body.tag #main .post-cover-image, body.blog #main .post-cover-image,
body.single-post #main .post-cover-image { background:#f1f3f3; overflow:hidden; }
body.category #main .post-cover-image img, body.tag #main .post-cover-image img,
body.blog #main .post-cover-image img, body.single-post #main .post-cover-image img {
 display:block; box-sizing:border-box; width:100%!important; height:auto!important; aspect-ratio:16/9;
 object-fit:contain; object-position:center; max-height:640px; margin:0 auto;
}
@media(prefers-reduced-motion:reduce) { .ut-card .ut-img img { transition:none; } }
body.single-post .elementor-widget-theme-post-featured-image img {
 display:block; width:100%!important; height:auto!important; aspect-ratio:16/9;
 object-fit:contain; max-height:640px; background:#f1f3f3; margin:auto;
}
