/* ClinicaMOB v248 — homepage specialty + market balance */
.cm-fixed-home .cm-v219-specialty-showcase .cm-v219-photo-grid{
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:14px!important;
}
.cm-fixed-home .cm-v219-specialty-showcase .cm-v219-photo-grid>a{min-width:0!important;}

.cm-fixed-home .cm-v219-market-showcase{
  grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr)!important;
  gap:22px!important;
  align-items:stretch!important;
}
.cm-fixed-home .cm-v219-geo-panel{
  height:100%!important;
  min-height:270px!important;
  align-content:center!important;
}
.cm-fixed-home .cm-v219-market-cards{
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  grid-template-rows:repeat(3,minmax(0,1fr))!important;
  gap:10px!important;
  align-content:stretch!important;
}
.cm-fixed-home .cm-v219-market-cards a{
  min-height:0!important;
  height:100%!important;
  padding:14px 15px!important;
  justify-content:center!important;
}
.cm-fixed-home .cm-v219-market-cards b{font-size:12px!important;line-height:1.25!important;}
.cm-fixed-home .cm-v219-market-cards span{font-size:9px!important;margin-top:5px!important;}

@media(max-width:900px){
  .cm-fixed-home .cm-v219-specialty-showcase .cm-v219-photo-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;}
  .cm-fixed-home .cm-v219-market-showcase{grid-template-columns:1fr!important;}
  .cm-fixed-home .cm-v219-geo-panel{min-height:auto!important;}
  .cm-fixed-home .cm-v219-market-cards{grid-template-columns:repeat(3,minmax(0,1fr))!important;grid-template-rows:auto!important;}
  .cm-fixed-home .cm-v219-market-cards a{min-height:78px!important;}
}
@media(max-width:620px){
  .cm-fixed-home .cm-v219-specialty-showcase .cm-v219-photo-grid{grid-template-columns:1fr 1fr!important;}
  .cm-fixed-home .cm-v219-market-cards{grid-template-columns:1fr 1fr!important;}
}
@media(max-width:420px){
  .cm-fixed-home .cm-v219-market-cards{grid-template-columns:1fr!important;}
}
