body{
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: #264653;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
}
.fig{
    width: 500px;
    color: #fff;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
}
.fig img{
    width: 100%;
}
.fig::before{
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #006266;
    opacity: 0.5;
    transform: translateY(100%);
    transition: all 0.25s;
    transition-delay: 0.25s;
}
.fig:hover::before{
    transform: translateY(0);
    transition-delay: 0s;
}
.fig .caption{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    transform: translateY(-20px);
    opacity: 0;
    transition: all 0.25s ease;
}
.fig h3, .fig h5{
    margin: 0;
    letter-spacing: 1px;
}

.fig h3{
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 5px;
}
.fig h5{
    background: #ae895d;
    padding: 3px 10px;
    text-transform: capitalize;
}
.fig:hover .caption{
    transform: translateY(0);
    opacity: 1;
    transition-delay: 0.3s;
}