.xmp-postx-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    margin: 20px 0;
}

.xmp-postx-card {
    min-width: 0;
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 14px 36px rgba(20, 28, 36, 0.12);
}

.xmp-postx-card-link {
    position: relative;
    display: block;
    min-height: 250px;
    color: inherit;
    text-decoration: none;
}

.xmp-postx-card-link:hover {
    color: inherit;
}

.xmp-postx-media {
    display: block;
    width: 100%;
    height: 250px;
    overflow: hidden;
    background: #f4f1ec;
}

.xmp-postx-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 220ms ease;
}

.xmp-postx-card:hover .xmp-postx-media img {
    transform: scale(1.035);
}

.xmp-postx-grid-overlay .xmp-postx-body {
    position: absolute;
    inset: auto 0 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 26px 22px 20px;
    color: #fff;
    background: linear-gradient(180deg, rgba(12, 15, 18, 0) 0%, rgba(12, 15, 18, 0.78) 78%);
}

.xmp-postx-grid-plain .xmp-postx-card-link {
    min-height: 100%;
}

.xmp-postx-grid-plain .xmp-postx-media {
    height: 210px;
}

.xmp-postx-grid-plain .xmp-postx-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 18px;
}

.xmp-postx-terms {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    color: #d7b881;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.5;
}

.xmp-postx-grid-plain .xmp-postx-terms {
    color: #9c7745;
}

.xmp-postx-title {
    display: block;
    color: inherit;
    font-size: 22px;
    font-weight: 800;
    line-height: 1.35;
}

.xmp-postx-author,
.xmp-postx-excerpt {
    display: block;
    color: rgba(255, 255, 255, 0.84);
    font-size: 14px;
    line-height: 1.75;
}

.xmp-postx-grid-plain .xmp-postx-excerpt {
    color: #70665e;
    font-size: 15px;
}

.xmp-postx-more {
    color: #bd8b47;
    font-weight: 800;
}

@media (max-width: 900px) {
    .xmp-postx-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 620px) {
    .xmp-postx-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .xmp-postx-media,
    .xmp-postx-grid-plain .xmp-postx-media {
        height: 190px;
    }

    .xmp-postx-title {
        font-size: 20px;
    }
}
