/* Keep Hafssa's portrait at the same size on the home and story pages. */
.instructor-grid {
  grid-template-columns: 380px minmax(0, 1fr);
  gap: clamp(30px, 5vw, 58px);
}

.instructor-grid > img,
.story-photo {
  width: 380px;
  height: auto;
  aspect-ratio: 959 / 1280;
  object-fit: cover;
  object-position: center;
  border-radius: 24px;
  box-shadow: 0 16px 35px #4e39341b;
}

.story-photo {
  float: left;
  margin: 3px 0 22px 28px;
}

.instructor-grid h2 a {
  transition: color .2s ease;
}

.instructor-grid h2 a:hover {
  color: var(--primary);
}

@media (max-width: 760px) {
  .instructor-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .instructor-grid > img,
  .story-photo {
    width: min(100%, 380px);
  }

  .story-photo {
    float: none;
    margin: 0 auto 25px;
  }
}
