/* Retain the existing case-study grid; size supplied media within it. */
.tb-cases .stack-media{min-width:0;background:#f1f0f3}
.tb-cases .tb-asset{width:100%;margin:0;background:#fff}
.tb-cases .tb-asset>a{display:block}
.tb-cases .tb-asset img{display:block;width:100%;height:auto;object-fit:contain}
.tb-cases .tb-tall img{max-height:680px}
.tb-cases .tb-support{margin:0;padding:18px 22px;border-top:1px solid #dcd8e3;background:#f7f6f8;font-size:13px;color:#4e3d66}
.tb-cases .tb-support summary{cursor:pointer;min-height:32px}
.tb-cases .tb-support[open]>.tb-asset{margin-top:16px}
.tb-cases .tb-motion{display:flex;flex-direction:column;align-items:center;gap:14px;padding:24px;background:#f5f3f7;width:100%}
.tb-cases .tb-motion>img{width:auto;max-width:100%;max-height:570px;object-fit:contain}
.tb-cases .tb-motion>button{min-height:48px;padding:10px 24px;border:0;border-radius:28px;background:#65289c;color:white;font:600 14px Arial,sans-serif;cursor:pointer}
.tb-cases .tb-motion .asset-caption{background:transparent;text-align:center;padding:0}
.tb-cases .ref p{max-width:900px}
.tb-cases a:focus-visible,.tb-cases button:focus-visible,.tb-cases summary:focus-visible{outline:3px solid #8123c5;outline-offset:4px}
@media(max-width:700px){
 .tb-cases .stack-media .tb-support{display:none}
 .tb-cases .tb-motion{padding:0;gap:8px;min-height:0;height:100%;overflow:hidden}
 .tb-cases .tb-motion>img{max-height:calc(100% - 60px);min-height:0;flex:1;width:100%;object-fit:contain}
 .tb-cases .tb-motion>button{flex-shrink:0;min-height:44px;padding:8px 20px}
 .tb-cases .tb-motion .asset-caption{display:none}
 .tb-cases .tb-tall img{max-height:calc(93.75vw - 66px)}
 .tb-cases[data-case="checkout"] .stack-copy h2:before{content:counter(case-step) ') '}
}
