/* GULI R7: retain template picture frames; resolve conflicting image limits. */
body.cms-fit-v2.cms-design-668:not(#site-style-priority) .art-editorial .ed-section{--editorial-photo-limit:340px}
body.cms-fit-v2.cms-design-668:not(#site-style-priority) .art-editorial .ed-fit-short{--editorial-photo-limit:clamp(155px,19vw,225px)}
body.cms-fit-v2.cms-design-668:not(#site-style-priority) .art-editorial .ed-fit-medium{--editorial-photo-limit:clamp(210px,25vw,310px)}
body.cms-fit-v2.cms-design-668:not(#site-style-priority) .art-editorial .ed-fit-stack{--editorial-photo-limit:310px}
/* Keep the 4:3 editorial frame. Apply the old height budget to the frame rather than to the photo inside it. */
body.cms-fit-v2.cms-design-668:not(#site-style-priority) .art-editorial .ed-section .cms-editorial-photo{
  box-sizing:border-box; width:min(100%,calc(var(--editorial-photo-limit,340px) * 4 / 3))!important; max-width:100%!important; min-width:0!important;
  height:auto!important; min-height:0!important; max-height:var(--editorial-photo-limit,340px)!important; aspect-ratio:4/3!important;
  margin-inline:auto!important; padding:0!important; align-self:center!important; overflow:hidden!important;
}
body.cms-fit-v2.cms-design-668:not(#site-style-priority) .art-editorial .art-depth-media .cms-editorial-photo{
  width:min(100%,calc(var(--editorial-photo-limit,340px) * 16 / 9))!important;aspect-ratio:16/9!important;
}
body.cms-fit-v2.cms-design-668:not(#site-style-priority) .art-editorial .ed-section .cms-editorial-photo :is(picture,.cms-watermark-overlay){display:block!important;width:100%!important;height:100%!important;max-height:none!important;min-height:0!important;margin:0!important}
body.cms-fit-v2.cms-design-668:not(#site-style-priority) .art-editorial .ed-section .cms-editorial-photo img{
  display:block!important; width:100%!important; height:100%!important; max-width:100%!important; max-height:none!important; min-height:0!important;
  aspect-ratio:auto!important; object-fit:cover!important; object-position:center!important; margin:0!important; padding:0!important;
}
/* Existing product/media cards keep their own aspect ratio; only remove conflicting inner limits. */
body.cms-fit-v2.cms-design-668:not(#site-style-priority) :is(.concept-card .media-frame,.concept-card .showcase-photo) img{width:100%!important;height:100%!important;max-height:none!important;object-fit:cover!important;object-position:center!important}
@media(max-width:900px){body.cms-fit-v2.cms-design-668:not(#site-style-priority) .art-editorial .ed-fit-stack{--editorial-photo-limit:250px}}
/* Card backgrounds and their text use the same palette, not a fixed white surface with inherited light text. */
body.cms-fit-v2.cms-design-668:not(#site-style-priority) :is(.ed-section,.concept-card,.cms-info-panel){
  background-color:var(--panel,#fff)!important; background-image:none!important; color:var(--ink,#172331)!important;
}
body.cms-fit-v2.cms-design-668:not(#site-style-priority) :is(.ed-items article,.ed-items details,.ed-card,.ed-feature,.ed-steps li,.ed-faq details,.cms-info-panel article,.concept-card article){
  background-color:var(--panel-alt,var(--panel,#fff))!important; background-image:none!important; color:var(--ink,#172331)!important;
}
body.cms-fit-v2.cms-design-668:not(#site-style-priority) :is(.ed-section,.concept-card,.cms-info-panel) :is(h1,h2,h3,h4,h5,h6,p,li,dt,dd,summary,figcaption,blockquote,strong,small){
  color:var(--ink,#172331)!important; text-shadow:none!important; opacity:1!important;
}
body.cms-fit-v2.cms-design-668:not(#site-style-priority) :is(.ed-section,.concept-card,.cms-info-panel) :is(a:not(.btn):not([role=button])){
  color:var(--ink,#172331)!important; text-decoration-color:currentColor!important;
}
/* Color paired with theme-derived readable button text; avoid applying card text rules to action labels. */
body.cms-fit-v2.cms-design-668:not(#site-style-priority) :is(.ed-section,.concept-card,.cms-info-panel) :is(a.btn,button,[role=button]){
  background-color:var(--button-bg,#164e63)!important; color:var(--button-ink,#fff)!important;
}
body.cms-fit-v2.cms-design-668:not(#site-style-priority) :is(.ed-section,.concept-card,.cms-info-panel) :is(a.btn,button,[role=button]) :is(span,strong,small){color:inherit!important}
