﻿.news-info-box{
    width: 1500px;
    max-width: 100%;
    display: grid;
    margin: 0 auto;
    grid-gap: 5px;
    box-sizing: border-box;
    padding-top: 90px;
    padding-bottom: 150px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);  
}
.news-info{
    position: relative;
    overflow: hidden;
}
.news-info-text-box{
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    box-sizing: border-box;
    padding: 25px 40px;
    position: absolute;
    bottom: 0;
    opacity: 0;
    pointer-events: none;
    transition: all .3s linear;
}
.news-info:hover .news-info-text-box{
    opacity: 1;
}
.news-info:hover img{
    transform: scale(1.1);
}
.news-info-text-box p{
    font-weight: 700;
    font-size: 24px;
    color: #fff;
    line-height: 1.25;
}


@media only screen and (max-width: 1500px){
    .news-info-box{
        width: 1200px;
    }
    .news-info-text-box p{
        font-size: 30px;
    }
}
@media only screen and (max-width: 1200px){
    .news-info-box{
        width: 1000px;
    }
    .news-info-text-box p{
        font-size: 20px;
    }
}
@media only screen and (max-width: 1000px){
    .news-info-box{
        width: 750px;
    }
    .news-info-text-box p{
        font-size: 18px;
    }
}
@media only screen and (max-width: 768px){
    .news-info-box{
        width: 550px;
    }
}
@media only screen and (max-width: 550px){
    .news-info-box{
        width: calc(100vw - 40px);
        grid-template-columns: repeat(2, 1fr);  
    }
}


@media only screen and (min-width: 1001px){
    .news-info{
        opacity: 0;
    }
    .news-info.anima{
        animation: fadeInUp 1s ease 0s 1 both;
    }
}