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

$post-box-shadow-color = rgba(#c7c7c7, .3)
$post-title-text-color = #1c1b20
$post-teaser-text-color = #93979c
$post-subscribe-text-color = $post-title-text-color
$post-empty-text-color = #c7c7c7

.posts_list
    margin 0 0 50px
    +tablet()
        &_empty
            margin-bottom 45px

    +desktop()
        display flex
        justify-content space-between
        align-items stretch
        flex-wrap wrap
        margin-bottom 245px

    .post
        display block
        margin 0 auto 30px
        box-shadow 0 0 27.55px 1.45px $post-box-shadow-color
        +tablet()
            width 65%
            margin 0 auto 30px
        +desktop()
            display flex
            flex-direction column
            justify-content flex-start
            align-items flex-start
            width calc(50% - 20px)
            &:nth-child(2n)
                margin-right 0
            &:nth-child(2n + 1)
                margin-left 0
                transform translateY(195px)

        &__meta
            margin-bottom 25px

        &__description
            padding 25px 25px 0
            max-width 100%

        &__footer
            margin-top auto
            padding 0 25px 25px
            max-width 100%

        &__cover
            margin-bottom 0
            &:before
                padding-top 60%

        &__title
            margin-bottom 25px
            color $post-title-text-color
            font-family $font-lora
            font-size 26px
            font-weight 700
            line-height 1.25

        &__teaser
            margin-bottom 25px
            color $post-teaser-text-color
            font-size 15px
            line-height 1.5

        &__button-read-more
            padding-top 15px
            padding-bottom 11px

    .posts__empty-content
        flex 1
        margin 45px 20px
        color $post-empty-text-color
        font-size 30px
        font-weight 900
        letter-spacing 1px
        line-height 1.25
        text-align center
        text-transform uppercase
        +tablet()
            font-size 45px