@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed&family=Bellefair&family=Rubik:wght@300;400;500&display=swap');

:root {
  --subtitle-color: #fff;
  --text-color: #d0d6f9;
}

body {
  background: url('../assets/crew/background-crew-mobile.jpg');
  background-size: cover;
  background-position: center;
}

.crew {
  display: flex;
  align-items: center;
  flex-direction: column;
  margin-top: 32px;
}

.img figure {
  position: relative;
  width: 327px;
  display: inline-block;
  align-items: center;
  border-image-slice: fill;
  align-items: center;
}

.img figure::before {
  position: absolute;
  content: '';
  left: 0;
  bottom: 2.5px;
  width: 100%;
  height: 1px;
  background-color: var(--subtitle-color);
  opacity: 0.5;
}

.img img {
  margin: 0 auto;
  max-width: 200px;
  height: 220px;
}

.swap {
  margin: 32px auto;
}

.swap a {
  margin-left: 16px;
  opacity: 0.5;
}

.swap a:hover {
  cursor: pointer;
  opacity: 0.7;
}

.swap .active {
  opacity: 1;
}

.description {
  margin: 0 24px;
  padding-bottom: 32px;
}

.description .role {
  margin-bottom: 8px;
  font: 400 1rem 'Bellefair', sans-serif;
  text-transform: uppercase;
  line-height: 18px;
  color: var(--subtitle-color);
  opacity: 0.5;
}

.description .name {
  font: 400 1.5rem 'Bellefair', sans-serif;
  text-transform: uppercase;
  color: var(--subtitle-color);
  line-height: 28px;
  margin-bottom: 18px;
}

.description .bio {
  font: 0.9375rem 'Barlow', sans-serif;
  color: var(--text-color);
  line-height: 25px;
  width: 327px;
}

@media (min-width: 500px) {
  body {
    max-width: 100%;
    min-height: 100vh;
    background: url('../assets/crew/background-crew-tablet.jpg');
    background-size: cover;
    background-position: center;
  }

  .crew {
    flex-direction: column-reverse;
    width: 460px;
    margin: 60px auto;
  }

  .desc-container {
    display: flex;
    flex-direction: column-reverse;
  }

  .description .role {
    font-size: 1.5rem;
    line-height: 28px;
  }

  .description .name {
    font-size: 2.5rem;
    line-height: 46px;
  }

  .description .bio {
    font-size: 1rem;
    line-height: 28px;
    width: 458px;
    height: 84px;
  }

  .img figure {
    width: 456px;
    height: 570px;
  }

  .img img {
    min-width: 100%;
    height: 100%;
  }
  .img figure::before {
    display: none;
  }
}

@media (min-width: 1000px) {
  body {
    min-height: 100vh;
    background: url('../assets/crew/background-crew-desktop.jpg');
    background-size: cover;
    background-position: center;
  }
  main {
    position: relative;
  }

  .crew {
    flex-direction: row-reverse;
    align-items: flex-end;
    justify-content: flex-end;
    width: 100%;
    margin-left: 60px;
  }

  .description .role {
    text-align: left;
    font-size: 2rem;
    margin-bottom: 40px;
  }

  .description .name {
    text-align: left;
    font-size: 3.5rem;
    line-height: 64px;
  }

  .description .bio {
    width: 440px;
    text-align: left;
    font-size: 1.125rem;
    line-height: 32px;
  }

  .swap {
    margin-top: 160px;
    margin-left: 10px;
  }

  .desc-container {
    margin-top: 154px;
  }

  .img figure {
    position: absolute;
    bottom: 0;
    right: 20px;
    width: 500px;
    height: 600px;
  }
}

@media (min-width: 1200px) {
  .crew {
    margin-left: 120px;
  }
  .swap a {
    width: 18px;
    height: 18px;
  }
  .img figure {
    right: 80px;
    width: 568px;
    height: 700px;
  }
}
