/* img-1118 layout and image layer. Loaded last. Keeps each site's own fonts, colors and template. */
img{max-width:100%;height:auto}
figure:has(> picture img, > img, > a img, > span img){margin-block:1.25rem}
/* comfortable reading width, about 60 to 75 characters */
/* reading width ~70 characters for this site font */
:is(main,article,.prose) :is(p,li,dd,blockquote):not(.i18-free){max-inline-size:31.4em!important}
:where(main,article) :where([style*="text-align:center"],[style*="text-align: center"],.center,.text-center,[class*="hero"],[class*="cta"],[class*="lede"],[class*="intro"]) :where(p,li){margin-inline:auto}
:where(main,article) :where(p,li)[style*="text-align:center"],:where(main,article) :where(p,li)[style*="text-align: center"]{margin-inline:auto}
/* content logos: small, on a neutral plate so they read in light and dark mode */
img.i18-logo{width:auto!important;height:auto!important;max-height:72px!important;max-width:min(100%,220px)!important;object-fit:contain!important;aspect-ratio:auto!important;background:#fff;padding:10px 14px;border-radius:8px;box-sizing:content-box;display:inline-block;vertical-align:middle}
/* section photos: no distortion, even crops in rows */
:where(main,article) figure img:not([src$=".svg"]):not(.i18-logo){object-fit:cover}
/* phones */
@media (max-width:640px){
  :where(main,article) figure{margin-inline:0}
  :where(main,article) img{max-width:100%}
}
/* video thumbnails: full 16:9 frame, nothing cropped */
img[src*="/i1118/video-"]{aspect-ratio:16/9!important;object-fit:cover!important;width:100%!important;height:auto!important}
/* QR codes: scannable but not page-dominating */
img[src*="qr"]{max-width:180px!important;height:auto!important;margin-inline:auto;display:block}
/* logos inside cards: same tile shape as neighbouring photos */
:is(.card,.ph,figure.card) img.i18-logo{width:100%!important;max-width:100%!important;max-height:none!important;aspect-ratio:4/3!important;object-fit:contain!important;padding:12% 14%!important;box-sizing:border-box!important;display:block}
/* Center of Excellence seals: an even grid of small badges with the city under each */
ul:has(> li > a > img[src*="/brand/coe/"]){display:grid!important;grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:1.25rem 1rem;list-style:none;padding:0;margin-inline:0}
ul:has(> li > a > img[src*="/brand/coe/"]) > li{max-inline-size:none!important;margin:0}
ul:has(> li > a > img[src*="/brand/coe/"]) > li > a{display:flex;flex-direction:column;align-items:center;gap:.5rem;text-align:center}
img[src*="/brand/coe/"]{width:96px!important;height:96px!important;object-fit:contain}
ul.coe-row > li{display:flex;flex-direction:column;align-items:center;text-align:center;gap:.5rem}
/* target size: booking link meets 24px minimum */
a[href*="calendly.com/"]{display:inline-block;min-block-size:24px;line-height:24px}
/* lightbox placeholder has no image until opened */
.lb-stage img:not([src]){display:none}
.pod-links{max-inline-size:none!important}
.pod-links a{display:inline-block;min-block-size:24px;line-height:24px}
