.client-projects-teaser {
  margin: 0 0 18px;
  padding: 12px;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  background: #fff;
}

.client-projects-teaser__title {
  display: block;
  margin: 0 0 10px;
  color: #222;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
  text-decoration: none;
}

.client-projects-teaser__title:hover,
.client-projects-teaser__more:hover {
  color: #5a8f3c;
  text-decoration: none;
}

.client-projects-teaser__viewport {
  display: flex;
  gap: 0;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  border-radius: 6px;
  background: #f6f6f6;
}

.client-projects-teaser__viewport::-webkit-scrollbar {
  display: none;
}

.client-projects-teaser__slide {
  position: relative;
  flex: 0 0 100%;
  scroll-snap-align: start;
  text-decoration: none;
  color: inherit;
}

.client-projects-teaser__slide img {
  display: block;
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.client-projects-teaser__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 8px 10px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.65));
  color: #fff;
  font-size: 12px;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.client-projects-teaser__nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 8px;
}

.client-projects-teaser__btn {
  width: 28px;
  height: 28px;
  padding: 0;
  border: 1px solid #ddd;
  border-radius: 4px;
  background: #fff;
  color: #333;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

.client-projects-teaser__btn:hover {
  border-color: #5a8f3c;
  color: #5a8f3c;
}

.client-projects-teaser__dots {
  display: flex;
  flex: 1;
  justify-content: center;
  gap: 5px;
}

.client-projects-teaser__dot {
  width: 7px;
  height: 7px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #ccc;
  cursor: pointer;
}

.client-projects-teaser__dot.is-active {
  background: #5a8f3c;
}

.client-projects-teaser__more {
  display: inline-block;
  margin-top: 10px;
  color: #5a8f3c;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
}

@media (max-width: 767px) {
  .client-projects-teaser {
    margin-top: 16px;
  }

  .client-projects-teaser__slide img {
    height: 180px;
  }
}
