.mam-carousel {
    position: relative;
    overflow: hidden;
}

.mam-carousel__img {
    display: block;
    width: 100%;
}

.mam-carousel__img[hidden] {
    display: none;
}

.mam-carousel__prev,
.mam-carousel__next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.4);
    color: var(--wp--preset--color--white);
    border: none;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    font-size: var(--wp--preset--font-size--lg);
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    z-index: 10;
    transition: background 0.15s;
}

.mam-carousel__prev {
    left: 8px;
}
.mam-carousel__next {
    right: 8px;
}

.mam-carousel__prev:hover,
.mam-carousel__next:hover {
    background: rgba(0, 0, 0, 0.65);
}

.mam-carousel__dots {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 5px;
}

.mam-carousel__dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
}

.mam-carousel__dot.is-active {
    background: var(--wp--preset--color--white);
}
