.cw-if {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-bottom: 42px;
  box-sizing: border-box;
}

.cw-if__viewport {
  position: relative;
  overflow: hidden;
  width: 100%;
}

.cw-if__track {
  display: flex;
  transition: transform 0.5s ease;
}

.cw-if__card {
  flex: 0 0 20%;
  max-width: 20%;
  aspect-ratio: 1 / 1;
  display: block;
  overflow: hidden;
}

.cw-if__card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cw-if__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: #a7a7a7;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  z-index: 2;
}

.cw-if__arrow svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: #fff;
  stroke-width: 2.5;
}

.cw-if__arrow--prev { left: 16px; }
.cw-if__arrow--next { right: 16px; }

.cw-if__dots {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 8px;
}

.cw-if__dot {
  width: 7px;
  height: 7px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(167, 167, 167, 0.4);
  cursor: pointer;
}

.cw-if__dot.is-active { background: #a7a7a7; }

@media (max-width: 749px) {
  .cw-if {
    padding: 0 16px;
    max-width: none;
  }
  .cw-if__viewport { overflow: visible; }
  .cw-if__track {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4px;
    transform: none !important;
  }
  .cw-if__card {
    flex: none;
    max-width: none;
  }
  .cw-if__arrow,
  .cw-if__dots { display: none; }
}
