.embla {
    /* max-width: 48rem; */
    position: relative;
    margin: auto;
    --slide-height: 90vh;
    --slide-spacing: 1rem;
    --slide-size: 100%;
}

.embla__viewport {
    overflow: hidden;
}

.embla__container {
    display: flex;
    touch-action: pan-y pinch-zoom;
    margin-left: calc(var(--slide-spacing) * -1);
}

.embla__slide {
    transform: translate3d(0, 0, 0);
    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) !important;
    width: 100%;
    object-fit: cover;
}

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

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

.embla__button {
    -webkit-tap-highlight-color: rgba(var(--text-high-contrast-rgb-value), 0.5);
    -webkit-appearance: none;
    appearance: none;
    background-color: transparent;
    touch-action: manipulation;
    display: inline-flex;
    text-decoration: none;
    cursor: pointer;
    border: 0;
    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: var(--text-body);
    display: flex;
    align-items: center;
    justify-content: center;
}

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

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

.embla__slide__img {
    user-select: none;
}

.embla-thumbs {
    --thumbs-slide-spacing: 0.8rem;
    --thumbs-slide-height: 6rem;
    --thumbs-slide-height-xs: 4rem;
    margin-top: var(--thumbs-slide-spacing);
    display: flex;
    justify-content: center;
    align-items: center;
}

.embla-thumbs__container {
    display: flex;
    margin-left: calc(var(--thumbs-slide-spacing) * -1);
    justify-content: center;
    align-items: center;
}

.embla-thumbs__slide {
    flex: 0 0 15%;
    min-width: 0;
    padding-left: var(--thumbs-slide-spacing);
}

.embla-thumbs__slide__img {
    border-radius: 1.8rem;
    -webkit-tap-highlight-color: rgba(var(--text-high-contrast-rgb-value), 0.5);
    -webkit-appearance: none;
    appearance: none;
    touch-action: manipulation;
    display: inline-flex;
    cursor: pointer;
    box-shadow: inset 0 0 0 0.2rem var(--detail-medium-contrast);
    color: var(--detail-high-contrast);
    object-fit: cover;
    height: var(--thumbs-slide-height-xs);
    width: 100%;
}

.embla-thumbs__slide--selected .embla-thumbs__slide__img {
    border: 3px solid #f7c5ac;
}

@media (min-width: 576px) {
    .embla-thumbs__slide {
        flex: 0 0 15%;
    }

    .embla-thumbs__slide__img {
        height: var(--thumbs-slide-height);
    }
}