.container {
  display: flex;
  flex-direction: row;
  max-width: var(--system-width);
  width: calc(100vw - 2 * var(--text-padding));
  margin: 0 auto;
  margin-top: 75px;
  justify-content: space-between;
}

.member {
  flex: 1;
  display: flex;
  flex-direction: column;
  max-width: 280px;
  box-sizing: border-box;
  margin: 0 calc(.5 * var(--text-padding));
  padding: 0 var(--text-padding);
  background: var(--main-background);
  box-shadow: var(--card-shadow);
}

.member img {
  display: block;
  width: 150px;
  height: 150px;
  box-sizing: border-box;
  border: solid 4px var(--member-color);
  border-radius: 75px;
  margin: 0 auto;
  margin-top: -75px;
  user-select: none;
}

.member h2 {
  text-align: center;
  color: var(--member-color);
  margin: 0;
}

.member p {
  margin-top: 0;
  white-space: pre-wrap;
}

.member .pronouns {
  text-align: center;
  margin-top: 0;
}

.member p:nth-last-child(2) {
  flex: 1;
}

.member p:last-child {
  text-align: center;
}

.summary {
  width: var(--main-width);
  box-sizing: border-box;
  padding: var(--text-padding);
  margin: 0 auto;
}

@media (max-width: 999px) {
  .container {
    flex-direction: column;
    align-items: center;
    margin-top: 0;
  }

  .member {
    max-width: calc(600px - 2 * var(--text-padding));
    width: calc(100% - 2 * var(--text-padding));
    display: grid;
    grid-template-columns: calc(80px + 2 * var(--text-padding)) 1fr 8px;
    grid-template-rows: 48px 70px 1fr 8px 36px;
    padding: 0;
    margin: 0;
  }

  .member h2 {
    margin-top: 8px;
    grid-row: 1;
    grid-column: 2/3;
    text-align: left;
    border-bottom: solid 1px currentcolor;
    margin-bottom: 8px;
  }

  .member:not(:last-child){
    margin-bottom: 32px;
  }

  .member img {
    width: 80px;
    height: auto;
    margin-top: 16px;
    grid-row: 1/3;
    grid-column: 1;
  }

  .member .pronouns {
    grid-column: 1;
    grid-row: 3/7;
  }

  .member .bio {
    grid-column: 2;
    grid-row: 2/5;
  }

  .member p {
    margin-bottom: 8px;
  }

  .member p:last-child {
    grid-column: 1/3;
    grid-row: 5/7;
  }

  .summary {
    max-width: 600px;
    width: 100%;
  }
}

.member.lower {
  max-width: 600px;
  width: 100%;
  display: grid;
  grid-template-columns: calc(80px + 2 * var(--text-padding)) 1fr 8px;
  grid-template-rows: 48px 70px 1fr 8px 36px;
  padding: 0;
  margin: 0;
}

.member.lower h2 {
  margin-top: 8px;
  grid-row: 1;
  grid-column: 2/3;
  text-align: left;
  border-bottom: solid 1px currentcolor;
  margin-bottom: 8px;
}

.member.lower img {
  width: 80px;
  height: auto;
  margin-top: 16px;
  grid-row: 1/3;
  grid-column: 1;
}

.member.lower .pronouns {
  grid-column: 1;
  grid-row: 3/7;
}

.member.lower .bio {
  grid-column: 2;
  grid-row: 2/5;
}

.member.lower p:last-child {
  grid-column: 1/3;
  grid-row: 5/7;
}
