.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    padding: 20px;
    width: 100%;
    max-width: 1200px;
}

.post-container {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s;
    display: grid;
    grid-template-rows: auto 1fr auto;
}

.post-container:hover {
    transform: scale(1.02);
}

.post-header {
    display: flex;
    align-items: center;
    padding: 16px;
    border-bottom: 1px solid #ddd;
}

.post-header img {
    border-radius: 50%;
    width: 50px;
    height: 50px;
    object-fit: cover;
    margin-right: 12px;
}

.post-header h2 {
    margin: 0;
    font-size: 18px;
    color: #333;
}

.post-content {
    padding: 16px;
}

.post-content img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.post-feed {
    padding: 16px;
    border-top: 1px solid #ddd;
}

.post-feed p {
    margin: 0;
    color: #555;
    font-size: 14px;
}

@media (max-width: 768px) {
    .post-header h2 {
        font-size: 16px;
    }

    .post-content img {
        border-radius: 6px;
    }
}

@media (max-width: 480px) {
    .post-header img {
        width: 40px;
        height: 40px;
    }

    .post-header h2 {
        font-size: 14px;
    }
}
