@import '../lib';

// thumbnail problem
.post56--list--thumb-pixel {
    .thumbnail56 {
        @include media( tablet ) {
            width: 200px;
        }
        @include media( mobile ) {
            width: 100px;
        }
    }
    .thumbnail56 + .post56__text {
        @include media( tablet ) {
            width: calc( 100% - 200px );
        }
        @include media( mobile ) {
            width: calc( 100% - 100px );
        }
    }
}
.post56--list--thumb-percent {
    .thumbnail56 {
        @include media( tablet ) {
            width: 60%;
        }
        @include media( mobile ) {
            width: 40%;
        }
    }
    .thumbnail56 + .post56__text {
        @include media( tablet ) {
            width: calc( 100% - 60% );
        }
        @include media( mobile ) {
            width: calc( 100% - 40% );
        }
    }
}

/* LIST
=================================================================================*/
.blog56--list {
    display: grid;
    row-gap: 32px;
    column-gap: 32px;
    position: relative;
}
.post56--list {
    display: flex;
    position: relative;
    z-index: 20;

    .post56__text {
        width: 100%;
        text-align: left; // force it
        .meta56 {
            justify-content: flex-start;
        }
    }

    .thumbnail56 {
        width: 40%;
        order: 1;
        padding-right: 24px;
        flex: none;
        margin-bottom: 0 !important;

        @include media( tablet ) {
            padding-right: 14px;
        }
        @include media( tablet ) {
            padding-right: 6px;
        }
    }
    .thumbnail56 + .post56__text {
        width: calc(100% - 40%);
        order: 2;
        flex: none;
    }
}
.valign-top {
    align-items: stretch;
}
.valign-middle {
    align-items: center;
}
.valign-bottom {
    align-items: flex-end;
}

/**
 * thumbnail right
 */
.post56--list--thumb-right {
    .thumbnail56 {
        order: 3;
        padding-left: 24px;
        padding-right: 0;

        @include media( tablet ) {
            padding-right: 0;
            padding-left: 14px;
        }
        @include media( tablet ) {
            padding-right: 0;
            padding-left: 6px;
        }
    }
}

/* -------------------------        list mobile layout grid */
@include media( mobile ) {
    .list56--mobile-grid {
        .post56--list {
            display: block;
        }
        .thumbnail56,
        .post56__text {
            width: 100% !important;
            max-width: 100% !important;
            padding-left: 0 !important;
            padding-right: 0 !important;
        }
        .thumbnail56 + .post56__text {
            margin-top: 10px;
        }
    }
}