/* Gift landing pages (owner 2026-10-24, SEO plan): /gifts/, /gifts/christmas-gifts-for-parents/, /gifts/gifts-for-lolo-and-lola/,
   /personalized-family-portrait/, /memorial-family-portrait/. Uses the site's tokens (--ink, --muted, --olive, --line, --paper, --serif, --sans). */
.gx { max-width: 1040px; margin: 0 auto; padding: 0 max(20px, 5vw) 72px; font-feature-settings: "lnum" 1; }
.gx-crumbs { padding: 20px 0 0; font-size: 13px; color: var(--muted); }
.gx-crumbs a { color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }
.gx-hero { padding: clamp(32px, 6vw, 72px) 0 clamp(28px, 5vw, 48px); text-align: center; display: flex; flex-direction: column; align-items: center; }
.gx-kicker { margin: 0 0 14px; font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.gx-hero h1 { max-width: 18ch; margin: 0; font-family: var(--serif); font-weight: 500; font-size: clamp(38px, 5.4vw, 68px); line-height: 1.04; text-wrap: balance; }
.gx-lead { max-width: 52ch; margin: 18px auto 28px; font-size: 16px; line-height: 1.6; color: var(--muted); }
.gx-price { margin: 14px 0 0; font-size: 14px; color: var(--muted); font-variant-numeric: lining-nums; }
.gx-price b { color: var(--ink); }
.gx-sec { padding: clamp(28px, 5vw, 48px) 0; border-top: 1px solid var(--line); }
.gx-sec h2, .gx-cta h2, .gx-rel h2 { margin: 0 0 22px; font-family: var(--serif); font-weight: 500; font-size: clamp(28px, 3.4vw, 40px); line-height: 1.1; text-wrap: balance; }
.gx-ex { margin: 0 0 clamp(28px, 5vw, 44px); }
.gx-ex-row { display: flex; align-items: center; justify-content: center; gap: clamp(8px, 2vw, 18px); flex-wrap: wrap; }
.gx-ex-item { margin: 0; flex: 0 1 auto; }
.gx-ex-item img { display: block; max-width: 100%; height: auto; border-radius: 6px; box-shadow: 0 8px 22px rgba(48, 38, 24, .14); }
.gx-ex-item:first-child img { width: min(340px, 80vw); }
.gx-ex-item:nth-child(3):not(:last-child) img { width: 120px; }
.gx-ex-item:last-child img { width: min(260px, 64vw); }
.gx-ex-op { font-family: var(--serif); font-size: 40px; color: var(--olive); }
.gx-ex-cap { margin: 14px auto 0; max-width: 52ch; text-align: center; font-size: 14px; color: var(--muted); }
.gx-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; }
.gx-card { display: flex; flex-direction: column; gap: 6px; padding: 20px; border-radius: 12px; background: var(--paper); border: 1px solid var(--line); }
.gx-card b { font-size: 16px; }
.gx-card span { font-size: 14px; line-height: 1.55; color: var(--muted); }
.gx-ic { width: 26px; height: 26px; color: var(--olive); flex: none; }
.gx-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; counter-reset: s; }
.gx-steps li { display: flex; flex-direction: column; gap: 6px; padding: 20px; border-radius: 12px; background: var(--paper); border: 1px solid var(--line); }
.gx-steps b { font-size: 16px; }
.gx-steps span { font-size: 14px; line-height: 1.55; color: var(--muted); }
.gx-sizes { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-bottom: 20px; }
.gx-size { display: flex; flex-direction: column; gap: 4px; padding: 20px; border-radius: 12px; background: var(--paper); border: 1px solid var(--line); }
.gx-size-name { font-size: 14px; font-weight: 600; color: var(--muted); }
.gx-size-price { font-family: var(--serif); font-size: 40px; font-weight: 600; line-height: 1; font-variant-numeric: lining-nums; font-feature-settings: "lnum" 1; }
.gx-size-note { font-size: 14px; color: var(--muted); }
.gx-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px 20px; }
.gx-list li { display: flex; align-items: center; gap: 10px; font-size: 15px; }
.gx-dates { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; }
.gx-dates li { display: flex; flex-direction: column; gap: 4px; padding: 18px 20px; border-radius: 12px; background: var(--sage); }
.gx-dates b { font-family: var(--serif); font-size: 32px; font-weight: 600; line-height: 1; font-variant-numeric: lining-nums; font-feature-settings: "lnum" 1; }
.gx-dates span { font-size: 14px; color: var(--muted); }
.gx-note { margin: 16px 0 0; max-width: 62ch; font-size: 14px; line-height: 1.6; color: var(--muted); }
.gx .faq-list summary, .gx .faq-list details p { font-size: 15px; }
.gx-cta { padding: clamp(36px, 6vw, 64px) 0; border-top: 1px solid var(--line); text-align: center; display: flex; flex-direction: column; align-items: center; }
.gx-rel { padding: 28px 0 0; border-top: 1px solid var(--line); }
.gx-rel h2 { font-size: 24px; margin-bottom: 14px; }
.gx-rel ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.gx-rel a { display: inline-flex; align-items: center; gap: 6px; padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); text-decoration: none; font-size: 14px; white-space: nowrap; }
.gx-rel a svg { width: 14px; height: 14px; }
.gx-hub { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.gx-hub-card { display: flex; flex-direction: column; gap: 6px; padding: 14px; border-radius: 14px; background: var(--paper); border: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.gx-hub-card img { width: 100%; height: auto; border-radius: 8px; margin-bottom: 6px; }
.gx-hub-card b { font-size: 16px; }
.gx-hub-card span { font-size: 14px; color: var(--muted); }
@media (max-width: 560px) {
  .gx-hub { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .gx-hub-card { padding: 10px; }
  .gx-hub-card b { font-size: 14px; }
  .gx-hub-card span { font-size: 13px; }
  .gx-ex-item:first-child img { width: 100%; }
  .gx-ex-op { font-size: 30px; }
}
/* /gifts/ hub slideshow (owner 2026-10-24): one big frame cycling through the gift ideas. Each slide first shows the separate
   photos around the frame, then they fly into the middle and become the one framed portrait (gifts.js adds .is-on, then .is-merge). */
.gx-show { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 64px); align-items: center; }
.gx-show > * { min-width: 0; }
.gx-show-stage { position: relative; display: grid; aspect-ratio: 1 / 1.05; width: 100%; max-width: 560px; margin: 0 auto; }
.gx-slide { grid-area: 1 / 1; position: relative; opacity: 0; visibility: hidden; transition: opacity .5s ease, visibility 0s linear .5s; }
.gx-slide.is-on { opacity: 1; visibility: visible; transition: opacity .5s ease; }
.gx-por { position: absolute; left: 50%; top: 50%; width: min(400px, 74%); transform: translate(-50%, -50%) scale(.82); opacity: 0; transition: opacity .8s ease .25s, transform 1s cubic-bezier(.2, .8, .2, 1) .2s; }
.gx-por img { display: block; width: 100%; height: auto; filter: drop-shadow(0 18px 30px rgba(48, 38, 24, .22)); }
.gx-slide.is-merge .gx-por { opacity: 1; transform: translate(-50%, -50%); }
.gx-solos { position: absolute; inset: 0; pointer-events: none; }
.gx-solo { position: absolute; left: calc(50% + var(--x)); top: calc(50% + var(--y)); width: clamp(64px, 17%, 104px); height: auto; padding: 5px 5px 14px; background: #fffdf9; border-radius: 4px; box-shadow: 0 8px 18px rgba(48, 38, 24, .2);
  transform: translate(-50%, -50%) rotate(var(--r)) scale(.6); opacity: 0; transition: left .75s cubic-bezier(.6, 0, .3, 1), top .75s cubic-bezier(.6, 0, .3, 1), transform .75s ease, opacity .5s ease; }
.gx-slide.is-on .gx-solo { animation: gxSoloIn .55s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--j) * 110ms); }
.gx-slide.is-merge .gx-solo { animation: none; left: 50%; top: 50%; opacity: 0; transform: translate(-50%, -50%) rotate(0deg) scale(.35); transition-delay: calc(var(--j) * 40ms); }
@keyframes gxSoloIn { from { opacity: 0; transform: translate(-50%, -50%) rotate(var(--r)) scale(.6); } to { opacity: 1; transform: translate(-50%, -50%) rotate(var(--r)) scale(1); } }
.gx-count { position: absolute; left: 50%; bottom: 2%; transform: translateX(-50%); padding: 6px 14px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); font-size: 13px; font-weight: 600; color: var(--muted); white-space: nowrap; opacity: 1; transition: opacity .4s ease; font-variant-numeric: lining-nums; }
.gx-slide.is-merge .gx-count { opacity: 0; }
.gx-show-k { margin: 0 0 8px; font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-variant-numeric: lining-nums; }
.gx-show-t { margin: 0 0 10px; font-family: var(--serif); font-weight: 500; font-size: clamp(30px, 3.6vw, 44px); line-height: 1.08; }
.gx-show-d { margin: 0 0 22px; font-size: 16px; color: var(--muted); }
.gx-tabs { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 10px; }
.gx-tab { position: relative; overflow: hidden; display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); text-decoration: none; transition: border-color .2s, background .2s; }
.gx-tab img { width: 44px; height: 54px; object-fit: cover; border-radius: 4px; flex: none; }
.gx-tab span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.gx-tab b { font-size: 15px; }
.gx-tab small { font-size: 13px; color: var(--muted); }
.gx-tab.is-on { border-color: var(--olive); background: #fff; }
.gx-tab:hover { border-color: var(--olive); }
.gx-bar { position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: var(--olive); transform: scaleX(0); transform-origin: left; }
.gx-js .gx-tab.is-on .gx-bar { animation: gxFill var(--gx-ms, 6500ms) linear forwards; }
.gx-show.is-paused .gx-tab.is-on .gx-bar { animation-play-state: paused; }
@keyframes gxFill { to { transform: scaleX(1); } }
@media (max-width: 760px) {
  .gx-show { grid-template-columns: minmax(0, 1fr); gap: 20px; text-align: center; }
  .gx-show-stage { max-width: 420px; }
  /* phones: the title is shown above, so the tabs are a row of 4 thumbnails */
  .gx-tabs { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 22px; }
  .gx-tab { justify-content: center; padding: 6px; }
  .gx-tab span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .gx-tab img { width: 100%; height: auto; aspect-ratio: 4 / 5; }
}
/* no JavaScript or reduced motion: just the portraits */
.gx-show:not(.gx-js) .gx-slide.is-on .gx-por { opacity: 1; transform: translate(-50%, -50%); }
@media (prefers-reduced-motion: reduce) {
  .gx-slide, .gx-por, .gx-solo { transition: none !important; animation: none !important; }
  .gx-solos, .gx-count { display: none; }
  .gx-slide.is-on .gx-por { opacity: 1; transform: translate(-50%, -50%); }
  .gx-js .gx-tab.is-on .gx-bar { animation: none; transform: scaleX(1); }
}
