@import url("./static/css/colours.css");

.single-committee-member-page {
  margin: 0% 0%;
}
.committee-member-hero {
  padding: 60px 0;
}
.committee-member-name {
  width: fit-content;
  margin: 0 auto;
  font-size: 3.5em;
  color: #ffffff;
}
.committee-member-group {
  width: fit-content;
  margin: 0 auto;
  font-size: 2.5em;
  color: #ffffff;
}
.committee-member-main-content {
  padding: 0.5% 5% 2%;
}
.committee-member-navigation {
  margin: 20px 0;
}
.committee-member-navigation-button {
  display: block;
  width: fit-content;
  background-color: var(--gray);
  color: #ffffff;
  text-decoration: none;
  font-size: 1.5em;
  border-radius: 5px;
  padding: 5px 10px;
}
.committee-member-navigation-button:hover {
  opacity: 0.8;
}
.committee-member-main {
  display: flex;
  flex-wrap: nowrap;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
}
.committee-member-photo {
  flex-basis: 32%;
  width: 100%;
  aspect-ratio: 1/1;
  border-radius: 5px;
}
.committee-member-right {
  flex-basis: 62%;
  padding: 1% 2%;
  background-color: var(--light-gray);
  border-radius: 5px;
}
.committee-member-organisation {
  font-size: 1.5em;
  color: var(--red);
  margin: 5px 0;
}
.committee-biography {
  font-size: 1.1em;
}

@media (max-width: 1000px) {
  .committee-member-navigation {
    width: 100%;
  }
  .committee-member-navigation-button {
    width: 95%;
    padding: 5px 2.5%;
  }
  .committee-member-main {
    flex-wrap: wrap;
  }
  .committee-member-photo {
    flex-basis: 100%;
    margin-bottom: 20px;
  }
  .committee-member-right {
    flex-basis: 100%;
    margin-bottom: 20px;
    padding: 3% 5%;
  }
  .committee-member-organisation {
    margin: 5px 0 15px;
  }
  .committee-biography {
    font-size: 1.2em;
  }
}
