
.skeleton {
    background-color: #e2e2e2;
    border-radius: 4px;
    position: relative;
    overflow: hidden;
}

.newspost.skeleton {
    background-color: #f3f3f3;
}

.newspost.skeleton::after {
    animation: shimmer 3s infinite;
}

.skeleton::after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    height: 100%;
    width: 100%;
    background: linear-gradient(to right,
            transparent 0%,
            rgba(255, 255, 255, 0.6) 50%,
            transparent 100%);
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    100% {
        transform: translateX(200%);
    }
}

.newsposts {
    margin: auto;
    max-width: 768px;
}

.newspost {
    width: 100%;
    padding: 32px;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-bottom: 24px;
    transition: box-shadow 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.newspost:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.newspost .header {
    display: flex;
    align-items: flex-start;
    margin-bottom: 12px;
}

.newspost .info {
    flex: 1;
    padding-left: 16px;
}

.newspost .avatar {
    border-radius: 50%;
    background-color: lightgray;
    background-image: url(global/img/favicon-96x96.png);
    background-size: contain;
    width: 60px;
    height: 60px;
}

.newspost .header .info .name {
    width: fit-content;
    margin-bottom: 6px;
    font-weight: bold;
}

.newspost .header .info .date {
    width: fit-content;
    font-size: 0.8em;
}

.newspost .text {
    white-space: pre-wrap;
}

.newspost .image img {
    display: block;
    margin: auto;
    max-height: 512px;
    width: 100%;
    object-fit: contain;
    border-radius: 8px;
    margin-top: 16px;
}

.newspost.skeleton .header .info .name {
    width: 256px;
    height: 16px;
}

.newspost.skeleton .header .info .date {
    width: 64px;
    height: 16px;
}

.newspost.skeleton .avatar {
    background-image: unset;
    background-color: #e2e2e2;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-bottom: 16px;
}

.newspost.skeleton .title {
    width: 70%;
    height: 20px;
    margin-bottom: 12px;
}

.newspost.skeleton .text {
    width: 100%;
    height: 14px;
    margin-bottom: 8px;
}

.newspost.skeleton .image {
    width: 100%;
    height: 386px;
    margin-bottom: 8px;
}

.divider {
    height: 1px;
    background-color: #ddd;
    margin: 12px 0;
}

