/* Preserve the source site's layout while making the CMS content responsive. */
html,body{background:#fff;color:#333}
.news .left-news-img img{display:block;width:100%;height:auto}
.villa .villa-right img,.news-content img{max-width:100%;height:auto}
.page-box{margin:24px 0}
#design-works{scroll-margin-top:96px}
@media(max-width:750px){#design-works{scroll-margin-top:65px}}
@media(max-width:750px){.villa.mengye-work .villa-cer .villa-left,.villa .villa-cer .villa-right{float:none;width:100%}.villa .villa-cer{width:92%}.gallery-top-title h2{font-size:20px}.design-title{line-height:2}.news-content{overflow-wrap:anywhere}}
@media(max-width:480px){#index-works .work-title ul{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px 10px}#index-works .work-title ul li{width:100%;float:none;margin:0}#index-works .work-title ul li h3{font-size:11px;white-space:normal}#index-works .work-title{margin-bottom:24px}}

/* Single pages: generous image-led composition, precise reading widths. */
.my-page{--my-ink:#292929;--my-muted:#777;--my-rule:#dedede;--my-accent:#8e1616;color:var(--my-ink)}
.my-page .contact-us{width:calc(100% - 96px);max-width:1200px;margin:90px auto}
.my-page .contact-us h2,.my-page .M-Gallery>h2{font-size:28px;font-weight:400;letter-spacing:.04em;line-height:1.5}
.my-page .contact-us .contact-top{margin:60px 0}
.my-page .contact-us .contact-top h3{font-size:32px;font-weight:400;line-height:1.6}
.my-page .contact-us .contact-top p{font-size:16px;line-height:2.1;margin-top:24px}
.my-page .contact-us>ul{display:grid;grid-template-columns:1fr 1fr;gap:35px 60px;margin-top:56px}
.my-page .contact-us>ul>li{float:none;width:auto;border-top:1px solid var(--my-rule);padding-top:24px;display:flex;gap:18px}
.my-page .contact-us ul li span{flex-shrink:0}
.my-page .contact-us ul li p{font-size:15px;line-height:2;float:none;width:auto;overflow-wrap:anywhere}
.my-page .contact-map{margin:0 auto 80px;max-width:1400px;width:calc(100% - 96px)}
.my-page .contact-map img{width:100%;height:auto;display:block}
.my-page .M-Gallery{width:calc(100% - 96px);max-width:1200px;margin:90px auto}
.my-page .M-Gallery>p{font-size:16px;line-height:2;margin-top:30px}
.my-page .M-Gallery .Gallery-img{margin-top:60px}
.my-page .M-Gallery .Gallery-img ul{display:grid;grid-template-columns:1fr 1fr;gap:40px}
.my-page .M-Gallery .Gallery-img ul li{width:auto;float:none;margin:0}
.my-page .M-Gallery .Gallery-img ul li .G-img img{width:100%;height:auto}
@media(max-width:600px){
.my-page .contact-us,.my-page .M-Gallery{width:calc(100% - 48px);margin:48px auto}
.my-page .contact-us h2,.my-page .M-Gallery>h2{font-size:22px}
.my-page .contact-us .contact-top{margin:38px 0}
.my-page .contact-us .contact-top h3{font-size:25px}
.my-page .contact-us .contact-top p,.my-page .M-Gallery>p{font-size:14px;width:100%;line-height:2}
.my-page .contact-us>ul{grid-template-columns:1fr;gap:24px;margin-top:36px}
.my-page .contact-map{width:calc(100% - 32px);margin-bottom:48px}
.my-page .M-Gallery .Gallery-img{margin-top:36px}
.my-page .M-Gallery .Gallery-img ul{grid-template-columns:1fr;gap:32px}
}

/* A single responsive carousel avoids fetching both desktop and mobile slides. */
.fullSlide.mengye-slideshow{display:block}
.banner-nei picture,.mengye-slideshow picture{display:block}

picture img{height:auto}

/* Reserve the photo area and show the existing brand mark until loading finishes. */
main img[loading="lazy"]:not([data-my-loaded]){
 background-color:#ededed;
 background-image:linear-gradient(rgba(237,237,237,.35),rgba(237,237,237,.35)),url('/statics/mengye/images/center.png');
 background-position:center;
 background-size:100% 100%,min(48%,260px) auto;
 background-repeat:no-repeat;
}

/* Gallery originals and responsive copies must use the same intrinsic ratio. */
.villa.mengye-work .villa-cer .villa-left a img{height:auto}
