#index #carousel .carousel-item .img-wrapper {
  justify-content: center;
}

@media (max-width: 767px) {
  #index #carousel .carousel-inner {
    height: auto !important;
    min-height: 0 !important;
    padding: 0 !important;
    background: transparent;
  }

  #index #carousel .carousel-item {
    height: auto !important;
    min-height: 0;
    max-height: none;
    padding: 16px 16px 18px;
    border-radius: 10px;
  }

  #index #carousel .carousel-item figure {
    align-items: center;
    gap: 0;
    width: 100% !important;
    max-width: none !important;
    height: auto;
    margin: 0;
  }

  #index #carousel .carousel-item .img-wrapper {
    align-items: center;
    width: 100%;
    height: auto;
  }

  #index #carousel .carousel-item .img-wrapper img {
    width: min(100%, 360px);
    max-width: 100%;
    height: auto !important;
    max-height: none;
    object-fit: contain;
  }

  #index #carousel .carousel-item .caption {
    position: static;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    max-width: 400px;
    min-height: 128px;
    margin: 0;
    padding: 0;
    text-align: center;
  }

  #index #carousel .carousel-item .caption h2 {
    margin: 0;
    padding: 0;
    font-size: 26px !important;
    line-height: 30px !important;
  }

  #index #carousel .carousel-item .caption h3 {
    margin: 0;
    font-size: 16px !important;
    line-height: 21px !important;
    text-align: center;
  }

  #index #carousel .carousel-item .caption h3:empty,
  #index #carousel .carousel-item .caption-description:empty {
    display: none;
  }

  #index #carousel .carousel-item .caption .btn {
    margin: 0;
    padding: 10px 24px;
    font-size: 16px;
    line-height: 20px;
  }

  #index #carousel .direction {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 6px;
    width: 70px !important;
    left: auto;
    top: auto;
    right: 14px;
    bottom: 14px;
    height: 32px;
    margin: 0;
  }

  #index #carousel .direction .carousel-control {
    position: static;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    margin: 0;
    transform: none;
  }

  #index #carousel .direction .icon-prev,
  #index #carousel .direction .icon-next {
    position: static;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    margin: 0;
    padding: 0;
  }
}

@media (max-width: 359px) {
  #index #carousel .carousel-item .caption {
    min-height: 112px;
  }
}
