#main-article {
    article {
        flex-direction: var(--article-flex-direction);
        height: var(--article-height);

        .article-picture {
            width: var(--article-picture-width);
            height: var(--article-picture-height);

            img {
                width: var(--article-picture-image-width)
            }

            @media screen and (min-width: 768px) {
                .article-picture-intersect {
                    transform: var(--article-picture-intersect-transform);
                    transform-origin: bottom right;
                    top: var(--article-picture-intersect-top);
                    left: var(--article-picture-intersect-left);
                }
            }
        }

        .article-reading-time {
            display: var(--article-reading-time-display);
        }

        .article-content {
            width: var(--article-content-width);

            .article-content-text {
                p {
                    -webkit-line-clamp: var(--article-content-text-line-clamp);
                }
            }

            .article-content-link {
                display: var(--article-content-link-display, flex);
            }
        }
    }
}

article {
    display: flex;
    flex-direction: column;
    gap: 0;
    border-radius: var(--primary-border-radius);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    max-height: 600px;

    &:hover {
        .article-content {
            background-color: var(--primary-font);

            .article-content-text {
                h3 {
                    text-decoration: underline;
                }

                h3, p {
                    color: var(--color-wheat);
                }
            }
        }

        .article-picture {

            .article-picture-intersect {
                transform: scaleY(1.3);
                bottom: var(--article-picture-intersect-bottom-hover);

                path {
                    fill: var(--primary-font);
                }
            }
        }
    }

    .article-picture {
        width: 100%;
        height: 300px;
        position: relative;
        overflow: hidden;

        img {
            position: absolute;
            left: -10%;
            width: 130%;
            transition: .2s ease-in-out;
        }

        .article-picture-intersect {
            transition: .2s ease-in-out;
            position: absolute;
            width: 100%;
            bottom: var(--article-picture-intersect-bottom);

            path {
                transition: .2s ease-in-out;
            }
        }
    }

    .article-content {
        transition: .2s ease-in-out;
        background-color: var(--color-wheat);
        display: flex;
        flex-direction: column;
        gap: 16px;
        height: var(--article-content-height);

        .article-content-text {
            padding: var(--article-content-padding);
            display: flex;
            flex-direction: column;
            gap: 12px;

            h3, p {
                color: var(--primary-font);
                margin: 0;
            }

            h3 {
                font-family: var(--font-barlow-condensed);
                font-weight: var(--article-content-page-title-weight);
                font-size: var(--article-content-page-title);
                font-style: italic;
                line-height: var(--article-content-page-title-line-height);
                display: -webkit-box;
                -webkit-line-clamp: 3;
                -webkit-box-orient: vertical;
                overflow: hidden;
                letter-spacing: calc(var(--article-content-page-title)*(-2)/100);
            }

            p {
                font-family: var(--font-barlow);
                font-size: var(--article-content-page-paragraph);
                font-weight: 500;
                line-height: var(--article-content-page-paragraph-line-height);
                max-height: 100px;
                display: -webkit-box;
                -webkit-line-clamp: 3;
                -webkit-box-orient: vertical;
                overflow: hidden;
                letter-spacing: calc(var(--article-content-page-paragraph)*(2)/100);
            }
        }

        .article-content-link {
            height: var(--article-content-link-height);
            display: flex;
            flex-direction: column;
            align-items: end;
            justify-content: end;
            padding: var(--article-content-link-padding);

            .article-content-link-arrow {
                width: var(--article-link-arrow-size);
            }
        }
    }

    .article-reading-time {
        z-index: 1;
        display: flex;
        flex-direction: row;
        gap: .5rem;
        align-items: center;
        position: absolute;
        top: 10px;
        left: 10px;
        border-radius: var(--primary-border-radius);
        padding: 10px 18px 10px 12px;
        background-color: var(--primary-color);

        img {
            width: 17px;
        }

        span {
            font-family: var(--font-barlow-condensed);
            font-weight: 700;
            font-size: 12px;
            text-transform: uppercase;
            color: var(--color-white);
            letter-spacing: 1px;
            font-style: italic;
        }
    }
}