img,
.img-fluid,
.img-responsive,
.fit-img img,
.card img,
.gallery img,
.blog img,
.client img,
.brand img,
.logo img {
    max-width: 100%;
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* Background image sections */
.bg-img {
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
}

/* Portfolio Images */
.portfolio-elegant .item .bg-img {
    width: 100%;
    min-height: 600px;
    background-size: cover !important;
    background-position: center !important;
    transition: none !important;
}

@media (max-width:992px){
    .portfolio-elegant .item .bg-img{
        min-height:450px;
    }
}

@media (max-width:768px){
    .portfolio-elegant .item .bg-img{
        min-height:320px;
    }

    img{
        max-width:100%;
        height:auto;
    }
}

@media (max-width:576px){
    .portfolio-elegant .item .bg-img{
        min-height:250px;
    }
}

@media (max-width:767px){

.pg-hero .bg-img{
    height:300px !important;
    background-size:contain !important;
    background-repeat:no-repeat;
    background-position:center;
}

.pg-hero .o-hidden{
    height:auto !important;
}

}

/* ==========================================
   Responsive Video Section
========================================== */

.video-section {
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    padding-left: 15px;
    padding-right: 15px;
}

.video-wrapper {
    position: relative;
    width: 100%;
    height: 700px;
    overflow: hidden;
}

.video-wrapper video.bgvid {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    transform: translate(-50%, -50%);
    object-fit: cover;
    display: block;
}


/* =========================
   Tablet
========================= */

@media (max-width: 991px) {

    .video-section {
        width: 100%;
        padding-left: 20px;
        padding-right: 20px;
    }

    .video-wrapper {
        height: 500px;
        border-radius: 60px;
    }

}


/* =========================
   Mobile
========================= */

@media (max-width: 767px) {

    .video-section {
        width: 100%;
        padding-left: 15px;
        padding-right: 15px;
    }

    .video-wrapper {
        height: 350px;
        border-radius: 35px;
    }

    .video-wrapper video.bgvid {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

}


/* =========================
   Small Mobile
========================= */

@media (max-width: 480px) {

    .video-section {
        padding-left: 10px;
        padding-right: 10px;
    }

    .video-wrapper {
        height: 250px;
        border-radius: 25px;
    }

}