@import '~@style/_config/app-bootstrap-bulma'

.portfolio-carousel
    position relative
    overflow hidden

    &__track
        position relative
        z-index 1

        &:focus
            outline none
        &:not(.flickity-enabled)
            display flex
            overflow hidden
            .portfolio-carousel__slide
                flex 1 0 100%
                +tablet()
                    flex 1 0 50%
                +fullhd()
                    flex 1 0 33.333333%

    &__slide
        position relative
        display flex
        flex-direction column
        justify-content center
        align-items flex-start
        width 100%
        height 480px
        padding 0 1.5rem
        background-size cover
        background-position center
        z-index 1
        +tablet()
            width 50%
            height 648px
            border-left 2px solid $color-white
            &.is-selected
                border-left none
                z-index 2
                &:after
                    content ''
                    position absolute
                    height 100%
                    width 2px
                    left -2px
                    top 0
                    background $color-white
        +fullhd()
            padding 30px 50px
            width 33.333333%

        &:before
            position absolute
            display block
            content ''
            left 0
            top 0
            width 100%
            height 100%
            background rgba($color-black, .2)
            z-index 0

    &__list-link
        position relative
        margin 0 0 32px
        padding 8px 16px
        color $color-boulder
        font-size 13px
        line-height 16px
        background $color-white
        box-shadow inset 1px 1px 3px rgba($color-black, 0)
        border-radius 20px
        transition background .15s, box-shadow .15s

        &:hover
            color $color-white
            background rgba($color-brand, 1)
        &:focus, &:active
            box-shadow inset 1px 1px 3px rgba($color-black, .3)

        +tablet()
            margin 0 0 48px

    &__work-title
        width 100%
        position relative
        margin 0 0 32px
        font-family $font-lora
        color $color-white
        font-size 17px
        font-weight 700
        letter-spacing 1px
        line-height 24px
        +tablet()
            margin 0 0 48px
            font-size 26px
            line-height 40px

    &__work-link
        position relative
        color $color-white
        font-size 12px
        font-weight 700
        letter-spacing 2px
        line-height 32px
        border-bottom 1px solid $color-white
        text-transform uppercase
        transition color .15s, border-color .15s

        &:hover
            color $color-white
            border-color transparent

    &__stats
        min-width 100px
        padding 4px 14px
        color $color-heading-dark
        font-family $font-lora
        font-size 17px
        font-weight 700
        letter-spacing 1px
        line-height 32px
        text-align center
        +tablet()
            min-width 110px
            padding 8px 24px

    &__nav
        background $color-gray
        &_controls
            position absolute
            display flex
            justify-content flex-end
            align-items center
            right 0
            bottom 0
            z-index 2

        &-control
            control()
            unselectable()
            justify-content center
            border-left 1px solid #d8d8d8
            height 40px
            width 40px
            color $color-heading-dark
            font-size 12px
            line-height 1
            background $color-gray
            border-radius 0
            transition color .15s, background .15s
            +tablet()
                height 48px
                width 48px
            &:hover
                background rgba($color-gray-light, .7)
            .touch-support &:hover
                background $color-white
            &:active
                background $color-gray-light