.home-markets{
    padding:0;
}

.markets-grid{
    display:grid;
    grid-template-columns:repeat(4,1fr);
}

.market-item{
    position:relative;
    overflow:hidden;
    height:370px;
}

.market-item a{
    display:block;
    width:100%;
    height:100%;
    position:relative;
    color:#fff;
    text-decoration:none;
}

/* Image */

.market-image{
    width:100%;
    height:100%;
}

.market-image img{
    width:100%;
    height:100%;
    object-fit:cover;
    transition:transform .6s ease;
}

/* Overlay */

.market-overlay{
    position:absolute;
    left:0;
    right:0;
    bottom:0;

    /* Only title background visible initially */
    height:100px;

    background:rgba(0,0,0,.55);

    display:flex;
    flex-direction:column;
    justify-content:flex-end;

    padding:30px;

    transition:all .45s ease;

    overflow:hidden;
}

/* Image Zoom */

.market-item:hover .market-image img{
    transform:scale(1.08);
}
.market-item:hover .market-overlay h3 {
    position: relative;
    color:#01c30c;
}

/* Expand overlay */

.market-item:hover .market-overlay{
    height:100%;
    justify-content:flex-end;
    background:rgba(0,0,0,.60);
}

/* Title */

.market-overlay h3{
    margin: 0;
    font-size: 24px;
    font-weight: 600;
    text-transform: capitalize;
    line-height: 1;
    color: #fff;
    position: absolute;
    bottom: 20px;
    width: 100%;
    left: 0;
    text-align: center;
}

/* Description */

.market-desc{
    opacity:0;
    transform:translateY(25px);
    transition:.35s ease;
    margin-top:22px;
}

.market-item:hover .market-desc{
    opacity:1;
    transform:translateY(0);
}

.market-desc p{
    margin:0;
    font-size:18px;
    line-height:1.8;
    color:#fff;
}

/* Responsive */

@media(max-width:1200px){

    .markets-grid{
        grid-template-columns:repeat(2,1fr);
    }

}

@media(max-width:768px){

    .markets-grid{
        grid-template-columns:1fr;
    }

    .market-item{
        height:300px;
    }

    .market-overlay{
        height:90px;
        padding:22px;
    }

    .market-overlay h3{
        font-size:34px;
    }

    .market-desc p{
        font-size:16px;
    }

}