.b-embla {
  height: 100%;
  /* position: relative; */
}

.b-embla__viewport {
  overflow: hidden;
  height: 100%;
}

.b-embla__container {
  height: 100%;
  backface-visibility: hidden;
  display: flex;
  touch-action: pan-y;
  margin-left: calc(var(--slide-spacing) * -1);
}

.b-embla__slide {
  flex: 0 0 var(--slide-size);
  min-width: 0;
  padding-left: var(--slide-spacing);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.b-embla__controls {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.b-embla__button {
  padding: 0;
  position: absolute;
  top: 50%;
  z-index: 1;
  border: none;
  width: 30px;
  height: 30px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 7px 12px;
  border-radius: 50%;
  background-color: #af1316;
  transition: background-color 0.2s ease-in-out;
  cursor: pointer;
  transform: translateY(100%);
  /* transform: translateY(-50%); */
}

.b-embla__button:hover {
  background-color: #000000;
}

.b-embla__button.embla__button--prev {
  background-image: url("/local/templates/ASE/frontend/assets/svg/b-arrow-back.svg");
  left: 30px;
  /* transform: translateX(-50%); */
}

.b-embla__button.embla__button--next {
  background-image: url("/local/templates/ASE/frontend/assets/svg/b-arrow-forward.svg");
  right: 30px;
  /* transform: translateX(50%); */
}

/* .b-embla__button[disabled] {
  background-color: rgba(255, 255, 255, 0.2);
} */

.b-embla {
  --slide-spacing: 8px;
  --slide-size: calc(100% / 3);
  --slide-height: 212px;
}

@media (max-width: 992px) {
  .b-embla {
    --slide-size: calc(100% / 2);
  }
}

@media (max-width: 650px) {
  .b-embla {
    --slide-size: 100%;
  }

  .b-embla__button {
    /* position: static; */
    /* top: -80px !important; */
    /* transform: translateY(-100%); */

    position: static;
    width: 50px;
    height: 50px;
    background-size: 25px 25px;
    transform: unset;
  }

  .b-embla__button.embla__button--next {
    right: 36px;
  }

  .b-video-slide__img {
    max-height: 300px;
  }
}
