@media screen and (max-width: 1024px) {
    body, html {
        overflow-x: hidden;
    }
    body {
        min-width: 100%;
    }
}

@media screen and (max-width: 999px) {
    .home1 {
        bottom: 65px !important;
    }
    .home1 .main ul {
        display: flex;
        flex-direction: column;
        overflow: hidden;
    }
    .home1 li {
        width: 100%;
        float: none !important;
    }

    .home1 li.first {
        margin-bottom: 10px;
    }
    .footer {
        background-repeat: repeat;
        left: 0;
        right: 0;
    }
    .footer .main {
        width: 100%;
        display: flex;
        align-items: center;
        flex-direction: column;
    }
    .footer .main .foot1,
    .footer .main .foot2 {
        float: none;
    }

    html {
        -webkit-box-sizing: border-box;
        box-sizing: border-box;
        -webkit-tap-highlight-color: transparent;
    }
    .main {
        width: 100%;
        padding: 0;
    }

    .top .main {
        width: calc(100% - 20px);
        padding-left: 10px;
        padding-right: 10px;
    }
}

@media screen and (max-width: 991px) {
    ._menu ul,
    .logo2 {
        margin-right: 20px;
    }
    .entry-content {
        padding-left: 20px;
        padding-right: 20px;
        width: calc(100% - 40px);
    }
    .m_left,
    .m_right {
        float: none;
        width: 100%;
    }
    .m_left,
    .m_right {
        margin-bottom: 30px;
    }
    .m_right .gallery-columns-4 {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        grid-column-gap: 10px;
        grid-row-gap: 10px;
    }
    .m_right .gallery-item {
        float: none;
        margin: 0;
    }

    .entry-content.page,
    .entry-content.service {
        padding: 0;
        width: 100%;
    }
    .service ul {
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
    }
    .home .main {
        padding-left: 10px;
    }
}

@media screen and (max-width: 874px) {
    .sidebar-container .widget_nav_menu {
        display: none;
    }
    .toggle-menu-btn {
        display: block;
    }
    .logo2 {
        float: none;
        position: absolute;
        right: 30px;
    }
    .m_right .gallery-columns-4 {
        grid-template-columns: repeat(3, 1fr);
    }
    .entry-content.page iframe {
        width: 100%;
    }
    .cont1 li.last {
        width: 100%;
    }
    .service-li {
        justify-content: flex-start;
        flex-direction: column;
    }
    .service-li > div {
        margin-bottom: 10px;
    }
    .service-li {
        margin-bottom: 10px;
    }
}

@media screen and (max-width: 640px) {
    .logo2 {
        display: none;
    }
    .m_right .gallery-columns-3 {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        grid-column-gap: 10px;
        grid-row-gap: 10px;
    }

}
@media screen and (max-width: 600px) {
    .service-li2 > div:last-child {
        padding-top: 0;
    }
    .service .gallery-item {
        margin: 0;
    }
	.blog-post-content img {
		height: auto;
	}

}

@media screen and (max-width: 540px) {
    .home1 {
        left: 0;
        right: 0;
    }
    .home1 .main {
        padding: 0 10px;
        width: calc(100% - 20px);
    }
    .home1 li {
        width: 100% !important;
        max-width: 100% !important;
        float: none !important;
    }
	.home1 li table {
		padding-bottom: 30px;
	}
    .home1 li table tr {
        display: flex;
        flex-direction: column;
    }
    .home1 li table tr td:first-child {
        margin-bottom: 10px;
    }
    .home1 li table tr td {
        padding-right: 30px;
    }
    .home1 li {
        background-image: url(../img/home1_li2.png);
    }
    .m_right .gallery-columns-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    .m_right img111 {
        width: 100%;
        height: 100%;
    }
	.bdhome {
		position: relative;
	}
	.gallery-item img {
		width: 100%;
	}
	.cont1 li {
		display: block;
		width: 100%;
	}

    .cont1 li .wpcf7-form table {
        width: calc(100% - 20px);
    }

    .cont1 li .wpcf7-form tr {
        display: flex;
        flex-direction: column;
    }
	.cont1 li .wpcf7-form .wpcf7-form-control:not(.wpcf7-captchac) {
		width: 100%;
	}
}

@media screen and (max-width: 480px) {
    .logo1 img {
        max-width: calc(100% - 64px);
        object-fit: scale-down;
        width: 100%;
        max-height: 100%;
    }
    
    .gallery {
        padding-bottom: 30px;
    }
	.gallery-item a {
		width: 100%;
		display: block;
	}
}

@media screen and (max-width: 400px) {
	
	.m_right .gallery-columns-3 {
        grid-template-columns: repeat(1, 1fr);
    }
}