html{
    scroll-behavior: smooth;
}
.posts {
    width: 90%;
    background-color: #ffffff;
    margin: 0 auto;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.posts-head {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 40px;
}

.post-card {
    border: 1px solid #ffffff;
    border-radius: 8px;
    overflow: hidden; 
}

.post-card img,
.post-card video,
.post-card audio,
.post-card iframe {
    height: 250px;
    width: 100%;
    max-width: 100%;
    max-height: 300px;
    border-radius: 8px;
    object-fit: cover; 
}

.aud-item {
    background: url('http://s1.bwallpapers.com/wallpapers/2014/02/06/music-notes_090810705.jpg');
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.post-card h3 {
    font-size: 1.5em;
    margin: 10px 0;
}

.post-card p {
    font-size: 1em;
    color: #555;
}

.user-info {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.user-info img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 10px;
    border: solid 1px rgb(174, 174, 255);
}

.actions {
    margin-top: 10px;
}

.actions button {
    padding: 5px 10px;
    margin-right: 5px;
    cursor: pointer;
}

.post-card .video-desc {
    display: flex;
}

.hidden {
    display: none;
}
span{
    color: #004fe2;
}
.toggle-btn {
    cursor: pointer;
    color: #004fe2;
    font-size: 14px;
    margin-top: 5px;
    display: inline-block;
    font-weight: 600;
    text-decoration: underline;
}

.post-footer .hash {
    display: none;
}

html, body {
    height: 100%;
    overflow: auto;
}


@media (max-width: 800px) {
    .posts {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }
}
@media (max-width: 500px) {
    .posts {
        grid-template-columns: repeat(1, 1fr);
        gap: 40px;
    }
    .post-card img, .post-card video, .post-card audio, .post-card iframe {
        max-height: 200px;
    }
}