.staff-list {
  padding-top: 60px;
  padding-bottom: 10vw;
  position: relative;
  z-index: 150;
}

.staff-list.activeGrid {
  z-index: 1000;
}

.staff-list::after {
  content: ' ';
  display: block;
  clear: both;
  width: 100%;
}

.a-staff .meta.shadow {
  opacity: 0;
  transition: opacity 0.5s linear;
  position: absolute;
}
.popups_1 .a-staff {
  pointer-events:none;
}

.a-staff .meta.shadow.active {
  opacity: 0.5;
  width: 100vw;
  height: 100vh;
  position: fixed;
  top: 0px;
  left: 0px;
  background-color: black;
  pointer-events: none;
  margin: 0px;
  z-index: 10000;
}

.a-staff.title_image {
  background-color: var(--color-offwhite);
  background-size: contain;
}

.a-staff.title_image:hover .staff-name {
  opacity: 0;
}

.a-staff {
  float: left;
  margin-right: 1.666%;
  background-size: cover;
  background-position: 50% 50%;
  margin-bottom: 1.33%;
  cursor: pointer;
  position: relative;
  aspect-ratio: var(--image-aspect-ratio);
}

.a-staff.title_image .title-image {
  max-height: 80px;
}

.a-staff:after {
  content: ' ';
  display: block;
  width: 100%;
  height: 100%;
  opacity: 0;
  background: rgba(0, 0, 0, 0.3);
  position: absolute;
  transition: opacity 0.2s ease-out;
  left: 0;
  top: 0;
}

.a-staff:hover:after {
  /*opacity:1;*/
}

/*.a-staff:nth-child(4n) {
  margin-right:0;
}*/
.a-staff .staff-name {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: var(--color-light-gray);
  color: black;
  text-align: center;
  padding: 1.8vw 0;
  transform: translateY(7vw);
  transition: transform 0.2s ease-out, opacity 0.2s ease-out;
  opacity: 0;
}

.a-staff .staff-name {
  z-index: 4;
  transform: translateY(0px);
}

.a-staff:hover .staff-name {
  transform: translateY(0);
  opacity: 0.7
}

.a-staff .staff-name h3 {
  font-size: 1.3vw;
  font-weight: 800;
  margin-bottom: 0.6vw;
  letter-spacing: 1px;
}

.a-staff .staff-name h4 {
  font-size: 0.8vw;
  font-weight: 600;
  margin-bottom: 0;
}

.a-staff .meta.content {
  max-height: 70vh;
}

.a-staff .meta.content img {}

.a-staff .meta {
  pointer-events: none;
  opacity: 0;
  position: relative;
  z-index: 10;
  color: black;
  background: white;
  width: min(80vw, 1050px);
  transition: opacity 0.18s ease-out;
  cursor: default;
  margin: auto;
}

.a-staff .meta.active {
  pointer-events: all;
  opacity: 1;
  z-index: 10000;
}

.a-staff .image-container {
  float: left;
  width: 40%;
  display: flex;
}

.a-staff .image-container img {
  flex-shrink: 0;
  object-fit: cover;
  aspect-ratio: 3 / 4;
  min-height: min(34vw, 70vh);
}

.a-staff .meta .details {
  float: right;
  width: 55%;
  height: 34vw;
  padding-top: 65px;
  padding: 30px;
}

.a-staff h2 {
  font-size: 2vw;
  margin-top: 2vw;
  margin-bottom: 0px;
  font-weight: 800;
}

.a-staff h3 {
  font-size: 0.8vw;
  margin-top: 0.6vw;
}

.a-staff .close {
  position: absolute;
  padding: 2vw;
  top: 0;
  right: 0;
  cursor: pointer;
  z-index: 2;
}

.a-staff .meta a {
  font-size: 0.8vw;
  display: block;
  text-decoration: none;
  margin-top: 0.6vw;
}

.this-is-meta {
  position: fixed;
  width: 100vw;
  height: 100vh;
  display: flex;
  z-index: 100000;
  top: 0px;
  left: 0px;
  pointer-events: none;
  overflow: hidden;
}

.a-staff .meta .bio {
  margin-top: 2vw;
}

.a-staff .meta .bio {
  margin-bottom: 1vw;
  overflow-y: scroll;
  max-height: min(100%, 400px);
}

@media screen and (max-width:768px) {
  .staff-list {
    padding-top: 20px;
  }

  .staff-list.container.grid .a-staff {
    grid-column: span 12;
  }

  .grid.grid-5 .a-staff.span-2-4 {
    grid-column: span 5;
  }

  .a-staff .meta {}

  .a-staff .meta .details {
    height: auto;
    max-height: 100vh;
    width: 100%;
    -webkit-overflow-scrolling: touch;
  }

  .a-staff h2 {
    font-size: 22px;
  }

  .a-staff h3 {
    font-size: 18px;
  }

  .a-staff img {
    display: none;
  }
  .a-staff .extra-images img {
    display:block;
  }

  .a-staff .meta .bio {
    padding-top: 20px;
    max-height: 55vh;
  }

  .a-staff .meta a {
    font-size: 16px;
  }

  .a-staff .close {
    padding: 20px;
    font-size: 16px;
  }

  .a-staff .meta.content {
    max-width: 94vw;
    left: 0px;
    position: relative;
    overflow: hidden;
    height: 70vh;
  }

  .a-staff .staff-name h3 {
    font-size: 5.3vw;
    font-weight: 800;
    margin-bottom: 0.6vw;
    letter-spacing: 1px;
  }

  .a-staff .staff-name h4 {
    font-size: 3.8vw;
    font-weight: 600;
  }

  .a-staff .staff-name {
    opacity: 1;
  }

  .a-staff {
    margin-right: 0;
  }
}
