/* Jiuzhou Site Refinement Lite v1.3.0 */

/* Homepage: keep product images clean/full without extra decorative framing. */
.home .products-section .product-rail{grid-template-columns:repeat(3,minmax(0,1fr))!important;align-items:stretch!important}
.home .products-section .product-card{display:flex!important;flex-direction:column!important;height:100%!important;overflow:hidden!important}
.home .products-section .product-media-wrap{display:block!important;width:100%!important;height:auto!important;margin:0!important;padding:0!important;overflow:hidden!important;background:transparent!important}
.home .products-section .product-media-wrap>.wp-block-image,.home .products-section figure.product-media{display:block!important;width:100%!important;height:auto!important;margin:0!important;padding:0!important}
.home .products-section .product-media img{display:block!important;width:100%!important;height:auto!important;max-width:100%!important;max-height:none!important;margin:0!important;padding:0!important;object-fit:fill!important;background:transparent!important}
.home .products-section .product-code,.home .products-section .product-media span{display:none!important}
.home .products-section .product-info{display:flex!important;flex:1!important;flex-direction:column!important}
.home .products-section .product-request{margin-top:auto!important}

/* Product collection/category codes */
.catalog-code,.tax-product_cat .catalog-code,.tax-product_cat .product-code,.tax-product_cat .card-code,.tax-product_cat .item-code{display:none!important}

/* About image badge should not be clipped. */
.about-page-profile .document-image{overflow:visible!important}
.about-page-profile .document-image img{filter:none!important}

/* Product detail: 1:1 main image and horizontal thumbnail carousel. */
.jiuzhou-product-detail .product-gallery-main-v16{aspect-ratio:1/1!important;height:auto!important;background:#5ca4f2!important}
.jiuzhou-product-detail .product-gallery-main-image-v16,.jiuzhou-product-detail .product-gallery-main-image-v16 img{width:100%!important;height:100%!important}
.jiuzhou-product-detail .product-gallery-main-image-v16 img{object-fit:contain!important;object-position:center!important;background:#5ca4f2!important}
.jiuzhou-product-detail .jzrf-thumb-carousel{position:relative!important;margin-top:12px!important;padding:0 38px!important}
.jiuzhou-product-detail .product-gallery-thumbs-v16{display:flex!important;gap:10px!important;width:100%!important;margin:0!important;overflow-x:auto!important;overflow-y:hidden!important;scroll-behavior:smooth!important;scroll-snap-type:x mandatory!important;scrollbar-width:none!important}
.jiuzhou-product-detail .product-gallery-thumbs-v16::-webkit-scrollbar{display:none!important}
.jiuzhou-product-detail .product-gallery-thumb{flex:0 0 calc((100% - 30px)/4)!important;aspect-ratio:1/1!important;margin:0!important;scroll-snap-align:start!important;background:#5ca4f2!important}
.jiuzhou-product-detail .product-gallery-thumb img{width:100%!important;height:100%!important;object-fit:contain!important;background:#5ca4f2!important}
.jiuzhou-product-detail .jzrf-thumb-nav{position:absolute!important;top:50%!important;transform:translateY(-50%)!important;z-index:5!important;width:30px!important;height:44px!important;border:1px solid #d9e1e6!important;background:#fff!important;color:#10212e!important;font-size:22px!important;cursor:pointer!important}
.jiuzhou-product-detail .jzrf-thumb-nav.is-prev{left:0!important}.jiuzhou-product-detail .jzrf-thumb-nav.is-next{right:0!important}.jiuzhou-product-detail .jzrf-thumb-nav[disabled]{opacity:.3!important}

/* Factory Gallery popup */
.jzrf-video-modal{position:fixed;inset:0;z-index:999999;background:rgba(2,18,31,.82);display:flex;align-items:center;justify-content:center;padding:24px}
.jzrf-video-dialog{position:relative;width:min(980px,96vw);background:#081725;box-shadow:0 30px 90px rgba(0,0,0,.45)}
.jzrf-video-frame{width:100%;aspect-ratio:16/9}.jzrf-video-frame iframe{display:block;width:100%;height:100%;border:0}
.jzrf-video-close{position:absolute;right:-1px;top:-48px;width:46px;height:46px;border:0;background:#fff;color:#10212e;font-size:30px;cursor:pointer}

/* Single article layout */
body.single-post .single-entry{max-width:1160px!important;margin:0 auto!important;padding:58px 24px 84px!important}
body.single-post .single-entry>.wp-block-post-title{max-width:960px!important;margin:0 auto 16px!important;font-size:clamp(42px,5vw,68px)!important;line-height:1.04!important;letter-spacing:-.045em!important}
body.single-post .single-entry>.wp-block-post-date{display:block!important;max-width:960px!important;margin:0 auto 28px!important;color:#58707c!important;font-size:13px!important}

/* Dynamic Gutenberg News page */
.jzrf-news-dynamic,.editor-styles-wrapper .jzrf-news-dynamic{padding:64px 24px 88px!important;box-sizing:border-box!important}
.jzrf-news-dynamic .jzrf-news-heading,.editor-styles-wrapper .jzrf-news-dynamic .jzrf-news-heading{display:grid!important;grid-template-columns:1fr!important;justify-items:center!important;align-items:center!important;gap:18px!important;text-align:center!important;margin:0 auto 44px!important}
.jzrf-news-dynamic .jzrf-news-heading-left,.editor-styles-wrapper .jzrf-news-dynamic .jzrf-news-heading-left{width:100%!important;max-width:760px!important;margin:0 auto!important;text-align:center!important}
.jzrf-news-dynamic .jzrf-news-kicker,.editor-styles-wrapper .jzrf-news-dynamic .jzrf-news-kicker{margin:0 auto 10px!important;color:#0876c9!important;font-size:11px!important;font-weight:800!important;letter-spacing:.16em!important;text-transform:uppercase!important;text-align:center!important}
.jzrf-news-dynamic .jzrf-news-title,.editor-styles-wrapper .jzrf-news-dynamic .jzrf-news-title{margin:0 auto!important;color:#10212e!important;font-size:clamp(50px,4.2vw,70px)!important;line-height:.98!important;letter-spacing:-.045em!important;font-weight:650!important;text-align:center!important}
.jzrf-news-dynamic .jzrf-news-intro,.editor-styles-wrapper .jzrf-news-dynamic .jzrf-news-intro{width:100%!important;max-width:560px!important;margin:0 auto!important;color:#687985!important;font-size:16px!important;line-height:1.65!important;text-align:center!important}
.jzrf-news-dynamic .jzrf-news-grid,.editor-styles-wrapper .jzrf-news-dynamic .jzrf-news-grid{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:18px!important;list-style:none!important;margin:0!important;padding:0!important}
.jzrf-news-dynamic .jzrf-news-grid>li,.editor-styles-wrapper .jzrf-news-dynamic .jzrf-news-grid>li{margin:0!important;padding:0!important}
.jzrf-news-dynamic .jzrf-news-card,.editor-styles-wrapper .jzrf-news-dynamic .jzrf-news-card{height:100%!important;display:flex!important;flex-direction:column!important;border:1px solid #d7dfe4!important;background:#fff!important;overflow:hidden!important;padding:0!important;margin:0!important}
.jzrf-news-dynamic .jzrf-news-featured,.editor-styles-wrapper .jzrf-news-dynamic .jzrf-news-featured{width:100%!important;aspect-ratio:3/2!important;margin:0!important;padding:0!important;overflow:hidden!important;background:#eaf0f5!important}
.jzrf-news-dynamic .jzrf-news-featured a,.editor-styles-wrapper .jzrf-news-dynamic .jzrf-news-featured a{display:block!important;width:100%!important;height:100%!important}
.jzrf-news-dynamic .jzrf-news-featured img,.editor-styles-wrapper .jzrf-news-dynamic .jzrf-news-featured img{display:block!important;width:100%!important;height:100%!important;object-fit:cover!important;object-position:center!important;margin:0!important}
.jzrf-news-dynamic .jzrf-news-copy,.editor-styles-wrapper .jzrf-news-dynamic .jzrf-news-copy{flex:1!important;display:flex!important;flex-direction:column!important;padding:22px 20px 20px!important;margin:0!important}
.jzrf-news-dynamic .jzrf-news-meta,.editor-styles-wrapper .jzrf-news-dynamic .jzrf-news-meta{display:flex!important;gap:5px!important;align-items:center!important;margin:0 0 12px!important;color:#0876c9!important;font-size:10px!important;font-weight:800!important;letter-spacing:.08em!important;text-transform:uppercase!important}
.jzrf-news-dynamic .jzrf-news-card-title,.editor-styles-wrapper .jzrf-news-dynamic .jzrf-news-card-title{margin:0 0 12px!important;color:#10212e!important;font-size:23px!important;line-height:1.15!important;letter-spacing:-.025em!important;font-weight:650!important}
.jzrf-news-dynamic .jzrf-news-card-title a,.editor-styles-wrapper .jzrf-news-dynamic .jzrf-news-card-title a{color:inherit!important;text-decoration:none!important}
.jzrf-news-dynamic .jzrf-news-excerpt,.editor-styles-wrapper .jzrf-news-dynamic .jzrf-news-excerpt{margin:0 0 22px!important;color:#6b7a84!important;font-size:14px!important;line-height:1.55!important}
.jzrf-news-dynamic .jzrf-news-read,.editor-styles-wrapper .jzrf-news-dynamic .jzrf-news-read{display:inline-block!important;width:max-content!important;margin-top:auto!important;color:#10212e!important;font-size:12px!important;font-weight:800!important;text-decoration:none!important;border-bottom:1px solid #10212e!important;padding-bottom:5px!important}
.jzrf-news-dynamic .jzrf-news-pagination{margin-top:42px!important;gap:8px!important}

@media(max-width:900px){.jzrf-news-dynamic .jzrf-news-grid,.editor-styles-wrapper .jzrf-news-dynamic .jzrf-news-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:760px){
  .home .products-section .product-rail{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}
  .jiuzhou-product-detail .jzrf-thumb-carousel{padding:0 32px!important}.jiuzhou-product-detail .product-gallery-thumb{flex-basis:calc((100% - 16px)/3)!important}
  body.single-post .single-entry{padding:34px 18px 60px!important}body.single-post .single-entry>.wp-block-post-title{font-size:38px!important}
}
@media(max-width:620px){.jzrf-news-dynamic,.editor-styles-wrapper .jzrf-news-dynamic{padding:42px 16px 58px!important}.jzrf-news-dynamic .jzrf-news-title,.editor-styles-wrapper .jzrf-news-dynamic .jzrf-news-title{font-size:42px!important}.jzrf-news-dynamic .jzrf-news-grid,.editor-styles-wrapper .jzrf-news-dynamic .jzrf-news-grid{grid-template-columns:1fr!important}}

/* v1.3.4 — Factory Gallery native Cover: restore the original Jiuzhou hero text layout.
   This only styles the editable Gutenberg Cover; it does not replace or lock the image. */
body.page-id-89 .wp-block-cover:first-of-type,
.editor-styles-wrapper .wp-block-cover:first-of-type{
  min-height:360px!important;
  padding:0!important;
  overflow:hidden!important;
  align-items:center!important;
  justify-content:center!important;
}

body.page-id-89 .wp-block-cover:first-of-type .wp-block-cover__image-background,
.editor-styles-wrapper .wp-block-cover:first-of-type .wp-block-cover__image-background{
  object-fit:cover!important;
  object-position:center center!important;
}

body.page-id-89 .wp-block-cover:first-of-type .wp-block-cover__background,
.editor-styles-wrapper .wp-block-cover:first-of-type .wp-block-cover__background{
  opacity:1!important;
  background:linear-gradient(90deg,rgba(3,24,41,.82) 0%,rgba(3,24,41,.64) 42%,rgba(3,24,41,.38) 100%)!important;
}

body.page-id-89 .wp-block-cover:first-of-type .wp-block-cover__inner-container,
.editor-styles-wrapper .wp-block-cover:first-of-type .wp-block-cover__inner-container{
  width:100%!important;
  max-width:none!important;
  margin:0!important;
  padding:0!important;
  color:#fff!important;
}

body.page-id-89 .wp-block-cover:first-of-type .wp-block-cover__inner-container > .wp-block-group,
.editor-styles-wrapper .wp-block-cover:first-of-type .wp-block-cover__inner-container > .wp-block-group{
  display:block!important;
  width:min(1180px,calc(100% - 48px))!important;
  max-width:1180px!important;
  margin:0 auto!important;
  padding:0!important;
  text-align:left!important;
}

body.page-id-89 .wp-block-cover:first-of-type .wp-block-cover__inner-container > .wp-block-group > p:first-child,
.editor-styles-wrapper .wp-block-cover:first-of-type .wp-block-cover__inner-container > .wp-block-group > p:first-child{
  display:flex!important;
  align-items:center!important;
  gap:12px!important;
  width:auto!important;
  max-width:none!important;
  margin:0 0 14px!important;
  padding:0!important;
  color:#f2f8fc!important;
  font-size:12px!important;
  line-height:1.2!important;
  font-weight:800!important;
  letter-spacing:.14em!important;
  text-transform:uppercase!important;
  text-align:left!important;
}

body.page-id-89 .wp-block-cover:first-of-type .wp-block-cover__inner-container > .wp-block-group > p:first-child::before,
.editor-styles-wrapper .wp-block-cover:first-of-type .wp-block-cover__inner-container > .wp-block-group > p:first-child::before{
  content:"";
  display:block;
  width:28px;
  height:1px;
  flex:0 0 28px;
  background:rgba(255,255,255,.82);
}

body.page-id-89 .wp-block-cover:first-of-type .wp-block-cover__inner-container h1,
.editor-styles-wrapper .wp-block-cover:first-of-type .wp-block-cover__inner-container h1{
  width:auto!important;
  max-width:680px!important;
  margin:0 0 18px!important;
  padding:0!important;
  color:#fff!important;
  font-size:clamp(46px,4vw,66px)!important;
  line-height:.98!important;
  letter-spacing:-.045em!important;
  font-weight:650!important;
  text-align:left!important;
}

body.page-id-89 .wp-block-cover:first-of-type .wp-block-cover__inner-container > .wp-block-group > p:last-child,
.editor-styles-wrapper .wp-block-cover:first-of-type .wp-block-cover__inner-container > .wp-block-group > p:last-child{
  width:auto!important;
  max-width:430px!important;
  margin:0!important;
  padding:0!important;
  color:rgba(255,255,255,.9)!important;
  font-size:15px!important;
  line-height:1.55!important;
  font-weight:400!important;
  text-align:left!important;
}

@media(max-width:760px){
  body.page-id-89 .wp-block-cover:first-of-type,
  .editor-styles-wrapper .wp-block-cover:first-of-type{min-height:310px!important;}
  body.page-id-89 .wp-block-cover:first-of-type .wp-block-cover__inner-container > .wp-block-group,
  .editor-styles-wrapper .wp-block-cover:first-of-type .wp-block-cover__inner-container > .wp-block-group{width:calc(100% - 36px)!important;}
  body.page-id-89 .wp-block-cover:first-of-type .wp-block-cover__inner-container h1,
  .editor-styles-wrapper .wp-block-cover:first-of-type .wp-block-cover__inner-container h1{font-size:40px!important;max-width:100%!important;}
  body.page-id-89 .wp-block-cover:first-of-type .wp-block-cover__inner-container > .wp-block-group > p:last-child,
  .editor-styles-wrapper .wp-block-cover:first-of-type .wp-block-cover__inner-container > .wp-block-group > p:last-child{font-size:14px!important;max-width:92%!important;}
}
