.carousel-container {
  width: 60%;
  height: 100%;
  margin-top: 20px;
  overflow: hidden;
  border-radius: 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

@media (max-width: 576px) {
  .carousel-container{
    width: 75%;
  }
}

.smooth-text {
  opacity: 0;
  min-width: 350px;
  max-width: 560px;
  min-height: 120px;
}

.smooth-text.active{
  opacity: 1;
  transition: opacity 0.25s ease-in-out;
}

.smooth-text h2 {
  font-size: 36px;
  font-family: 'Barlow-Bold';
}

.video-container {
  top: 0;
  left: 0;
  display: none;
}

.video-container video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 1rem;
}

.video-container.active {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  animation: expandFromCenter 2s ease forwards; /* 使用动画名称expandFromCenter，持续1秒，缓动函数为ease，结束后保持动画最终状态 */
}

.thumbnail-design-desc {
  flex-direction: column-reverse;
}

@media (max-width: 768px) {
  .video-container.active {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    animation: expandFromCenter 1s ease forwards; /* 使用动画名称expandFromCenter，持续1秒，缓动函数为ease，结束后保持动画最终状态 */
  }

  .smooth-text h2 {
    display: none !important;
  }

  .thumbnail-design-desc {
    flex-direction: column;
  }
}

/* 定义动画 */
@keyframes expandFromCenter {
  from {
    opacity: 0; /* 初始时透明度为0 */
    transform: scale(0.5); /* 初始时缩放为0，元素隐藏 */
  }

  to {
    opacity: 1; /* 结束时透明度为1 */
    transform: scale(1); /* 结束时缩放为1，元素完全显示 */
  }
}

.video-container.active video {
  width: 100%;
  height: 100%;
}

.carousel-dots {
  margin: 32px auto 63px auto;
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  text-align: center;

  font-size: 24px;
  font-family: 'Poppins-Medium';
}

.dot {
  color: #959595;
  margin: 0 20px;
  cursor: pointer;
}

.dot.active {
  color: #8C67F7;
}

.thumbnail-design {
  display: flex;
  flex-direction: column;
}

@media (max-width: 767px) {
  .carousel-dots {
    /*margin: calc((100% - 375px) * (30 / 100) + 0px) 0 30px 0;*/
    margin: calc(10%) 0 30px 0;
    max-width: 720px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
  }

  .thumbnail-design {
    flex-direction: column-reverse;
  }

  .dot {
    position: relative;
    margin: 0 8px;
    cursor: default;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    color: rgba(0, 0, 0, 0);
    background-color: #817f7f;
  }

  .dot.active {
    color: #8C67F7;
    background: #8C67F7;
  }

  #smooth-arrow-prev{
    cursor: pointer;
  }

  #smooth-arrow-next{
    cursor: pointer;
  }
}

.video-icon-box{
  width: 100%;
  position: relative;
}

.video-icon{
  position: absolute;
  top:16px;
  left: 16px;
}
