.embla {
    max-width: 100%;
    margin: auto;
    padding: 0 1rem;
    --slide-height: 19rem;
    --slide-spacing: 12px;
}

@media (min-width: 1024px) {
    .embla {
        --slide-size: calc((94% - 2 * var(--slide-spacing)) / 3);
    }
}

@media (min-width: 700px) and (max-width: 1023px) {
    .embla {
        --slide-size: calc((94% - var(--slide-spacing)) / 2);
    }
}

@media (max-width: 700px) {
    .embla {
        --slide-size: 100%;
    }
}

@media (max-width: 320px) {
    .embla {
        padding: 0 0.2rem;
    }
}

.embla__viewport {
    overflow: hidden;
}

.embla__container {
        display: flex;
        gap: var(--slide-spacing);
        justify-content: space-around;
        padding:10px;
}

.embla__slide {
    flex: 0 0 var(--slide-size);
    min-width: 0;
    transform: translate3d(0, 0, 0);
}

.embla__slide__number {
    box-shadow: inset 0 0 0 0.2rem var(--detail-medium-contrast);
    border-radius: 1.8rem;
    font-size: 4rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    height: var(--slide-height);
    user-select: none;
}


  .embla__controls {
    display: grid;
    grid-template-columns: auto 1fr;
    justify-content: space-between;
    gap: 1.2rem;
    margin-top: 1.8rem;
  }
  .embla__buttons {
    position: relative;
    justify-content: space-between;
    display: flex;
    width: 99%;
    top:-64px;
  }
  .embla__button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
    background: transparent;
    color: white;
    border: none;
    cursor: pointer;
    font-size: 73px;
    padding: 0.5rem;
    font-weight: bold;
    width: 46px;
    text-shadow: 2px 2px 2px black;
    transition: all 0.3s ease-in-out;
  }
  .embla__button:hover {
    color:gold;
  }
  .embla__button--prev {
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
  }
  
  .embla__button--next {
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
    right: -1rem;
  }
  .embla__button:disabled {
    color: var(--detail-high-contrast);
  }
  .embla__button__svg {
    width: 35%;
    height: 35%;
  }
  .embla__dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
}

.embla__dot {
    width: 10px;
    height: 10px;
    border: none;
    border-radius: 50%;
    background-color: #ccc;
    cursor: pointer;
    transition: background-color 0.3s;
}

.embla__dot.is-selected {
    background-color: #333;
}
  
  .close-modal:hover {
    color: #CA9730;
}


@media (max-width: 320px) {
    .embla__buttons {
      width:96%;
    }
    }