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

$portfolio-list-entry-meta-color = #93979c
$portfolio-list-entry-title-color = #272728
$portfolio-list-entry-teaser-color = #93979c
$portfolio-list-entry-style-color = #272728
$portfolio-list-empty-text-color = #c7c7c7

.portfolio-list
    display flex
    justify-content center

    +tablet()
        &_empty
            margin-bottom 45px

        +widescreen()
            justify-content space-between

    &__layout-column
        width 100%

        +tablet()
            width 65%
        +widescreen()
            width 50%

        &_mobile .portfolio-list__entry
            margin-bottom 30px
            &:nth-child(2n + 1)
                .portfolio-list__description
                    &:before, &:after
                        left auto
                        right 0
            &:nth-child(2n)
                .portfolio-list__description
                    &:before, &:after
                        left 0
                        right auto
            +tablet()
                margin-bottom 90px
            +widescreen()
                &:nth-child(2n)
                    display none
                &:nth-child(4n + 1)
                    margin 0 50px 140px 0
                    .portfolio-list__cover
                        padding-top 65%
                    .portfolio-list__description
                        &:before, &:after
                            left auto
                            right 0
                &:nth-child(4n + 3)
                    margin 0 100px 140px 0
                    .portfolio-list__cover
                        padding-top 105%
                        background-size 75% auto
                        background-position top right
                        &:nth-child(2n + 1)
                            display none
                        &:nth-child(2n)
                            display block
                    .portfolio-list__description
                        margin-top -50px
                        margin-left 0
                        &:before, &:after
                            left 0
                            right auto

        &_desktop
            padding-top 140px

            +mobile()
                display none
            +tablet-only()
                display none
            +desktop-only()
                display none

            .portfolio-list__entry
                &:nth-child(2n + 1)
                    margin 0 0 140px 100px
                    .portfolio-list__cover
                        padding-top 105%
                        background-size 75% auto
                        background-position top right
                        &:nth-child(2n + 1)
                            display none
                        &:nth-child(2n)
                            display block
                    .portfolio-list__description
                        margin-top -50px
                        margin-left 0
                        &:before, &:after
                            left 0
                            right auto
                &:nth-child(2n)
                    margin 0 0 140px 50px
                    .portfolio-list__cover
                        padding-top 65%
                    .portfolio-list__description
                        &:before, &:after
                            left auto
                            right 0

    &__cover
        width 100%
        padding-top 60%
        background-position center
        background-repeat no-repeat
        background-size cover
        &:nth-child(2n)
            display none
        +tablet()
            padding-top 50%

    &__description
        position relative
        padding 25px 40px
        background $color-white
        +widescreen()
            margin -84px 30px 0 50px

        &:after, &:before
            content ""
            position absolute
            display block
            bottom 0
            background $portfolio-list-entry-style-color
        &:before
            height 48px
            width 1px
        &:after
            width 48px
            height 1px

    &__meta
        display flex
        justify-content space-between
        align-items center
        flex-wrap wrap
        margin-bottom 20px

    &__link .link__text
        letter-spacing 2px
        border none
    &__link .link__icon
        margin-left 15px
        font-size 10px

    &__hint-square
        color $portfolio-list-entry-meta-color
        font-size 13px
        letter-spacing 1.5px
        text-transform uppercase

    &__title
        margin-bottom 10px
        color $portfolio-list-entry-title-color
        font-size 25px
        line-height 1.25

    &__teaser
        padding 0
        color $portfolio-list-entry-teaser-color
        font-size 13px
        line-height 1.6

    &__empty-content
        flex 1
        margin 45px 20px
        color $portfolio-list-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