/*==================
Article Previews
==================*/

.article-preview {
    height: 100%;
    width: 100%;
    outline: 4px solid #edeffe;
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    overflow-y: hidden;
    cursor: pointer;
}

.article-preview img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.visibility-cover {
    position: absolute;
    width: 100%;
    height: 150%;
    transform: translateY(33%);
    background-image: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.2));
    transition: transform 0.5s;
}

.article-preview:hover .visibility-cover,
.article-preview:focus .visibility-cover {
    transform: translateY(0%);
}

.article-content {
    z-index: 1;
    width: 80%;
    box-sizing: border-box;
    padding: 2rem;
    color: var(--co-inverse);
}

.article-content h2 {
    color: inherit;
    font-size: var(--fs-xl);
    margin-bottom: 0.5rem;
}

.article-content h3 {
    color: inherit;
    font-size: var(--fs-l);
}

.article-content p {
    color: inherit;
    font-size: var(--fs-m);
    margin-top: 1rem;
    max-height: 0px;
    overflow: hidden;
    transition: max-height 0.5s ease-in-out;
}

.brief-desc {
    display: none;
}

.article-preview:hover .article-content p,
.article-preview:focus .article-content p {
    max-height: 200px;
}

.article-preview-small {
    font-size: 14px;
}

@media screen and (max-width: 1000px) {
    .article-preview {
        font-size: 14px;
    }

    .brief-desc {
        display: block;
    }

    .long-desc {
        display: none;
    }
}