@import '../_mixins.scss';

.Carousel {
    display: flex;
    flex: 1;
    flex-flow: column;
    align-items: center;
    justify-content: center;
    width: 100%;

    .Carousel__slides {
        min-height: 380px;
        width: 100%;
        position: relative;
        display: flex;
        justify-content: center;

        .Carousel__slide {
            position: absolute;
            bottom: 0;
            opacity: 0;
        }

        .Carousel__slide-current {
            opacity: 1;
        }
    }

    .Carousel__pagination {
        display: flex;
        flex: 1;
        align-items: center;
        justify-content: center;
        margin-top: 22px;
    }
}

.inFromRight {
    @include inFromRight(30);

    animation: inFromRight30 0.4s ease-in-out;
}

.inFromLeft {
    @include inFromLeft(30);

    animation: inFromLeft30 0.4s ease-in-out;
}

.outToRight {
    @include outToRight(30);

    animation: outToRight30 0.4s ease-in-out;
}

.outToLeft {
    @include outToLeft(30);

    animation: outToLeft30 0.4s ease-in-out;
}
