/* Product page: the service ticket, the painting with its mark note, a close detail, the hand-off and onward pictures. */

/* Pinned chrome and the call dock stand on their own opaque ground: the page passes
   beneath them and no line of the page can be read through the letters.
   site.css holds the Index stub's background at none with !important, so the ground is
   stated here with !important too (this sheet loads later and is more specific). The cedar
   scalloped face (::before, z-index -1 inside the stub's own stacking context) still paints
   over this ground, so the shape is unchanged. */
header.chrome .index-btn{background:var(--ground)!important}
.call-dock.btn{background:var(--ground)}

/* Opening: ticket left, painting wider beside it */
.opening--product{align-items:start}
@media (min-width:56rem){
  .opening--product{grid-template-columns:minmax(0,6fr) minmax(0,7fr);align-items:stretch}
}
.opening.opening--solo{grid-template-columns:minmax(0,40rem)}
.opening .mount{aspect-ratio:4/3;min-height:0;max-height:none}

.ticket--product{gap:1rem;padding:clamp(1.25rem,2.4vw,2rem) clamp(1.5rem,3vw,2.5rem)}
/* The page title leads: never smaller than the section heads below it */
.ticket--product h1{font-size:clamp(2.5rem,1.6rem + 2.6vw,3.375rem);line-height:1.08}
.kind{font-size:1.125rem;color:var(--sage)}
.ticket--product .rows>div{grid-template-columns:6.5rem 1fr;padding:.4rem 0;font-size:1.0625rem}
.ticket--product .ticket__foot{padding-top:.25rem}

/* Phone: the whole stub is drawn tight so the ruled rows complete above the consent band
   and the painting still enters the first window under them */
@media (max-width:47.99rem){
  .opening--product{gap:1rem;padding-block:.5rem var(--band)}
  .ticket--product{gap:.65rem;padding:1rem 1.1rem}
  .ticket--product h1{font-size:clamp(1.75rem,1.45rem + 1.4vw,2rem);line-height:1.05}
  .ticket--product>p{font-size:1.0625rem;line-height:1.38}
  .ticket--product>p.kind{font-size:1rem;line-height:1.3;color:var(--sage)}
  .ticket--product .rows>div{grid-template-columns:4.75rem 1fr;gap:.15rem .6rem;padding:.28rem 0;font-size:.9375rem;line-height:1.28}
  .ticket--product .ticket__foot{padding-top:.1rem}
  .ticket--product .ticket__foot .btn{min-height:2.75rem;padding:.4rem 1.2rem;font-size:1rem}
}

/* The painting and its note */
.scene{display:flex;flex-direction:column;gap:.5rem;min-width:0}
.markbar{display:flex;align-items:center}
.markbar .text-btn{gap:.7rem;font-size:1.125rem}
html:not(.js) .markbar{display:none}
.scene .mark-note{max-width:none;margin-top:0;padding:.8rem 1.1rem;background:var(--cedar);font-size:1.0625rem;line-height:1.45}
.js .mark-note:not(.is-open){display:none}

/* Zoom button, added by script over the picture */
.zoom{position:absolute;inset:0;z-index:2;width:100%;height:100%;padding:0;border:0;background:none;cursor:zoom-in}
.zoom:focus-visible{outline-offset:-.35rem}

/* Where we look first: heading, lead and body in one column, a tall close detail beside them */
.where{padding-block:var(--band) 0}
.where__pair{align-items:start}
.where__pair>*{min-width:0}
.where h2{font-size:var(--fs-h2)}
.where .lede{font-size:1.375rem;line-height:1.45}
.where .note{max-width:42rem}
@media (min-width:56rem){
  .where__pair{grid-template-columns:minmax(0,7fr) minmax(0,5fr)}
  .where__pair--solo{grid-template-columns:minmax(0,1fr)}
}
/* A decidedly closer look than the opening picture: brushwork, not the whole scene again */
.crop img{transform:scale(2.3);transform-origin:var(--ox,74%) var(--oy,44%)}

/* Hand-off: heading, sentence, links and the call button in one left-aligned column */
.handoff{grid-template-columns:minmax(0,1fr);padding-block:var(--band) 0}
.handoff .lede{max-width:34rem;margin-top:1rem}
.handoff__links{margin-top:.75rem}
.handoff .btn{margin-top:1.25rem}

/* Onward pictures: four equal tracks, the first job taking two of them and the other two one
   each, so the three pictures share one top line, sit decidedly different in size and all fit
   inside the measure with no fourth edge to run off */
.onward{padding-block:var(--band) 0}
.onward h2{margin-bottom:1.5rem;font-size:var(--fs-h2)}
.next{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:var(--gap);align-items:start;margin:0;padding:0}
.next li{min-width:0}
.next li:first-child{grid-column:span 2}
.next .mount{width:100%}
.next a{display:block;text-decoration:none}
.next h3{margin-top:.75rem;text-decoration:underline;text-decoration-thickness:.06em;text-underline-offset:.22em}
.next a:hover h3{text-decoration-color:var(--pink);text-decoration-thickness:.12em}
.next .count{margin-top:.2rem}
@media (max-width:55.99rem){
  .next{grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem}
  .next li:first-child{grid-column:span 2}
  .next .mount--tall{aspect-ratio:4/3}
  .next h3{font-size:1.25rem}
}

/* Enlarged picture */
.lightbox{max-width:min(92vw,72rem);max-height:94vh;padding:1rem;overflow:auto;background:var(--ground);color:var(--ink);border:.15rem solid var(--ink)}
.lightbox::backdrop{background:rgb(0 41 42 / .93)}
.lightbox img{width:auto;max-width:100%;max-height:74vh;margin-inline:auto;object-fit:contain}
.lightbox .btn{margin-top:1rem}
