.home-carousel {
  position: relative;
}

.home-carousel__viewport {
  overflow-x: auto;
  scrollbar-width: none;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
}

.home-carousel__viewport::-webkit-scrollbar {
  display: none;
}

.home-carousel__track {
  display: flex;
  gap: 18px;
  margin: 0;
  padding: 18px 0 22px;
  list-style: none;
}

.home-carousel__item {
  flex: 0 0 calc((100% - 54px) / 4);
  min-width: 0;
  scroll-snap-align: start;
}

DIV.k2ItemsBlock.projects .home-carousel__track .home-carousel__item {
  float: none;
  width: auto;
  margin-right: 0;
}

.home-carousel__link {
  display: block;
  background: #fff;
  text-decoration: none;
}

.home-carousel__image {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  height: auto;
  object-fit: cover;
  border: 0;
}

.home-carousel__caption {
  display: block;
  padding-top: 8px;
  color: #393939;
  font-weight: 700;
  line-height: 1.3;
}

.home-carousel__control {
  width: 32px;
  height: 32px;
  border: 0;
  background: #ffc452;
  color: #393939;
  cursor: pointer;
  font-size: 24px;
  line-height: 32px;
  text-align: center;
}

.home-carousel__control:hover,
.home-carousel__control:focus {
  background: #393939;
  color: #fff;
}

.home-carousel__control[disabled] {
  cursor: default;
  opacity: 0.35;
}

.home-carousel__nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
}

.home-carousel__dots {
  display: flex;
  justify-content: center;
  gap: 7px;
  min-height: 10px;
}

.home-carousel__dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  background: #cfcfcf;
  cursor: pointer;
  text-indent: -9999px;
}

.home-carousel__dot.is-active {
  background: #ffc452;
}

@media (max-width: 959px) {
  .home-carousel__item {
    flex-basis: calc((100% - 18px) / 2);
  }
}

@media (max-width: 520px) {
  .home-carousel__track {
    gap: 12px;
  }

  .home-carousel__item {
    flex-basis: 230px;
  }
}
