@media screen and (max-width:1199px){
    :root {
        --brandCardSize: 216px;
    }
    .client-frame .brand-logo {
        width: var(--brandCardSize);
        height: var(--brandCardSize);
    }
}
@media screen and (max-width:999px){
    .rectangular41 .owl-carousel .owl-nav.disabled{
        left: -13px;
    }
    .rectangular41 .owl-carousel .owl-stage-outer{
        left: 59px;
    }
    .rectangular41{
        padding: 38px 37px;
    }
}
@media screen and (max-width:991px){

    .owl-nav {
        flex-direction: row;
        justify-content: left;
    }
    .rectangular41 .owl-carousel .owl-nav button{
        padding: 5px 18px !important;
    }
    .rectangular41 .owl-carousel .owl-nav .owl-prev{
        margin-bottom: 5px;
    }
    .rectangular41{
        padding: 38px 22px;
    }
    :root {
        --brandCardSize: 214px;
    }

    #clientCardGrid {
        display: none;
    }

    #clientCardCarousel{
        display: block;
    }
    
    .contact-detail {
        display: none;
    }
    .contact-detail:nth-child(5){
        display: block;
    }
    .modal-content{
        width: 60%;
    }
    .right-image {
        margin: 2rem 0;
    }
    .right-container{
        margin-top: 2rem;
    }
    .service-frame {
        padding: 14px 14px;
    }

}

@media screen and (max-width:767px) {
    .carousel-indicators {
        bottom: 0px;
    }
    .carousel-control-next, .carousel-control-prev {
        top: -107px;
    }
    .service-frame {
        margin-bottom: 20px;
    }
    .right-container {
        display: flex;
        flex-direction: column;
        grid: none;
        margin-top: 30px;
    }
    .image-gallery .img-caption {
        transform: translateY(46px);
    }
    .rectangular41 .owl-carousel .owl-stage-outer{
        left: 72px;
    }
    .rectangular41 .owl-nav {
        flex-direction: column;
        align-items: start;
    }
    .modal-content{
        width: 70%;
    }
}

@media screen and (max-width: 635px) {
    .rectangular41 {
        padding: 25px 22px;
    }
    .rectangular41 .owl-carousel .owl-stage-outer{
        left: 0px  
    }
    .rectangular41 .owl-carousel.owl-theme.owl-loaded{
        position: relative;
    }
    .rectangular41 .owl-nav {
        position: absolute;
        top: 448px;
        left: 41%;
        display: flex;
        flex-direction: row;
    }
    .rectangular41 .owl-carousel .owl-nav .owl-prev{
        margin-right:5px ;
    }
    .owl-nav {
        margin-top: 20px;
    }

}

@media screen and (min-width: 600px) {
    main {
      grid-template-columns: 1fr 1fr;
      grid-template-rows: min-content 1fr;
    }
    #main .card {
      width: 40vw;
    }
    #main h1 {
      grid-column: 1/4;
    }
}

@media screen and (max-width:583px){
    .carousel-indicators {
        bottom: 0px;
    }
    .carousel-control-next, .carousel-control-prev {
        top: 0px;
    }
    #carouselExampleCaptions .logo-3m {
        width: 35%;
        right: 22px;
    }
    .contact-form {
        padding: 2rem 0rem;
        margin-bottom: 2rem;
    }
}

@media  screen and (max-width:539px) {
    :root {
        --brandCardSize: 230px;
    }
    .client-frame .brand-logo {
        width: var(--brandCardSize);
        height: var(--brandCardSize);
    }
    .modal-content{
        width: 85%;
    }
    .section{
        margin: 60px 0;
    }
    #carouselExampleCaptions .logo-3m {
        width: 50%;
        right: 22px;
    }
}

@media screen and (max-width:483px){
    .client-frame .brand-logo{
        width: 195px;
        height: 195px;
    }
    .carousel-item {
        height: calc(100vh - 412px);
    }
    .breadcrumb-text h1 {
        font-size: 45px;
    }
    .page-title:hover::after{
        width: 24%;
    }
    .social-icon-header .container {
        display: flex;
        align-items: center;
        justify-content: space-evenly;
    }
    #carouselExampleCaptions .logo-3m {
        width: 43%;
        right: 22px;
    }
}

@media screen and (max-width:467px){
    .carousel-indicators {
        bottom: 0px;
    }
    .carousel-control-next, .carousel-control-prev {
        top: 0px;
    }
    .rectangular41 .owl-nav{
        left: 39%;
    }
}

@media screen and (max-width:447px){
    .carousel-indicators {
        bottom: 0px;
    }
    :root {
        --brandCardSize: 342px;
    }
    .client-frame .brand-logo {
        width: var(--brandCardSize);
        height: var(--brandCardSize);
    }
    
}
@media screen and (max-width:405px) {
    .image-gallery .img-caption {
        transform: translateY(68px);
    }
}

@media screen and (max-width:387px){
    .carousel-indicators {
        bottom: 0px;
    }
    :root {
        --brandCardSize: 347px;
    }
    .client-frame .brand-logo {
        width: var(--brandCardSize);
        height: var(--brandCardSize);
    }
    .modal-content{
        width: 90%;
    }
    .rectangular41 .owl-nav{
        left: 35%;
    }
}

@media screen and (max-width:335px){
    .carousel-indicators {
        bottom: 0px;
    }
    :root {
        --brandCardSize: 290px;
    }
    .client-frame .brand-logo {
        width: var(--brandCardSize);
        height: var(--brandCardSize);
    }
}