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

.posts-carousel
    position relative
    overflow hidden

    .flickity-enabled
        .flickity-slider,
        .posts-carousel__slide
            min-height 100%

    &__track
        position relative
        z-index 1

        &:focus
            outline none
        &:not(.flickity-enabled)
            display flex
            overflow hidden
            .posts-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
        width 100%
        background-color $color-gray
        z-index 1
        +tablet()
            width 50%
            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()
            width 33.333333%

    &__cover
        padding-top 75%
        background-color $color-style-gray
        background-size cover
        background-position center
        +from(400px)
            padding-top 50%
        +tablet()
            padding-top 65%

    &__content
        display flex
        flex-direction column
        align-items flex-start
        flex 1 1 auto
        padding 32px 24px 40px
        +tablet()
            padding 32px 48px 40px

    &__title
        margin-bottom 24px
        max-width 100%
        color $color-heading-dark
        font-family $font-lora
        font-size 17px
        font-weight 700
        letter-spacing 1px
        line-height 24px
        +tablet()
            font-size 20px
            line-height 32px
            letter-spacing 0
    &__summary
        display none
        max-width 100%
        margin-top auto
        margin-bottom 32px
        color $color-boulder
        font-size 14px
        line-height 24px
        +tablet()
            margin-bottom 60px
        +desktop()
            display block
    &__link
        color $color-steel-blue
        font-size 12px
        font-weight 500
        letter-spacing 2px
        line-height 32px
        border-bottom 1px solid $color-steel-blue
        text-transform uppercase
        transition color .15s, border-color .15s

        &:hover
            color $color-steel-blue
            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-white
        &_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-white
            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