/* Share heading, image and description rows across neighboring cards. */
#research-grid{
  display:grid;
  grid-template-columns:minmax(0,1fr);
  gap:4rem;
}
#research-grid > .research-card{
  display:grid;
  grid-template-rows:auto auto auto;
  min-width:0;
}
.research-card__header{
  display:grid;
  grid-template-columns:auto minmax(0,1fr) auto;
  align-items:baseline;
  align-content:start;
  column-gap:.75rem;
  padding-bottom:1.25rem;
}
.research-card__title{
  margin:0;
  line-height:1.25;
  overflow-wrap:normal;
}
.research-card__arrow{
  align-self:start;
  margin-top:.3rem;
}
.research-card__media{
  align-self:start;
  width:100%;
  aspect-ratio:2/3;
  margin-top:1.5rem;
}
.research-card__description{
  margin:1.25rem 0 0;
}
@media (min-width:768px){
  #research-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
    column-gap:3rem;
    row-gap:0;
  }
  #research-grid > .research-card{
    grid-row:span 3;
    grid-template-rows:subgrid;
  }
}
@media (min-width:768px){
  #research-grid > .research-card:nth-child(-n+2) .research-card__description{
    padding-bottom:3rem;
  }
}
@media (min-width:1024px){
  #research-grid{
    grid-template-columns:repeat(4,minmax(0,1fr));
    column-gap:1.5rem;
  }
  #research-grid > .research-card:nth-child(-n+2) .research-card__description{
    padding-bottom:0;
  }
  html[lang="zh-CN"] .research-card__header{
    column-gap:.4rem;
  }
  html[lang="zh-CN"] .research-card__title{
    font-size:1.125rem;
    white-space:nowrap;
  }
  html[lang="en"] .research-card__description{
    font-size:1.125rem;
  }
  html[lang="zh-CN"] .research-card__description{
    font-size:.875rem;
    white-space:normal;
  }
}

/* Explicit hover motion for dynamically rendered research cards. */
#research-grid > a img{
  transform:scale(1);
  transform-origin:center;
  transition:transform 700ms cubic-bezier(.2,.65,.3,1);
  will-change:transform;
}
#research-grid > a:hover img,
#research-grid > a:focus-visible img{
  transform:scale(1.1);
}
/* Crop to fill the frame with a deliberate focal point for each direction. */
#research-grid > a img{object-fit:cover}
#research-grid > a:nth-child(2) img{object-position:60% 62%}
#research-grid > a:nth-child(3) img{object-position:50% 48%}
#research-grid > a:nth-child(4) img{object-position:25% 50%}
