.carousel-container {
  width: 100vw;
  overflow: hidden;
  background: #000;
  padding: 0;
  position: relative;
}

.hero-carousel-wrapper {
  width: 100%;
  height: 100%;
}

.hero-slide-track {
  display: flex;
  flex-wrap: nowrap;
  width: 300%;
  height: 100%;
  transition: transform 0.8s cubic-bezier(0.45, 0, 0.55, 1);
}

.carousel-card {
  width: 100vw;
  flex: 0 0 100vw;
  height: 70vh;
  position: relative;
}

.card-img {
  width: 100%;
  height: 100%;
  background-color: #f0f0f0;
  overflow: hidden;
}

.card-img img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

.carousel-card .card-body {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.4);
  color: #fff;
  padding: 40px 5%;
  text-align: left;
}

.card-body h3 {
  font-size: 28px;
  margin-bottom: 10px;
}

@media (max-width: 1024px) {
  .carousel-container {
    background: #fff;
  }

  .carousel-card {
    height: min(56.25vw, 420px);
    min-height: 200px;
  }

  .card-img {
    background-color: #fff;
  }

  .card-img img {
    object-fit: contain;
  }

  .carousel-card .card-body {
    padding: 20px 16px;
  }

  .card-body h3 {
    font-size: 22px;
  }
}
