:root {
  --ensemble-visible: 1;
  --ensemble-gap: 12px;
  --ensemble-arrow-size: 40px;
}

@media (min-width: 768px) {
  :root {
    --ensemble-visible: 3;
    --ensemble-gap: 16px;
  }
}

@media (min-width: 992px) {
  :root {
    --ensemble-visible: 5;
    --ensemble-gap: 20px;
  }
}

.ensemble-carousel {
  display: flex;
  align-items: center;
  gap: var(--ensemble-gap);
  position: relative;
  width: 100%;
  max-width: 940px;
  margin: 0 auto;
  box-sizing: border-box;
}

.ensemble-viewport {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
}

.ensemble-track {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
  transition: transform 600ms cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
  touch-action: pan-y;
}

.ensemble-slot {
  flex: 0 0 calc(100% / var(--ensemble-visible));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  box-sizing: border-box;
  min-height: 80px;
  user-select: none;
}

.ensemble-slot img {
  max-width: 100%;
  max-height: 120px;
  width: auto;
  height: auto;
  object-fit: contain;
  -webkit-user-drag: none;
  user-drag: none;
  pointer-events: none;
}

.ensemble-slot img[src*="LFA-Logo"] {
  max-height: 200px;
}

.ensemble-arrow {
  flex: 0 0 auto;
  width: var(--ensemble-arrow-size);
  height: var(--ensemble-arrow-size);
  padding: 0;
  border-radius: 999px;
  border: 1px solid #A89684;
  background: transparent;
  color: #A89684;
  font-family: inherit;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color 200ms ease, color 200ms ease, transform 200ms ease;
}

.ensemble-arrow:hover,
.ensemble-arrow:focus-visible {
  background: #A89684;
  color: #fff;
}

.ensemble-arrow:focus {
  outline: none;
}

.ensemble-arrow:focus-visible {
  outline: 2px solid #A89684;
  outline-offset: 2px;
}

.ensemble-arrow:active {
  transform: scale(0.94);
}

@media (max-width: 479px) {
  :root {
    --ensemble-arrow-size: 32px;
    --ensemble-gap: 6px;
  }

  .ensemble-arrow {
    font-size: 18px;
  }

  .ensemble-slot {
    padding: 0 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ensemble-track {
    transition: none;
  }

  .ensemble-arrow {
    transition: none;
  }
}
