/* ---------- sidens essentials ---------- */

/* cast sidens wrapper */
.cast-wrapper {
  max-width: 1000px;
  margin: 0 auto;
  color: #fff;
  padding: 160px 2em 0 1em;
  font-family: "Oswald", sans-serif;
}

.cast-wrapper p {
  margin-bottom: 1em;
}

.cast-wrapper h2 {
  margin-bottom: 1em;
  margin-top: -12px;
}

/* alle billeder fylder deres størrelse uanset hvad */
.cast-wrapper section img {
  max-width: 334px;
  height: auto;
}

/* ---------- grid, rows and columns ---------- */

/* layouter grid til højre og venstre */
.cast-wrapper section:nth-child(odd) {
  display: grid;
  grid-template-columns: repeat(2, auto);
  column-gap: 50px;
  margin-bottom: 100px;
}

.cast-wrapper section:nth-child(even) {
  display: grid;
  grid-template-columns: repeat(2, auto);
  column-gap: 50px;
  margin-bottom: 100px;
}

/* bytter om på order på alle even sektioner */
.cast-wrapper section:nth-child(even) img {
  order: 1;
}

.cast-wrapper section h2 {
  font-size: 2.5em;
}

/* ---------- på tablet hop til sektion ---------- */

/* laver grid til tablet 'hop til' sektion */
#cast-members-jump {
  padding: 150px 2em 0 2em;
  margin: 0 auto;
  max-width: 830px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: 30px;
  row-gap: 70px;
  color: #fff;
  display: none;
}

/* fjerner ahref text decoration */
#cast-members-jump a {
  color: #fff;
  text-decoration: none;
}

#cast-members-jump h2 {
  font-size: 1.875em;
  font-weight: 700;
}

#cast-members-jump p {
  font-size: 1.5em;
  font-weight: 200;
}

/* ---------- read-more og move to top pilen ---------- */

.read-more {
  display: none;
}

/* pilens standard properties */
.fa-arrow-alt-circle-up {
  color: #00000090;
  font-size: 4em;
  position: fixed;
  bottom: 1.5em;
  right: 1.6%;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

/* når pilen er aktiv */
.fa-arrow-active {
  opacity: 1;
  transition: opacity 0.5s ease-in-out;
}

.fa-arrow-alt-circle-up:active {
  transform: scale(1.2);
}

/* gør så første tekst er på samme linje */
.cast-wrapper p.firstp {
  margin-bottom: 0;
}

/* ---------- media queries ---------- */

/* til tablet */
@media only screen and (max-width: 850px) {
  .cast-wrapper section:nth-child(odd),
  .cast-wrapper section:nth-child(even) {
    grid-template-columns: repeat(1, auto);
    row-gap: 30px;
  }
  .cast-wrapper section:nth-child(even) img {
    order: 0;
  }
  h2 {
    margin-bottom: 0.5em;
    margin-top: 0px;
  }
  img {
    margin: 0 auto;
  }
  .cast-wrapper {
    max-width: 520px;
    text-align: justify;
  }
  #cast-members-jump {
    display: grid;
    font-size: 2vw;
  }
}

/* til mobile */
@media only screen and (max-width: 500px) {
  .cast-wrapper {
    padding: 0px 2em 0 1em;
  }
  #cast-members-jump {
    display: none;
  }
  .read-more-text {
    display: none;
  }
  .read-more {
    display: block;
    margin-top: 1em;
    font-size: 20px;
  }
  .firstp {
    margin-bottom: 1em;
  }
}
