body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
}

.team-section {
  background-color: #5385c1 !important;
  padding: 60px 20px;
}
.team-section .conta_iner {
  max-width: 1280px;
  margin: 0 auto;
}


.member:hover span.member-img-overlay {
  position: absolute;
  background-color: rgba(91, 69, 213, 0.8);
  left: 0;
  right: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
}

.member:hover .member-img-overlay::after {
  content: "+";
  position: absolute;
  top: 50%;
  background: #2ea3f2;
  left: 50%;
  color: #fff;
  width: 30px;
  height: 30px;
  display: flex;
  -webkit-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
  font-size: 32px;
  -webkit-transition: all .4s;
  transition: all .4s;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.member img {
  max-width: 100%;
  position: relative;
  height: 100%;
  width: 100%;
  object-fit: cover;
}

.member-content {
  padding: 4px 20px;
}

.member-content h3 {
  font-size: 25px;
  font-weight: 500;
  text-align: center;
  color: #fff;
  padding: 14px 0 5px 0;
  margin: 0;
  font-family: 'Montserrat', Helvetica, Arial, Lucida, sans-serif !important;
  line-height: normal;
}

.member-content h4 {
  color: #fff;
  text-align: center;
  margin: 0;
  font-weight: 500;
  line-height: normal;
  font-size: 18px;
}

.member-content p {
  color: #fff;
  text-align: center;
  line-height: 23px;
  margin: 0;
  padding: 0px 0;
  font-family: 'Montserrat', Helvetica, Arial, Lucida, sans-serif !important;
}

.team-section-row.bottom-staff {
  margin-top: 50px;
}

.team-section-row.bottom-staff .member img {
  width: 100%;
  height: 440px;
}

.team-section-row.bottom-staff .member {
  width: 33%;
}

.team-section-row.bottom-staff .member:last-child {
  display: inline-flex;
}

.team-section-row.bottom-staff .member:last-child img {
  width: 346px;
  object-fit: cover;
}



.team-popup {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, .55);
  backdrop-filter: saturate(180%) blur(5px);
  -webkit-backdrop-filter: saturate(180%) blur(5px);
  z-index: 9999;
}

.team-popup-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 25px;
  background-color: #fff;
  border-radius: 8px;
  text-align: center;
  webkit-box-shadow: 0 3px 10px -1px rgba(0, 0, 0, .3), 0 2px 50px 2px rgba(0, 0, 0, .2);
  box-shadow: 0 3px 10px -1px rgba(0, 0, 0, .3), 0 2px 50px 2px rgba(0, 0, 0, .2);
}

.team-popup-close {
  position: absolute;
  top: -12px;
  right: -8px;
  cursor: pointer;
  font-size: 32px;
  background: #04518b;
  box-shadow: inset 0 0 3px #888888;
  color: #fff;
  height: 30px;
  width: 30px;
  border-radius: 50%;
  line-height: 28px;
  display: flex;
  align-items: c;
  justify-content: center;
}

.team-popup p.description {
  text-align: left;
  font-family: 'Montserrat', Helvetica, Arial, Lucida, sans-serif !important;
  color: #000;
  font-size: 15px;
}


@media (max-width:1100px) {


  .member {
    width: calc(32% - 24px) !important;
  }

  .team-section-row {
    gap: 47px;
  }
}

body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
}

.team-section {
  background-color: #5385c1 !important;
  padding: 60px 20px;
}

.team-section-row {
  display: flex;
  align-items: stretch;
  justify-content: center;
  flex-wrap: wrap;
  gap: 50px 83px;
}

.team-section .conta_iner {
  max-width: 1280px;
  margin: 0 auto;
}

.member {
  width: calc(22% - 24px);
  display: flex;
  flex-direction: column;
  align-items: center;
}



span.member-img {
  position: relative;
  cursor: pointer;
  border: 2px solid #ffffff;
  line-height: 0;
  height: 320px;
}

.member:hover span.member-img-overlay {
  position: absolute;
  background-color: rgba(91, 69, 213, 0.8);
  left: 0;
  right: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
}

.member:hover .member-img-overlay::after {
  content: "+";
  position: absolute;
  top: 50%;
  background: #2ea3f2;
  left: 50%;
  color: #fff;
  width: 30px;
  height: 30px;
  display: flex;
  -webkit-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
  font-size: 32px;
  -webkit-transition: all .4s;
  transition: all .4s;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}



.member-content {
  padding: 4px 20px;
}

.member-content h3 {
  font-size: 25px;
  font-weight: 500;
  text-align: center;
  color: #fff;
  padding: 14px 0 5px 0;
  margin: 0;
  font-family: 'Montserrat', Helvetica, Arial, Lucida, sans-serif !important;
  line-height: normal;
}

.member-content h4 {
  color: #fff;
  text-align: center;
  margin: 0;
  font-weight: 500;
  line-height: normal;
  font-size: 18px;
}

.member-content p {
  color: #fff;
  text-align: center;
  line-height: 23px;
  margin: 0;
  padding: 0px 0;
  font-family: 'Montserrat', Helvetica, Arial, Lucida, sans-serif !important;
}

.team-popup {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, .55);
  backdrop-filter: saturate(180%) blur(5px);
  -webkit-backdrop-filter: saturate(180%) blur(5px);
  z-index: 9999;
}




.team-popup p.description {
  text-align: left;
  font-family: 'Montserrat', Helvetica, Arial, Lucida, sans-serif !important;
  color: #000;
  font-size: 15px;
}

.ui-sortable.leg-legarza-staff {
  border: 4px solid #00528c;
  font-size: 0;
  min-height: 100px;
  background: #d8e8f8;

}

.ui-sortable.leg-legarza-staff:after {
  content: "Legarza Staff (Non-editable)";
  font-size: 35px;
  font-family: 'Oswald', Helvetica, Arial, Lucida, sans-serif;
  position: absolute;
  left: 0;
  right: 0;
  margin: 10px auto;
  text-align: center;
  font-weight: normal;
  color: #00528c;
}
.team-section-row.bottom-staff span.member-img {
  height: 444px;
}

@media (max-width:1480px) {
  .team-section-row {
    gap: 59px;
  }
}

@media (max-width:1100px) {
  .team-section-row {
    gap: 47px;
  }

  .team-section-row.bottom-staff .member:last-child img {
    width: 100%;
  }
}

@media (max-width: 865px) {
  .member {
    width: calc(45% - 11px) !important;
  }


}

@media (max-width: 600px) {
  .member {
    width: calc(100% - 11px) !important;
  }



  .member {
    width: calc(100% - 11px);
  }

  span.member-img {
    height: auto;
  }

  .team-popup-content {
    width: 85%;
  }

  .member-content {
    max-width: 305px;
  }
}