/* Homepage teaching preview — compact, clearly not Ray’s studio work */

.teaching-preview {
  background: var(--color-cream-deep);
}

.teaching-preview-head {
  max-width: 36rem;
  margin-bottom: var(--space-6);
}

.teaching-preview-head .section-lede {
  margin-top: var(--space-4);
  color: var(--color-muted);
}

.teaching-strip {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-5) var(--space-3);
}

@media (min-width: 720px) {
  .teaching-strip {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--space-5) var(--space-4);
  }
}

.teaching-strip-card {
  display: block;
  text-decoration: none;
  color: inherit;
}

.teaching-strip-thumb {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--backdrop);
  border-radius: var(--radius);
}

.teaching-strip-thumb.is-native-small {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-cream);
}

.teaching-strip-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 900ms var(--ease-out);
}

.teaching-strip-thumb.is-native-small img {
  object-fit: contain;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
}

.teaching-strip-card:hover .teaching-strip-thumb img,
.teaching-strip-card:focus-visible .teaching-strip-thumb img {
  transform: scale(1.04);
}

.teaching-strip-meta {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding-top: var(--space-3);
}

.teaching-strip-title {
  font-size: var(--text-sm);
  font-weight: 600;
}

.teaching-strip-credit {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.teaching-preview-cta {
  display: flex;
  justify-content: flex-start;
  margin: var(--space-7) 0 0;
}

.work-portfolio-cta {
  display: flex;
  justify-content: center;
  margin-top: var(--space-6);
}

.work-grid.is-clipped ~ .work-portfolio-cta {
  margin-top: var(--space-5);
}

@media (max-width: 767px) {
  .teaching-preview {
    min-height: 0;
    justify-content: flex-start;
  }

  .teaching-preview-head {
    margin-bottom: var(--space-5);
  }

  .teaching-preview-cta {
    margin-top: var(--space-6);
  }
}
