.projects {
  margin-top: 24px;
  margin-inline: 24px;
  margin-bottom: 28px;
}

.project {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(15rem, 2fr);
  column-gap: 24px;
  width: 100%;
}

.project-body {
  display: contents;
}

.project + .project {
  margin-top: 32px;
}

.project-title-section {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  grid-column: 1;
  grid-row: 1;
  gap: 4px;
  width: 100%;
}

.project-text {
  grid-column: 1;
  grid-row: 2;
}

.project-title {
  font-size: 24px;
  font-weight: 700;
}

.project-date {
  font-size: 18px;
}

.project-description-section {
  margin-top: 12px;
}

.project-description {
  margin: 0;
  margin-bottom: 10px;
  line-height: 1.45;
}

.project-image-link {
  display: block;
  grid-column: 2;
  grid-row: 1 / span 2;
}

.project-image {
  display: block;
  width: 100%;
  height: auto;
  box-sizing: border-box;
  border: 5px solid white;
  margin-bottom: 24px;
}

@container sheet (width < 60rem) {
  .project {
    display: flex;
    flex-direction: column;
  }

  .project-body {
    display: contents;
  }

  .project-image-link {
    order: -1;
  }
}
