/* ---------- Client logo tiles (Home "Organisations we have built for" row, About/Work .logowall) ----------
   Logo files are pre-trimmed to their artwork with even padding by _tools/logo_fill.py, so one rule fits all:
   wide logos fill the width, square logos (MSPHC, MeshTribe) fill the height. Text tiles and the brand row are unchanged. */
.marq:not(.brands) .mq-set{gap:12px;padding-right:12px}
.logowall{gap:12px}
.marq:not(.brands) .lg:not(.txt),.logowall .lg:not(.txt){display:flex;align-items:center;justify-content:center;padding:0}
.marq:not(.brands) .lg:not(.txt) img,.logowall .lg:not(.txt) img,
.marq:not(.brands) .lg img[src*="mphc"]{min-width:0;max-width:84%;max-height:72%;width:auto;height:auto;object-fit:contain}
/* logo + caption ("via KRS Infoserve"): the page styles pin the caption to the bottom and reserve 26px for it;
   the logo uses the rest of the same-size tile */
.logowall .lg.via-t:not(.txt){padding:0 0 26px}
.logowall .lg.via-t:not(.txt) img,.logowall .lg.via-t img[src*="mphc"]{max-height:calc(100% - 8px)}
/* logos designed on a black panel: the tile takes the panel colour (logo_fill levels panels to #0A0A0A) */
.logowall .lg.dk{background:#0A0A0A;border-color:#0A0A0A}
.logowall .lg.dk .via{color:rgba(255,255,255,.72)}
