/* Capital Cornice Image Toggle v1.2.0: Hide image AND reclaim its space. */
body.ccit-hide-side .ccit-compact-card,
body.ccit-hide-side .ccd-card-fixed,
body.ccit-hide-side .capital-cornice-card,
body.ccit-hide-side .cc-cornice-card {
  box-sizing:border-box!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  justify-content:flex-start!important;
  min-height:0!important;
  height:auto!important;
  max-height:none!important;
  padding:15px 12px 16px!important;
  margin:0!important;
  gap:0!important;
  grid-template-rows:none!important;
  overflow:hidden!important;
}
body.ccit-hide-side .ccit-compact-card .ccd-title-fixed,
body.ccit-hide-side .ccd-card-fixed .ccd-title-fixed,
body.ccit-hide-side .capital-cornice-card .cc-title,
body.ccit-hide-side .cc-cornice-card .cc-title {
  flex:0 0 auto!important;
  display:flex!important;
  justify-content:center!important;
  align-items:center!important;
  min-height:46px!important;
  max-height:none!important;
  margin:0 0 5px!important;
  padding:0!important;
  width:100%!important;
  font-size:clamp(17px,1.5vw,22px)!important;
  font-weight:600!important;
  line-height:1.2!important;
  text-align:center!important;
}
body.ccit-hide-side .ccit-compact-card .ccd-image-stack-fixed,
body.ccit-hide-side .ccd-card-fixed .ccd-image-stack-fixed,
body.ccit-hide-side .capital-cornice-card .cc-images,
body.ccit-hide-side .cc-cornice-card .cc-image-pair {
  position:relative!important;
  grid-row:auto!important;
  grid-template-rows:none!important;
  display:flex!important;
  flex:0 0 auto!important;
  justify-content:center!important;
  align-items:center!important;
  width:100%!important;
  height:185px!important;
  max-height:185px!important;
  min-height:0!important;
  margin:0!important;
  padding:0!important;
  gap:0!important;
  overflow:hidden!important;
}
body.ccit-hide-side .ccit-compact-card .ccd-image-stack-fixed > img:first-child,
body.ccit-hide-side .ccd-card-fixed .ccd-image-stack-fixed > img:first-child {
  width:100%!important;
  height:100%!important;
  max-width:100%!important;
  max-height:100%!important;
  object-fit:contain!important;
  object-position:center!important;
  transform:scale(1.08)!important;
  margin:0!important;
  padding:0!important;
}
body.ccit-hide-side .ccit-compact-card .ccd-dimensions-fixed,
body.ccit-hide-side .ccd-card-fixed .ccd-dimensions-fixed,
body.ccit-hide-side .capital-cornice-card .cc-dimensions,
body.ccit-hide-side .cc-cornice-card .cc-dimensions {
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  position:static!important;
  inset:auto!important;
  flex:0 0 auto!important;
  grid-row:auto!important;
  min-height:28px!important;
  height:auto!important;
  width:100%!important;
  margin:2px 0 0!important;
  padding:0!important;
  font-size:13px!important;
  line-height:1.3!important;
  text-align:center!important;
}
body.ccit-hide-side .ccit-compact-item,
body.ccit-hide-side .ccit-compact-item .w-grid-item-h,
body.ccit-hide-side .ccit-compact-item .w-grid-item-h > * {
  min-height:0!important;
  height:auto!important;
  max-height:none!important;
}
body.ccit-hide-side .ccit-compact-list {align-items:start!important;align-content:start!important;grid-auto-rows:auto!important;}
/* Existing product's galleries remain untouched apart from the gallery image toggle. */
body.ccit-hide-side.single-product .woocommerce-product-gallery .flex-control-nav.flex-control-thumbs li:nth-child(n+2),
body.ccit-hide-side.single-product .woocommerce-product-gallery .woocommerce-product-gallery__image:nth-child(n+2){display:none!important}
@media(max-width:760px){
 body.ccit-hide-side .ccit-compact-card,body.ccit-hide-side .ccd-card-fixed{padding:10px 7px 11px!important}
 body.ccit-hide-side .ccit-compact-card .ccd-title-fixed,body.ccit-hide-side .ccd-card-fixed .ccd-title-fixed{font-size:16px!important;min-height:43px!important}
 body.ccit-hide-side .ccit-compact-card .ccd-image-stack-fixed,body.ccit-hide-side .ccd-card-fixed .ccd-image-stack-fixed{height:145px!important;max-height:145px!important}
 body.ccit-hide-side .ccit-compact-card .ccd-dimensions-fixed,body.ccit-hide-side .ccd-card-fixed .ccd-dimensions-fixed{font-size:11px!important}
}
