.section5 {
    background: #F6F6F6;
}

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

.box5 a:nth-child(1),
.box5 a:nth-child(2) {
    width: 49.5%;
}

.box5 a:nth-child(3),
.box5 a:nth-child(4),
.box5 a:nth-child(5) {
    width: 33%;
}

.box5 a {
    display: block;
    position: relative;
    margin-bottom: 10px;
}

.box5 a img {
    position: absolute;
    z-index: 2;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.box5 a video {
    position: relative;
    z-index: 1;
    width: 100%;
}

.box5 a h1 {
    position: absolute;
    top: 30px;
    left: 30px;
    z-index: 4;
    width: 40%;
    height: 25%;
    background: url(/assets/images/box5.png) no-repeat center;
    background-size: 100% 100%;
    color: #000;
    font-size: 20px;
    font-weight: 700;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.box5 a:hover video {
    z-index: 5;
}

@media (max-width: 1600px) {}

@media (max-width: 1440px) {
    .box5 a h1 {
        font-size: 18px;
    }
}

@media (max-width: 1200px) {
    .box5 a h1 {
        width: 50%;
    }
}

@media (max-width: 992px) {
    .box5 {
        margin-top: 45px;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }

    .box5 a {
        width: 48% !important;
        margin: 0 1%;
        margin-bottom: 10px;
    }
}

@media (max-width: 640px) {
    .section5 {
        padding-bottom: 30px;
    }

    .box5 a {
        width: 98% !important;
    }
}