.cards-carousel {
  overflow: hidden;
}

.cards-carousel-header {
  align-items: flex-end;
  margin-bottom: 60px;
}

.cards-carousel-navigation {
  justify-content: flex-end;
}

.cards-carousel-slider {
  width: 100vw;
  overflow: visible;
}

.cards-carousel-contained .cards-carousel-slider {
  width: 100%;
  overflow: hidden;
}

.cards-carousel-card {
  position: relative;
  width: min(588px, calc(50vw - var(--grid-side-padding) - 12px));
}

.cards-carousel-card-link {
  color: inherit;
  text-decoration: none;
}

.cards-carousel-card-link:focus-visible {
  outline: 0;
}

.cards-carousel-card-link.stretched-link::after {
  border-radius: 10px;
}

.cards-carousel-card-link:focus-visible::after {
  outline: 2px solid var(--color-text);
  outline-offset: 4px;
}

.cards-carousel-image {
  position: relative;
  height: 320px;
  background-color: var(--color-section-bg-dark);
  background-position: center;
  background-size: cover;
  border-radius: 10px;
  overflow: hidden;
}

.cards-carousel-asset {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.cards-carousel-image::after {
  position: absolute;
  inset: 0;
  background-color: rgba(19, 19, 19, 0.18);
  content: "";
  opacity: 0;
  transition: opacity 0.2s ease;
}

.cards-carousel-card:hover .cards-carousel-image::after,
.cards-carousel-card:focus-within .cards-carousel-image::after {
  opacity: 1;
}

.cards-carousel-image-01 {
  background-image: url("../images/work-demo-01.jpg");
}

.cards-carousel-image-02 {
  background-image: url("../images/work-demo-02.jpg");
}

.cards-carousel-image-03 {
  background-image: url("../images/work-demo-03.jpg");
}

.cards-carousel-image-04 {
  background-image: url("../images/work-demo-04.jpg");
}

.cards-carousel-image-05 {
  background-image: url("../images/work-demo-05.jpg");
}

.cards-carousel-image-06 {
  background-image: url("../images/work-demo-06.jpg");
}

.cards-carousel-card h3 {
  margin-top: 30px;
  font-size: 21px;
  line-height: 30px;
  letter-spacing: 0;
}

.cards-carousel-card p.small {
  margin-top: 2px;
}

.cards-carousel-footer {
  align-items: center;
  margin-top: 60px;
}

.cards-carousel-pagination {
  justify-content: flex-end;
}

@media (max-width: 1199.98px) {
  .cards-carousel-slider {
    width: 100%;
    overflow: hidden;
  }
}

@media (max-width: 767.98px) {
  .cards-carousel-header {
    row-gap: 30px;
    margin-bottom: 40px;
  }

  .cards-carousel-footer {
    row-gap: 30px;
    margin-top: 40px;
  }

  .cards-carousel-footer-action,
  .cards-carousel-footer-pagination {
    width: 100%;
  }

  .cards-carousel-footer-pagination {
    order: -1;
  }

  .cards-carousel-pagination {
    justify-content: flex-start;
  }

  .cards-carousel-navigation {
    justify-content: flex-start;
  }

  .cards-carousel-card {
    width: calc(100vw - var(--grid-side-padding) * 2);
  }

}
