/* 2026-10-19: retain original assets, links and image order; normalize presentation. */
.product-nav .swiper-slide .img,
.col-page-product .product-list .img,
.ry-catalog-card>a:first-child{position:relative;width:100%;height:auto!important;aspect-ratio:4/3;overflow:hidden;background:#fff;border:1px solid #e0e7ea;box-sizing:border-box;line-height:0}
.product-nav .swiper-slide .img img,
.col-page-product .product-list .img img,
.ry-catalog-card>a:first-child>img{position:absolute;inset:0;display:block;width:100%!important;height:100%!important;max-width:100%;max-height:100%;padding:16px;object-fit:contain!important;object-position:center;box-sizing:border-box;transform:none!important}
.product-nav .swiper-slide h2{min-height:2.8em;line-height:1.4}
.product-nav .swiper-slide .namemark{min-height:1.5em}
/* Main pictures contain editor non-breaking spaces; absolute positioning avoids overflow. */
.col-page-detail .ry-p1-gallery-main{position:relative;display:block;width:100%;height:auto;aspect-ratio:4/3;background:#fff;border:1px solid #dbe4e8;overflow:hidden;font-size:0;line-height:0;box-sizing:border-box}
.col-page-detail .ry-p1-gallery-main img{position:absolute;inset:0;display:block;width:100%;height:100%;padding:14px;object-fit:contain;object-position:center;box-sizing:border-box}
/* Flex with no gap lets zero-size editor text nodes coexist without empty grid cells. */
.col-page-detail .ry-p1-thumbs{display:flex;flex-wrap:wrap;gap:0;font-size:0;line-height:0;margin-top:0;width:100%;max-width:100%;align-items:flex-start}
.col-page-detail .ry-p1-thumbs .ry-p1-thumb{position:relative;display:block;flex:0 0 calc((100% - 30px)/4);width:calc((100% - 30px)/4);height:auto;aspect-ratio:1;margin:10px 10px 0 0;background:#fff;border:1px solid #dbe4e8;box-sizing:border-box;font-size:0;line-height:0}
.col-page-detail .ry-p1-thumbs .ry-p1-thumb:nth-of-type(4n){margin-right:0}
.col-page-detail .ry-p1-thumbs .ry-p1-thumb img{position:absolute;inset:0;display:block;width:100%;height:100%;padding:6px;object-fit:contain;object-position:center;box-sizing:border-box}
.col-page-detail .pro_show .detail-container{max-width:560px;margin-left:auto;margin-right:auto}
.col-page-detail .pro_show .detail-container .img{position:relative;width:100%;height:auto!important;aspect-ratio:4/3;background:#fff;overflow:hidden;line-height:0}
.col-page-detail .pro_show .detail-container .img img{position:absolute;inset:0;width:100%!important;height:100%!important;padding:16px;object-fit:contain!important;object-position:center;box-sizing:border-box}
/* The existing generic banner remains; product photography gets more of the first screen. */
body:has(.col-page-detail) .col-banner,body:has(.col-page-product) .col-banner{height:220px!important}
body:has(.col-page-detail) .col-banner .banner-container,body:has(.col-page-product) .col-banner .banner-container,
body:has(.col-page-detail) .col-banner .swiper-wrapper,body:has(.col-page-product) .col-banner .swiper-wrapper,
body:has(.col-page-detail) .col-banner .swiper-slide,body:has(.col-page-product) .col-banner .swiper-slide{height:100%!important}
body:has(.col-page-detail) .col-banner .banner-title,body:has(.col-page-product) .col-banner .banner-title{top:auto!important;bottom:28px;transform:none!important}
@media(max-width:768px){
 .product-nav .swiper-slide .img img,.col-page-product .product-list .img img,.ry-catalog-card>a:first-child>img{padding:10px}
 .col-page-detail .ry-p1-gallery-main img{padding:10px}
 .col-page-detail .ry-p1-thumbs .ry-p1-thumb img{padding:4px}
 body:has(.col-page-detail) .col-banner,body:has(.col-page-product) .col-banner{height:160px!important}
 body:has(.col-page-detail) .col-banner .banner-title,body:has(.col-page-product) .col-banner .banner-title{bottom:24px}
}

/* RY automatic leveling product heading: scoped, original URL retained. */
html:has(link[rel="canonical"][href="https://www.ruiyuanlift.com/?products_39/one-key-leveling-self-propelled-scissor-lift.html"]) .pro_show .wrap{display:flex;flex-direction:column;align-items:stretch;padding-top:30px!important;padding-bottom:30px!important;min-height:0!important}
html:has(link[rel="canonical"][href="https://www.ruiyuanlift.com/?products_39/one-key-leveling-self-propelled-scissor-lift.html"]) .pro_show .wrap>.back{position:static!important;align-self:flex-start;margin-bottom:20px}
html:has(link[rel="canonical"][href="https://www.ruiyuanlift.com/?products_39/one-key-leveling-self-propelled-scissor-lift.html"]) .pro_show .wrap>.detail-container{width:100%!important;max-width:560px;margin:0 auto!important}
html:has(link[rel="canonical"][href="https://www.ruiyuanlift.com/?products_39/one-key-leveling-self-propelled-scissor-lift.html"]) .pro_show .wrap>.title{position:static!important;width:auto!important;max-width:none!important;margin:24px 0 0!important;transform:none!important}
html:has(link[rel="canonical"][href="https://www.ruiyuanlift.com/?products_39/one-key-leveling-self-propelled-scissor-lift.html"]) .pro_show .wrap>.title h1{font-size:clamp(24px,2.2vw,34px);line-height:1.3;overflow-wrap:break-word}

/* RY remaining six product headings: confirmed overlap only, 20261020. */
html:has(link[rel="canonical"][href="https://www.ruiyuanlift.com/?FixedDockLeveler/FixedDockLeveler-10T.html"]) .pro_show .wrap,
html:has(link[rel="canonical"][href="https://www.ruiyuanlift.com/?products_37/29.html"]) .pro_show .wrap,
html:has(link[rel="canonical"][href="https://www.ruiyuanlift.com/?MobileDockLift/35.html"]) .pro_show .wrap,
html:has(link[rel="canonical"][href="https://www.ruiyuanlift.com/?selfpropelledsmallscissorlift/mobileaerialworkplatform.html"]) .pro_show .wrap,
html:has(link[rel="canonical"][href="https://www.ruiyuanlift.com/?products_33/guide-rail-hydraulic-cargo-lift.html"]) .pro_show .wrap,
html:has(link[rel="canonical"][href="https://www.ruiyuanlift.com/?products_33/vertical-mast-lift-with-jib.html"]) .pro_show .wrap{display:flex;flex-direction:column;align-items:stretch;padding-top:30px!important;padding-bottom:30px!important;min-height:0!important}
html:has(link[rel="canonical"][href="https://www.ruiyuanlift.com/?FixedDockLeveler/FixedDockLeveler-10T.html"]) .pro_show .wrap>.back,
html:has(link[rel="canonical"][href="https://www.ruiyuanlift.com/?products_37/29.html"]) .pro_show .wrap>.back,
html:has(link[rel="canonical"][href="https://www.ruiyuanlift.com/?MobileDockLift/35.html"]) .pro_show .wrap>.back,
html:has(link[rel="canonical"][href="https://www.ruiyuanlift.com/?selfpropelledsmallscissorlift/mobileaerialworkplatform.html"]) .pro_show .wrap>.back,
html:has(link[rel="canonical"][href="https://www.ruiyuanlift.com/?products_33/guide-rail-hydraulic-cargo-lift.html"]) .pro_show .wrap>.back,
html:has(link[rel="canonical"][href="https://www.ruiyuanlift.com/?products_33/vertical-mast-lift-with-jib.html"]) .pro_show .wrap>.back{position:static!important;align-self:flex-start;margin-bottom:20px}
html:has(link[rel="canonical"][href="https://www.ruiyuanlift.com/?FixedDockLeveler/FixedDockLeveler-10T.html"]) .pro_show .wrap>.detail-container,
html:has(link[rel="canonical"][href="https://www.ruiyuanlift.com/?products_37/29.html"]) .pro_show .wrap>.detail-container,
html:has(link[rel="canonical"][href="https://www.ruiyuanlift.com/?MobileDockLift/35.html"]) .pro_show .wrap>.detail-container,
html:has(link[rel="canonical"][href="https://www.ruiyuanlift.com/?selfpropelledsmallscissorlift/mobileaerialworkplatform.html"]) .pro_show .wrap>.detail-container,
html:has(link[rel="canonical"][href="https://www.ruiyuanlift.com/?products_33/guide-rail-hydraulic-cargo-lift.html"]) .pro_show .wrap>.detail-container,
html:has(link[rel="canonical"][href="https://www.ruiyuanlift.com/?products_33/vertical-mast-lift-with-jib.html"]) .pro_show .wrap>.detail-container{width:100%!important;max-width:560px;margin:0 auto!important}
html:has(link[rel="canonical"][href="https://www.ruiyuanlift.com/?FixedDockLeveler/FixedDockLeveler-10T.html"]) .pro_show .wrap>.title,
html:has(link[rel="canonical"][href="https://www.ruiyuanlift.com/?products_37/29.html"]) .pro_show .wrap>.title,
html:has(link[rel="canonical"][href="https://www.ruiyuanlift.com/?MobileDockLift/35.html"]) .pro_show .wrap>.title,
html:has(link[rel="canonical"][href="https://www.ruiyuanlift.com/?selfpropelledsmallscissorlift/mobileaerialworkplatform.html"]) .pro_show .wrap>.title,
html:has(link[rel="canonical"][href="https://www.ruiyuanlift.com/?products_33/guide-rail-hydraulic-cargo-lift.html"]) .pro_show .wrap>.title,
html:has(link[rel="canonical"][href="https://www.ruiyuanlift.com/?products_33/vertical-mast-lift-with-jib.html"]) .pro_show .wrap>.title{position:static!important;width:auto!important;max-width:none!important;margin:24px 0 0!important;transform:none!important}
html:has(link[rel="canonical"][href="https://www.ruiyuanlift.com/?FixedDockLeveler/FixedDockLeveler-10T.html"]) .pro_show .wrap>.title h1,
html:has(link[rel="canonical"][href="https://www.ruiyuanlift.com/?products_37/29.html"]) .pro_show .wrap>.title h1,
html:has(link[rel="canonical"][href="https://www.ruiyuanlift.com/?MobileDockLift/35.html"]) .pro_show .wrap>.title h1,
html:has(link[rel="canonical"][href="https://www.ruiyuanlift.com/?selfpropelledsmallscissorlift/mobileaerialworkplatform.html"]) .pro_show .wrap>.title h1,
html:has(link[rel="canonical"][href="https://www.ruiyuanlift.com/?products_33/guide-rail-hydraulic-cargo-lift.html"]) .pro_show .wrap>.title h1,
html:has(link[rel="canonical"][href="https://www.ruiyuanlift.com/?products_33/vertical-mast-lift-with-jib.html"]) .pro_show .wrap>.title h1{font-size:clamp(24px,2.2vw,34px);line-height:1.3;overflow-wrap:break-word}
