:root {
  --offset: 500px;
  --center-gap: 300px;
}

.expert-support-section {
  padding: 20px;
  background: #faf7f3;
  text-align: center;
  position: relative;
}

.expert-support-text {
  margin-bottom: 30px;
}

.expert-support-text h2 {
  color: #444;
  font-family: 'Montserrat';
  font-size: 40px;
  font-weight: 700;
  line-height: 60px;
  text-transform: capitalize;
  margin-bottom: 30px;
}

.expert-support-text p {
  color: #121926;
  font-family: 'Montserrat';
  font-size: 30px;
  font-weight: 400;
  line-height: 45px;
  margin-bottom: 50px;
}

.desktop-support-carousal {
  display: block;
}

.mobile-support-carousal {
  display: none;
}


.desktop-support-carousal {
  position: relative;
  width: 900px;
  height: 400px;
  margin: 0 auto;
}


.desktop-support-carousal>div {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity .3s ease;
}


.desktop-support-carousal .image2 {
  transform: translate(calc(-50% - var(--center-gap)/2), -50%);
  opacity: 1;
  z-index: 4;
}

.desktop-support-carousal .image3 {
  transform: translate(calc(-50% + var(--center-gap)/2), -50%);
  opacity: 1;
  z-index: 4;
}


.desktop-support-carousal .image1,
.desktop-support-carousal .image4 {
  z-index: 3;
  opacity: 0;
}

.desktop-support-carousal.animated .image1 {
  opacity: 1;
  animation: slideLeftFromCenter 0.8s ease forwards;
}

.desktop-support-carousal.animated .image4 {
  opacity: 1;
  animation: slideRightFromCenter 0.8s ease forwards;
  animation-delay: 0.15s;
}


.desktop-support-carousal.show-all .image1,
.desktop-support-carousal.show-all .image2,
.desktop-support-carousal.show-all .image3,
.desktop-support-carousal.show-all .image4 {
  opacity: 1;
}


@keyframes slideLeftFromCenter {
  from {
    transform: translate(-50%, -50%);
    opacity: 0;
  }

  to {
    transform: translate(calc(-50% - var(--offset)), -50%);
    opacity: 1;
  }
}

@keyframes slideRightFromCenter {
  from {
    transform: translate(-50%, -50%);
    opacity: 0;
  }

  to {
    transform: translate(calc(-50% + var(--offset)), -50%);
    opacity: 1;
  }
}




.karina,
.zoe,
.brandi,
.lori {

  max-height: 300px;
  object-fit: contain;
}



.mobile-support-carousal {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  margin-top: 20px;

}


.mobile-support-carousal .member img {
  width: 200px;
  object-fit: contain;
  display: block;
}

.mobile-support-carousal .extra {
  display: none;
  opacity: 0;
  transform: translateY(-40px);
}

.mobile-support-carousal.animated .extra {
  display: block;
  animation: mobileSlideDown 0.8s ease forwards;
}


@keyframes mobileSlideDown {
  0% {
    opacity: 0;
    transform: translateY(-40px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}




@media (min-width: 300px) and (max-width: 479px) {

  .desktop-support-carousal {
    display: none;
  }

  .mobile-support-carousal .member img {
    width: 150px;
  }

  .mobile-support-carousal {
    display: flex;
    height: 300px;
    gap: 10px;
  }
}

@media (min-width: 480px) and (max-width: 767px) {


  .desktop-support-carousal {
    display: none;
  }

  .mobile-support-carousal {
    display: flex;
    height: 460px;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {

  .desktop-support-carousal {
    display: none;
  }

  .mobile-support-carousal {
    display: flex;
    height: 460px;
  }
}



@media (min-width: 1024px) and (max-width: 1200px) {
  .desktop-support-carousal {
    display: none;
  }

  .mobile-support-carousal {
    display: flex;
    height: 460px;
  }
}

@media (min-width: 1201px) and (max-width: 1439px) {

  :root {
    --offset: 430px;
    --center-gap: 285px;
  }

  .expert-support-carousal {
    width: 100%;
    height: 400px;
  }

  .desktop-support-carousal {
    display: block;
  }

  .mobile-support-carousal {
    display: none;
  }

}


@media (min-width: 1440px) and (max-width: 2000px) {

  :root {
    --offset: 438px;
    --center-gap: 290px;
  }


  .desktop-support-carousal {
    display: block;
  }

  .mobile-support-carousal {
    display: none;
  }

}

@media(min-width:2001px) {

  :root {
    --offset: 442px;
    --center-gap: 295px;
  }

  .desktop-support-carousal {
    display: block;
  }

  .mobile-support-carousal {
    display: none;
  }
}