.embla {
  width: 100%;
  overflow: hidden;
  margin: 0 auto 40px auto;
}

.embla:last-child {
  margin-bottom: 40px;
}

.embla__viewport {
  overflow: hidden;
  width: 100%;
  margin-bottom: 0;
}

.embla__container {
  display: flex;
  padding-left: 0.5rem;
}

.embla__slide {
  flex: 0 0 calc((996px - 2rem) / 3);
  margin-right: 1rem;
  background: #020202;
  border-radius: 8px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content:start;
  height: 462px;
  margin-bottom: 0;
}

.embla__slide h3 {
  padding: 1.25rem;
  margin: 0;
  font-size: 1.125rem;
  line-height: 1.5;
  color: #ff6900;
}

.embla__slide .slide-text {
  padding: 0 1rem 1rem 1rem;
  margin: 0;
  font-size: 1.125rem;
  line-height: 1.5;
  color: #fff;
}

.embla__slide .slide-text span {
  font-weight: 700;
  color: var(--color-secondary-base);
}

.embla__slide img {
  width: 100%;
  height: auto;
  align-self: flex-end;
}

.embla__controls {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
}

.embla__prev,
.embla__next {
  background: none;
  color: #333;
  border: none;
  padding: 10px 5px;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.embla__prev[aria-label],
.embla__next[aria-label] {
  font-size: 1rem;
}

.embla__prev:focus-visible,
.embla__next:focus-visible {
  outline: 2px solid #000;
}

.embla__prev:hover,
.embla__next:hover {
  color: #000;
}

.embla__swipe-hint {
  display: none;
  font-size: 0.9rem;
  color: #808080;
  margin-left: auto;
  padding-right: 20px;
}

@media (max-width: 930px) {
  .embla {
    width: calc(100% + 20px);
    margin-right: -20px;
  }

  .embla__prev,
  .embla__next {
      display: none;
  }

  .embla__swipe-hint {
      display: block;
  }  
}

@media (max-width: 600px) {
  .embla__slide {
      flex: 0 0 85%;
      margin-right: 1rem;
  }

  .embla__slide .slide-text {
    padding: 1rem;
  }

}

.embla-secondary__slide {
  flex: 0 0 calc((996px - 5rem) / 6);
  margin-right: 1rem;
  background: none;
  height: auto;
}

.embla__swipe-hint {
  color: var(--text-color);
}

.embla-secondary .embla__prev,
.embla-secondary .embla__next {
  color: var(--text-color);
}

.embla__prev:hover,
.embla__next:hover {
  opacity: 0.7;
}

@media (max-width: 600px) {
  .embla-secondary__slide {
    flex: 0 0 calc(100% / 3 - 1rem);
  }
}
