/* Four compact, equal-height Webdesign references per desktop row. */
.webref-main .webref-grid-modern{
  display:grid!important;
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:16px!important;
  align-items:stretch;
}
.webref-main .webref-grid-modern .webrefcard-placeholder{min-width:0}
.webref-main .webref-grid-modern .webrefcard-modern,
.webref-main .webref-grid-modern .web-ref-card{
  display:flex;
  flex-direction:column;
  min-width:0;
  overflow:hidden;
  border-radius:14px;
  border:1px solid #e0e9f3;
  box-shadow:0 8px 24px rgba(11,35,60,.06);
}
.webref-main .webref-grid-modern .ref-image{
  display:block;
  height:155px!important;
  min-height:155px!important;
  overflow:hidden;
}
.webref-main .webref-grid-modern .ref-image img{
  width:100%;height:100%;object-fit:cover;object-position:top;
}
.webref-main .webref-grid-modern .ref-card-body{
  display:flex;
  flex:1;
  flex-direction:column;
  min-height:0!important;
  padding:15px 16px 17px;
}
.webref-main .webref-grid-modern .ref-card-body small{font-size:11px;overflow-wrap:anywhere}
.webref-main .webref-grid-modern .ref-card-body h2{font-size:17px;line-height:1.3;margin:8px 0;overflow-wrap:anywhere}
.webref-main .webref-grid-modern .ref-card-body p{font-size:12px;line-height:1.5;margin:0 0 12px}
.webref-main .webref-grid-modern .ref-card-link{margin-top:auto;font-size:12px}
.webref-main .webref-grid-modern .ref-contact-card{min-height:100%;border-radius:14px}
.webref-main .webref-grid-modern .ref-contact-card>a{min-height:290px!important;padding:20px 18px}
.webref-main .webref-grid-modern .ref-contact-card h2{font-size:21px;line-height:1.18}
.webref-main .webref-grid-modern .ref-contact-card p{font-size:12px;margin-bottom:18px}
@media(max-width:1050px){.webref-main .webref-grid-modern{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:580px){.webref-main .webref-grid-modern{grid-template-columns:1fr!important;gap:12px!important}.webref-main .webref-grid-modern .ref-image{height:190px!important;min-height:190px!important}}
