/* case-studies page only */

.article-content > h2.wp-block-heading{
  margin:34px 0 14px !important;
  font-size:18px !important;
  font-weight:700 !important;
  color:#1f2328 !important;
  line-height:1.35 !important;
  scroll-margin-top:90px;
  background:transparent !important;
}
.article-content > h2.wp-block-heading:empty{display:none!important}

.article-content .wp-block-query.mts-cases .wp-block-post-template{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
}

.mts-cases{--cs-brand:#863135;--cs-ink:#1f2328;--cs-line:#e8eaed;--cs-bg:#fff;font-size:15px;line-height:1.75;color:var(--cs-ink)}
.mts-cases *{box-sizing:border-box}
.mts-cases-lead{margin:0 0 22px;padding:24px 22px;border-radius:4px;background:linear-gradient(135deg,#faf7f7 0%,#f3ecec 55%,#efe6e6 100%);border:1px solid #eadfdf;position:relative}
.mts-cases-lead:before{content:"";position:absolute;left:0;top:0;bottom:0;width:4px;background:var(--cs-brand)}
.mts-cases-lead p{margin:0;font-size:15px;line-height:1.8;color:#3d4450}
.mts-cases-nav{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 28px;padding:0;list-style:none}
.mts-cases-nav a{display:inline-block;padding:8px 14px;border:1px solid #e2d5d5;border-radius:4px;background:var(--cs-bg);color:var(--cs-brand);font-size:13px;font-weight:600;letter-spacing:.04em;text-decoration:none;transition:background .2s ease,border-color .2s ease,color .2s ease,transform .2s ease}
.mts-cases-nav a:hover{background:var(--cs-brand);border-color:var(--cs-brand);color:#fff;transform:translateY(-1px)}

.mts-cases .wp-block-query{margin:0 0 8px}
.mts-cases .wp-block-post-template{gap:12px!important;margin:0!important;padding:0!important}
.mts-cases .wp-block-post{margin:0!important;list-style:none}

.mts-cases .mts-case-card{
  display:flex!important;
  align-items:center!important;
  gap:14px!important;
  min-height:84px;
  padding:12px 14px!important;
  margin:0!important;
  background:var(--cs-bg);
  border:1px solid var(--cs-line);
  border-radius:6px;
  transition:border-color .2s ease,box-shadow .2s ease,transform .2s ease;
}
.mts-cases .mts-case-card:hover{
  border-color:#d4bcbc;
  box-shadow:0 6px 16px rgba(134,49,53,.08);
  transform:translateY(-1px);
}

/* logo / thumb plate */
.mts-cases .wp-block-post-featured-image{
  flex:0 0 120px!important;
  width:120px!important;
  max-width:120px!important;
  min-width:120px!important;
  height:56px!important;
  margin:0!important;
  display:flex!important;
  align-items:center;
  justify-content:center;
  background:#faf8f8;
  border:1px solid #ebe6e6;
  border-radius:6px;
  overflow:hidden;
  padding:0!important;
}
.mts-cases .wp-block-post-featured-image a{
  display:flex!important;
  align-items:center;
  justify-content:center;
  width:100%;
  height:100%;
  padding:8px 10px;
  box-sizing:border-box;
}
.mts-cases .wp-block-post-featured-image img,
.mts-cases .wp-block-post-featured-image img[style]{
  display:block!important;
  width:auto!important;
  height:auto!important;
  max-width:100%!important;
  max-height:40px!important;
  object-fit:contain!important;
  object-position:center!important;
  margin:0 auto!important;
  border:0!important;
  border-radius:0!important;
}

/* photo-like thumbs fill the plate */
.mts-cases .wp-block-post-featured-image a:has(img[src*="pexels"]),
.mts-cases .wp-block-post-featured-image a:has(img[src*="collage"]),
.mts-cases .wp-block-post-featured-image a:has(img[src*="300x200"]),
.mts-cases .wp-block-post-featured-image a:has(img[src*="1536x864"]){
  padding:0;
  background:#eee;
}
.mts-cases .wp-block-post-featured-image img[src*="pexels"],
.mts-cases .wp-block-post-featured-image img[src*="collage"],
.mts-cases .wp-block-post-featured-image img[src*="300x200"],
.mts-cases .wp-block-post-featured-image img[src*="1536x864"]{
  width:100%!important;
  height:100%!important;
  max-width:none!important;
  max-height:none!important;
  object-fit:cover!important;
}

.mts-cases h4.wp-block-post-title{
  flex:1 1 auto;
  min-width:0;
  margin:0!important;
  padding:0!important;
  border:0!important;
  font-size:14px!important;
  font-weight:650!important;
  line-height:1.5!important;
  color:#1f2328!important;
  background:transparent!important;
}
.mts-cases h4.wp-block-post-title:before,
.mts-cases h4.wp-block-post-title:after{display:none!important;content:none!important}
.mts-cases h4.wp-block-post-title a{color:#1f2328!important;text-decoration:none!important}
.mts-cases h4.wp-block-post-title a:hover{color:#863135!important}

@media (max-width:720px){
  .mts-cases-lead{padding:18px 16px}
  .article-content .wp-block-query.mts-cases .wp-block-post-template,
  .mts-cases .wp-block-post-template{grid-template-columns:1fr!important}
  .mts-cases .wp-block-post-featured-image{
    flex-basis:104px!important;
    width:104px!important;
    max-width:104px!important;
    min-width:104px!important;
    height:50px!important;
  }
  .mts-cases h4.wp-block-post-title{font-size:13px!important}
}
