body{
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Lato', sans-serif;
}
.container{
    position: relative;
    width: 500px;
    height: 500px;
    overflow: hidden;

}
.container img{
    width: 100%;
    transition: all 1s;
    
}
.container:hover img{
    transform: translateY(-30%);
    
    
}
.caption{
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 30%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    background-color: black;
    transform: translateY(100%);
    transition: all 1s;
    
    
}
.caption h1{
    text-transform: uppercase;
}
.caption p{
    font-size: 18px;
}
.container:hover .caption{
    transform: translateY(0);
}