
/* =========================================================
   Teaching shared captions v125
   One academic caption below paired images documenting the same activity.
   ========================================================= */

.teaching-capacity-page .tc-caption-shared{
  display:grid!important;
  gap:10px!important;
}

.teaching-capacity-page .tc-photo-pair.tc-caption-shared,
.teaching-capacity-page .tc-barc-visual.tc-caption-shared,
.teaching-capacity-page .tc-rtk-visuals.tc-caption-shared{
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
}

.teaching-capacity-page .tc-caption-shared figure{
  margin:0!important;
  overflow:hidden!important;
  border:1px solid var(--line)!important;
  background:var(--surface2)!important;
}

.teaching-capacity-page .tc-caption-shared figure img{
  display:block!important;
  width:100%!important;
  object-fit:cover!important;
}

/* Keep each image pair visually consistent with the existing sections. */
.teaching-capacity-page .tc-photo-pair.tc-caption-shared figure img{
  height:175px!important;
}

.teaching-capacity-page .tc-barc-visual.tc-caption-shared figure img{
  height:290px!important;
}

.teaching-capacity-page .tc-rtk-visuals.tc-caption-shared figure img{
  height:300px!important;
}

/* One shared caption spans both images. */
.teaching-capacity-page .tc-shared-caption{
  grid-column:1 / -1!important;
  margin:0!important;
  padding:11px 12px!important;
  border:1px solid var(--line)!important;
  border-top:0!important;
  background:var(--surface)!important;
  color:var(--muted)!important;
  font-size:.75rem!important;
  line-height:1.48!important;
}

.teaching-capacity-page .tc-shared-caption strong{
  display:block!important;
  margin:0 0 3px!important;
  color:var(--primary2)!important;
  font-size:.8rem!important;
  line-height:1.25!important;
}

html[data-theme="dark"] .teaching-capacity-page .tc-caption-shared figure,
html[data-theme="dark"] .teaching-capacity-page .tc-shared-caption{
  border-color:var(--line)!important;
}

@media(max-width:760px){
  .teaching-capacity-page .tc-photo-pair.tc-caption-shared,
  .teaching-capacity-page .tc-barc-visual.tc-caption-shared,
  .teaching-capacity-page .tc-rtk-visuals.tc-caption-shared{
    grid-template-columns:1fr!important;
  }

  .teaching-capacity-page .tc-photo-pair.tc-caption-shared figure img,
  .teaching-capacity-page .tc-barc-visual.tc-caption-shared figure img,
  .teaching-capacity-page .tc-rtk-visuals.tc-caption-shared figure img{
    height:auto!important;
    max-height:360px!important;
  }

  .teaching-capacity-page .tc-shared-caption{
    border-top:1px solid var(--line)!important;
  }
}
