.at-quote {
    padding: 2em 0;
    background-color: #1e1e1e;
}

.at-quote__inner {
    max-width: 40rem;
    margin: auto;
    padding: 1em;
}

.at-quote.--slider {
    display: flex;
    justify-content: center;
    background-color: #ffffff;
}

.--slider .at-quote__inner {
    padding: 1.3em;
    background-color: #ffffff;
}

.--slider .at-quote__content {
    padding: 1.3em;
    background-color: #1e1e1e;
}

.at-quote__quote {
    margin: 0;
    padding: 0;
    border: 0;
    text-align: center;
    color: #fff;
}

.at-quote__quoteText {
    position: relative;
    font-family: inherit;
    font-style: normal;
    font-size: 1.6em;
    line-height: 1.5;
    font-weight: bold;
}

.at-quote__quote .at-quote__quoteText:after {
    display: block;
    position: absolute;
    width: 100%;
    height: 4px;
    bottom: 0;
    content: '';
    background-color: var(--primaryColor, var(--wfaRed));
    -webkit-mask-image: url('../../image/circles.svg');
    mask-image: url('../../image/circles.svg');
    mask-size: 15px;
    mask-repeat: repeat-x;
}

.at-quote__quote::before {
    content: '';
    display: block;
    width: 52px;
    height: 2em;
    margin-inline: auto;
    background-color: var(--primaryColor, var(--wfaRed));
    -webkit-mask-image: url('../../image/quote.svg');
    mask-image: url('../../image/quote.svg');
    mask-position: top center;
    mask-repeat: no-repeat;
}

.at-quote__caption {
    text-align: center;
    color: #fff;
}

@media (min-width: 768px) {
    .at-quote__quoteText {
        font-size: 2.6em;
        background-position: 0 28px;
    }

    .--slider .at-quote__quoteText {
        font-size: 2em;
        background-position: 0 28px;
    }
}

.at-quote__content {
    transform: scale(.9);
    transition: transform .5s cubic-bezier(.25,.46,.45,.94);
}

.at-quote__inner.active .at-quote__content {
    transform: scale(1);
    transition: transform .5s cubic-bezier(.25,.46,.45,.94);
}

.at-quote__inner.active .at-quote__itemTitle {
    opacity: 1;
    transition: opacity .4s cubic-bezier(.25,.46,.45,.94) .3s;
}

/**
 * Quote has image
 */

.--hasImage {
    .at-quote__inner {
        padding: 0;
    }

    .at-quote__content {
        display: flex;
        gap: 1.5rem;
        flex-direction: column;
        padding-inline:2em;
        padding-block: 1.5em 2em;
    }

    @media (min-width: 768px) {
        .at-quote__content {
            flex-direction: row;
            align-items: center;
        }
    }

    .at-quote__imageWrapper {
        display: flex;
        justify-content: center;
        align-items: center;
        flex: 0 0 150px;
        max-width: 150px;
        aspect-ratio: 1;
        border-radius: 50%;
        overflow: clip;
    }

    .at-quote__imageWrapper {
        width: 100%;
        height: 100%;
    }

    .at-quote__quote,
    .at-quote__caption {
        text-align: left;
    }

    .at-quote__quoteText {
        margin-bottom: .5rem;
        font-size: 1.3em;
        line-height: 1.1;
        font-weight: normal;
    }

    .at-quote__caption {
        font-size: .7em;
        line-height: 1.3;
    }

    .at-quote__quote::before,
    .at-quote__quote .at-quote__quoteText:after {
        display: none;
    }
}
