/* v7: Teaching & Training gallery */
.teaching .tt-intro { max-width: 640px; margin-bottom: clamp(28px, 4vw, 44px); }
.teaching .tt-intro p:last-child { color: var(--ink-soft); margin: 0; }
.tt-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 12px; }
.tt-tile { margin: 0; display: grid; grid-template-rows: 1fr auto; min-width: 0; }
.tt-media { position: relative; overflow: hidden; border-radius: 16px; background: var(--paper-raised);
  box-shadow: 0 1px 2px rgba(14, 26, 43, .06), 0 10px 30px -18px rgba(14, 26, 43, .35); }
.tt-media picture, .tt-media img { position: absolute; inset: 0; width: 100%; height: 100%; }
.tt-media img { object-fit: cover; display: block; }
.tt-tile figcaption { margin-top: 10px; font-size: .86rem; line-height: 1.4; color: var(--ink-soft); letter-spacing: .005em; }
.tt-a, .tt-c, .tt-i { grid-column: 1 / -1; }
.tt-a .tt-media { aspect-ratio: 2066 / 1395; }
.tt-c .tt-media { aspect-ratio: 2066 / 1520; }
.tt-i .tt-media { aspect-ratio: 6 / 5; }
.tt-h .tt-media, .tt-f .tt-media { aspect-ratio: 4 / 5; }
.tt-h img { object-position: 50% 30%; }
@media (min-width: 900px) {
  .tt-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 28px 20px; }
  .tt-media { border-radius: 22px; }
  .tt-a { grid-column: 1 / -1; }
  .tt-a .tt-media { aspect-ratio: 16 / 9; }
  .tt-a img { object-position: 50% 40%; }
  .tt-c { grid-column: 1 / span 7; }
  .tt-h { grid-column: 8 / span 5; }
  .tt-f { grid-column: 1 / span 5; }
  .tt-i { grid-column: 6 / span 7; }
  /* the wide tile sets the row height; the narrow tile fills it */
  .tt-h .tt-media, .tt-f .tt-media { aspect-ratio: auto; min-height: 0; }
}
