body{
    background: black;
    color: white;
}
.row{
    margin-top: 5%;
    display: flex;
    justify-content: space-between;
}

.space{
    width: 80%;
    margin: auto;
    text-align: center;
    padding-top: 80px;
}

.space-col{
    flex-basis: 32%;
    border-radius: 10px;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
}

.space-col img{
    width: 100%;
    display: block;
}

.space h1{
    font-size: 36px;
    font-weight: 600;
}

.txt p{
    font-size: 16px;
    font-weight: 300;
    line-height: 22px;
    padding: 10px;
}


.layer{
    background: transition;
    height: 100%;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    transition: 0.5s;
}

.layer:hover{
    background: rgba(2,0,0,0.7);
}

.layer h3{
    width: 100%;
    font-weight: 500;
    color: #fff;
    font-size: 26px;
    bottom: 0%;
    left: 50%;
    transform: translateX(-50%);
    position: absolute;
    opacity: 0;
    transition: 0.5s;
}

.layer:hover h3{ 
    bottom: 49%;
    opacity: 1;
}

@media screen and (max-width: 768px){
    .space h1{
        font-size: 24px;
        font-weight: 400;
    }
    .space p{
        font-size: 10px;
    }

    .layer h3 {
        font-size: 13px;
    }
    
    .layer.active {
        background: rgba(2,0,0,0.7);
    }
    
    .layer.active h3 {
        bottom: 49%;
        opacity: 1;
    }
}