/* "Our work" on a laptop as one row of six portrait tiles (Smartfix, 7 Oct 2026): the kit's two rows of three
   ran to about 1,000px. Only when there are exactly six photos; every photo still opens full size, and phones
   and tablets keep their swipe row and grid. Opt-in (`optInCss`). */
@media (min-width: 1024px) {
  #work .rail:not(.work-carousel):has(> figure:nth-child(6)) { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  /* MCL, 30 Oct 2026: a 7th photo used to switch this off and give two big rows. Now the row shows the first six;
     the rest stay in the lightbox and on the phone swipe row. With the arrows on (copy.workCarousel) the strip has the
     rest instead, so none of this applies (Patrick Higgins Joinery, 3 Nov 2026). */
  #work .rail:not(.work-carousel):has(> figure:nth-child(6)) > figure:nth-child(n+7) { display: none; }
  #work .rail:not(.work-carousel):has(> figure:nth-child(6)) > figure { grid-column: span 1 / span 1; aspect-ratio: 4 / 5; }
}
