.aboutUSeHeader{
  font-size: 18px;
  margin: 0;
}

.aboutUsFlexBox{
  background-color: unset;
}

#aboutUsDetailsBoxContainer{
  display: flex;
  flex-flow: row wrap;
  justify-content: space-between;
  width: 100%;
  row-gap: 15px;
  column-gap: 15px;
  flex: 0 0 0;
  & > div {
    background-color: #FFF;
    border: 1px solid #D3D3D3;
    border-radius: 15px;
    width: auto;
    flex: 1 1 0;
    padding: 40px 20px;
    max-width: 243px;
    max-height: 243px;
    & div{
      height: 53px;
      width: auto;
    }
    & h2{
      font-size: 32px;
      font-weight: 600;
      margin: 10px 0 5px 0;
    }
    & p{
      color: #505050;
      font-size: 18px;
      font-weight: normal;
      margin: 0;
    }
  }
}

.groupPhoto{
  background-image: url("../assets/leadershipBackground_v2.png");
  background-size: cover;
  width: 100% !important;
  border-radius: 15px;
  height: 340px;
  display: flex;
  align-items: flex-start;
  overflow: hidden;
  .groupPhotoRadius{
    display: flex;
    flex-direction: row;
    flex-flow: row nowrap;
    justify-content: end;
    width: 100%;

    .groupPhotoFooter{
      width: 100%;
    }
  }

  & p{
    font-size: 16px;
    font-weight: 400;
  }

}

#leadership-gradient{
  position: absolute;
  top: 70%;
  width: 100%;
  height: 30%;
  border-radius: 0 0 15px 15px;
  background: linear-gradient(180deg, rgba(181, 65, 0, 0) 0%, rgba(20, 150, 68, 0.8) 40%, rgb(20, 150, 68) 70%, #74B641 90%);

  z-index: 10;
  transition: opacity 0.7s ease-in-out;
}

.groupPhotoRadius{
  border-radius: 0 0 15px 15px;
  position: relative;
  height: 100%;
}


.groupPhotoFooter{
  display: flex;
  align-items: end;
  margin: 0;
  width: 100%;
  row-gap: 15px;
  border-radius: 0 0 15px 15px;
  color: #FFF;
  text-align: center;

  .leaderContainer{
    justify-self: center;
    width: 20%;
    transition: opacity 0.5s ease-in-out,
                left 0.5s ease-in-out,
                transform 0.5s ease-in-out;
    left: 0;
    position: relative;
    & h3{
      font-size: 22px;
    }
    .faceBubble{
      display: flex;
      transition: all 0.2s ease-in-out;
      width: 202px;
      height: 450px;
      min-height: fit-content;
      justify-self: center;
      justify-content: center;
      margin: 0 auto 40px auto;

      & img{
        height: 100%;
        align-self: end;
      }
    }
  }

  & div:hover{
    & h3{
      text-decoration: underline;
    }
  }
}

.selectedLeaderImage{
  /*position: absolute !important;*/
  transform: translateY(-5%) !important;
  cursor: default;

  .onLeaderClickContainer{
    cursor: default;
  }
}

#PK.selectedLeaderImage{
  left: 50px !important;
}

#JZ.selectedLeaderImage{
  left: calc(-20% + 60px) !important;
}

#JK.selectedLeaderImage{
  left: calc(-40% + 60px) !important;
}

#DS.selectedLeaderImage{
  left: calc(-60% + 60px) !important;
}

#PL.selectedLeaderImage{
  left: calc(-80% + 60px) !important;
}

.selectedGradient{
  display: none;
  position: absolute;
  justify-self: center;
  aspect-ratio: unset;
  /*top: unset;*/
  top: calc(100% - 30px);
  height: 0;
  width: 250px;
  box-shadow: 0px 0px 35px 44px rgba(21, 150, 68, 0.55), 0px 0px 35px 34px rgb(109, 180, 65);
  z-index: 10;
  align-self: end;
}

.groupPhotoFooterText{
  position: absolute;
  /*top: 0;*/
  width: 100%;
  height: max-content;
  align-items: start;
  align-self: end;
  z-index: 20;
  text-align: start;

  & div{
    justify-content: center;
    justify-items:  center;
  }

  & div:last-child{
    padding-right: 10px;
  }

  & h3{
    width: 80%;
    margin: 0 0 5px 20%;
    cursor: pointer;
  }

  & p{
    width: 80%;
    margin: 0 0 20px 20%;
    cursor: pointer;
  }
}

.onLeaderClickContainer{
  position: absolute !important;
  width: 100% !important;
  height: 430px;
  align-self: end;
  z-index: 100;
  cursor: pointer;
}

.groupPhoto-mobile {
  width: 100% !important;
  height: 320px;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  overflow: auto;
  gap: 10px;
  background-color: #FFFFFF;
}

.leader-card{
  position: relative;
  border-radius: 15px;
  width: 248px;
  min-width: 248px;
  height: 300px;
  min-height: 300px;
  background-image: url("../assets/leadershipBackground_v2.png");
  background-size: cover;
  display: flex;
  flex-direction: column;
  justify-content: end;
  align-items: center;
  cursor: pointer;

  & img{
    width: auto;
    height: 294px;
  }

  .leader-info{
    position: absolute;
    display: flex;
    flex-direction: column;
    z-index: 100;
    align-self: end;
    color: #FFFFFF;
    justify-self: start;
    /*top: 0;*/
    height: fit-content;
    align-items: start;
    text-align: start;
    width: 90%;
    padding-right: 5%;
    padding-left: 5%;

    & h3{
      font-weight: 700;
      font-size: 20px;
      margin: 0 0 5px 0;
    }
    & p{
      margin: 0 0 20px 0;
      font-weight: 400;
      font-size: 16px;
    }
  }

  .leadership-gradient{
    position: absolute;
    top: 60%;
    width: 100%;
    height: 40%;
    border-radius: 0 0 15px 15px;
    background: linear-gradient(180deg, rgba(181, 65, 0, 0) 0%, rgba(20, 150, 68, 0.8) 40%, rgb(20, 150, 68) 70%, #74B641 90%);

    z-index: 10;
    transition: opacity 0.7s ease-in-out;
  }
}

#leadersMobile{
  display: none;
}

.modalBackground{
  display: none;
  position: fixed;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0,0,0,0.4);
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.leaderDetailsModal{
  display: flex;
  width: 80%;
  max-width: 800px;
  height: fit-content;
  max-height: 80%;
  /*margin: auto;*/
  background-image: url("../assets/leadershipBackground_v2.png");
  background-size: cover;
  flex-direction: column;
  justify-content: end;
  align-items: center;
  border-radius: 15px;
  color: #FFFFFF;
  position: relative;

  & img{
    width: auto;
    height: 294px;
  }

  .closeButton{
    justify-self: end;
    height: 23px;
    width: 23px;
    padding-right: 30px;
    cursor: pointer;
  }

  .selectedGradient{
    display: block;
    align-self: unset;
    position: unset;
    max-width: 60%;
  }

  .line{
    background-color: #CECECE;
    height: 0.5px;
  }

  .leader-info{
    width: 350px;
    min-width: 188px;
    max-width: 80%;
    text-wrap: wrap;
    position: absolute;
    height: fit-content;
    border-bottom: 0.5px solid #CECECE;
    top: calc(23px + 294px - 15px);
    z-index: 120;
    text-align: center;
  }

  & p{
    margin-top: 0;
  }
  & h3{
    margin-bottom: 7px;
    margin-top: 7px;
  }

  #leaderBio-mobile{
    margin-top: 60px;
    margin-bottom: 10%;
    width: 80%;
    text-align: center;
    height: 300px;
    overflow: auto;
  }
}

.modal-open {
  overflow: hidden;
  /*height: 100vh;*/
}

.show-modal {
  display: flex;
}

#leftArrow, #rightArrow{
  display: none;
  font-size: 52pt;
}

#PK img{
  z-index: 5;
  height: 440px;
}

#JZ img{
  z-index: 4;
}

#JK img{
  z-index: 3;
  height: 470px;
}

#DS img{
  z-index: 2;
}

#PL img{
  z-index: 1;
  height: 455px;
}

.marginBreak{
  height: 55px;
}

#tempHolder {
  position: absolute;
  display: none;
  flex-direction: column;
  width: 60%;
  min-width: calc(100% - 350px);
  height: 100%;

  & p{
    margin-top: 0;
    margin-bottom: 7px;
  }
  & h2{
    margin-bottom: 7px;
    margin-top: 7px;
  }
  #leaderTitle{
    color: #cfcfcf;
  }
}

.leaderHeader{
  width: 100%;
  display: flex;
  justify-content: end;
  margin-top: 30px;
}

.tempHolderActive{
  height: auto !important;
  padding: 20px;
}

#leadership{
  background-color: unset;
  margin-top: 47px; /*Change to fix text bug*/
  & div{
    width: 100%;
  }
  & h1{
    margin-top: 0;
    line-height: 0.8;
  }
}

.displayCloseButton{
  opacity: 100% !important;
  cursor: pointer;
}

#leaderCloseButton{
  opacity: 0;
  justify-self: end;
  height: 20px;
  width: 20px;
  padding-right: 30px;
}

#leaderName, #leaderTitle, #leaderBio{
  padding-right: 40px;
}

.leaderDetails{
  display:flex;
  height: 100%;
  flex-flow: row;
  flex-direction: column;
  width: 100%;
  justify-self: flex-start;
  color: #FFF;
}

.leaderDetailsActive{
  display:flex;
}
.leadershipMinimize{
  opacity: 0;
  pointer-events: none;
  cursor: unset;
}


.leaderDetailsFooter{
  display: flex;
  flex-flow: row nowrap;
  justify-content: space-around;
  width: 100%;
}


.activeLeader{
  width: 80% !important;
  justify-self: center;
  & p, h3{
    display: none;
  }
}
.activeLeader_BIG{
  height: 0 !important;
  width: 80% !important;
  /*display: inline-flex;*/
  padding-bottom: calc(80%);
  margin-top: 20px;
  justify-self: center;
  & p, h3{
    display: none;
  }
}

@media all and (width < 1150px) {
  .contactDetails {
    width: 90% !important;
  }
  .dualFlexBox {
    flex-direction: column;
    & h1 {
      font-size: 36px;
    }
    & div {
      width: 100%;
    }
    & p {
      margin-top: 23px;
    }
  }

  #aboutUsDetailsBoxContainer{
    display: grid;
    grid-template-columns: 1fr 1fr;
    & > div {
      max-width: unset;
    }
  }

  #leadersMobile {
    display: flex;
  }

  #leadersDesktop {
    display: none;
  }

}

.groupPhoto{
  height: 520px;
  min-height: fit-content;
}

.groupPhotoFooter {
  & div {
    .faceBubble {
      width: 100%;
    }
  }
   & h3 {
    font-size: 18px !important;
   }
    & p {
      font-size: 14px !important;
    }
}


.flexBox{
  & h1{
    justify-self: left;
    width: 100%;
  }
}

.dualFlexBox {
  align-items: unset;
  & h1 {
    margin: 0;
    line-height: normal;
  }
}

@media (width < 441px) {

  #aboutUsDetailsBoxContainer{
    flex-flow: column;

      display: flex;
      grid-template-columns: unset;
  }

  #leftArrow, #rightArrow {
    display: unset;
  }

  .groupPhotoFooter{
   flex-direction: column;
  }

  .groupPhoto{
    height:auto;
    align-items: flex-start;
  }

  .leadershipMinimize{
    display: none;
  }

  #tempHolder{
    width: 70%;
  }

  .tempHolderActive{
    padding: 5%;
  }
  .leaderDetails {
    margin-right: unset;
  }
  #aboutUsDetailsBoxContainer {
    & > div {
      max-width: unset;
    }
  }
}
