.carrossel {
    position: relative;
    width: 100%;
    min-height: 0;
    flex: 1;
    overflow: hidden;
    background-image: var(--imagem-fundo-carrossel);
    background-position: center;
    background-size: cover;
}

.carrossel::before {
    position: absolute;
    inset: -20px;
    content: "";
    background: inherit;
    filter: blur(14px) brightness(0.72);
    transform: scale(1.04);
}

.carrossel__slides {
    position: relative;
    z-index: 0;
    width: 100%;
    height: 100%;
}

.carrossel__slides img {
    width: 100%;
    height: 100%;
    display: none;
    object-fit: contain;
}

.carrossel__slides img.esta-ativo {
    display: block;
}

.botao-carrossel {
    width: 40px;
    height: 40px;
    padding: 0;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 50%;
    color: #ffffff;
    background: rgb(0 0 0 / 60%);
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    transition: color 160ms ease, background-color 160ms ease;
}

.botao-carrossel:hover:not(:disabled) {
    background: rgb(0 0 0 / 82%);
}

.botao-carrossel:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
}

.botao-carrossel:disabled {
    color: rgb(0 0 0 / 35%);
    background: rgb(0 0 0 / 10%);
    cursor: not-allowed;
}

:root[data-theme="dark"] .botao-carrossel {
    color: #ffffff;
    background: rgb(255 255 255 / 16%);
}

:root[data-theme="dark"] .botao-carrossel:hover:not(:disabled) {
    background: rgb(255 255 255 / 28%);
}

:root[data-theme="dark"] .botao-carrossel:disabled {
    color: rgb(255 255 255 / 28%);
    background: rgb(255 255 255 / 8%);
}

.carrossel__botao {
    position: absolute;
    top: 50%;
    z-index: 2;
    transform: translateY(-50%);
}

.carrossel__botao--anterior { left: 10px; }
.carrossel__botao--proximo { right: 10px; }

@media (max-width: 700px) {
    .botao-carrossel {
        width: 30px;
        height: 30px;
        font-size: 15px;
    }

    .carrossel__botao--anterior { left: 8px; }
    .carrossel__botao--proximo { right: 8px; }
}
