.artifact-gallery {
  margin-top: 1.75rem;
}

.artifact-gallery .artifact-player {
  grid-template-columns: minmax(0, 5fr) minmax(12rem, 2fr);
  align-items: center;
  gap: 0;
  width: 100%;
  margin: 0;
  overflow: hidden;
  padding: 0;
  border-radius: .625rem;
  background: #fcfdfc;
}

.artifact-gallery .artifact-caption {
  padding: 1.25rem;
}

.artifact-gallery .artifact-caption h3 {
  color: var(--heading);
  font-size: 1.125rem;
  line-height: 1.35;
}

.artifact-carousel {
  margin-top: .875rem;
}

.artifact-carousel[hidden] {
  display: none;
}

.artifact-gallery .artifact-strip {
  grid-auto-columns: clamp(7.25rem, 15vw, 11.5rem);
  gap: .75rem;
}

.artifact-gallery .artifact-thumbnail {
  aspect-ratio: 3 / 2;
}

.artifact-gallery .artifact-play {
  width: 2.3rem;
  height: 2.3rem;
}

#artifact-content {
  min-width: 0;
  background: #f0f4f2;
}

#artifact-content > img,
#artifact-content > video,
.artifact-feature-open {
  height: clamp(14rem, 34vw, 25rem);
  object-fit: contain;
}

.artifact-feature-open {
  position: relative;
  display: grid;
  width: 100%;
  place-items: center;
  overflow: hidden;
  padding: 0;
  border: 0;
  background: #edf3ef;
  color: #264237;
}

.artifact-feature-open:focus-visible {
  outline-offset: -3px;
}

.artifact-feature-open img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.artifact-feature-open .artifact-play {
  width: 3.5rem;
  height: 3.5rem;
}

.artifact-feature-open:hover .artifact-play {
  background: #153e31;
}

.artifact-feature-label {
  z-index: 1;
  padding: .6rem 1rem;
  border-radius: .35rem;
  background: #fff;
  font-size: .875rem;
  font-weight: 600;
}

.artifact-feature-open:has(img) .artifact-feature-label,
.artifact-feature-open:has(.artifact-play) .artifact-feature-label {
  align-self: end;
  margin-bottom: .875rem;
}

.artifact-gallery .artifact-player:has(.artifact-document) {
  grid-template-columns: minmax(0, 1fr);
}

@media (max-width: 45rem) {
  .artifact-gallery .artifact-player {
    grid-template-columns: minmax(0, 1fr);
  }

  .artifact-gallery .artifact-caption {
    padding: .875rem;
  }

  #artifact-content > img,
  #artifact-content > video,
  .artifact-feature-open {
    height: clamp(11rem, 58vw, 23rem);
  }
}

.project-links {
  padding-bottom: .25rem;
}

@media (min-width: 46rem) {
  .project-links ul:has(li:nth-child(6)) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 1.5rem;
  }
}

.mentor-profiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 20.5rem), 1fr));
  gap: .875rem;
  margin: .75rem 0 0;
  padding: 0;
  list-style: none;
}

.mentor-profiles .mentor-profile {
  display: block;
  max-width: none;
  margin: 0;
  padding: 1.1rem;
  border: 1px solid #e0e9e3;
  border-radius: .75rem;
  background: #fcfdfc;
}

.mentor-profiles .mentor-profile:only-child {
  max-width: 38rem;
}

.mentor-profiles .mentor-portrait,
.mentor-portrait-link {
  display: block;
  flex: 0 0 auto;
  width: 5rem;
  height: 5rem;
  border-radius: .65rem;
}

.mentor-profiles .mentor-portrait {
  object-fit: cover;
  background: #edf4f0;
}

.mentor-profile-header {
  display: flex;
  align-items: center;
  gap: .85rem;
  min-height: 5rem;
}

.mentor-identity {
  flex: 1 1 8rem;
  min-width: 0;
}

.mentor-profile .mentor-name {
  font-size: 1.15rem;
  line-height: 1.3;
}

.mentor-profile .mentor-school {
  margin-top: .2rem;
  color: #305344;
  font-size: .875rem;
  font-weight: 600;
  line-height: 1.3;
}

.mentor-profile .mentor-credential {
  margin-top: .15rem;
  color: #56655e;
  font-size: .84rem;
  line-height: 1.35;
}

.mentor-profiles .mentor-university-mark {
  width: clamp(2.75rem, 7vw, 4.75rem);
  height: 2.2rem;
  flex: 0 0 auto;
  border-radius: 0;
  object-fit: contain;
}

.mentor-profiles .mentor-role {
  margin-top: .875rem;
  color: #4b5563;
  font-size: 1rem;
}

@media (max-width: 27rem) {
  .mentor-profile-header {
    gap: .7rem;
    min-height: 4.25rem;
  }

  .mentor-profiles .mentor-portrait,
  .mentor-portrait-link {
    width: 4.25rem;
    height: 4.25rem;
  }
}

.artifact-type {
  align-self: center;
  padding: .75rem;
  color: #52675d;
  font-weight: 600;
}

.artifact-thumbnail:has(.artifact-play) .artifact-type {
  align-self: end;
}

.artifact-card[data-kind="pdf"] .artifact-thumbnail img {
  object-fit: contain;
}

#artifact-content > img,
#artifact-content > video,
#artifact-content > iframe {
  display: block;
  width: 100%;
  border: 0;
  border-radius: .375rem;
  background: #f7fafc;
}

#artifact-content > img {
  object-fit: contain;
  max-height: min(80vh, 48rem);
}

#artifact-content > video {
  max-height: min(72vh, 44rem);
  background: #111;
}

.artifact-document {
  min-height: min(75vh, 50rem);
}

.artifact-embed {
  aspect-ratio: 16 / 9;
}

.artifact-source {
  display: inline-block;
  margin-top: .65rem;
  color: #275b89;
}

.artifact-source[hidden] {
  display: none;
}

.student-stories {
  max-width: 58rem;
  margin: 1rem 0;
  padding-left: 1.5rem;
}

.student-stories li {
  padding: .55rem .25rem;
}

.student-stories a {
  color: #275b89;
  text-underline-offset: .16em;
}

.review-tag {
  margin-left: .3rem;
  color: #4b5563;
  font-size: .85rem;
}
