.embla {
  margin: auto;
  --slide-height: 19rem;
  --slide-spacing: 20px; /* Reduced to fit comfortably */
  --slide-size: 30.333333%; /* Adjusted to fit three slides */
}

.embla__viewport {
  overflow: hidden;
}

.embla__container {
  backface-visibility: hidden;
  display: flex;
  touch-action: pan-y;
  gap: 10px;
  margin-top: 20px;
  margin-bottom: 20px;
}

/* .embla__slide {
  flex: 0 0 var(--slide-size);
  min-width: 0;
  padding-left: var(--slide-spacing);
} */

/* .embla__slide__img {
  border-radius: 1.8rem;
  display: block;
  height: var(--slide-height);
  width: 100%;
  object-fit: cover;
} */

.embla__controls {
  display: grid;
  grid-template-columns: auto 1fr;
  justify-content: space-between;
  align-items: center;
  gap: 1.2rem;
  margin-top: 1.8rem;
}

.embla__div {
  border: 1px solid #00000021;
  box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 12px;
}

.embla__buttons {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.6rem;
  align-items: center;
}

.embla__button {
  -webkit-appearance: none;
  -moz-appearance: none;
       appearance: none;
  background-color: #fff0ee;
  touch-action: manipulation;
  display: inline-flex;
  text-decoration: none;
  cursor: pointer;
  /* border: 1px solid #00000021; */
  padding: 0;
  margin: 0;
  box-shadow: inset 0 0 0 0.2rem var(--detail-medium-contrast);
  width: 3.6rem;
  height: 3.6rem;
  z-index: 1;
  border-radius: 50%;
  color: #ff6652;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .3s ease-out 0s;
}
.embla__button:hover{
 background: #ff6652;
 color: #fff0ee;
}

.embla__button:disabled {
  color: var(--detail-high-contrast);
}

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

.embla__slide {
  transition: opacity 0.2s ease-in-out;
}

/* Medium devices: Display 2 slides */
@media (max-width: 1024px) {
  .embla {
    --slide-size: 48.333333%; /* 2 slides */
  }
}

/* Small devices: Display 1 slide */
@media (max-width: 640px) {
  .embla {
    --slide-size: 100%; /* 1 slide */
    --slide-height: 16rem; /* Adjust the slide height if needed */
  }
}

