/*===============================
Archive Masonry Layout
==============================*/
.blog-grid-masonry{
    .rishi-container-wrap{
        @include flex;
        -webkit-flex-wrap: wrap;
        -ms-flex-wrap: wrap;
        flex-wrap: wrap;
        margin-left: -15px;
        margin-right: -15px;

        &[data-row-per-col="2"]{
            .rishi-post{
                width: 50%;
                @include media(sm){
                    width: 100%;
                }
            }
        }

        &[data-row-per-col="3"]{
            .rishi-post{
                width: 33.333%;
                @include media(md){
                    width: 50%;
                }
                @include media(sm){
                    width: 100%;
                }
            }
        }
    
        &[data-row-per-col="4"]{
            .rishi-post{
                width: 25%;
                @include media(md){
                    width: 50%;
                }
                @include media(sm){
                    width: 100%;
                }
            }
        }
    }
    .rishi-post{
        padding-right: 15px;
        padding-left: 15px;
        &:last-of-type{
            margin-bottom: 0;
        }

        .entry-content-main-wrap{
            div:first-of-type.entry-content-wrap{
                padding: 0 0 20px;
            }
        
            .rt-featured-image{
                margin-bottom: 10px;
                margin-left: -30px;
                margin-right: -30px;
                @include media(sm){
                    margin-left: -15px;
                    margin-right: -15px;
                }
    
                &:first-child {
                    margin-top: calc(30px * -1);
                }

                &:last-child {
                    margin-bottom: calc(40px * -1);
                }
            }
        }
    }
}
