.box5 {
    margin-top: 70px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.box5 .item {
    position: relative;
    width: calc(33.333% - 4px);
    margin-bottom: 6px;
    overflow: hidden;
}

.box5 .item h1 {
    position: absolute;
    bottom: 0;
    padding: 35px 70px;
    font-size: 24px;
    margin: 0;
    line-height: 1;
    color: #fff;
    z-index: 2;
    width: 100%;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.00) 0%, rgba(0, 0, 0, 0.50) 100%);
}

.box5 .item img {
    position: relative;
    width: 100%;
    transition: 1s;
}

.box5 .item:hover img {
    transform: scale(1.1);
}

@media screen and (max-width: 992px) and (min-width: 0px) {
    .box5 .item {
        width: calc(50% - 5px);
        margin-bottom: 10px;
    }

    .box5 .item h1 {
        padding: 35px;
    }
}

@media screen and (max-width: 640px) and (min-width: 0px) {
    .box5 .item h1 {
        padding: 15px;
        font-size: 18px;
    }
}