/* Client portal (/client): private pages, built on the site's styles. */
.portal-header { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.portal-back { font-size: 14px; color: var(--gold); text-decoration: none; }
.portal-back:hover { color: var(--gold-light); }
.portal-main { max-width: 760px; margin: 0 auto; padding: clamp(28px, 6vw, 64px) 16px 48px; display: flex; flex-direction: column; gap: 28px; }
.portal-card { border: 1px solid var(--line); background: var(--bg-alt); padding: clamp(22px, 5vw, 40px); display: flex; flex-direction: column; gap: 18px; max-width: 520px; margin: 0 auto; width: 100%; box-sizing: border-box; }
.portal-card h1, .portal-top h1 { font-size: clamp(34px, 6vw, 46px); }
.lede { color: var(--text-soft); margin: 0; }
.portal-form { display: flex; flex-direction: column; gap: 16px; }
.portal-form .btn { align-self: flex-start; }
.portal-form input[name=code] { font-size: 28px; letter-spacing: 0.3em; font-variant-numeric: tabular-nums; }
.note { margin: 0; color: var(--text-soft); }
.small { font-size: 14px; color: var(--text-soft); }
.link-like { all: unset; cursor: pointer; color: var(--gold); text-decoration: underline; text-underline-offset: 4px; }
.link-like:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.notice { padding: 12px 16px; border-left: 3px solid var(--gold); background: var(--bg-alt); margin: 0; }
.notice.error { border-left-color: #C0675A; }
.portal-top { display: flex; flex-direction: column; gap: 4px; }
.portal-main h2 { font-size: 28px; margin-bottom: 12px; }
.p-list { display: flex; flex-direction: column; gap: 14px; }
.p-item { border: 1px solid var(--line); background: var(--bg-alt); padding: 18px 20px; display: flex; flex-direction: column; gap: 10px; }
.p-item h3 { font-size: 26px; }
.p-when { color: var(--gold-light); }
.p-facts { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; font-size: 15px; }
.p-facts dt { color: var(--text-soft); }
.p-facts dd { margin: 0; color: var(--text-soft); }
.p-status { display: inline-block; padding: 2px 10px; border: 1px solid var(--line); font-size: 13px; letter-spacing: 0.04em; width: fit-content; }
.p-status.unpaid { border-color: var(--gold); color: var(--gold-light); }
.p-status.paid, .p-status.active { border-color: #7FA37A; color: #B6D3B0; }
.p-status.cancelled, .p-status.refunded, .p-status.expired, .p-status.redeemed { color: var(--muted); border-style: dashed; }
.p-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.resched { display: flex; flex-direction: column; gap: 10px; }
.resched textarea { min-height: 80px; width: 100%; box-sizing: border-box; background: var(--bg); color: var(--text); border: 1px solid var(--line); padding: 10px 12px; font: inherit; }
.empty-note { color: var(--text-soft); }
.signout { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; border-top: 1px solid var(--line); padding-top: 22px; }
.portal-footer { text-align: center; padding: 24px 16px 40px; color: var(--muted); font-size: 14px; }
.portal-footer p { margin: 0; }
[hidden] { display: none !important; }

/* Layout: next session prominent, others smaller, past as a list */
.eyebrow { font-family: var(--sans); font-size: 13px !important; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); margin-bottom: 10px !important; }
.p-next { border: 1px solid var(--gold-dim, #8a6d3b); background: var(--bg-alt); padding: clamp(22px, 5vw, 36px); display: flex; flex-direction: column; gap: 14px; }
.p-type { margin: 0; font-size: 15px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-soft); }
.p-bigdate { margin: 0; font-family: var(--serif); font-size: clamp(30px, 6vw, 44px); line-height: 1.1; color: var(--text); }
.p-next .p-facts { font-size: 16px; }
.p-next .p-actions { margin-top: 6px; gap: 14px 20px; }
.p-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 14px; }
.p-small { padding: 16px 18px; gap: 6px; }
.p-small h3 { font-size: 22px; }
.p-small .p-when { margin: 0; }
.p-small .small { margin: 0; }
.p-small .p-actions { margin-top: 6px; }
.p-small .p-facts { font-size: 14px; }
.p-past { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.p-past li { display: grid; grid-template-columns: minmax(150px, max-content) 1fr auto; gap: 4px 18px; padding: 12px 2px; border-bottom: 1px solid var(--line); font-size: 15px; align-items: baseline; }
.past-date { color: var(--text-soft); }
.past-status { color: var(--muted); font-size: 14px; }
/* 4C: "Session paid · $235 extras to pay": its own line, so the session name keeps its width */
.past-status.owing { grid-column: 1 / -1; color: var(--gold); }
@media (max-width: 560px) {
  .p-past li { grid-template-columns: 1fr auto; }
  .p-past .past-date { grid-column: 1 / -1; font-size: 14px; color: var(--muted); }
}

/* Silent Shutter palette on every portal page (client pages and the admin preview): gold links,
   gold outline for secondary buttons, solid gold primary buttons (styles.css .btn-gold). */
.portal-main a:not(.btn), .portal-footer a { color: var(--gold); }
.portal-main a:not(.btn):hover, .portal-footer a:hover { color: var(--gold-light); }
.portal-main .btn-line, .portal-body .btn-line { border-color: var(--gold); color: var(--gold); }
.portal-main .btn-line:hover, .portal-body .btn-line:hover { border-color: var(--gold-light); color: var(--gold-light); }
.q-num { color: var(--gold); }

/* Shared page body (client page and admin preview) */
.portal-body { display: flex; flex-direction: column; gap: 28px; }
.p-dates { display: flex; flex-wrap: wrap; gap: 10px; }
.p-dates input { background: var(--bg); color: var(--text); border: 1px solid var(--line); padding: 10px 12px; font: inherit; color-scheme: dark; min-width: 0; flex: 1 1 150px; }
.p-times { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px 16px; }
.p-times legend { font-size: 14px; color: var(--muted); margin-bottom: 6px; padding: 0; }
.p-radio { display: inline-flex; gap: 8px; align-items: center; font-size: 15px; color: var(--text-soft); min-height: 40px; }
.p-radio input { width: 18px; height: 18px; accent-color: var(--gold); }
button[disabled], .btn[disabled] { opacity: 0.5; cursor: not-allowed; }
.preview-banner { position: sticky; top: 0; z-index: 10; background: #6FA3C7; color: #0E1A22; text-align: center; padding: 10px 16px; font-size: 15px; letter-spacing: 0.03em; }
.preview-banner a { color: inherit; }
.how { margin: 0; line-height: 1.6; }
/* Cancelled or refunded bookings: a small, quiet list at the bottom */
.p-cancelled h2 { font-size: 20px !important; color: var(--muted); }
.p-cancelled .p-past li { font-size: 14px; color: var(--muted); padding: 8px 2px; }
.p-cancelled .past-date, .p-cancelled .past-type { color: var(--muted); }

/* Questionnaire: the line on a booking card */
.p-q { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 14px; }
.p-q-text { margin: 0; display: flex; flex-direction: column; gap: 2px; }
.p-q-name { color: var(--text); }
.p-q-status { font-size: 14px; color: var(--text-soft); }
.p-q-done .p-q-status { color: var(--gold); }
.btn[aria-disabled=true] { opacity: 0.5; cursor: not-allowed; }

/* Questionnaire page */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.q-main { gap: 22px; }
.q-intro { margin: 0; color: var(--text-soft); font-size: 17px; line-height: 1.6; }
.q-key { margin: 0; }
.q-star { color: var(--gold); }
.q-section { border-top: 1px solid var(--line); padding-top: 22px; display: flex; flex-direction: column; gap: 20px; }
.q-section h2 { margin: 0 !important; }
.q-section-intro { margin: 0; color: var(--text-soft); line-height: 1.6; }
.q-field { display: flex; flex-direction: column; gap: 8px; border: 0; padding: 0; margin: 0; min-width: 0; }
.q-field > label, .q-field > legend { color: var(--text); font-size: 16px; line-height: 1.5; padding: 0; }
.q-field legend { margin-bottom: 8px; }
.q-hint { font-size: 14px; color: var(--text-soft); line-height: 1.5; margin-top: -4px; }
.q-field input[type=text], .q-field textarea { width: 100%; box-sizing: border-box; background: var(--bg); color: var(--text); border: 1px solid var(--line); padding: 12px 14px; font: inherit; font-size: 16px; border-radius: 0; }
.q-field textarea { min-height: 110px; resize: vertical; line-height: 1.5; }
.q-field input[type=text]:focus, .q-field textarea:focus { outline: none; border-color: var(--gold); }
.q-field input:disabled, .q-field textarea:disabled { opacity: 0.75; }
.q-options { display: flex; flex-direction: column; gap: 2px; }
.q-tick { display: flex; gap: 12px; align-items: flex-start; min-height: 44px; padding: 10px 0 0; color: var(--text-soft); font-size: 16px; line-height: 1.45; cursor: pointer; }
.q-tick input { flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--gold); }
.q-check .q-tick { color: var(--text); padding-top: 0; }
.q-field[data-invalid] > label, .q-field[data-invalid] > legend, .q-field[data-invalid] .q-tick span { color: #E4A397; }
.q-field [aria-invalid=true] { border-color: #C0675A !important; }
.q-end { border-top: 1px solid var(--line); padding-top: 24px; display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.q-closing { margin: 0; font-family: var(--serif); font-size: clamp(22px, 4.5vw, 28px); line-height: 1.35; color: var(--text); }
.q-save { position: fixed; right: 16px; bottom: 16px; margin: 0; padding: 8px 14px; background: var(--bg-alt); border: 1px solid var(--line); color: var(--text-soft); font-size: 14px; z-index: 5; }
.q-save.error { border-color: #C0675A; color: #E4A397; }

/* Prep guide ("Getting ready") */
.prep-section { border-top: 1px solid var(--line); padding-top: 22px; display: flex; flex-direction: column; gap: 12px; }
.prep-section h2 { margin: 0 !important; }
.prep-section p { margin: 0; color: var(--text-soft); line-height: 1.65; font-size: 17px; }
.prep-list { margin: 0; padding-left: 1.2em; display: flex; flex-direction: column; gap: 8px; color: var(--text-soft); font-size: 17px; line-height: 1.6; }
.prep-list li::marker { color: var(--gold); }
.prep-contact { margin: 0; border-top: 1px solid var(--line); padding-top: 22px; color: var(--text); }

/* Photo permissions: the line under a past session, and the form */
.past-perm { grid-column: 1 / -1; }
.past-perm .p-q { border-top: 0; padding-top: 4px; }
.perm-form { display: flex; flex-direction: column; gap: 22px; }
.perm-form fieldset { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.perm-form legend { color: var(--text); font-size: 17px; margin-bottom: 8px; padding: 0; }
.perm-promise { margin: 0; color: var(--text-soft); line-height: 1.6; }
.perm-saved { margin: 0; padding: 14px 16px; border-left: 3px solid var(--gold); background: var(--bg-alt); color: var(--text); line-height: 1.55; }
.perm-saved strong { color: var(--gold); font-weight: 500; }
.perm-form .q-field input[type=text] { max-width: 420px; }

/* Questionnaire after "All done": unsaved changes bar (sticks to the bottom of the screen while there are edits) */
.q-editbar { position: sticky; bottom: 0; z-index: 6; background: var(--bg-alt); border: 1px solid var(--gold); padding: 14px 16px; display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; justify-content: space-between; box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.45); }
.q-unsaved { margin: 0; color: var(--text); }
.q-unsaved::before { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); margin-right: 10px; vertical-align: middle; }
.q-editbar-buttons { display: flex; flex-wrap: wrap; gap: 10px; }
.q-editbar .notice { flex-basis: 100%; }
.q-changes-saved { margin: 0; color: var(--gold); }
@media (max-width: 560px) {
  .q-editbar { padding: 10px 12px; gap: 8px; }
  .q-editbar-buttons { flex-wrap: nowrap; width: 100%; }
  .q-editbar .btn { flex: 1; padding: 11px 10px; font-size: 14px; text-align: center; }
}

.perm-name-note { margin: 0; font-size: 15px; color: var(--gold); }

/* ===== Gallery (Phase 4): proofs and choosing ===== */
.gal-main { max-width: 1180px; }
.gal-label { margin: 0; padding: 12px 16px; border-left: 3px solid var(--gold); background: var(--bg-alt); color: var(--text); }
.gal-intro { margin: 0; color: var(--text-soft); font-size: 17px; line-height: 1.6; }
.gal-intro strong { color: var(--gold); font-weight: 500; }
.gal-welcome { white-space: pre-line; color: var(--text); }
.gal-help { border: 1px solid var(--line); padding: 12px 16px; }
.gal-help summary { cursor: pointer; color: var(--gold); }
.gal-help p { margin: 10px 0 0; color: var(--text-soft); line-height: 1.6; }
.gal-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.gal-chip { all: unset; cursor: pointer; padding: 8px 14px; border: 1px solid var(--line); color: var(--text-soft); font-size: 15px; }
.gal-chip[aria-pressed=true] { border-color: var(--gold); background: var(--gold); color: var(--on-gold); }
.gal-chip:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.gal-chip .n { opacity: 0.75; margin-left: 6px; }
.gal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(46%, 220px), 1fr)); gap: 10px; }
.gal-tile { position: relative; padding: 0; border: 2px solid transparent; background: var(--bg-alt); cursor: pointer; aspect-ratio: 2 / 3; overflow: hidden; }
.gal-tile.landscape { aspect-ratio: 3 / 2; }
.gal-tile img, .gal-review img { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; pointer-events: none; }
.gal-tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gal-tile.keep { border-color: var(--gold); }
.gal-tile:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.gal-badge { position: absolute; left: 8px; top: 8px; padding: 3px 9px; font-size: 13px; letter-spacing: 0.04em; background: rgba(18, 17, 17, 0.82); color: var(--text); border: 1px solid var(--line); }
.gal-badge.keep { background: var(--gold); color: var(--on-gold); border-color: var(--gold); }
.gal-badge.pass { color: var(--text-soft); }
.gal-noteflag { position: absolute; right: 8px; top: 8px; padding: 3px 8px; font-size: 12px; background: rgba(18, 17, 17, 0.82); color: var(--gold); border: 1px solid var(--gold-dim); }
.gal-empty { color: var(--text-soft); margin: 0; }
.gal-bar { position: sticky; bottom: 0; z-index: 6; background: var(--bg-alt); border: 1px solid var(--gold); padding: 12px 16px; display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; justify-content: space-between; box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.45); }
.gal-counter { margin: 0; color: var(--text); font-size: 16px; }
.gal-sendnote { margin: 0; font-size: 14px; color: var(--text-soft); }
.gal-done { margin: 0; padding: 14px 16px; border-left: 3px solid var(--gold); background: var(--bg-alt); color: var(--text); line-height: 1.55; }
.gal-done strong { color: var(--gold); font-weight: 500; }
/* 4C: something still to pay: Pay buttons instead of the downloads */
.gal-owing { display: grid; gap: 12px; padding: 16px; border: 1px solid var(--gold); background: var(--bg-alt); line-height: 1.55; }
.gal-owing p { margin: 0; }
.gal-owing-btns { display: flex; flex-wrap: wrap; gap: 10px; }
.gal-tile-wait { display: flex; align-items: center; justify-content: center; aspect-ratio: 4 / 5; background: var(--bg-alt); color: var(--text-soft); }
.gal-dllocked { margin: 0; padding: 12px 16px; color: var(--text-soft); text-align: center; }
/* Review mode: one photo, full screen */
.gal-review { position: fixed; inset: 0; z-index: 50; background: #0B0A0A; display: grid; grid-template-rows: auto 1fr auto; touch-action: pan-y pinch-zoom; }
.gal-review[hidden] { display: none !important; }
.gal-rtop { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 14px; color: var(--text-soft); font-size: 14px; }
.gal-rtop .link-like { color: var(--gold); }
.gal-stage { position: relative; display: flex; align-items: center; justify-content: center; overflow: hidden; min-height: 0; }
.gal-stage img { max-width: 100%; max-height: 100%; object-fit: contain; transition: transform 0.18s ease, opacity 0.18s ease; }
.gal-stage .gal-badge { left: 14px; top: 14px; font-size: 14px; }
.gal-nav { all: unset; cursor: pointer; position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 64px; display: grid; place-items: center; color: var(--text); font-size: 28px; background: rgba(18, 17, 17, 0.5); }
.gal-nav.prev { left: 6px; } .gal-nav.next { right: 6px; }
.gal-nav:focus-visible { outline: 2px solid var(--gold); }
.gal-ractions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; padding: 10px 12px 16px; background: #121111; }
.gal-ractions .btn { min-width: 92px; }
.gal-ractions .btn[aria-pressed=true] { background: var(--gold); color: var(--on-gold); border-color: var(--gold); }
.gal-notebox { width: 100%; max-width: 640px; display: flex; flex-direction: column; gap: 6px; }
.gal-notebox textarea { width: 100%; box-sizing: border-box; min-height: 70px; background: var(--bg); color: var(--text); border: 1px solid var(--line); padding: 10px 12px; font: inherit; }
.gal-ronly { color: var(--text-soft); font-size: 14px; text-align: center; width: 100%; }
@media (max-width: 560px) {
  .gal-nav { display: none; }
  .gal-ractions .btn { min-width: 0; flex: 1; padding: 11px 6px; }
  .gal-bar .btn { width: 100%; text-align: center; }
}
/* Send confirmation (on the page, not a browser pop-up) */
.gal-dialog { background: var(--bg-alt); color: var(--text); border: 1px solid var(--gold-dim); padding: 24px; width: min(460px, calc(100vw - 32px)); }
.gal-dialog::backdrop { background: rgba(0, 0, 0, 0.7); }
.gal-dialog h2 { margin: 0 0 10px; font-size: 28px; }
.gal-dialog p { margin: 0 0 12px; color: var(--text-soft); line-height: 1.55; }

/* Hearts (favourites), Photos-app style */
.gal-tile { cursor: default; }
.gal-view { all: unset; display: block; width: 100%; height: 100%; cursor: pointer; }
.gal-view:focus-visible { outline: 2px solid var(--gold); outline-offset: -2px; }
.gal-heart { all: unset; position: absolute; right: 8px; top: 8px; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; font-size: 28px; line-height: 1; color: #F2ECE6; background: rgba(18, 17, 17, 0.62); cursor: pointer; text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6); }
.gal-heart.on { color: var(--gold); background: rgba(18, 17, 17, 0.78); }
.gal-heart:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.gal-heart[disabled] { cursor: default; opacity: 1; }
.gal-bigheart { font-size: 18px; min-width: 170px !important; }
.gal-bigheart.on { background: var(--gold); color: var(--on-gold); border-color: var(--gold); }
.gal-review:focus { outline: none; }

/* Heart top-right (clear of the corner "PROOF" mark); the Note flag moves to the top-left. */
.gal-tile .gal-noteflag { right: auto; left: 8px; }

/* ---------------------------------------------------------------- 4B */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
/* After checkout: being confirmed / didn't go through */
.gal-paynote { margin: 0; padding: 12px 16px; border-left: 3px solid var(--gold); background: var(--bg-alt); color: var(--text); line-height: 1.55; }
.gal-paynote.warn { border-left-color: #C0675A; }

/* "See the difference": as shot (left) and edited (right), drag to compare */
.gal-diffbox { border: 1px solid var(--line); padding: 12px 16px; }
.gal-diffbox summary { cursor: pointer; color: var(--gold); font-size: 17px; }
.gal-diffbox[open] summary { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 26px; color: var(--text); margin-bottom: 4px; }
.gal-diffbox p { margin: 6px 0 12px; color: var(--text-soft); line-height: 1.6; }
.gal-diff { position: relative; max-width: 760px; margin: 0 auto; overflow: hidden; background: var(--bg-alt); touch-action: pan-y; cursor: ew-resize; -webkit-user-select: none; user-select: none; }
.gal-diff img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; display: block; pointer-events: none; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.gal-diff-after { position: absolute; inset: 0; }
.gal-diff-handle { position: absolute; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: var(--gold); pointer-events: none; }
.gal-diff-handle span { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--gold); color: var(--on-gold); font-size: 15px; letter-spacing: 2px; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5); }
.gal-diff-tag { position: absolute; bottom: 10px; padding: 3px 9px; font-size: 13px; letter-spacing: 0.04em; background: rgba(18, 17, 17, 0.82); color: var(--text); border: 1px solid var(--line); pointer-events: none; }
.gal-diff-tag.left { left: 10px; } .gal-diff-tag.right { right: 10px; }
.gal-diff-range { position: absolute; width: 1px; height: 1px; opacity: 0; bottom: 0; left: 0; }
.gal-diff:focus-within { outline: 2px solid var(--gold); outline-offset: 2px; }
/* Several samples (2026-11-28): a carousel of the sliders. Swipe on the bar below the photo; arrows and dots too. */
.gal-car-viewport { overflow: hidden; transition: height 0.25s ease; }
.gal-car-track { display: flex; align-items: flex-start; transition: transform 0.35s ease; }
.gal-car-slide { flex: 0 0 100%; min-width: 0; }
.gal-car-nav { display: flex; align-items: center; justify-content: center; gap: 14px; padding: 12px 0 2px; touch-action: pan-y; -webkit-user-select: none; user-select: none; }
.gal-car-count { color: var(--text-soft); font-size: 14px; min-width: 52px; text-align: center; }
.gal-car-dots { display: flex; gap: 8px; }
.gal-car-dot { width: 10px; height: 10px; padding: 0; border-radius: 50%; border: 1px solid var(--gold); background: transparent; cursor: pointer; }
.gal-car-dot[aria-current="true"] { background: var(--gold); }
.gal-car-arrow { width: 44px; height: 44px; border: 1px solid var(--line); background: transparent; color: var(--gold); font-size: 24px; line-height: 1; cursor: pointer; }
.gal-car-arrow:hover { border-color: var(--gold); }
@media (prefers-reduced-motion: reduce) { .gal-car-track, .gal-car-viewport { transition: none; } }

/* Compare: choosing 2 to 4, then side by side */
.gal-comparechip { margin-left: auto; }
.gal-pickhint { margin: -6px 0 0; color: var(--gold); font-size: 15px; }
.gal-pickhint.error { color: #E0907F; }
.gal-tile.picking { border-color: var(--line); }
.gal-tile.picked { border-color: var(--gold); }
.gal-tile.picked img { opacity: 0.82; }
.gal-pickmark { position: absolute; right: 8px; top: 8px; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--gold); color: var(--on-gold); font-size: 22px; pointer-events: none; }
.gal-baractions { display: flex; gap: 10px; }
.gal-compare { grid-template-rows: auto 1fr; }
.gal-cmpgrid { display: grid; gap: 6px; padding: 0 6px 6px; min-height: 0; grid-template-columns: 1fr 1fr; grid-auto-rows: minmax(0, 1fr); }
.gal-cmpcell { position: relative; margin: 0; min-height: 0; display: flex; align-items: center; justify-content: center; background: #121111; overflow: hidden; }
.gal-cmpcell img { max-width: 100%; max-height: 100%; object-fit: contain; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; pointer-events: none; }
@media (max-width: 560px) and (orientation: portrait) {
  .gal-cmpgrid.n2 { grid-template-columns: 1fr; }
  .gal-baractions { width: 100%; } .gal-baractions .btn { flex: 1; }
}

/* Film */
.gal-film { border-top: 1px solid var(--line); padding-top: 18px; }
.gal-film h2 { margin: 0 0 6px; }
.gal-filmline { margin: 0 0 6px; color: var(--text); }
.gal-film .small { margin: 0; }

/* Send steps: Instax prints, delivery, order */
.gal-send { max-height: calc(100vh - 32px); overflow-y: auto; box-sizing: border-box; }
.gal-send .small { font-size: 14px; }
.gal-ixlist { list-style: none; margin: 0 0 12px; padding: 0; max-height: min(46vh, 420px); overflow-y: auto; border-top: 1px solid var(--line); }
.gal-ixlist li { display: flex; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.gal-ixlist li.on .gal-ixname { color: var(--gold); }
.gal-ixlist img { width: 52px; height: 52px; object-fit: cover; flex: none; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; pointer-events: none; }
.gal-ixname { flex: 1; color: var(--text); font-size: 15px; }
.gal-stepper { display: inline-flex; align-items: center; gap: 4px; }
.gal-stepper button { all: unset; cursor: pointer; width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--line); color: var(--text); font-size: 20px; }
.gal-stepper button:disabled { opacity: 0.35; cursor: default; }
.gal-stepper button:focus-visible { outline: 2px solid var(--gold); outline-offset: 1px; }
.gal-stepper .n { min-width: 28px; text-align: center; color: var(--text); }
.gal-ixline { color: var(--text) !important; }
.gal-ixnudge { color: var(--gold) !important; }
.gal-ixfree { color: var(--gold) !important; font-weight: 500; }
.gal-deliv { border: 0; padding: 0; margin: 0 0 12px; display: flex; flex-direction: column; gap: 10px; }
.gal-radio { align-items: flex-start; line-height: 1.5; }
.gal-radio input { margin-top: 3px; flex: none; }
.gal-order { width: 100%; border-collapse: collapse; margin: 0 0 12px; }
.gal-order td { padding: 8px 0; border-bottom: 1px solid var(--line); color: var(--text-soft); }
.gal-order td:last-child { text-align: right; color: var(--text); }
.gal-order tr.total td { color: var(--text); font-weight: 500; border-bottom: 0; padding-top: 12px; }
.gal-order tr.total td:last-child { color: var(--gold); }

/* Film on the booking card */
.p-film { flex-direction: column; align-items: stretch; }
.p-film .p-q-text { gap: 4px; }
.p-film-text { margin: 0; font-size: 15px; color: var(--text-soft); line-height: 1.55; }
.p-film-prices { margin: 0; color: var(--text); font-size: 15px; }
.p-film .p-actions { margin: 0; }
.p-film-small { margin: 0; font-size: 13px; color: var(--text-soft); line-height: 1.5; }
.p-film-paid .p-q-status { color: var(--gold); }

/* ---------------------------------------------------------------- dialogs on phones (Rohan, 2026-11-15)
   Every dialog fits the visible screen (dvh: the part not under Safari's address/tool bars), scrolls inside itself,
   and keeps its scrolling to itself; the page behind is held still by scroll-lock.js. The send steps keep their
   buttons pinned to the bottom of the box, clear of the browser bar. */
dialog {
  box-sizing: border-box;
  max-height: calc(100vh - 24px);
  max-height: calc(100dvh - 24px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}
.gal-send { max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)); padding-bottom: 0; }
.gal-send .p-actions { position: sticky; bottom: 0; z-index: 1; margin: 0 -24px; padding: 14px 24px calc(18px + env(safe-area-inset-bottom, 0px)); background: var(--bg-alt); border-top: 1px solid var(--line); }
.gal-send .p-actions .btn { flex: 1 1 auto; }
@media (max-width: 560px) {
  /* One scrolling box on phones (a list scrolling inside a scrolling box fights the finger on iPhones). */
  .gal-ixlist { max-height: none; overflow: visible; }
  .gal-dialog { padding: 20px 18px 0; width: calc(100vw - 24px); }
  .gal-send .p-actions { margin: 0 -18px; padding-left: 18px; padding-right: 18px; }
  .gal-dialog h2 { font-size: 26px; }
}
/* Full-screen views: buttons clear of the iPhone home bar and notch. */
.gal-review { height: 100vh; height: 100dvh; overscroll-behavior: contain; }
.gal-rtop { padding-top: calc(10px + env(safe-area-inset-top, 0px)); }
.gal-ractions { padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px)); }
.gal-cmpgrid { padding-bottom: calc(6px + env(safe-area-inset-bottom, 0px)); }
/* Send steps: ✕ in the top corner and a "Keep choosing" link (2026-11-15): close the whole flow in one tap. */
.gal-x { all: unset; position: absolute; top: 8px; right: 8px; width: 44px; height: 44px; display: grid; place-items: center; font-size: 20px; line-height: 1; color: var(--text-soft); cursor: pointer; border-radius: 50%; }
.gal-x:hover { color: var(--text); }
.gal-x:focus-visible { outline: 2px solid var(--gold); outline-offset: -2px; }
.gal-send h2 { padding-right: 40px; }
.gal-send .p-actions .gal-keep { flex: 1 0 100%; text-align: center; color: var(--gold); font-size: 15px; padding: 6px 0 0; min-height: 32px; }

/* ---------------------------------------------------------------- 4C: "Your photos" (delivered) */
.gal-dlbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.gal-dlstatus { margin: 0; color: var(--text-soft); font-size: 15px; }
.gal-dlstatus.error { color: #E0907F; }
.gal-iosnote { margin: 0; }
.gal-finals .gal-tile { border-color: transparent; }
/* Download menus (a small list that opens under, or above in full screen) */
.gal-dl { position: relative; display: inline-block; }
.gal-dl > summary { list-style: none; cursor: pointer; }
.gal-dl > summary::-webkit-details-marker { display: none; }
.gal-dl-menu { position: absolute; z-index: 20; left: 0; top: calc(100% + 6px); min-width: 250px; background: var(--bg-alt); border: 1px solid var(--gold-dim); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.55); display: flex; flex-direction: column; padding: 6px 0; }
.gal-dl.up .gal-dl-menu { top: auto; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%); }
.gal-dl-item { all: unset; cursor: pointer; display: block; padding: 12px 16px; color: var(--text); font-size: 15px; text-decoration: none; }
.gal-dl-item:hover, .gal-dl-item:focus-visible { background: rgba(207, 161, 83, 0.14); color: var(--gold); outline: none; }
.gal-dl-head { margin: 6px 16px 2px; padding-top: 8px; border-top: 1px solid var(--line); font-size: 13px; letter-spacing: 0.04em; color: var(--text-soft); }
.gal-review .gal-dl > summary, .gal-review .gal-dl-one { min-width: 200px; text-align: center; }
