/* 1716 /client-gallery/ (docs/design/sketches/1716-picture.md). Paper and ink from hallmark.css (body.cg-page), Large & clear from tokens.css.
   Every class is cg- (style.css has global short names). Phone first; from 900 px the sample is the hero's right half. */
body.cg-page {
  --cg-on-photo: #fff; --cg-heart-on: #b3261e; --cg-shade: rgba(20, 18, 15, .5); --cg-fade: rgba(15, 13, 10, .72);
  --cg-fs: 1.1875rem; --cg-h1: clamp(2.2rem, 9.6vw, 3.9rem); --cg-h2: clamp(1.6rem, 6.4vw, 2.3rem);
  --cg-body: "Alegreya Sans", var(--ui, system-ui), sans-serif;
  background: var(--bg); color: var(--ink); font: 400 var(--cg-fs)/1.5 var(--cg-body);
}
html[data-theme="large"] body.cg-page { --cg-fs: 1.4rem; --cg-h1: clamp(2.3rem, 10vw, 3.9rem); }
:lang(ar) body.cg-page, :lang(zh) body.cg-page, :lang(ja) body.cg-page { --cg-body: var(--ui, system-ui), sans-serif; }
body.cg-page .site-hd .site-larger, body.cg-page .site-hd .signin { border: 0; background: none; box-shadow: none; color: var(--ink); font-weight: 500; padding-inline: 8px; }
.cg-main { max-width: 1120px; margin: 0 auto; padding: 0 22px 32px; }
.cg-main h1, .cg-main h2 { font-family: var(--display); font-weight: 400; letter-spacing: -.015em; margin: 0; color: var(--ink); text-wrap: balance; }
.cg-main h1 { font-size: var(--cg-h1); line-height: 1.03; }
.cg-main h2 { font-size: var(--cg-h2); line-height: 1.1; }
.cg-main p { margin: 0; }
.cg-main a:not(.cg-btn) { color: var(--ink); text-underline-offset: .18em; }
.cg-btn { display: inline-flex; align-items: center; justify-content: center; min-height: var(--tap, 48px); min-width: 12rem; padding: 0 28px; border: 0; border-radius: var(--r-sm, 10px);
  background: var(--accent); color: var(--on-accent); font: 700 1.1rem var(--cg-body); text-decoration: none; cursor: pointer; touch-action: manipulation; }
.cg-btn:disabled { opacity: .45; cursor: default; }

.cg-hero { display: grid; gap: 14px; justify-items: start; padding: 22px 0 26px; }
.cg-sub { color: var(--muted); max-width: 32ch; }
.cg-under { font-size: .95em; color: var(--muted); }

/* the sample: the client's own screen, live in the page */
.cg-demo { background: var(--surface-2); margin: 0 -22px; padding: 22px; }
.cg-lab { display: flex; gap: 10px; align-items: baseline; justify-content: space-between; flex-wrap: wrap; margin: 0 0 12px; }
.cg-main .cg-lab h2 { font: 700 1.05em var(--cg-body); letter-spacing: 0; }
.cg-lab span { color: var(--muted); font-size: .95em; }
.cg-gal { background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-sm, 10px); overflow: hidden; max-width: 560px; }
.cg-cover { position: relative; margin: 0; }
.cg-cover img { display: block; width: 100%; height: clamp(11rem, 52vw, 17rem); object-fit: cover; object-position: 50% 40%; }
.cg-cover figcaption { position: absolute; inset-inline: 0; bottom: 0; padding: 34px 16px 12px; color: var(--cg-on-photo); background: linear-gradient(transparent, var(--cg-fade)); }
.cg-cover b { display: block; font: 400 1.6rem/1.1 var(--display); }
.cg-cover span { font-size: .95em; }
.cg-tip { padding: 12px 16px 4px; font-weight: 700; }
.cg-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; }
.cg-ph { position: relative; margin: 0; aspect-ratio: 1; background: var(--line); }
.cg-ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cg-heart { position: absolute; top: 6px; inset-inline-start: 6px; width: var(--tap, 48px); height: var(--tap, 48px); padding: 0; border-radius: 50%;
  border: 2px solid var(--cg-on-photo); background: var(--cg-shade); display: grid; place-items: center; cursor: pointer; touch-action: manipulation; }
.cg-heart svg { width: 26px; height: 26px; fill: none; stroke: var(--cg-on-photo); stroke-width: 2.2; stroke-linejoin: round; }
.cg-heart[aria-pressed="true"] { background: var(--cg-on-photo); border-color: var(--cg-on-photo); }
.cg-heart[aria-pressed="true"] svg { fill: var(--cg-heart-on); stroke: var(--cg-heart-on); }
.cg-dot { position: absolute; bottom: 6px; inset-inline-end: 6px; min-height: 40px; padding: 0 12px; border-radius: var(--r-pill, 999px); border: 0; background: var(--cg-shade);
  color: var(--cg-on-photo); font: 700 .85rem var(--cg-body); cursor: pointer; display: none; }
.cg-ph.cg-on .cg-dot { display: block; }
.cg-note { position: absolute; inset: auto 6px 6px 6px; display: none; }
.cg-note.cg-open { display: block; }
.cg-note textarea { width: 100%; height: 84px; padding: 10px 12px; border-radius: var(--r-sm, 10px); border: 1.5px solid var(--muted); background: var(--surface); color: var(--ink);
  font: 400 max(16px, .9em) var(--cg-body); resize: none; }
.cg-bar { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-top: 1px solid var(--line); }
.cg-bar b { white-space: nowrap; }
.cg-bar .cg-btn { flex: 1; min-width: 0; padding: 0 14px; }
.cg-ok { padding: 14px 16px; border-top: 1px solid var(--line); font-weight: 700; }

/* the photographer's side, from the same link */
.cg-you { margin-top: 16px; max-width: 560px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm, 10px); padding: 14px 16px; }
.cg-you small { display: block; color: var(--muted); font-size: .9em; }
.cg-you b { display: block; margin: 2px 0 8px; font: 400 1.3rem/1.2 var(--display); }
.cg-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.cg-chips img { width: 46px; height: 46px; object-fit: cover; border-radius: var(--r-sm, 10px); }
.cg-quote { margin-top: 8px !important; padding: 8px 10px; border-radius: var(--r-sm, 10px); background: var(--surface-2); font-size: .95em; overflow-wrap: anywhere; }

/* steps, stays where it is, price */
.cg-sec { padding: 34px 0 8px; display: grid; gap: 18px; justify-items: start; }
.cg-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; counter-reset: cg; }
.cg-steps li { display: grid; grid-template-columns: 44px 1fr; column-gap: 12px; counter-increment: cg; }
.cg-steps li::before { content: counter(cg); grid-row: span 2; width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--ink); display: grid; place-items: center; font: 400 1.2rem var(--display); }
.cg-steps b { font-size: 1.1em; }
.cg-steps span { color: var(--muted); }
.cg-keep, .cg-price { margin-top: 30px; display: grid; gap: 12px; justify-items: start; }
.cg-keep { padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm, 10px); }
.cg-keep p, .cg-price p { color: var(--muted); }
.cg-main a.cg-arrow { font-weight: 700; display: inline-block; padding-block: 12px; }
.cg-nw { white-space: nowrap; }
.cg-nw::after { content: "\2192"; margin-inline-start: .4em; display: inline-block; }
[dir="rtl"] .cg-nw::after { transform: scaleX(-1); }
.cg-cc { margin-top: 34px !important; color: var(--muted); font-size: .85em; }

@media (min-width: 900px) {
  .cg-hd { display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: start; padding: 36px 0; }
  .cg-hero { padding: 70px 0 0; }
  .cg-demo { background: none; margin: 0; padding: 0; }
  .cg-gal, .cg-you { max-width: none; }
  .cg-grid { grid-template-columns: repeat(3, 1fr); }
  .cg-cover img { height: 11rem; }
  .cg-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
  .cg-sec { padding-top: 24px; }
}
.cg-bar[hidden] { display: none; }
