    .section4 {
        position: relative;
    }

    .Box4 {
        position: relative;
        width: 100%;
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        grid-gap: 20px;
    }

    .item4 {
        width: 100%;
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .item4 .img4 {
        position: relative;
        width: 100%;
        z-index: 1;
    }

    .item4 .img4 img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: 0.5s;
    }

    .item4:hover .img4 img {
        transform: scale(1.05);
    }

    .item4::after {
        content: "";
        display: block;
        position: absolute;
        z-index: 2;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, .3);

        transition: 0.5s;
    }

    .item4:hover::after {
        background-color: rgba(0, 0, 0, 0);
        transform: scale(1.05);
    }

    .text4 {
        position: absolute;
        z-index: 3;
        padding: 15px;
        text-align: center;
        color: #fff;
        font-size: 24px;
        font-weight: bold;
        transition: 0.5s;
    }

    .item4:hover .text4 {
        opacity: 0;
    }

    @media (max-width: 1200px) {
        .Box4 {
            grid-gap: 10px;
        }
    }

    @media (max-width: 800px) {
        .Box4 {
            grid-template-columns: repeat(2, 1fr);
        }

        .text4 {
            font-size: 18px;
        }
    }

    @media (max-width: 400px) {
        .Box4 {
            grid-template-columns: repeat(1, 1fr);
        }
    }

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