@use "../abstracts/mixins";
@use "../abstracts/variables";

.carousel{
    position: absolute;
    top: 0; left: 0; right: 0; bottom: -1px;
    overflow: hidden;
    z-index: 0;

    &--nb{
        .carousel_slide_cover_img{
            filter: grayscale(100%);
        }
    }

    &_slide{
        position: absolute;
        top: 0; left: 0; right: 0; bottom: 0;
        overflow: hidden;
        will-change: transform;
        
        &_cover{
            position: absolute;
            top: 0; left: 0; right: 0; bottom: 0;
            overflow: hidden;
            will-change: transform;
            
            &_img{
                position: absolute;
                top: 0; left: 0; right: 0; bottom: 0;
                background-position: center center;
                background-repeat: no-repeat;
                background-size: cover;
                will-change: transform;
            }
        }
    }

    &_counter{
        position: relative;
        height: 70px;
        padding-left: 64px;
        @include mixins.fontSize(70,70);
        line-height: 70px;
        overflow: hidden;

        @include mixins.respondTo('md'){
            @include mixins.fontSize(50,50,variables.$baseFontSizeMd);
            height: 50px;
            line-height: 50px;
        }

        @include mixins.respondTo('xs'){
            height: 40px;
            line-height: 40px;
            padding-left: 32px;
            @include mixins.fontSize(30,40,variables.$baseFontSizeXs);
        }

        &_list{
            position: absolute;
            top: 0; left: 0;
            text-align: right;
            width: 60px;
            will-change: transform;
            
            @include mixins.respondTo('xs'){
                width: 30px;
            }
        }
    }
}