.photo-wrapper {
  align-items: center;
  aspect-ratio: 16/9;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  max-width: 1280px;
  min-height: 300px;
  position: relative;
}

.photo-wrapper img {
  height: 100%;
  inset: 0;
  object-fit: cover;
  position: absolute;
  width: 100%;
}

.photo-title-wrapper {
  position: absolute;
  width: 100%;
  bottom: 0;
  left: 0;
  width: 100%;
  position: sticky;
  z-index: 10;
  height: 200px;
  max-width: 1280px;
}

.photo-title {
  color: #fff;
  background-image: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.4) 100%);
  height: 200px;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 20px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  position: absolute;
}

.photo-title h1 {
  margin: 0 auto;
  max-width: 960px;
  width: 100%;
  margin-bottom: 1rem;

  @media screen and (min-width: 640px) {
    margin-bottom: 1.5rem;
  }
}

.text {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 20px;
  padding: 0 20px;

  & > *:last-child {
    margin-bottom: 40px;
  }
}

.text-content {
  margin: 0 auto;
  max-width: 960px;
  width: 100%;

  & h2 {
    margin-top: 1.5em;
  }

  & a {
    text-decoration: underline;
    text-decoration-thickness: 0.05em;
    text-underline-offset: 0.325em;
  }
}

.curriculum {
  border-top: 1px solid;
  display: flex;
  gap: 20px;
  margin: 0 20px;
  padding: 20px 0;
  width: 100%;
  max-width: 960px;

  a {
    color: inherit;
    text-decoration: none;
  }
}

