.div {
    margin: 5px;
    width: fit-content;
    display: inline-block;

    box-shadow: 2px 17px 31px -8px rgba(30, 30, 30, 0.65);
    -webkit-box-shadow: 2px 17px 31px -8px rgba(30, 30, 30, 0.65);
    -moz-box-shadow: 2px 17px 31px -8px rgba(30, 30, 30, 0.65);
}

.center-div {
    transform: perspective(50px) rotateY(0deg) rotateX(0deg) rotateZ(0deg)
        translateZ(0px) scale(0.99);
    -webkit-transform-origin: center center;
    transform-origin: center center;
}
.right-div-1 {
    transform: perspective(25px) translateX(-5px) translateY(16px)
        rotateY(-0.5deg) rotateX(0deg) rotateZ(0deg) translateZ(0px);
    -webkit-transform-origin: center center;
    transform-origin: center center;
}

.right-div-2 {
    transform: perspective(80px) translateY(50px) rotateY(-1deg) rotateX(0deg)
        rotateZ(0deg) translateZ(0px);
    -webkit-transform-origin: center center;
    transform-origin: center center;
}

.left-div-1 {
    transform: perspective(25px) translateX(5px) translateY(16px) rotateY(0.5deg)
        rotateX(0deg) rotateZ(0deg) translateZ(0px);
    -webkit-transform-origin: center center;
    transform-origin: center center;
}

.left-div-2 {
    transform: perspective(80px) translateY(50px) rotateY(1deg) rotateX(0deg)
        rotateZ(0deg) translateZ(0px);
    -webkit-transform-origin: center center;
    transform-origin: center center;
}
.center-div .bg-img {
    height: 70vh;
}

.right-div-1 .bg-img,
.left-div-1 .bg-img {
    height: 75vh;
}

.right-div-2 .bg-img,
.left-div-2 .bg-img {
    height: 85vh;
}
.div .bg-img {
    width: 12vw;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    text-align: center;
    position: relative;
}
.service-animate-bg-hv .bg-img {
    background-size: 100%;
    -webkit-transition: all 0.1s ease-in-out;
}
.service-animate-bg-hv.bg-img:hover {
    transform: scale(1.03);
    transition: all 0.1s ease-in;
    /* width: 120%; */
}
.service-animate-bg-hv h4 {
    font-size: 1.3rem;
}
.overlay-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 2;
    cursor: none;
}

@media (max-width: 992px) {
    .div .bg-img {
        width: 100%;
    }
    .div {
        margin: 0px;
        box-shadow: rgba(0, 0, 0, 0.1) 0px 10px 15px -3px,
            rgba(0, 0, 0, 0.05) 0px 4px 6px -2px;
        -webkit-box-shadow: rgba(0, 0, 0, 0.1) 0px 10px 15px -3px,
            rgba(0, 0, 0, 0.05) 0px 4px 6px -2px;
        -moz-box-shadow: rgba(0, 0, 0, 0.1) 0px 10px 15px -3px,
            rgba(0, 0, 0, 0.05) 0px 4px 6px -2px;
    }
    .center-div .bg-img {
        height: 36vh;
    }
    .right-div-1 .bg-img,
    .left-div-1 .bg-img {
        height: 40vh;
    }

    .right-div-2 .bg-img,
    .left-div-2 .bg-img {
        height: 45vh;
    }
    .center-div {
        transform: perspective(50px) rotateY(0deg) rotateX(0deg) rotateZ(0deg)
            translateZ(0px) scale(0.99);
        -webkit-transform-origin: center center;
        transform-origin: center center;
        margin-top: 2em;
    }
    .right-div-1 {
        transform: perspective(25px) translateX(-5px) translateY(16px)
            rotateY(-0.5deg) rotateX(0deg) rotateZ(0deg) translateZ(0px);
        -webkit-transform-origin: center center;
        transform-origin: center center;
    }

    .left-div-1 {
        transform: perspective(25px) translateX(5px) translateY(16px)
            rotateY(0.5deg) rotateX(0deg) rotateZ(0deg) translateZ(0px);
        -webkit-transform-origin: center center;
        transform-origin: center center;
    }

    .right-div-2 {
        transform: perspective(80px) translateY(25px) rotateY(-1deg) rotateX(0deg)
            rotateZ(0deg) translateZ(0px);
        -webkit-transform-origin: center center;
        transform-origin: center center;
    }

    .left-div-2 {
        transform: perspective(80px) translateY(25px) rotateY(1deg) rotateX(0deg)
            rotateZ(0deg) translateZ(0deg);
        -webkit-transform-origin: center center;
        transform-origin: center center;
    }
}

@media (max-width: 1200px) and (min-width: 993px) {
    .div .bg-img {
        width: 15vw;
    }
}

@media (max-width: 767px) {
    .div .bg-img {
        width: 100%;
    }
    
    .service-animate-bg-hv.bg-img:hover {
        transform: none;
        transition: none;
    }
    
    .service-animate-bg-hv:active .bg-img {
        transform: scale(0.98);
        transition: all 0.1s ease-in;
    }
}
