.cast-slider-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 30px;
}
.mg-blog-cast-post.big-post {
    grid-row: span 2;
    grid-column: 1 / 3;
}
.grid-item {
    background-size: cover;
    background-position: center;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
}
.mg-blog-cast-post{
    background-color: #fff;
    display: block;
    padding: 0;
    margin-bottom: 0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}
.mg-blog-cast-post .post-form{
    bottom: 20px;
    left: 20px;
    top: unset;
}
.big-post .mg-blog-cast-img{
    height: 400px;
}
.mg-blog-cast-img{
    width: 100%;
    position: relative;
}
.mg-blog-cast-img img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.mg-blog-cast-post .bottom{
    padding: 20px;
}
.mg-blog-cast-post .bottom p{
    margin-bottom: 0;
}
.mg-blog-cast-post.big-post .title a{
    color: inherit;
}
.mg-blog-cast-post.big-post .title a:hover{
    color: var(--pri-color);
}
.mg-blog-cast-post.big-post .title{
    margin: 1rem 0 0.25rem;
}
.mg-blog-cast-post .title{
    display: -webkit-box;
    max-height: 100%;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}
.mg-blog-cast-post.small-post .mg-blog-cast-img{
    height: 221px;
}
.mg-blog-cast-post.small-post{
    margin-bottom: 0;
}

@media (max-width: 991.98px) {
    .cast-slider-grid{
        grid-template-columns: repeat(2, minmax(0, 1fr));  
    }
}

@media (max-width: 480px) {
    .big-post .mg-blog-cast-img {
        height: 300px;
    }
    .mg-blog-cast-post.small-post .mg-blog-cast-img {
        height: 170px;
    }
    .mg-blog-cast-post.small-post .bottom{
        padding: 10px;
    }

}