/* 1724: Theo's sample client gallery. Cover, set strip, rows that keep each photo's shape, hearts, picks bar (picture 1719). Tokens only. */
.sg-page { background: var(--bg); color: var(--ink); }
.sg-page main.sg { max-width: 1120px; margin: 0 auto; padding-inline: 0; padding-bottom: calc(110px + env(safe-area-inset-bottom, 0px)); }
.sg-cv { position: relative; isolation: isolate; display: flex; align-items: flex-end; height: min(78svh, 720px); min-height: 440px; overflow: hidden; background: var(--line); color: #fff; }
.sg-cv > img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 74% 40%; }
.sg-cv::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgb(0 0 0 / .82) 0, rgb(0 0 0 / .45) 42%, transparent 78%); }
.sg-pill { position: absolute; top: 16px; inset-inline-start: 16px; margin: 0; padding: 8px 14px; border-radius: 999px; background: rgb(0 0 0 / .62); color: #fff; font: 600 .9rem/1 var(--body); }
.sg-cv-t { width: 100%; padding: 0 20px 26px; }
.sg-cv h1 { margin: 0; font: 600 2.4rem/1.08 var(--display); letter-spacing: -.01em; text-wrap: balance; overflow-wrap: anywhere; }
.sg-by { margin: 10px 0 0; font: 400 1.05rem/1.4 var(--body); }
.sg-go { display: flex; align-items: center; justify-content: center; min-height: 56px; margin-top: 20px; padding: 0 28px; border-radius: 14px; background: #fff; color: #111; font: 650 1.1rem/1.2 var(--body); text-decoration: none; touch-action: manipulation; }
.sg-go.sg-solid { background: var(--accent); color: var(--on-accent); margin-top: 18px; }
.sg-go:focus-visible, .sg-tab:focus-visible, .sg-bar button:focus-visible, .sg-q:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
@media (min-width: 700px) { .sg-cv { height: min(82svh, 760px); } .sg-cv h1 { font-size: 3.8rem; max-width: 16ch; } .sg-cv-t { padding: 0 40px 44px; } .sg-go { display: inline-flex; min-width: 240px; } .sg-pill { top: 24px; inset-inline-start: 40px; } }
.sg-tabs { position: sticky; top: 0; z-index: 12; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; min-height: 60px; align-items: center; padding: 8px 16px; background: var(--glass); -webkit-backdrop-filter: blur(18px) saturate(170%); backdrop-filter: blur(18px) saturate(170%); border-bottom: 1px solid var(--line); }
.sg-tabs::-webkit-scrollbar { display: none; }
.sg-tab { flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--line); color: var(--ink); text-decoration: none; font: 600 1rem/1 var(--body); }
.sg-tab small { color: var(--muted); font: 500 .9rem/1 var(--body); }
.sg-tab[aria-current="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); } .sg-tab[aria-current="true"] small { color: inherit; opacity: .8; }
@media (min-width: 700px) { .sg-tabs { justify-content: center; } }
.sg-body { padding: 4px 6px 0; }
.sg-tip { margin: 22px 8px 0; font-size: 1.05rem; }
.sg-set { scroll-margin-top: 68px; margin: 28px 0 0; }
.sg-set > h2 { display: flex; align-items: baseline; gap: 10px; margin: 0 8px 12px; font: 600 1.6rem/1.2 var(--display); }
.sg-set > h2 small { color: var(--muted); font: 500 1rem/1 var(--body); }
.sg-rows { display: flex; flex-wrap: wrap; gap: 6px; --rh: 120px; }
.sg-f { position: relative; margin: 0; flex: calc(var(--r) * 100) 1 calc(var(--r) * var(--rh)); min-width: 0; background: var(--line); border-radius: 10px; overflow: hidden; }
.sg-f img { display: block; width: 100%; height: auto; aspect-ratio: var(--r); object-fit: cover; }
@media (min-width: 700px) { .sg-body { padding: 4px 24px 0; } .sg-rows { --rh: 240px; gap: 8px; } .sg-set > h2 { font-size: 2rem; margin-inline: 4px; } .sg-tip { margin-inline: 4px; } }
.sg-heart { position: absolute; bottom: 4px; inset-inline-end: 4px; width: 48px; height: 48px; display: grid; place-items: center; padding: 0; border: 0; background: none; cursor: pointer; touch-action: manipulation; }
.sg-heart i { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: rgb(0 0 0 / .55); }
.sg-heart svg { width: 20px; height: 20px; fill: none; stroke: #fff; stroke-width: 2.2; stroke-linejoin: round; }
.sg-heart[aria-pressed="true"] i { background: #fff; } .sg-heart[aria-pressed="true"] svg { fill: #c8372d; stroke: #c8372d; }
.sg-heart:focus-visible { outline: 3px solid var(--accent); outline-offset: -3px; border-radius: 10px; }
.sg-cc { margin: 36px 8px 0; color: var(--muted); font-size: .95rem; text-align: center; } .sg-cc a { color: var(--accent); }
.sg-bar { position: fixed; z-index: 20; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); max-width: 560px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 8px 8px 20px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 8px 30px rgb(0 0 0 / .25); font: 600 1.05rem/1.2 var(--body); }
.sg-bar[hidden], .sg-done[hidden] { display: none; }
.sg-bar button { min-height: 48px; padding: 0 22px; border: 0; border-radius: 12px; background: var(--accent); color: var(--on-accent); font: 650 1.05rem/1 var(--body); cursor: pointer; }
.sg-done { position: fixed; z-index: 30; inset: 0; display: grid; place-items: end center; background: var(--scrim); }
.sg-done > div { width: min(100%, 520px); display: grid; gap: 4px; padding: 26px 22px calc(22px + env(safe-area-inset-bottom, 0px)); border-radius: 22px 22px 0 0; background: var(--surface); }
.sg-done h2 { margin: 0; font: 600 1.6rem/1.2 var(--display); } .sg-done p { margin: 8px 0 0; font-size: 1.05rem; }
.sg-q { display: flex; align-items: center; justify-content: center; min-height: 48px; border: 0; background: none; color: var(--accent); font: 600 1.05rem/1 var(--body); text-decoration: none; cursor: pointer; }
@media (min-width: 700px) { .sg-done { place-items: center; } .sg-done > div { border-radius: 22px; } }
@media (prefers-reduced-motion: no-preference) { html:has(.sg) { scroll-behavior: smooth; } }
