/* customer pages: home, album, thanks */

.masthead { text-align: center; padding: 34px 0 26px; }
.masthead p { max-width: 560px; margin: 0 auto; }
.hero-mark { width: 74px; height: 74px; border-radius: 50%; margin: 0 auto 16px; display: block;
  box-shadow: 0 0 0 1px var(--accent-line), 0 0 60px rgba(203,162,90,.18); }
.masthead .meta { color: var(--muted); font-size: 14px; letter-spacing: .06em; margin-top: 8px; }

/* home: album cards */
.album-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.album-card { display: block; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden;
  background: rgba(255,255,255,.03); text-decoration: none; color: var(--ink);
  transition: border-color var(--t), transform var(--spring); }
.album-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.album-cover { aspect-ratio: 3/2; background: var(--bg-lift); }
.album-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.album-body { padding: 15px 16px 17px; }
.album-name { font-family: var(--display); font-size: 15px; letter-spacing: .12em;
  text-transform: uppercase; margin-bottom: 4px; }
.album-meta { font-size: 12.5px; color: var(--muted); }
.album-price { font-family: var(--display); font-size: 12.5px; letter-spacing: .06em;
  color: var(--accent); margin-top: 10px; }

/* album: whole-album offer */
.offer { display: flex; align-items: center; justify-content: space-between; gap: 16px;
  flex-wrap: wrap; border-color: var(--accent-line); background: var(--accent-tint);
  padding: 18px 20px; }
.offer .o-title { font-family: var(--display); font-size: 13px; letter-spacing: .2em;
  text-transform: uppercase; }
.offer .o-sub { font-size: 13px; color: var(--muted); margin-top: 3px; }
.offer .o-price { font-family: var(--display); font-size: 26px; letter-spacing: .04em; }
.offer .o-right { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.tools { display: flex; justify-content: space-between; align-items: center; gap: 12px;
  flex-wrap: wrap; margin: 26px 0 12px; }
.tools .hint { font-size: 13px; color: var(--muted); }
.linkish { background: none; border: none; color: var(--accent); cursor: pointer;
  font-family: var(--display); font-size: 11px; letter-spacing: .18em; text-transform: uppercase;
  padding: 6px 0; }
.linkish:hover { color: var(--ink); }

/* sticky checkout bar */
.bar-wrap {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  background: rgba(0,0,0,.94);
  backdrop-filter: blur(var(--blur)); -webkit-backdrop-filter: blur(var(--blur));
  border-top: 1px solid var(--line);
  padding: 12px 18px calc(12px + env(safe-area-inset-bottom));
  animation: rise .3s cubic-bezier(.33,1.3,.6,1);
}
@keyframes rise { from { transform: translateY(100%); } to { transform: none; } }
.bar-inner { max-width: 1180px; margin: 0 auto; display: flex;
  justify-content: space-between; align-items: center; gap: 14px; }
.bar-count { font-size: 13.5px; color: var(--muted); line-height: 1.3; min-width: 0; }
.bar-count .bar-total { display: block; font-family: var(--display); font-size: 21px;
  letter-spacing: .04em; color: var(--ink); }
.bar-count .tip { color: var(--green); font-size: 12.5px; }
.bar-inner .btn { flex-shrink: 0; }

/* thanks page */
.dl-row { display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.dl-row .dl-left { display: flex; align-items: center; gap: 12px; min-width: 0; }
.dl-row .dl-left img { width: 54px; height: 36px; object-fit: cover; border-radius: 2px;
  flex-shrink: 0; background: var(--bg-lift); }
.dl-row .dl-left span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dl-row a, .dl-row button { font-family: var(--display); font-size: 11px; letter-spacing: .16em;
  text-transform: uppercase; color: var(--accent); text-decoration: none; background: none;
  border: 1px solid var(--accent-line); padding: 8px 14px; cursor: pointer;
  transition: all var(--t); white-space: nowrap; }
.dl-row a:hover, .dl-row button:hover { background: var(--accent-tint); }

/* checkout hand-off: the quantity the buyer has to set on Stripe's page */
.qty-note { display: flex; gap: 14px; align-items: flex-start; margin: 18px 0 4px;
  padding: 14px 16px; border: 1px solid var(--accent-line); background: var(--accent-tint);
  border-radius: var(--r); }
.qty-badge { flex-shrink: 0; width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center; font-family: var(--display); font-size: 17px;
  color: var(--bg); background: var(--accent); font-weight: 500; }
.qty-note strong { font-family: var(--display); font-size: 14px; letter-spacing: .04em; }


/* ---- lightbox zoom ---- */
#lb-img {
  transform-origin: center center;
  will-change: transform;
  touch-action: none;              /* we handle pinch/pan ourselves */
  cursor: zoom-in;
}
.lb.zoomed #lb-img { cursor: grab; }
.lb.zoomed #lb-img:active { cursor: grabbing; }
/* arrows get in the way once you're inspecting detail */
.lb.zoomed .lb-nav { opacity: 0; pointer-events: none; }
.lb-hint {
  display: block;
  font-size: 12px;
  opacity: .62;
  margin-top: 2px;
}
.lb-meta { min-width: 0; flex: 1 1 auto; }
#lb-name { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---- give-away album: save is the whole point, so it reads as the action ---- */
.lb-save { flex: 0 0 auto; background: var(--accent); border-color: transparent; }
.lb-save:disabled { opacity: .55; }

/* Swiping between photos. The image rides the finger, then the next one is
   swapped in at rest - no crossfade to stutter on a mid-range phone. */
#lb-img.swiping { transition: none; }
#lb-img.settling { transition: transform .22s cubic-bezier(.22,.61,.36,1); }

/* A free album has no pricing to show, so the tile caption is just the name
   and the whole tile reads as tappable. */
.grid.free .shot .price { display: none; }
.grid.free .shot .zoom { display: none; }
.grid.free .shot { cursor: zoom-in; }

@media (max-width: 560px) {
  .lb-bar { gap: 10px; }
  .lb-save { padding: 12px 18px; }
  /* the hint eats the row on a narrow phone and the gesture is discoverable */
  .lb-hint { display: none; }
}
