#staff-page .dropdown-container .flex.staff-info {
  display: none;
}
#staff-page .views-row:first-child .section-heading {
  border: none;
}
#staff-page .section-heading {
  border-top: solid 1px #e5e5e5;
}
#staff-page .section-heading h1 {
  margin: 0.8em 0 !important;
}
#staff-page .hoverText p {
  font-size: 1em;
}
#staff-page .grid-3-cols,
#staff-page .grid-4-cols {
  margin-top: 0 !important;
  /*row-gap: 2em;*/
}
#staff-page .grid-3-cols {
  grid-template-columns: repeat(3, 1fr);
}
#staff-page .grid-30-70 {
  column-gap: 1.8em;
  /*margin-top: 4em !important;*/
  grid-template-columns: 30% 1fr;
}
#staff-page .grid-3-cols .staff-info {
  display: none;
}
#staff-page .grid-3-cols article,
#staff-page .grid-3-cols img,
#staff-page .grid-4-cols article,
#staff-page .grid-4-cols img {
  max-width: 100%;
  min-width: 0;
  /* https://css-tricks.com/preventing-a-grid-blowout/ */
}

#staff-page .dropdown-container {
  /*padding: 0 0 0.7em;*/
  padding: 0;
  margin-bottom: 0.8em;
}
#staff-page .grid-3-cols .dropdown-container,
#staff-page .grid-4-cols .dropdown-container {
  padding: 0;
  margin-bottom: 1.8em;
}
#staff-page .dropdown-container .hddn-content {
  height: 0;
  max-height: 0;
  transition: opacity 0.02s ease, height 0.3s ease, max-height 0.3s ease;
  /* display: none; */
}
#staff-page .dropdown-container .hddn-content.open {
  height: 100%;
  max-height: 5000px;
  width: 1100px;
  transition: opacity 0.2s ease, height 0.3s ease, max-height 0.3s ease;
  padding-inline: 0;
}
#staff-page .hoverText:hover img {
  filter: brightness(0.65);
}
#staff-page .hddn-content .editorial {
  margin-top: 2.4em;
}
.staff-details * {
  margin: 0.1em 0 !important;
}
.staff-details .staff-name {
  font-weight: 600;
  margin-bottom: 0.6em !important;
}
.staff-details .staff-degree {
  font-style: italic;
}
#staff-page .dropdown-container .hddn-content p.double-columns {
  text-align: justify;
}
#staff-page .editorial p a {
  color: var(--main-link-color);
  text-decoration: underline;
}
/*#staff-page .staffProfileContainer.grid-30-70 {
  display: grid;
  grid-column: 1 / -1;
  max-height: 0;
  height: 0%;      
  width: auto;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-20px);
  transition: max-height 0.25s ease-in-out, opacity 0.2s ease-in-out,transform 0.25s ease-in-out, margin 0.5s;                                                                                                                                 
}
#staff-page .staffProfileContainer.grid-30-70.active {
  max-height: max-content;
  height: auto;
  opacity: 1;
  pointer-events: all;
  transform: translateY(0px);
  transition: max-height 0.8s ease-in-out, tranform 0.8s ease-in, opacity 0.35s ease-in-out;    
  margin-bottom: 3em;
  margin-top: 1.8em;
}*/

#staff-page .staffProfileContainer.grid-30-70 {
  display: grid;
  grid-column: 1 / -1;
  max-height: 0;
  height: 0;
  width: auto;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-20px);
  transition: all 0.1s ease-in-out;
}
#staff-page .staffProfileContainer.grid-30-70.active {
  max-height: max-content;
  height: 100%;
  opacity: 1;
  pointer-events: all;
  transform: translateY(0px);
  transition: all 0.5s ease-in-out;
  margin-bottom: 4em;
  margin-top: 3em;
}

/*
.staffProfileContainer.active{
  margin: 1.25em 0 3em 0;
}*/

@media screen and (max-width: 1000px) {
  #staff-page .grid-4-cols {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media screen and (max-width: 769px) {
  #staff-page .grid-3-cols,
  #staff-page .grid-4-cols {
    grid-template-columns: 1fr;
  }
  .editorial .section-heading {
    align-items: flex-end;
    padding-top: 1em;
    width: 110vw;
    margin-left: -10vw;
    padding-left: 10vw;
  }
}

@media screen and (max-width: 768px) {
  #staff-page #wrap {
    margin-top: 7em;
    /* padding-inline: 1em; */
    max-width: 92% !important;
  }
  #staff-page .mainTitle p {
    max-width: 100% !important;
  }
  #staff-page .center {
    text-align: left;
  }
  #staff-page .center h1 {
    margin-inline: 0;
  }
  #staff-page .dropdown-container .hddn-content {
    width: 100%;
  }
  #staff-page .staffProfileContainer.grid-30-70 {
    display: none;
  }

  #staff-page .dropdown-container .flex {
    align-items: flex-start;
  }
  .staff-details .staff-name,
  .staff-details .staff-role,
  #staff-page .dropdown-container .hddn-content img {
    display: none;
  }
  #staff-page
    .dropdown-container
    .hddn-content.open
    #staff-page
    .dropdown-container
    .flex {
    border-bottom: none !important;
  }
  #staff-page .dropdown-container .hddn-content.open {
    width: 100%;
    margin: 0em 1em 2em;
    grid-template-columns: 1fr;
    grid-column: 1 / -1;
  }
  #staff-page .dropdown-container .hddn-content.open article {
    width: 100%;
  }
  #staff-page .dropdown-container .hddn-content p.double-columns {
    text-align: left;
  }
  #staff-page .dropdown-container .flex.staff-info {
    display: flex;
    column-gap: 1.5em;
    padding-bottom: 0.8em;
    margin: 1em 1em 0em;
  }
  #staff-page .dropdown-container .flex.staff-info .flex.column {
    align-items: flex-start;
    row-gap: 0.6em;
  }
  #staff-page .dropdown-container .flex.staff-info .flex.column h3 {
    font-weight: 500;
  }
  #staff-page .hoverText p {
    display: none;
  }
  #staff-page .brdr-bttm {
    border-bottom: none;
  }
}

@media screen and (max-width: 500px) {
  #staff-page .hoverText {
    margin-left: -6.8%;
    width: 100vw;
  }
  #staff-page .hoverText:hover img {
    filter: brightness(1);
  }
  #staff-page .dropdown-container .dropdown-arrow {
    margin-top: 0.5em;
  }
}
