/* Ajax Kitchen Cabinets — v24 scoped corrections for six user-reviewed pages.
   Based strictly on the numbered screenshot requests; no global style regression.
*/

/* 1b, 2b, 4e, 5a: Video belongs to the process SECTION background, not normal document flow. */
body:is(.ak24-kitchen-ajax,.ak24-refacing-ajax,.ak24-vanity-ajax,.ak24-closet-ajax) #process.aj-process-cinematic {
  position:relative!important; isolation:isolate!important; overflow:clip!important;
  background-color:#09162e!important;
}
body:is(.ak24-kitchen-ajax,.ak24-refacing-ajax,.ak24-vanity-ajax,.ak24-closet-ajax) #process .aj-process-media {
  position:absolute!important; inset:0!important; width:100%!important; height:100%!important;
  margin:0!important; overflow:hidden!important; z-index:0!important; pointer-events:none!important;
}
body:is(.ak24-kitchen-ajax,.ak24-refacing-ajax,.ak24-vanity-ajax,.ak24-closet-ajax) #process .aj-process-media video {
  display:block!important; position:absolute!important; inset:0!important;
  width:100%!important; height:100%!important; max-width:none!important; max-height:none!important;
  object-fit:cover!important; object-position:center!important; filter:none!important;
  opacity:.74!important;
}
body:is(.ak24-kitchen-ajax,.ak24-refacing-ajax,.ak24-vanity-ajax,.ak24-closet-ajax) #process .aj-process-media .aj-process-tint {
  display:block!important;position:absolute!important;inset:0!important;width:100%!important;height:100%!important;
  background:linear-gradient(90deg,rgba(7,17,36,.82),rgba(7,17,36,.62) 58%,rgba(7,17,36,.58)),linear-gradient(0deg,rgba(7,17,36,.43),transparent 65%)!important;
}
body:is(.ak24-kitchen-ajax,.ak24-refacing-ajax,.ak24-vanity-ajax,.ak24-closet-ajax) #process > .wrap {
  position:relative!important;z-index:2!important;
}

/* Explicitly override v23's accidental navy-on-navy for the numbered dark-card headings. */
body.ak24-kitchen-ajax #cabinetry .v10-card h3,
body.ak24-kitchen-ajax #ajax .v10-card h3,
body.ak24-refacing-ajax #scope .v10-card h3,
body.ak24-refacing-ajax #ajax .v10-card h3,
body.ak24-vanity-ajax #function .v10-card h3,
body.ak24-vanity-ajax #scope .v10-card h3,
body.ak24-vanity-ajax #ajax .v10-card h3,
body.ak24-closet-scarborough #components .sc18-card h3 {
  color:#FFF6E8!important;
}
body.ak24-kitchen-ajax #cabinetry .v10-card p,
body.ak24-kitchen-ajax #ajax .v10-card p,
body.ak24-refacing-ajax #scope .v10-card p,
body.ak24-refacing-ajax #ajax .v10-card p,
body.ak24-vanity-ajax #function .v10-card p,
body.ak24-vanity-ajax #scope .v10-card p,
body.ak24-vanity-ajax #ajax .v10-card p,
body.ak24-closet-scarborough #components .sc18-card p {
  color:#D9E3F0!important;
}
/* 4a: The premium comparison is navy, so its heading and copy must not inherit light-card ink. */
body.ak24-vanity-ajax #compare .v10-compare-card.premium h3 {color:#FFF6E8!important;}
body.ak24-vanity-ajax #compare .v10-compare-card.premium p,
body.ak24-vanity-ajax #compare .v10-compare-card.premium li {color:#D9E3F0!important;}

/* 1c: kitchen recent-work photos — identical cover frame, no asymmetric letterboxing. */
body.ak24-kitchen-ajax #projects .v10-project-image {
  display:block!important; height:auto!important; aspect-ratio:4 / 3!important;
  min-height:0!important;max-height:none!important;overflow:hidden!important;background:#eeece7!important;
}
body.ak24-kitchen-ajax #projects .v10-project-image .v10-image {
  display:block!important; width:100%!important; height:100%!important; aspect-ratio:4 / 3!important;
  min-height:0!important; overflow:hidden!important; margin:0!important;
}
body.ak24-kitchen-ajax #projects .v10-project-image img {
  display:block!important;width:100%!important;height:100%!important;
  object-fit:cover!important;object-position:center center!important;transform:none!important;
}

/* 1d: Move existing Local Ajax note into map column, exactly below the map. */
body.ak24-kitchen-ajax #ajax .v10-local-feature {align-items:start!important;}
body.ak24-kitchen-ajax #ajax .ak24-local-right {min-width:0;display:flex;flex-direction:column;gap:19px;align-self:stretch;}
body.ak24-kitchen-ajax #ajax .ak24-local-right .closet-area-map{width:100%!important;margin:0!important;}
body.ak24-kitchen-ajax #ajax .ak24-local-right .v13-local-note {margin:0!important;width:100%!important;max-width:100%!important;}
body.ak24-kitchen-ajax #ajax .ak24-local-right .v13-local-note h3 {color:#FFF6E8!important;}

/* 3a: Only the four benefit pills get their own navy fill/border. */
body.ak24-refacing-scarborough #hero .hero-side {
  background:transparent!important;border:0!important;border-left:0!important;
  border-radius:0!important;box-shadow:none!important;padding:0!important;
}
body.ak24-refacing-scarborough #hero .hero-side .hero-pill-list span {
  background:rgba(8,23,49,.79)!important;border:1px solid rgba(223,187,119,.38)!important;
  border-radius:12px!important;
}

/* 3b: The large refacing scope picture must occupy the full card, no dead strips. */
body.ak24-refacing-scarborough #scope .rf21-portrait {
  position:relative!important;min-width:0!important;min-height:100%!important;
  max-height:none!important;height:100%!important;align-self:stretch!important;
  background:#172943!important;
}
body.ak24-refacing-scarborough #scope .rf21-portrait img {
  width:100%!important;height:100%!important;max-height:none!important;
  object-fit:cover!important;object-position:center center!important;
}

/* 3c: Higher-resolution, relevant original-site kitchen photo, fully filling photo area. */
body.ak24-refacing-scarborough #styles .rf21-image-feature {align-items:stretch!important;min-height:450px;}
body.ak24-refacing-scarborough #styles .rf21-image-feature img {
  display:block!important;width:100%!important;height:100%!important;min-height:450px!important;
  max-height:none!important;object-fit:cover!important;object-position:center center!important;
  background:#f2eee7!important;
}

/* 3d: Equal visual dimensions across the three Refacing project photographs. */
body.ak24-refacing-scarborough #projects .ks20-project-image {
  height:auto!important;aspect-ratio:4 / 3!important;min-height:0!important;max-height:none!important;
  margin:0!important;overflow:hidden!important;background:#eeece8!important;
}
body.ak24-refacing-scarborough #projects .ks20-project-image img {
  display:block!important;width:100%!important;height:100%!important;max-height:none!important;
  object-fit:cover!important;object-position:center center!important;
}

/* 3e: Pixel-exact centred FAQ + / minus strokes independent of font baseline. */
body.ak24-refacing-scarborough #faqs .ks20-faq summary span {
  position:relative!important;flex:none!important;display:block!important;box-sizing:border-box!important;
  width:28px!important;min-width:28px!important;height:28px!important;border-radius:50%!important;
  background:#101d37!important;font-size:0!important;line-height:0!important;
  color:transparent!important;transform:none!important;
}
body.ak24-refacing-scarborough #faqs .ks20-faq summary span::before,
body.ak24-refacing-scarborough #faqs .ks20-faq summary span::after {
  content:"";position:absolute;left:50%;top:50%;display:block;
  background:#e8c27c;width:11px;height:2px;border-radius:2px;transform:translate(-50%,-50%);
}
body.ak24-refacing-scarborough #faqs .ks20-faq summary span::after {
  transform:translate(-50%,-50%) rotate(90deg);
}
body.ak24-refacing-scarborough #faqs .ks20-faq[open] summary span::after {opacity:0;}

/* 4c: All six Bathroom material images occupy identical clear frames. */
body.ak24-vanity-ajax #materials .v10-card .v10-image {
  display:block!important;aspect-ratio:16/11!important;width:100%!important;height:auto!important;min-height:0!important;
  overflow:hidden!important;background:#eeeae4!important;
}
body.ak24-vanity-ajax #materials .v10-card .v10-image > img {
  display:block!important;object-fit:cover!important;object-position:center center!important;
  width:100%!important;height:100%!important;filter:none!important;transform:none!important;
}

/* 6b: Both Custom Closet mid-page image features and the real project photo: fill row height. */
body.ak24-closet-scarborough :is(.sc18-closet-feature-a,.sc18-closet-feature-b,#projects) .sc18-feature-project {
  align-items:stretch!important;overflow:hidden!important;
}
body.ak24-closet-scarborough :is(.sc18-closet-feature-a,.sc18-closet-feature-b,#projects) .sc18-feature-project > img {
  width:100%!important;height:100%!important;min-height:450px!important;
  max-height:none!important;object-fit:cover!important;object-position:center center!important;
  align-self:stretch!important;background:#eeeae5!important;
}
@media(max-width:930px){
  body.ak24-closet-scarborough :is(.sc18-closet-feature-a,.sc18-closet-feature-b,#projects) .sc18-feature-project > img {
    height:auto!important;min-height:0!important;max-height:370px!important;aspect-ratio:16/10!important;
  }
  body.ak24-refacing-scarborough #styles .rf21-image-feature img {height:340px!important;min-height:0!important;max-height:340px!important;}
  body.ak24-refacing-scarborough #scope .rf21-portrait {min-height:280px!important;height:340px!important;}
}
@media(max-width:680px){
  body.ak24-kitchen-ajax #projects .v10-project-image,body.ak24-refacing-scarborough #projects .ks20-project-image{aspect-ratio:4/3!important;}
  body.ak24-refacing-scarborough #scope .rf21-portrait{min-height:280px!important;height:300px!important;}
  body.ak24-refacing-scarborough #styles .rf21-image-feature img{height:280px!important;max-height:280px!important;}
  body.ak24-closet-scarborough :is(.sc18-closet-feature-a,.sc18-closet-feature-b,#projects) .sc18-feature-project > img{max-height:280px!important;aspect-ratio:4/3!important;}
}

/* Scope photo fills the complete tall column even when grid height is content-driven. */
body.ak24-refacing-scarborough #scope .rf21-portrait img {
  position:absolute!important;inset:0!important;width:100%!important;height:100%!important;
}
