/* Article list */

.news {
    font-size: 0.9em;
}

.news .article {
    display: flex;
    flex-direction: column;
    margin: 1em 0;
    align-items: center;
    padding: 0.2em;
    border-radius: 3px;
    border: 1px solid rgb(201, 201, 201);
    box-shadow: 0 2px 4px rgb(199, 199, 199);
    overflow: hidden;
    position: relative;
}

@media (min-width: 800px) {
    .news .article {
        flex-direction: row;
        max-height: 12em;
        min-height: 12em;
    }
}

/* Article thumbnail */

.news .article .thumbnail-container {
    width: 100%;
    height: 100%;
}

.news .article .thumbnail-container img {
    width: 100%;
    display: block;
    max-height: 30em;
    object-fit: contain;
}

@media (min-width: 800px) {
    .news .article .thumbnail-container {
        width: 50%;
    }

    .news .article .thumbnail-container img {
        max-height: 100%;
    }
}

/* Article info */
.news .article .article-info {
    width: 95%;
    margin: 1em;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

@media (min-width: 800px) {
    .news .article .article-info {
        width: 50%;
        height: 100%;
        max-height: 10em;
    }
}

.article-title {
    margin: 0;
    font-size: 1.25em;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex-shrink: 0;
}

.article-subtitle time {
    margin-right: 1.3em;
}

.article-subtitle time::before, .article-subtitle .article-author::before {
    content: '';
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    display: inline-block;
    position: relative;
    top: 0.22em;
    height: 1.1em;
    width: 1.1em;
    margin-right: 0.5em;
}

.article-subtitle time::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -10 108 94' width='108' height='94' fill='none' stroke='grey' stroke-width='8'%3E%3Cpath d='M0 70a10 10 0 0010 10h80a10 10 0 0010-10v-60a10 10 0 00-10-10h-80a10 10 0 00-10 10z' /%3E%3Cpath d='M0 20h100' /%3E%3Cpath stroke-linecap='round' d='M16-6v12' /%3E%3Cpath stroke-linecap='round' d='M33-6v12' /%3E%3Cpath stroke-linecap='round' d='M50-6v12' /%3E%3Cpath stroke-linecap='round' d='M67-6v12' /%3E%3Cpath stroke-linecap='round' d='M84-6v12' /%3E%3C/svg%3E");
}

.article-subtitle .article-author::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-10 -12 20 22' width='200' height='220' fill='grey'%3E%3Cpath d='M-5 0a5 5 0 00-5 5v5h20v-5a5 5 0 00-5-5z' /%3E%3Ccircle cx='0' cy='-7' r='5' /%3E%3C/svg%3E");
}

.news .article-subtitle {
    color: grey;
    flex-shrink: 0;
    margin: 0.5em 0;
}

.news .article-summary {
    color: rgb(85, 85, 85);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.4em;
    max-height: 4.2em; /* 3 lines * 1.4em line-height */
    flex: 1;
    margin: 0;
}

@media (min-width: 800px) {
    .news .article-summary {
        -webkit-line-clamp: 2;
        max-height: 2.8em; /* 2 lines * 1.4em line-height */
    }
}


/* Single article */

#blog-article #thumbnail {
    max-width: 100%;
    max-height: 750px;
}

