/* Scope every rule to the media v5 update. Preserve the original logo proportions. */
.reference-profile-logo.mc-media-v5-logo img { width:auto; height:auto; max-width:calc(100% - 16px); max-height:80px; padding:0; object-fit:contain; filter:none; }
.reference-profile-heading.mc-media-v5-heading-wide { grid-template-columns:240px minmax(0,1fr) auto; }
.reference-profile-logo.mc-media-v5-logo-wide { width:240px; height:112px; padding:12px; }
.reference-profile-logo.mc-media-v5-logo-wide img { width:100%; max-width:100%; height:auto; max-height:80px; }
.college-logo.mc-media-v5-logo { flex-shrink:0; padding:4px; }
.college-logo.mc-media-v5-logo img { width:100%; height:100%; object-fit:contain; filter:none; }
.college-card-top.mc-media-v5-card-wide { flex-wrap:wrap; gap:12px; }
.college-logo.mc-media-v5-logo-wide { width:190px; height:62px; padding:8px; border-radius:10px; }
.mc-media-v5-card-wide .college-badges { flex:1 1 120px; }
.mc-media-v5-credit { padding-top:10px; padding-bottom:18px; font-size:12px; line-height:1.7; color:#526571; }
.mc-media-v5-credit a,.mc-media-v5-gallery a,.mc-media-v5-brand a { color:#12646c; text-decoration:underline; text-underline-offset:3px; }
.mc-media-v5-card-credit { padding:8px 20px 0; font-size:10px; line-height:1.5; color:#526571; }
.mc-media-v5-card-credit a { color:#12646c; text-decoration:underline; }
.mc-media-v5-gallery { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px; margin-top:22px; }
.mc-media-v5-gallery figure { min-width:0; margin:0; overflow:hidden; border:1px solid #dce7e9; border-radius:14px; background:#fff; }
.mc-media-v5-gallery figure:first-child { grid-column:1/-1; }
.mc-media-v5-gallery .mc-media-v5-photo { display:grid; min-height:180px; place-items:center; background:#f0f5f5; }
.mc-media-v5-gallery img { display:block; width:100%; height:auto; max-height:620px; object-fit:contain; }
.mc-media-v5-gallery figcaption { display:grid; gap:6px; padding:16px; line-height:1.6; }
.mc-media-v5-gallery figcaption strong { font-size:16px; color:#163f4b; }
.mc-media-v5-gallery figcaption small { font-size:12px; color:#526571; }
.mc-media-v5-gallery a:focus-visible,.mc-media-v5-brand a:focus-visible { outline:3px solid #d88732; outline-offset:4px; }
.mc-media-v5-brand { display:flex; align-items:center; gap:24px; margin-top:24px; padding:22px; border:1px solid #dce7e9; border-radius:14px; background:#f8fbfb; }
.mc-media-v5-brand img { display:block; width:auto; height:auto; max-width:220px; max-height:108px; object-fit:contain; flex-shrink:0; }
.mc-media-v5-brand p { margin:6px 0; font-size:13px; line-height:1.65; }
.mc-media-v5-legacy { margin-top:28px; }
@media(max-width:1000px) { .reference-profile-heading.mc-media-v5-heading-wide { grid-template-columns:220px minmax(0,1fr); } .reference-profile-logo.mc-media-v5-logo-wide { width:220px; height:96px; } }
@media(max-width:600px) { .mc-media-v5-gallery { grid-template-columns:1fr; } .mc-media-v5-brand { flex-direction:column; align-items:flex-start; padding:18px; } .reference-profile-heading.mc-media-v5-heading-wide { grid-template-columns:minmax(0,1fr); } .reference-profile-heading.mc-media-v5-heading-wide .reference-profile-identity { grid-column:1/-1; } .reference-profile-logo.mc-media-v5-logo-wide { width:224px; max-width:100%; height:80px; } .reference-profile-logo.mc-media-v5-logo img { max-height:calc(100% - 12px); } .mc-media-v5-credit { font-size:11px; } }
