* .news {
    box-sizing: border-box;
}

.news {
    --border-radius: 15px;
    --border-radius-avatar: 100%;
    --gap: 0;
    --image-and-text-gap: 10px;
    --links-gap: 5px;
    --padding: 10px;
    
    background: #fff;
    border-radius: var(--border-radius);
    color: #444;
    display: flex;
    flex-wrap: wrap;
    font-size: 10pt;
    gap: var(--gap);
    line-height: 1.5;
}

.news-header {
    border-radius: var(--border-radius);
    position: relative;
    width: 100%;
}

.news-title {
    padding: var(--padding);
    text-align: center;
}

.news-extras {
    align-items: center;
    background: url(bg.jpg);
    background-position: center;
    background-size: cover;
    color: #fff;
    display: flex;
    flex: 1;
    flex-wrap: wrap;
    gap: var(--links-gap);
    padding: var(--padding) var(--padding) var(--padding) 100px;
    text-shadow: 0 2px 2px rgba(0, 0, 0, 30%);
}

.avatar-align-right .news-extras {
    padding: var(--padding) 100px var(--padding) var(--padding);
}

.news-extras a {
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
    background: rgba(255, 255, 255, 20%);
    border-radius: var(--border-radius);
    box-shadow: 0 3px 3px rgba(0, 0, 0, 10%);
    color: #fff;
    display: block;
    padding: 5px var(--padding);
    text-decoration: none;
    text-shadow: 0 2px 2px rgba(0, 0, 0, 30%);
}

.news-extras a:hover {
    background: rgba(255, 255, 255, 30%);
}

.news-image {
    align-content: center;
    align-items: center;
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
    background: rgba(255, 255, 255, 20%);
    border-radius: var(--border-radius-avatar);
    box-shadow: 0 3px 3px rgba(0, 0, 0, 10%);
    display: flex;
    margin: var(--padding);
    padding: 10px;
    position: absolute;
    top: 17px;
}

.avatar-align-right .news-image {
    right: 0;
}

.news-image img {
    background: #f0f0f0;
    border: 2px solid rgba(0, 0, 0, 5%);
    border-radius: var(--border-radius-avatar);
    display: block;
    width: 50px;
}

.news-content {
    background: #f7f7f7;
    flex: 1;
    padding: var(--padding);
    padding-top: calc(var(--padding) + var(--image-and-text-gap));
}

.news-footer {
    align-items: center;
    display: flex;
    gap: 5px 15px;
    justify-content: right;
    padding: var(--padding);
    width: 100%;
}

.news-content p:first-child {
    margin-top: 0;
}

.news-content p:last-child {
    margin-bottom: 0;
}

@media screen and (max-width: 768px) {
    .news {
        width: 100%;
    }

    .news-image {
        top: 25px;
    }

    .news-image img {
        height: 35px;
        margin: 0;
        width: 35px;
    }

    .news-extras {
        padding: var(--padding) var(--padding) var(--padding) 80px;
    }

    .avatar-align-right .news-extras {
        padding: var(--padding) 80px var(--padding) var(--padding);
    }
}