.more-link.mobile {
  display: none;
}

.our-team {
  width: 100%;
  max-width: 1350px;
  padding: 3rem 0;
  margin: 0 auto;
}

.our-team .member-list {
  display: flex;
  flex-wrap: wrap;
  margin-top: 2rem;
  justify-content: space-evenly;
}

.our-team .member-item {
  text-align: center;
  width: 20%;
  aspect-ratio: 1/1;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
  position: relative;
  overflow: hidden;
}

.our-team .member-name {
  font-size: 24px;
  font-weight: 700;
  margin: 0;
}

.our-team .member-position {
  font-size: 20px;
  font-weight: 300;
  text-transform: uppercase;
  margin: 0;
}

.our-team .member-image {
  width: 100%;
  aspect-ratio: 1/1;
  background-position: center;
  background-size: contain;
  background-repeat: no-repeat;
  position: absolute;
  left: 0;
  top: 0;
  transition: top .75s ease-out;
}

.our-team .member-item:hover .member-image {
  top: 100%;
  transition: top 0.75s ease-in;
}

.more-info-container {
  display: flex;
  align-items: center; 
  justify-content: center; 
  gap: 5px; 
  margin-top: 15px;
}

/***************  Manipulated by Script (Start) **************/
.our-team .description-content {
	margin-top: 2rem;
}

.displayBox {
  display: flex;
  height: 0px;
  transition: height 1s;
  overflow: hidden;
  position: relative;
}

.activeDisplayBox {
  height: auto;
  transition: height 1s;
}

.displayBox .text {
	width: 66.6%;
  padding: 2rem;
}

.displayBox .text h3 {
	font-size: 24px;
}

.displayBox .text h4 {
	text-transform: uppercase;
  font-size: 18px;
}

.our-team .text .member-infoText * {
	line-height: 1.3;
}

.displayBox .image-container {
  width: 33%;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  height: 100%;
}

.displayBox .closeButton {
  position: absolute;
  font-size: 1.5rem;
  font-weight: 600;
  top: 20px;
  right: 20px;
  color: red;
  cursor: pointer;
}
/***************  Manipulated by Script (End) **************/

@media (max-width: 1600px) {
  .our-team {
    max-width: 1000px;
  }
  
  .our-team .member-item {
    padding: 10px;
  }
  
  .our-team .member-name {
    font-size: 22px;
  }
  
  .our-team .member-position {
    font-size: 18px;
  }
  
  /***************  Manipulated by Script (Start) **************/
  .displayBox .image-container {
    height: 80%;
    align-self: end;
  }
  /***************  Manipulated by Script (End) **************/
}

@media (max-width: 1600px) {
  .activeDisplayBox {
    height: 650px;
  }
}

@media (max-width: 1200px) {
  .our-team {
    max-width: 900px;
  }
  
  .our-team .member-list {
    justify-content: start;
  }

  .our-team .member-item {
    width: 50%;
    display: flex;
    flex-direction: row;
    justify-content: unset;
    padding: 0;
    gap: 0;
    aspect-ratio: unset;
  }
  
  .our-team .member-content {
    width: 50%;
    padding: 1.2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 20px;
    order: 2;
  }
  
  .more-info-container {
    margin-top: 0;
  }
  
  .our-team .member-image {
    width: 50%;
    position: initial;
  }
  
  /***************  Manipulated by Script (Start) **************/
  .activeDisplayBox {
    height: 570px;
  }
  /***************  Manipulated by Script (End) **************/
}

@media (max-width: 1024px) {
  .our-team {
    padding: 3rem 62px;
  }
  
  .our-team .member-item {
    width: 50%;
  }
  
  /***************  Manipulated by Script (Start) **************/
  .displayBox .image-container {
    height: 70%;
  }
  /***************  Manipulated by Script (End) **************/
}

@media (max-width: 850px) {
  .more-link.mobile {
    display: inline-block;
  }
  
  .more-link.desktop {
    display: none;
  }
  
  .our-team {
    max-width: unset;
    padding: 3rem 10%;
    margin: 0;
  }
  
  .our-team .member-item {
    width: 100%;
  }
  
  .our-team .member-content {
    order: unset;
    /*justify-content: center*/
    justify-content: space-around;
    gap: 15px;
  }
  
  
  /***************  Manipulated by Script (Start) **************/
  .displayBox-mobile {
    display: flex;
    height: 0;
    transition: height 1s;
    overflow: hidden;
    position: relative;
  }
  
  .displayBox-mobile .closeButton-mobile {
    position: absolute;
    font-size: 1rem;
    font-weight: 600;
    top: 20px;
    right: 20px;
    color: red;
    cursor: pointer;
  }

  .activeDisplayBox {
    height: fit-content;
    margin-bottom: 2rem;
    padding-top: 20px;
  }
  /***************  Manipulated by Script (End) **************/
  
}

@media (max-width: 500px) {
  .our-team {
    padding: 3rem 5%;
  }
 
  .our-team .member-name {
    font-size: 20px;
  }
  
  .our-team .member-position {
    font-size: 18px;
  }
  
   .our-team .member-content{
    min-height: 278px;
  }
  .our-team .member-image{
    margin-top: 15px;
    margin-bottom: 15px;
  }
  
}

}