
/*
  TEAM
------------------------------------*/
#team {
  font-size: 1.25em;
  width: 100vw;
  position: relative;
  left: 50%;
  transform: translate(-50%);
  margin: 2em auto 0;
  text-align: center;
  height: auto;
  transition-delay: .2s;
  overflow: hidden;
}

#team h2 {
  margin: 0 auto 2em;
  text-transform: uppercase;
  font-family: 'ChampionHeavywt';
  font-size: 1.75em;
}

#team.cast, #team.creative {
  height: auto;
  transition-delay: 0s;
}

#team .nav a h2:after {
  content: '+';
  display: inline-block;
  vertical-align: text-top;
  line-height: inherit;
  margin-left: 0.5rem;
}

#team .nav a.active h2:after {
  content: '-';
  display: inline-block;
}

#team .team {
  /*row-gap: 1.5em;*/
  margin: 0;
  /* pointer-events: none; */
  z-index:1;
}

#team.cast .team.cast,
#team.creative .team.creative {
  position: relative;
  opacity: 1;
  /* pointer-events: none; */
  height: auto;
  z-index:2;
  transition-delay: .2s;
}

.team .break {
  flex-basis: 100%;
  height: 0;
}

#team .team .member {
  display: inline-block;
  vertical-align: top;
  width: 12em;
  text-align: center;
  transition: color .2s ease-out, background-color .2s ease-out;
  margin: 0 .5em 2em;
}
#team .team .member.star {
}
#team .team .member.narrow {
}
#team .team .member.wide {
}

@media (max-width:767px) {
  #team .team .member {
    display: block;
    margin: 0 auto 3em;
  }
  #team .team br {
    display: none;
  }
}

#team .team .member:nth-last-child(-n+5) {
  margin-bottom: 2em;
}

#team .team .member:nth-last-child(5) {
  margin-top: 2em;
}

/* #team .team .member:first-child,
#team .team .member:nth-last-child(1) {
  flex: 0 0 27.5%;
} */

@media (max-width: 767px) {
  #team .team .member,
  #team .team .member.creative {
    flex: 0 0 50%;
  }
}

@media (max-width: 479px) {
  #team .team .member,
  #team .team .member.creative {
    flex: 0 0 100%;
  }
}

@media (min-width: 768px) {
  #team .team .member:nth-of-type(20),
  #team .team .member:nth-of-type(21) {
    flex: 0 0 22.5%;
  }
}

#team .team .member:hover,
#stars .star:hover {
  cursor: pointer;
  filter: brightness(1.125);
}

/* Changes color of text to white when hover over image */
#team .team .member:hover .name,
#stars .star:hover .name {
  transition: color .2s ease-out, background-color .2s ease-out;;
}

.headshot {
  position: relative;
  overflow: hidden;
  width: 100%;
  margin: 0 auto;
  border-radius: .125rem;
  margin-bottom: .5em;
}
/* Removes box shadow for logos */
.headshot-logo{
  box-shadow: none !important;
  max-width: 16em;
  width: 12em;
}
.overlay #small-logo{
  width: 12em !important;
}

#team .team .member .headshot,
.overlay .headshot {
  max-width: 12em;
}

#team .team .member:nth-last-child(2),
#team .team .member:nth-last-child(1) {
  align-items:center;
  justify-content:center;
  align-self:center;
  justify-self:center;
}
#team .team .member:first-child .headshot,
#team .team .member:nth-last-child(1) .headshot {
  max-width: 12em;
}

.headshot img {
  position: relative;
  width: 100%;
  height: auto;
}
#team .member:hover .headshot img,
.overlay .headshot img {
}

h3.name {
  color: #000;
}
h4.role {
  color: #000;
}

#team h3.name {
  font-size: 1.25em;
  text-transform: uppercase;
  margin: 0;
  color: #000;
}

.overlay .name {
  font-size: 1.5em;
}

h4.role {
  font-weight: 400;
  font-size: .875rem;
  line-height: 1.1;
  text-transform: uppercase;
  margin: 0.375em 0;
  color:#01deec;
}

.overlay h4.role {font-family: 'obviously-narrow';
  color: #7c5a34;
}

.overlay .role {
  font-size: 1em;
}

.cast .role {
  margin-top: .5em;
}

.cast > .role {
  display: none;
}
.overlay .cast > .role {
  display: block;
}

#team .bio p {
  font-size: 1rem;
  margin: 2rem auto;
}

#team .team .bio {
  display: none;
}

.overlay-inner .member {
  max-width: 80%;
  width: 30rem;
  margin: 0 auto;
}

.overlay-inner .headshot {
  width: 12rem;
}
.overlay-inner .headshot-logo {
  width: 14rem;
}

.overlay-inner a {
  color:#7c5a34;
}

.overlay-inner a:hover {
  color:#000;
}

.overlay-inner {
    -ms-overflow-style: none; /* IE 10+ */
    scrollbar-width: none;  /* Firefox */
}
.overlay-inner::-webkit-scrollbar {
    display: none;  /* Safari and Chrome */
}

@media (max-width:768px) {
  #team {
    width: 100%;
  }
}

.overlay .bio {
  margin: 2em auto;
}

.overlay .headshot {
  margin-bottom: .5em;
}

/*
  TEAM NAV
----------------------------------------------------------- */
#team.cast .nav,
#team.creative .nav {
  margin-bottom: 3em;
}

.creative-link, .cast-link {
  text-transform: uppercase;
  font-family: 'Aura Regular';
  font-weight: 700;
  display: inline-block;
  width: 12em;
  background-color: #fffc01;
  color: #e13d23;
  margin: 0 0.5em;
  padding: .25rem 0 .375rem;
  border-radius: .125em;
}

.creative-link.active,
.cast-link.active,
.creative-link:hover,
.cast-link:hover {
  text-decoration:none;
  background-color: #e13d23;
  color: #fff;
}

@media (max-width:532px) {
  .cast-link, .creative-link {
    width: auto;
    margin: 0 0.25em;
    padding: 0.25rem 0.5em 0.375rem 1em;
  }
}