.article-list {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;

    align-items: stretch;
    column-gap: 3.3vw;
    row-gap: 6.75vh;

    margin: 0;
    padding: 4.5vh 7% 0;

    width: 86%;

    list-style-type: none;
    justify-content: center;
}

.article-item {
    display: block;
    position: relative;
    min-width: 300px;
    width: 20vw;

    aspect-ratio: 25/35;

    border-radius: 20px;
    cursor: pointer;
    color: white;
    border: solid black;
    text-align: left;

    --item-color: gray;
    --item-pos: 10px;

    background: var(--item-color);
    transition: 0.3s;
}

.article-item-title {
    display: flex;

    align-items: center;
    width: 100%;
    height: 8%;
    padding: 2% 0 3%;
    
    margin: 0;
}

.article-item-title h2 {
    padding-left: 10%;
    padding-right: 10%;
    width: 100%;
    text-align: center;
    margin-left: 0;
    margin-inline: 0;
}

.article-item-title > h2 {
    font-size: clamp(24px, 1.7cqi, 35px);
    text-shadow: 2px 0 #000, -2px 0 #000, 0 2px #000, 0 -2px #000,
        1px 1px #000, -1px -1px #000, 1px -1px #000, -1px 1px #000;
}

.article-item-description {
    --max-lines: 5;
    --line-height: 1.3em;
    --font-size: clamp(13px, 0.85vw, 17px);

    position: relative;

    font-size: var(--font-size);
    line-height: var(--line-height);
    overflow: hidden;
    padding-left: 7%;
    padding-right: 7%;
    text-align: justify;
    text-justify: auto;
    text-shadow: none;

    max-height: calc(var(--max-lines) * var(--line-height));
    margin-top: 10px;
    margin-bottom: 13px;
}

.article-item-description p {
    padding-top: 0;
    margin-top: 0;
}

.article-item:hover {
    transform: scale(1.11,1.11);
    z-index: 1;
}

/***** images ******/

.img-showcase {
    display: block;

    border-radius: 17px 17px 0px 0px;

    margin: 0 auto;
    padding-bottom: 4%;

    width: 100%;
    height: 50%;

    object-fit: cover;
}

.img-prev {
    z-index: 1000;
}

#article-container img {
    cursor: pointer;
}

/***** preview ******/

.article-item .img-prev {
    border: 5px solid #000;
    border-radius: 10px;

    position: absolute;
    left: 105%;
    top: 15%;

    opacity: 0;
    z-index: 1000;
    transition: opacity ease 0.4s;
    background-color: red;
    pointer-events: none;
}


.article-item:hover .img-prev {
    animation: cssAnimation 0s 1s forwards;
    animation-duration: 3s;
    opacity: 0;

    pointer-events: none;
    z-index: 1000;
}

@keyframes cssAnimation {
    to { opacity: 1; }
}

.article-item .img-prev:hover {
    pointer-events: none;
    cursor: auto;
}

/**** menu subsection ****/

.page-header-title {
    font-size: 5em;
    margin: 0;
}

.page-header-subtitle {
    color: #ccc;
    text-align: center;
    margin: 0 100pt;
    font-size: 1.2em;
}

/**** responsive ****/

@media only screen and (max-width: 1100px) {
    .article-item:hover img-prev {
        opacity: 0;
    }
    .article-item {
        max-width: 500px;
        width: 20vw;
    }
    
    @keyframes cssAnimation {
        to { opacity: 0; }
    }
}