.TestimonialsC {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--PMGR_32px) 0;
  gap: var(--PMGR_48px);
}

.TestMonP1 {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--PMGR_24px);
}
.TestMonP1T {
  color: var(--color_blue);
  font-size: var(--font_20px);
}
.TestMonP1P {
  font-size: var(--font_20px);
}

.TestMonP2 {
  display: flex;
  gap: var(--PMGR_24px);
  width: 100%;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  padding: 0 var(--PMGR_12px);
}

.TestMonP2S1 {
  width: 0;
  max-width: 0;
  min-width: 0;
  flex-direction: column;
  align-items: center;
  opacity: 0;
  transform: scale(0.95);
  transition: all 500ms ease;
}
.TestMonP2S1.visible {
  width: 30vw;
  max-width: 35vw;
  opacity: 1;
  transform: scale(1);
}

.video-wrap {
  position: relative;
  width: 100%;
  padding-top: 177%;
  overflow: hidden;
  border-radius: var(--PMGR_12px);
  opacity: 0;
  transition: opacity 500ms ease;
}
.TestMonP2S1.visible .video-wrap {
  opacity: 1;
}

.video-wrap video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.center-btn {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: transparent;
  border: none;
  padding: 10px 16px;
  border-radius: 8px;
  cursor: pointer;
  z-index: 6;
  font-weight: 700;
}
.center-btn img,
.hover-pause img {
  width: 3vw;
}

.hover-pause {
  position: absolute;
  right: 10px;
  top: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  display: none;
  z-index: 6;
  font-size: 14px;
  cursor: pointer;
}

.side-btn {
  position: absolute;
  bottom: -3%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  padding: 8px 12px;
  cursor: pointer;
  z-index: 6;
  font-weight: 700;
}
.side-btn img {
  width: 4vw;
}
.side-left {
  left: 2%;
}
.side-right {
  right: 2%;
}

.close-btn {
  display: none;
}

.video-caption {
  margin-top: var(--PMGR_12px);
  font-size: var(--font_16px);
  color: #fff;
  text-align: center;
  position: absolute;
  top: 2%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
}
.TestMonP2S2C {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--PMGR_24px);
}
.TestMonP2S2CT {
  font-size: var(--font_16px);
}
.TestMonP2S2 {
  display: flex;
  align-items: center;
  justify-content: center;
}

.TestMonP2S2L {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  width: 35vw;
  gap: var(--PMGR_16px);
  transition: all 500ms ease;
}

.TestMonP2S2L img {
  width: 10vw;
  height: 10vw;
  border-radius: var(--PMGR_12px);
  cursor: pointer;
  box-sizing: border-box;
  border: 1px solid #b0d2ff;
  transition: all 500ms ease;
}

.TestMonP2S2L img.active {
  width: 20.6vw !important;
  height: 10vw;
  z-index: 30;
  object-fit: fill;
  transform: scale(1.05);
}

.TestMonP2S2L.slide-right {
  transform: translateX(20px);
  transition: all 500ms ease;
}
@media (max-width: 768px) {
  .TestMonP2 {
    padding: 0;
    gap: var(--PMGR_12px);
  }
  .TestMonP1P {
    text-align: center;
    width: 80vw;
  }
  .TestMonP2S2L {
    width: 80vw;
  }
  .TestMonP2S2L img {
    width: 17.5vw;
    height: 17.5vw;
    border-radius: 5px;
  }
  .TestMonP2S2L img.active {
    width: 40vw !important;
    height: 17.5vw;
  }
  .TestMonP2S1.visible {
    width: 100vw;
    max-width: 100vw;
    position: absolute;
    top: 0;
    left: 0;
    height: 217vw;
    z-index: 1000;
    background: rgba(0, 0, 0, 1);
    display: flex;
    justify-content: flex-start;
    align-items: center;
  }
  .TestimonialsContainer.video-open {
    height: 100vw;
    transition: height 0.5s ease;
    overflow: hidden;
  }

  .TestMonP2S1.visible .video-wrap {
    padding-top: 0;
    width: 95vw;
    height: 80vh;
    border-radius: var(--PMGR_32px);
    margin-top: 20vw;
  }
  .video-caption {
    top: 5%;
    width: 100%;
  }
  .center-btn img,
  .hover-pause img {
    width: 10vw;
  }
  .side-btn img {
    width: 12vw;
  }
  .side-btn {
    bottom: 3%;
    transform: translateY(0);
  }
  .side-left {
    left: 10%;
  }
  .side-right {
    right: 10%;
  }
  .close-btn {
    position: absolute;
    bottom: 3.5%;
    left: 42%;
    background: transparent;
    border: none;
  }
  .close-btn img {
    width: 14vw;
  }
}
