.mg_post__inner {
    width: calc(var(--container) / 6 - var(--col-gap));
    height: 300px;
    position: relative;
    perspective: 2500px;
    overflow: hidden;
    border-radius: var(--radius-md);
}

.mg_post__content {
    position: absolute;
    left: 0;
    padding: 10px 20px;
    z-index: 2;
    width: 100%;
    transition: all .5s;
    bottom: 0;
}

.mg_post__inner::after {
    background-image: linear-gradient(to bottom,transparent 20%,rgba(12, 13, 19, 0.9) 68%,rgba(12, 13, 19) 97%);
    position: absolute;
    height: 120px;
    content: '';
    left: 0;
    bottom: 0;
    z-index: 1;
    width: 100%;
    pointer-events: none;
}

.mg_post__content .post_title {
    font-weight: 600;
}

.mg_post__inner:hover .mg_post__image {
    transform: perspective(900px) translateY(-5%) rotateX(25deg) translateZ(0);
}

figure.mg_post__image {
    transition: .5s all;
    overflow: hidden;
}
.mg_post__image img {
  width: 100%;
}

.mg_post__inner:hover .mg_post__content {
    transform: translate3d(0%, -20px, 100px);
}

.mg_post__inner::before {
    top: 0;
    height: 120px;
    background-image: linear-gradient(to top, transparent 46%, rgba(12, 13, 19, 0.5) 68%, rgba(12, 13, 19) 97%);
    position: absolute;
    content: '';
    width: 100%;
    transition: .5s;
    z-index: 2;
    pointer-events: none;
    opacity: 0;
}

.mg_post__inner:hover::before {
    opacity: 1;
}


/*responsive*/
@media screen and (max-width: 768px ){
.la-recent-card__cover img {
    height: calc(var(--container) / 2 - var(--col-gap));
}
.mg_post__inner {
    width: calc(var(--container) / 3 - var(--col-gap));
}
}
@media screen and (max-width: 575px ){
    .la-recent__grid {
    grid-template-columns: repeat(2, 2fr);
}

.la-recent-card__cover img {
  height: 50vw;
}
.la-recent-card__title {
  font-size: 15px;
}
.comic_genres {
  display: none;
}
.la-recent-card__badge {
  display: none;
}
.mg_post__inner {
    width: 100%;
    height: 150px;
}
.la-recent-card__info {
    padding: 5px;
}
.mg_post__content {
    padding: 5px;
}
.mg_post__content .post_title {
    font-size: 14px;
    font-weight: 500;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    text-overflow: ellipsis;
    -webkit-box-orient: vertical;
}
}