.main-content {
    padding: 2rem var(--spacing);
}

.posts {
    width: 100%;
    display: grid;
    row-gap: 2rem;
    column-gap: 3rem;
}

.posts .card {
    border-radius: 8px;
    padding: 1rem;
    background-color: #a6a6a6;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    height: 400px;
    background: radial-gradient(circle at 50% 50%, #ffffff, #fffdfd, #939090);
    cursor: pointer;
}

.posts .card .btn-link {
    width: 90%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.posts .card img {
    height: 45%;
    width: 100%;
}
.posts .card p {
    margin-bottom: 0;
}

.posts .card p.content {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-clamp: 3;
}

.posts .card p.text-right {
    width: 100%;
    margin-bottom: 0;
    margin-top: auto;
}

@media (min-width: 768px) {
    .posts {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1280px) {
    .posts {
        grid-template-columns: repeat(3, 1fr);
    }
}
