/* team.css */

#team {
  max-width: 100%;
  width: 70em;
  text-align: center;
  height: auto;
  margin: 0 auto;
  font-size: 1.125em;
}
@media (max-width:1023px) {
  #team {
    font-size: 1.25em;
  }
}
#team .container {
  max-width: 80em;
}
#team.cast, #team.creatives {
  height: auto;
  transition-delay: 0s;
}

#team .team {
  margin: 0 auto;
  opacity: 0;
  transition: opacity .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;
  margin: 0 auto;
  padding-bottom: 5em;
}

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

#team.cast h2 {
  color: #fff;
}

#team .team .member {
  display: inline-block;
  vertical-align: top;
  text-align: center;
  margin: 0 0 1em 0;
}

#team .team .member:not(.star) {
  width: 12.5em;
  margin: 0 0 1em 0;
}

#team .team .member:hover {
  cursor: pointer;
  color: #fff;
}
#team .team.creatives .member {
  max-width: 17rem;
  margin: 0em;
}
#team .team.creatives .member.scale-100 {
  font-size: 1.42875em;
}
#team .team.creatives .member.scale-80 {
  font-size: 1.142875em;
}


@media (max-width: 1023px) {
  #team .team.creatives .member {
    width: 100%;
    max-width: 100vw;
    min-width: 100%;
    margin: 1.25rem auto;
  }
}

@media (min-width: 1024px) {
  #team .team.creatives .member {
    /* width: 9.85em; */
    margin-inline: auto;
  }
  #team .team.creatives .member.compact .name {
  }
  #team .team.creatives .member.x-wide {
    /* min-width: 17.5em !important; */
  }
  #team .team .member.full-width {
    width: auto!important; max-width:100%!important;
  }
}

@media (min-width: 1024px) {
  #team .team .member.full-width {
    width: auto!important; max-width:100%!important;
  }
}

#team .bio a {
  color: inherit;
}

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

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

#team .member:hover > .name, #team .member:hover > .role {
  color: #ed1c24;
  transition: color .2s ease-out;
}

/* hover blob */
/* .member:hover .headshot {
  border-radius:
    65% 35% 55% 45%
    / 45% 65% 35% 55%;
  transform: scale(1);
} */

/* @keyframes blobMorph {
  0% {
    border-radius: 65% 35% 55% 45% / 45% 65% 35% 55%;
  }
  50% {
    border-radius: 55% 45% 35% 65% / 65% 35% 55% 45%;
  }
  100% {
    border-radius: 65% 35% 55% 45% / 45% 65% 35% 55%;
  }
}

.member:hover .headshot {
  animation: blobMorph 2.5s ease-in-out infinite;
  transform: scale(1.05);
} */

.panel {
  display: none;
}

.panel.active {
  display: block;
}

.team-toggle {
  position: relative;
  max-width: 100%;
  width: 420px;
  height: 56px;
  background: #d7332f;
  border-radius: 999px;
  display: flex;
  align-items: center;
  padding: 0px;
  box-sizing: border-box;
  left: 50%;
  transform: translateX(-50%);
}

.team-toggle .pill {
  position: absolute;
  top: 0px;
  left: 0px;
  width: calc(50%);
  height: calc(100%);
  background: #4db3e6;
  border-radius: 999px;
  transition: transform 0.35s cubic-bezier(.4,0,.2,1);
  z-index: 0;
}

.team-toggle .segment {
  flex: 1;
  background: none;
  border: none;
  color: #fff;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  position: relative;
  z-index: 1;
}

/* move pill */
.team.creatives .pill {
  transform: translateX(100%);
}

.segment:hover {
  background-color: transparent !important;
}

@media (max-width:532px){
  #team .headshot img {
    max-width: 280px;
  }
}

/* #team .member:hover .headshot:before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 140%;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  z-index:9;
} */

.member .name {
  font-size: 1.125em;
  line-height: 1.09375;
  margin: .3125em 0 0;
  color: #000;
  transition: color .2s ease-in;
}

.overlay .member .name {
  line-height: 1.09375;
}

.star .name {
  margin: .3125em 0 0;
}

.creatives .member .name {
  margin: .25em auto;
}

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

.member .role {
  font-weight: 500;
  font-size: .875em;
  line-height: 1;
  padding-top: .3125rem;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.creatives .member .role {
  margin-top: .75em;
  margin-bottom: -.3125em;
  padding-top: 0;
}

.creatives .member .name {
  padding-top: .5rem;
}

.member .bio p {
  font-size: .875em;
  line-height: 1.475;
}
.overlay .bio p {
  margin: 2em auto 0;
  text-transform: none;
}

#team .bio {
  display: none;
}

.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%;
  font-size: 1.125em;
}

.overlay-open .overlay-inner .member {
  opacity: 1;
}

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

  .member .name {
    font-size: 1.25em;
  }
}

#content nav {
  font-size: 1rem;
  margin-bottom: 1.5em;
}
#content nav li {
  display: inline-block;
}
#content nav li .btn {
  min-width: 6.875em;
  font-size: 2.125em;
  margin: 0;
}
#content nav li .btn:hover,
#content nav li .btn.active {
  background-color: #fff;
  color: #111111;
}
#content nav li .btn.active {
  pointer-events: none;
}

@media (min-width: 768px) {
  #team.creatives .team.creatives.grid {
    display: grid;
    /* grid-template-columns: 1fr 1fr; */
    justify-content: center;
    margin-inline: auto;
    max-width: 42em;
  }

  .three-items-wrapper {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    width: 100%;
    grid-column: 1 / -1;
  }

  #team .team.creatives .member {
    margin-inline: auto;
  }
}

@media (min-width: 1024px) {
  .row-1 {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .row-2 {
    grid-template-columns: repeat(2, 1fr);
  }

  .row-3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .centered-left {
    grid-column: 1;
  }

  .three-items-wrapper {
    grid-template-columns: repeat(3, 1fr);
    width: 75%;
    margin: 0 auto;
  }
}

.headshot {
  position: relative;
  width: 100%;
  height: auto;
}

.headshot picture {
  position: absolute;
  inset: 0;
  transition: opacity 0s .1s;
}

.headshot picture:first-child {
  position: relative;
}

.headshot img {
  width: 100%;
  height: auto;
  object-fit: cover;
  transition: opacity 0.35s ease-in-out;
}

.overlay .headshot {
  max-width: 20em;
}

.overlay .headshot img {
  position: relative;
}

/* default */
.img-blob {
  opacity: 0;
}

/* hover / focus */
.member:hover .img-blob,
.member:focus-within .img-blob {
  opacity: 1;
}

.member:hover .img-circle,
.member:focus-within .img-circle {
  opacity: 0;
}

.creatives .row {
  display: grid;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}
