/*
  TEAM
------------------------------------*/
#team {
  margin: 4em auto 6em;
  text-align: center;
  height: auto;
  transition: all .4s;
  transition-delay: .4s;
}
#team.cast, #team.creatives {
  height: auto;
  transition-delay: 0s;
}

#team .team {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 2em;
  row-gap: 2em;
  margin: 0;
  opacity: 0;
  transition: all .4s;
  pointer-events: none;
  height: 0;
  z-index:1;
}
#team.cast .team.cast,
#team.creatives .team.creatives {
  position: relative;
  opacity: 1;
  pointer-events: all;
  height: auto;
  z-index:2;
  transition-delay: .4s;
  padding: 0;
}

#team.creatives .team.creatives {
  display: block;
  max-width: 960px;
  margin: 0 auto;
}

#team .team .member {
  flex: 0 0 calc(33.3333% - 2em);
  text-align: center;
  transition: all .4s;
  filter: saturation(0) contrast(1);
}
@media (max-width:532px) {
  #team .team.cast .member {
    flex: 0 0 calc(62% - 1em);
  }
}

#team .team.cast .member:hover {
  cursor: pointer;
  filter: brightness(1.125);
  color: #374a5a;
}

@media (max-width: 767px) {
  #team .team.creatives .member:hover {
    cursor: pointer;
    filter: brightness(1.125);
    color: #374a5a;
  }
}

@media (min-width: 768px) {
  #team .team.creatives .member {
    pointer-events: none;
    cursor: default;
    margin: 3em auto;
  }
}

#team .bio a {
  color: inherit;
}

#team .bio a:hover {
  color: #e8011b;
}

#team p {
  flex: 0 0 100%;
}
#team p.divider {
  height: 0;
}
#team .creatives p {
  margin-bottom: .875em;
}

@media (max-width: 767px) {

  #team .team.creatives .member {
    flex: 0 0 100%!important;
    margin-bottom: 2em;
  }
  #team .team.creatives p {
    display: none;
  }
  #creatives h3, #creatives h4, #creatives div {
    text-align: center !important;
  }
}

#creatives h3, #creatives h4, #creatives div{
  text-align: start;
}

#creatives h4, #creatives h3{
 color: #e8011b;
}

.headshot {
  position: relative;
  display: inline-block;
  vertical-align: middle;
  overflow: hidden;
  min-width: 113px;
  max-width: 360px;
  height: auto;
  margin: 0 auto;
  background-color: #374a5a;
  border: 0.5em solid white;
  filter: drop-shadow(0.0875em 0.0875em 0.125em rgba(0,0,0,.5));
  border-radius: .125em;
}

.overlay .headshot {
  margin-bottom: 1.375em;
  width: auto;
  max-width: 100%;
}

.headshot img {
  position: relative;
  max-width: 100%;
  width: 100%;
  height: auto;
  transition: all .4s;
  filter: saturate(0) brightness(1.125) contrast(.75);
}
#team .member:hover .headshot img,
.overlay .headshot img {
  filter: saturate(1) brightness(100%) contrast(100%);
}
.member:nth-of-type(odd) .headshot {
  transform: rotate(-1.5deg);
}
.member:nth-of-type(even) .headshot {
  transform: rotate(1.5deg);
}

.member .name {
  font-size: 1.75em;
  font-family: 'ChampionMiddleweight';
  text-transform: uppercase;
  margin: .75em 0 .25em;
}

.creatives .member .name {
  font-size: 1.75em;
  margin: 0.125em 0 0.375em;
}

.overlay .member .name {
  font-size: 1.75em;
}

.member .role {
  font-family: futura-pt, sans-serif;
  font-weight: 900;
  font-size: .875em;
  line-height: 1.375;
  letter-spacing: .04em;
  text-transform: uppercase;
  margin: -.5em auto 1em;
}

.member .bio p {
  font-size: 1.25em;
  line-height: 1.625;
}

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

.overlay-inner .member {
  max-width: 25em;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100%;
}

.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%;
  }
}

/* temp styles before we split into pages */
.team #content {
  padding-top: 2em;
}
#team {
  margin: 0;
}
#team.cast .team.cast,
#team.creatives .team.creatives {
  display: block;
  text-align: left;
}
#team .team .member {
  max-width: 360px;
  margin-bottom: 2em;
}