@import './style-guide.css';

.articles{
    width: 100%;
    padding-top: 30px;
    display: grid;
    grid-template-columns: 1fr;
    row-gap: 20px;
}
@media(max-width:767px){
    .articles{
        padding-top: 25px;
    }
}


.article{
    width: 100%;
    display: flex;
    box-shadow: 0px 1px 6px rgba(0, 0, 0 , 0.15);
    border-radius: 1px;
}
.article:hover .img{
    background-size: 140%;
}
.article:hover article h3{
    color: var(--label-bg-yellow);    
}
@media(max-width:767px){
    .article{
        flex-direction: column;
    }
}

.img{
    width: 350px;
    height: 250px;
    background-size: 120%;
    background-position: center;
}

@media(max-width:767px){
    .img{
        width: 100%;
    }
}
@media(max-width:576px){
    .img{
        height: calc((100vw - 30px) * 0.68 );
    }
    
}

.article article{
    flex: 1;
    min-width: 1px;
    padding: 20px;
    display: flex;    
    flex-direction: column; 
}

.article article h3{
    font-size: var(--font-h4);
    font-weight: bold;
    color: var(--title-font-blue);
    margin: 0 0 20px;
    line-height: 1;
}

@media(max-width:767px){
    .article article h3{
        font-size: var(--font-h5);
        margin: 0 0 15px;
    }
}


.article article .season{
    background-color: var(--label-bg-yellow);
    color: #FFF;
    font-size: var(--font-h7);
    border-radius: 1px;
    width: 115px;
    height: 25px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}
@media(max-width:767px){
    .article article .season{
        margin-bottom: 15px;
    }
}

.article article .date{
    color: var(--label-bg-yellow);
    font-size: var(--font-h7);
    line-height: 1;
    margin-bottom: 20px;
}
@media(max-width:767px){
    .article article .date{
        margin-bottom: 15px;
    }
}

.article article p{
    width: 100%;
    line-height: 1.625;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}