.ew-other-decors {
  margin: 45px 0;
}

.ew-other-decors__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.ew-other-decors__header h3 {
  margin: 0;
}

.ew-other-decors__controls {
  display: flex;
  flex: 0 0 auto;
  gap: 8px;
}

.ew-other-decors__control {
  display: grid;
  width: 42px;
  height: 42px;
  padding: 0;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 0;
  background: transparent;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.ew-other-decors__control:disabled {
  opacity: 0.35;
  cursor: default;
}

.ew-other-decors-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.ew-decor-card {
  display: block;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
}

.ew-decor-card img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  transition: transform 0.25s ease;
}

.ew-decor-card span {
  display: block;
  margin-top: 10px;
  font-weight: 700;
  text-align: center;
}

.ew-decor-card:hover img,
.ew-decor-card:focus-visible img {
  transform: scale(1.04);
}

.ew-other-decors--has-slider .ew-other-decors__viewport {
  overflow: hidden;
}

.ew-other-decors--has-slider .ew-other-decors-grid {
  display: flex;
  gap: 18px;
  transition: transform 0.35s ease;
  will-change: transform;
}

.ew-other-decors--has-slider .ew-decor-card {
  flex: 0 0 calc((100% - 54px) / 4);
}

.ew-other-decors__status {
  position: absolute;
  overflow: hidden;
  width: 1px;
  height: 1px;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

@media (max-width: 960px) {
  .ew-other-decors-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ew-other-decors--has-slider .ew-decor-card {
    flex-basis: calc((100% - 18px) / 2);
  }
}

@media (max-width: 640px) {
  .ew-other-decors__header {
    align-items: flex-start;
  }

  .ew-other-decors-grid {
    grid-template-columns: 1fr;
  }

  .ew-other-decors--has-slider .ew-decor-card {
    flex-basis: 100%;
  }
}
