.embla {
  position: relative;
  margin-left: auto;
  margin-right: auto;
}

.embla__viewport {
  overflow: hidden;
  width: 100%;
}

.embla__viewport.is-draggable {
  cursor: move;
  cursor: grab;
}

.embla__viewport.is-dragging {
  cursor: grabbing;
}

.embla__container {
  display: flex;
  user-select: none;
  -webkit-touch-callout: none;
  -khtml-user-select: none;
  -webkit-tap-highlight-color: transparent;
  margin-right: -0.8rem;
}

.embla__slide {
  position: relative;
  margin-right: 0.8rem;
}

.embla__slide--1 {
  min-width: 100%;
}

.embla__slide--2 {
  min-width: 50%;
}

.embla__slide--3 {
  min-width: 33.333333%;
}

.embla__slide--4 {
  min-width: 25%;
}

.embla__slide__inner {
  position: relative;
  overflow: hidden;
  /* height: 500px; */
}

.embla__slide__img {
  position: absolute;
  display: block;
  top: 50%;
  left: 50%;
  width: 100%;
  min-height: 100%;
  min-width: 100%;
  max-width: none;
  transform: translate(-50%, -50%);
}

.embla__button {
  display: none;
  outline: 0;
  fill: var(--desa-primary);
  cursor: pointer;
  background-color: transparent;
  touch-action: manipulation;
  position: absolute;
  z-index: 1;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  width: 48px;
  height: 48px;
  justify-content: center;
  align-items: center;
  padding: 13px;
  border-radius: 1.5rem;
  background-color: aliceblue;
  transition: ease-in-out 0.2s;
}

.embla__button:hover {
  fill: #fff;
  background-color: var(--desa-dark-primary);
}

.embla__button:disabled {
  cursor: default;
  opacity: 0.3;
}

/* smooth transition to display */
.embla:hover .embla__button,
.embla:focus .embla__button {
  display: block !important;
}

.embla__button__svg {
  width: 100%;
  height: 100%;
}

.embla__button--prev {
  left: 1.6rem;
}

.embla__button--next {
  right: 1.6rem;
}

.embla__dots {
  display: flex;
  list-style: none;
  justify-content: center;
  padding-top: 10px;
}

.embla__dot {
  background-color: transparent;
  cursor: pointer;
  position: relative;
  padding: 0;
  outline: 0;
  border: 0;
  width: 30px;
  height: 30px;
  margin-right: 7.5px;
  margin-left: 7.5px;
  display: flex;
  align-items: center;
}

.embla__dot:after {
  background-color: #fff;
  width: 100%;
  height: 4px;
  border-radius: 2px;
  content: "";
}

.embla__dot.is-selected:after {
  background-color: var(--desa-primary);
  opacity: 1;
}

/* Breakpoint Extra Small */
@media only screen and (max-width: 576px) {
  /* .embla__slide--1 {
    min-width: 100%;
  }
  .embla__slide--2 {
    min-width: 100%;
  }
  .embla__slide--3 {
    min-width: 100%;
  } */
  .embla__slide--4 {
    min-width: 50%;
  }
}

/* Breakpoint Small */
@media only screen and (min-width: 576px) {
  .embla__slide--4 {
    min-width: 33.3333%;
  }
}

/* Breakpoint Medium */
@media only screen and (min-width: 768px) {
  /* .embla__slide--4 {
    min-width: 33.3333%;
  } */
}
