/* ==========================================================================
   zSHOOTS — groups, albums, justified photo grid and a full-screen viewer
   ========================================================================== */

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  font-family: var(--font-ui, 'Geist', 'Inter', sans-serif);
  color: var(--text);
}

.hidden {
  display: none !important;
}

body.zs-locked {
  overflow: hidden;
}

.zs-shell {
  max-width: 1280px;
  margin: 0 auto;
  padding: 18px 20px 96px;
  box-sizing: border-box;
  timeline-scope: --zui-hero;
}

.zs-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 26px;
}

.zs-nav .nav-back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  font-size: 13px;
}

.zs-nav .nav-back-link svg {
  width: 15px;
  height: 15px;
}

.zs-nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.zs-admin-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  background: var(--positive-bg);
  color: var(--positive);
  font-size: 12px;
  font-weight: 600;
}

.zs-admin-pill svg {
  width: 13px;
  height: 13px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 36px;
  padding: 0 14px;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
}

.btn svg {
  width: 15px;
  height: 15px;
}

.btn-sm {
  height: 32px;
  padding: 0 11px;
}

.btn.btn-danger {
  background: var(--negative) !important;
  border-color: transparent !important;
  color: #fff !important;
}

.zs-icon-btn {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--fill);
  color: var(--text-2);
  cursor: pointer;
  transition: background var(--t-fast), color var(--t-fast);
}

.zs-icon-btn:hover {
  background: var(--fill-2);
  color: var(--text);
}

.zs-icon-btn svg {
  width: 16px;
  height: 16px;
}

/* ---------- Banners, stats ---------- */
.zs-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  margin-bottom: 14px;
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  background: var(--glass);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
  box-shadow: var(--glass-hi), var(--shadow-1);
}

.zs-banner > svg {
  flex: none;
  width: 22px;
  height: 22px;
  color: var(--accent);
}

.zs-banner-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 13px;
  color: var(--text-3);
}

.zs-banner-text strong {
  color: var(--text);
  font-weight: 600;
}

.zs-stats {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.zs-stat {
  padding: 12px 14px;
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  background: var(--fill);
}

.zs-stat b {
  display: block;
  font-family: var(--font-num);
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
}

.zs-stat span {
  font-size: 12px;
  color: var(--text-3);
}

.zs-meter {
  height: 4px;
  margin-top: 8px;
  border-radius: 99px;
  background: var(--fill-2);
  overflow: hidden;
}

.zs-meter i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--accent-grad);
}

/* ---------- Section heads ---------- */
.zs-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.zs-head-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.zs-link-form {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 10px;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  background: var(--fill);
  color: var(--text-3);
}

.zs-link-form svg {
  width: 14px;
  height: 14px;
  flex: none;
}

.zs-link-form input {
  width: 210px;
  height: 100%;
  padding: 0;
  font-size: 13px;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  outline: none;
}

/* ---------- Group tiles ---------- */
.zs-group-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
}

.zs-group-card,
.zs-album-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
  text-align: left;
  color: inherit;
  text-decoration: none;
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  background: var(--fill);
  box-shadow: var(--glass-hi);
  cursor: pointer;
  animation: zuiRise .5s var(--ease-out) calc(.06s + var(--i, 0) * .03s) both;
  transition: transform var(--t-slow) var(--ease-spring), box-shadow var(--t-med), border-color var(--t-med);
}

.zs-group-card:hover,
.zs-album-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
  box-shadow: var(--glass-hi), var(--shadow-2);
}

.zs-cover {
  position: relative;
  aspect-ratio: 4 / 3;
  background:
    radial-gradient(120% 90% at 20% 10%, hsl(var(--hue, 12) 80% 62% / .45), transparent 60%),
    radial-gradient(120% 90% at 90% 90%, hsl(calc(var(--hue, 12) + 40) 80% 60% / .35), transparent 60%),
    var(--surface-3);
  overflow: hidden;
}

.zs-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .8s var(--ease-out);
}

.zs-group-card:hover .zs-cover img,
.zs-album-card:hover .zs-cover img {
  transform: scale(1.04);
}

.zs-cover-icon {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, .85);
}

.zs-cover-icon svg {
  width: 30px;
  height: 30px;
  stroke-width: 1.6px;
}

.zs-card-body {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 12px 14px 14px;
}

.zs-card-title {
  font-size: 15px;
  font-weight: 640;
  letter-spacing: -0.015em;
  color: var(--text);
}

.zs-card-sub {
  font-size: 12.5px;
  color: var(--text-3);
}

.zs-chip {
  position: absolute;
  top: 10px;
  right: 10px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px;
  border-radius: var(--r-pill);
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  background: rgba(10, 12, 18, .55);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.zs-chip svg {
  width: 12px;
  height: 12px;
}

.zs-chip.is-left {
  right: auto;
  left: 10px;
}

/* ---------- Lock screen ---------- */
.zs-lock {
  max-width: 380px;
  margin: 8vh auto 0;
  padding: 28px 24px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 10px;
  animation: zuiPop var(--t-slow) var(--ease-spring) both;
}

.zs-lock-hero {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin: 0 auto 4px;
  border-radius: 16px;
  color: hsl(12 85% 60%);
  background: hsl(12 85% 60% / .14);
}

.zs-lock-hero svg {
  width: 26px;
  height: 26px;
}

.zs-lock-title {
  margin: 0;
}

.zs-lock .subtitle {
  margin: 0 0 6px;
}

.zs-lock-submit {
  height: 40px;
  margin-top: 6px;
}

/* ---------- Titles ---------- */
.zs-title-block {
  margin: 0 0 18px;
  animation: zuiRise .5s var(--ease-out) both;
}

.zs-title-block h1 {
  margin: 0;
  font-size: clamp(24px, 4.5vw, 34px);
  letter-spacing: -0.035em;
}

.zs-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.zs-title-row .tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.zs-title-row .tag svg {
  width: 12px;
  height: 12px;
}

.zs-eyebrow-line {
  margin-bottom: 6px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-3);
}

.zs-eyebrow-line a {
  color: inherit;
}

.zs-desc {
  max-width: 720px;
  margin: 6px 0 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-2);
  white-space: pre-line;
}

.zs-desc:empty {
  display: none;
}

.zs-title-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.zs-title-actions .zs-admin-only {
  display: contents;
}

.zs-title-actions .zs-admin-only.hidden {
  display: none !important;
}

/* ---------- Albums ---------- */
.zs-album-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 14px;
}

.zs-empty,
.zs-message {
  grid-column: 1 / -1;
  padding: 40px 16px;
  text-align: center;
  font-size: 14px;
  color: var(--text-3);
}

.zs-message strong {
  display: block;
  margin-bottom: 4px;
  color: var(--text);
}

/* ---------- Justified grid ---------- */
.zs-grid {
  --gap: 4px;
  display: flex;
  flex-direction: column;
  gap: var(--gap);
  user-select: none;
  -webkit-user-select: none;
}

.zs-row {
  display: flex;
  gap: var(--gap);
}

.zs-tile {
  position: relative;
  flex: none;
  overflow: hidden;
  border-radius: 6px;
  cursor: zoom-in;
  background: var(--surface-3);
  animation: zsFade .5s var(--ease-out) both;
}

.zs-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0;
  transition: opacity .35s ease, transform .6s var(--ease-out);
}

.zs-tile img.is-loaded {
  opacity: 1;
}

.zs-tile:hover img {
  transform: scale(1.03);
}

.zs-tile-badges {
  position: absolute;
  left: 6px;
  bottom: 6px;
  display: flex;
  gap: 4px;
  pointer-events: none;
}

.zs-tile-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 7px;
  border-radius: var(--r-pill);
  font-size: 11px;
  font-weight: 600;
  font-family: var(--font-num);
  color: #fff;
  background: rgba(10, 12, 18, .55);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.zs-tile-badge svg {
  width: 11px;
  height: 11px;
}

.zs-tile-badge.is-warn {
  background: rgba(194, 124, 14, .85);
}

.zs-tile-check {
  position: absolute;
  top: 7px;
  left: 7px;
  display: none;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .9);
  background: rgba(0, 0, 0, .25);
  color: #fff;
}

.zs-tile-check svg {
  width: 13px;
  height: 13px;
  opacity: 0;
}

.is-selecting .zs-tile {
  cursor: pointer;
}

.is-selecting .zs-tile-check {
  display: grid;
}

.zs-tile.is-selected img {
  transform: scale(.9);
  border-radius: 6px;
}

.zs-tile.is-selected .zs-tile-check {
  background: var(--accent);
  border-color: var(--accent);
}

.zs-tile.is-selected .zs-tile-check svg {
  opacity: 1;
}

.zs-tile.is-drop-target {
  outline: 3px solid var(--accent);
  outline-offset: -3px;
}

.zs-tile.is-dragging {
  opacity: .4;
}

@keyframes zsFade {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ---------- Selection bar ---------- */
.zs-selbar {
  position: fixed;
  left: 50%;
  bottom: max(16px, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  z-index: 1500;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 8px 8px 16px;
  border-radius: var(--r-pill);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  animation: zuiRise .35s var(--ease-out) both;
}

.zs-selbar .btn {
  border-radius: var(--r-pill);
}

.zs-selbar .zs-icon-btn {
  border-radius: 50%;
}

/* ---------- Uploader ---------- */
.zs-uploader {
  margin-bottom: 18px;
  padding: 14px;
}

.zs-drop {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 26px 16px;
  text-align: center;
  border-radius: var(--r-lg);
  border: 1.5px dashed var(--border-strong);
  background: var(--fill);
  color: var(--text-3);
  font-size: 12.5px;
  cursor: pointer;
  transition: background var(--t-fast), border-color var(--t-fast);
}

.zs-drop input {
  display: none;
}

.zs-drop svg {
  width: 26px;
  height: 26px;
  margin-bottom: 4px;
  color: var(--accent);
}

.zs-drop strong {
  font-size: 14px;
  color: var(--text);
}

.zs-drop.is-over {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.zs-upload-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 10px;
  width: 100%;
  margin-top: 12px;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--fill);
  font: inherit;
  font-size: 13px;
  text-align: left;
  color: var(--text-2);
  cursor: pointer;
  transition: background var(--t-fast), border-color var(--t-fast);
}

.zs-upload-summary:hover {
  background: var(--fill-2);
  border-color: var(--border-strong);
}

.zs-upload-summary.has-errors #upload-summary-text {
  color: var(--negative);
}

.zs-upload-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-3);
}

.zs-upload-toggle svg {
  width: 15px;
  height: 15px;
  transition: transform var(--t-med) var(--ease-out);
}

.zs-upload-summary.is-open .zs-upload-toggle svg {
  transform: rotate(180deg);
}

.zs-upload-total {
  flex: 0 0 100%;
  height: 3px;
  border-radius: 99px;
  background: var(--fill-2);
  overflow: hidden;
}

.zs-upload-total i {
  display: block;
  height: 100%;
  width: 0;
  background: var(--accent-grad);
  transition: width .25s ease;
}

.zs-upload-list {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  max-height: 280px;
  overflow-y: auto;
}

.zs-upload-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2px 10px;
  padding: 7px 2px;
  border-bottom: 1px solid var(--border);
  font-size: 12.5px;
}

.zs-upload-item:last-child {
  border-bottom: none;
}

.zs-upload-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text);
}

.zs-upload-state {
  font-family: var(--font-num);
  font-size: 11.5px;
  color: var(--text-3);
}

.zs-upload-item.is-done .zs-upload-state { color: var(--positive); }
.zs-upload-item.is-error .zs-upload-state { color: var(--negative); }
.zs-upload-item.is-skip .zs-upload-state { color: var(--warning); }

.zs-upload-bar {
  grid-column: 1 / -1;
  height: 3px;
  border-radius: 99px;
  background: var(--fill-2);
  overflow: hidden;
}

.zs-upload-bar i {
  display: block;
  height: 100%;
  width: 0;
  background: var(--accent-grad);
  transition: width .25s ease;
}

/* ---------- Forms ---------- */
.zs-input {
  width: 100%;
  height: 40px;
  padding: 0 12px;
  font-size: 14px;
  box-sizing: border-box;
}

.zs-textarea {
  height: auto;
  padding: 10px 12px;
  resize: vertical;
  font: inherit;
  font-size: 14px;
}

.zs-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 14px;
}

.zs-field label {
  font-size: 12.5px;
  font-weight: 560;
  color: var(--text-2);
}

.zs-optional {
  font-weight: 400;
  color: var(--text-4);
}

.zs-check {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  font-size: 13px;
  color: var(--text-2);
  cursor: pointer;
  text-align: left;
}

.zs-check input {
  margin: 0;
}

.zs-form-error {
  margin: 10px 0 0;
  padding: 8px 10px;
  border-radius: var(--r-sm);
  background: var(--negative-bg);
  color: var(--negative);
  font-size: 12.5px;
  font-weight: 560;
  text-align: left;
}

/* ---------- Modals ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.zs-modal-card {
  width: 100%;
  max-width: 480px;
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  padding: 24px;
  box-sizing: border-box;
}

/* zui dresses `.modal-overlay > div`; most zShoots dialogs are forms, so give them the same card */
.modal-overlay > form.zs-modal-card {
  border-radius: var(--r-xl);
  border: 1px solid var(--glass-border);
  background: var(--glass-strong);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
  box-shadow: var(--glass-hi), var(--shadow-3);
  animation: zuiPop var(--t-slow) var(--ease-spring) both;
}

@media (max-width: 760px) {
  .modal-overlay > form.zs-modal-card {
    animation-name: zuiSheet;
  }
}

.zs-narrow {
  max-width: 400px;
}

.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.modal-title {
  margin: 0 0 4px;
  font-size: 18px;
}

.modal-subtitle {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--text-3);
}

.modal-close-btn {
  display: grid;
  place-items: center;
  padding: 4px;
  border: none;
  border-radius: var(--r-xs);
  background: transparent;
  color: var(--text-3);
  cursor: pointer;
}

.modal-close-btn svg {
  width: 18px;
  height: 18px;
}

.modal-close-btn:hover {
  background: var(--fill);
  color: var(--text);
}

.zs-modal-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
}

.zs-modal-actions .btn:not(.btn-sm) {
  min-width: 92px;
}

.zs-push-left {
  margin-right: auto;
}

.zs-shake {
  animation: zuiShake 0.4s var(--ease-out);
}

/* ---------- Loading ---------- */
.zs-loading {
  display: grid;
  place-items: center;
  padding: 80px 0;
}

.zs-spinner {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 3px solid var(--fill-2);
  border-top-color: var(--accent);
  animation: zsSpin .8s linear infinite;
}

@keyframes zsSpin {
  to { transform: rotate(360deg); }
}

/* ---------- Toast ---------- */
.toast-banner {
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4000;
  max-width: calc(100vw - 32px);
  padding: 9px 18px;
  font-size: 13px;
  text-align: center;
  pointer-events: none;
}

/* ==========================================================================
   Lightbox
   ========================================================================== */
.zs-lb {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  grid-template-rows: auto 1fr auto;
  grid-template-columns: 1fr auto;
  background: #050608;
  color: #f2f3f7;
  animation: zsFade .2s ease both;
  touch-action: none;
}

.zs-lb-top {
  grid-column: 1 / 2;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: max(10px, env(safe-area-inset-top)) 12px 10px;
  z-index: 3;
}

.zs-lb-count {
  flex: 1;
  font-family: var(--font-num);
  font-size: 12.5px;
  color: rgba(255, 255, 255, .6);
}

.zs-lb-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}

.zs-lb-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 38px;
  min-width: 38px;
  padding: 0 10px;
  justify-content: center;
  border: none;
  border-radius: var(--r-pill);
  background: transparent;
  color: rgba(255, 255, 255, .88);
  font: 600 12.5px var(--font-num);
  cursor: pointer;
  transition: background var(--t-fast), color var(--t-fast), transform var(--t-slow) var(--ease-spring);
}

.zs-lb-btn:hover {
  background: rgba(255, 255, 255, .1);
  color: #fff;
}

.zs-lb-btn svg {
  width: 19px;
  height: 19px;
}

.zs-lb-btn span:empty {
  display: none;
}

#lb-heart.is-on {
  color: #ff5a7a;
}

#lb-heart.is-on svg {
  fill: currentColor;
}

#lb-heart.zs-pop {
  animation: zsHeartPop .45s var(--ease-spring);
}

@keyframes zsHeartPop {
  0% { transform: scale(1); }
  40% { transform: scale(1.3); }
  100% { transform: scale(1); }
}

.zs-lb-menu-wrap {
  position: relative;
}

.zs-lb-menu {
  position: absolute;
  top: 44px;
  right: 0;
  z-index: 5;
  min-width: 210px;
  padding: 6px;
  border-radius: var(--r-lg);
  background: rgba(24, 26, 34, .96);
  border: 1px solid rgba(255, 255, 255, .1);
  box-shadow: 0 20px 50px -10px rgba(0, 0, 0, .6);
}

.zs-lb-menu button {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 9px 10px;
  border: none;
  border-radius: var(--r-sm);
  background: transparent;
  color: #e9ebf2;
  font: 500 13px var(--font-ui);
  text-align: left;
  cursor: pointer;
}

.zs-lb-menu button:hover {
  background: rgba(255, 255, 255, .08);
}

.zs-lb-menu button svg {
  width: 15px;
  height: 15px;
}

.zs-lb-menu .is-danger {
  color: #ff7b7b;
}

.zs-lb-stage {
  grid-column: 1 / 2;
  position: relative;
  overflow: hidden;
  min-height: 0;
}

.zs-lb-track {
  position: absolute;
  inset: 0;
  display: flex;
  will-change: transform;
}

.zs-lb-track.is-animating {
  transition: transform .32s var(--ease-out);
}

.zs-lb-slide {
  position: relative;
  flex: none;
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.zs-lb-zoom {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  transform-origin: 0 0;
  will-change: transform;
}

.zs-lb-zoom.is-animating {
  transition: transform .25s var(--ease-out);
}

.zs-lb-slide img,
.zs-lb-slide video {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  -webkit-user-drag: none;
  user-select: none;
}

.zs-lb-slide img.zs-lb-low {
  position: absolute;
  inset: 0;
  margin: auto;
  filter: blur(6px);
  transform: scale(1.01);
}

.zs-lb-slide img.zs-lb-full {
  position: relative;
  opacity: 0;
  transition: opacity .3s ease;
}

.zs-lb-slide img.zs-lb-full.is-loaded {
  opacity: 1;
}

.zs-lb-slide video {
  width: 100%;
  height: 100%;
  background: #000;
}

.zs-lb-processing {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  padding: 8px 14px;
  border-radius: var(--r-pill);
  background: rgba(0, 0, 0, .65);
  font-size: 12.5px;
  white-space: nowrap;
}

.zs-lb-processing button {
  margin-left: 8px;
  padding: 0;
  border: none;
  background: none;
  color: #9ec5ff;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.zs-lb-nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-top: -23px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
  color: #fff;
  cursor: pointer;
  opacity: 0;
  transition: opacity var(--t-med), background var(--t-fast);
}

.zs-lb-stage:hover .zs-lb-nav {
  opacity: 1;
}

.zs-lb-nav:hover {
  background: rgba(255, 255, 255, .18);
}

.zs-lb-nav:disabled {
  visibility: hidden;
}

.zs-lb-nav.is-prev { left: 14px; }
.zs-lb-nav.is-next { right: 14px; }

.zs-lb-nav svg {
  width: 24px;
  height: 24px;
}

.zs-lb-caption {
  grid-column: 1 / 2;
  max-height: 22vh;
  overflow-y: auto;
  padding: 10px 18px max(14px, env(safe-area-inset-bottom));
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
  white-space: pre-line;
  color: rgba(255, 255, 255, .86);
}

.zs-lb-caption:empty {
  padding: 0 0 max(8px, env(safe-area-inset-bottom));
}

.zs-lb.is-chrome-hidden .zs-lb-top,
.zs-lb.is-chrome-hidden .zs-lb-caption,
.zs-lb.is-chrome-hidden .zs-lb-nav {
  opacity: 0;
  pointer-events: none;
}

.zs-lb-top,
.zs-lb-caption {
  transition: opacity var(--t-med);
}

/* Side panel: details + comments */
.zs-lb-panel {
  grid-column: 2;
  grid-row: 1 / 4;
  display: flex;
  flex-direction: column;
  width: 340px;
  min-height: 0;
  background: #101218;
  border-left: 1px solid rgba(255, 255, 255, .08);
  touch-action: auto;
}

.zs-lb-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: max(10px, env(safe-area-inset-top)) 12px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.zs-lb-panel .zs-icon-btn {
  border-color: transparent;
  background: transparent;
  color: rgba(255, 255, 255, .7);
}

.zs-lb-tabs {
  display: flex;
  gap: 4px;
}

.zs-lb-tabs button {
  padding: 7px 12px;
  border: none;
  border-radius: var(--r-pill);
  background: transparent;
  color: rgba(255, 255, 255, .6);
  font: 600 13px var(--font-ui);
  cursor: pointer;
}

.zs-lb-tabs button.is-active {
  background: rgba(255, 255, 255, .1);
  color: #fff;
}

.zs-lb-panel-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 14px 16px;
  font-size: 13px;
}

#lb-panel-comments {
  display: flex;
  flex-direction: column;
}

#lb-panel-comments.hidden {
  display: none !important;
}

.zs-info-list {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px 14px;
  margin: 0;
}

.zs-info-list dt {
  color: rgba(255, 255, 255, .5);
}

.zs-info-list dd {
  margin: 0;
  color: #f2f3f7;
  word-break: break-word;
}

.zs-info-caption {
  margin: 0 0 16px;
  line-height: 1.5;
  white-space: pre-line;
}

.zs-hearted {
  margin: 0 0 12px;
  color: rgba(255, 255, 255, .6);
}

.zs-hearted svg {
  width: 13px;
  height: 13px;
  vertical-align: -2px;
  color: #ff5a7a;
  fill: currentColor;
}

.zs-comments {
  flex: 1;
  list-style: none;
  margin: 0;
  padding: 0;
}

.zs-comments li {
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}

.zs-comment-head {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 3px;
}

.zs-comment-head b {
  color: #fff;
  font-weight: 600;
}

.zs-comment-head time {
  flex: 1;
  font-size: 11.5px;
  color: rgba(255, 255, 255, .45);
}

.zs-comment-head button {
  padding: 0;
  border: none;
  background: none;
  color: rgba(255, 255, 255, .4);
  font: inherit;
  font-size: 11.5px;
  cursor: pointer;
}

.zs-comment-head button:hover {
  color: #ff7b7b;
}

.zs-comments p {
  margin: 0;
  line-height: 1.45;
  white-space: pre-line;
  color: rgba(255, 255, 255, .86);
}

.zs-comment-form {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  padding-top: 12px;
}

.zs-comment-form textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  font: inherit;
  font-size: 13.5px;
  resize: none;
  color: #fff !important;
  background: rgba(255, 255, 255, .06) !important;
  border: 1px solid rgba(255, 255, 255, .1) !important;
}

/* ==========================================================================
   Tools
   ========================================================================== */
.zs-tools {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 14px;
}

.zs-tool {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 18px;
}

.zs-tool h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 16px;
}

.zs-tool h2 svg {
  width: 18px;
  height: 18px;
  color: hsl(12 85% 60%);
}

.zs-tool-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
  width: 100%;
}

form.zs-tool-row {
  grid-template-columns: 1fr auto;
}

.zs-tool-row label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 12px;
}

.zs-tool-row .zs-input {
  height: 36px;
}

.zs-tool-out {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 8px;
}

.zs-tool-out .zs-stat b {
  font-size: 16px;
}

.zs-shots {
  width: 100%;
  list-style: none;
  margin: 0;
  padding: 0;
}

.zs-shots li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 2px;
  border-bottom: 1px solid var(--border);
  font-size: 13.5px;
}

.zs-shots li.is-done span {
  color: var(--text-4);
  text-decoration: line-through;
}

.zs-shots li span {
  flex: 1;
}

.zs-shots li button {
  padding: 2px;
  border: none;
  background: none;
  color: var(--text-4);
  cursor: pointer;
}

.zs-shots li button svg {
  width: 14px;
  height: 14px;
}

/* ==========================================================================
   Small screens
   ========================================================================== */
@media (max-width: 760px) {
  .zs-shell {
    padding: 14px 12px 96px;
  }

  .zs-grid {
    --gap: 3px;
  }

  .zs-tile {
    border-radius: 3px;
  }

  .zs-group-grid,
  .zs-album-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .zs-link-form input {
    width: 150px;
  }

  .zs-lb {
    grid-template-columns: 1fr;
  }

  .zs-lb-nav {
    display: none;
  }

  .zs-lb-btn {
    padding: 0 8px;
    min-width: 34px;
  }

  /* Details and comments become a bottom sheet over the photo */
  .zs-lb-panel {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 6;
    width: auto;
    max-height: 70vh;
    border-left: none;
    border-radius: 18px 18px 0 0;
    box-shadow: 0 -20px 60px rgba(0, 0, 0, .6);
    animation: zuiSheet var(--t-slow) var(--ease-out) both;
  }

  .zs-lb-panel-body {
    padding-bottom: max(16px, env(safe-area-inset-bottom));
  }

  .zs-selbar {
    left: 12px;
    right: 12px;
    transform: none;
    justify-content: space-between;
  }

  .zs-selbar .btn span {
    display: none;
  }
}

@media (max-width: 420px) {
  .zs-group-grid,
  .zs-album-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Presentation: project layouts, album view modes and themes
   ========================================================================== */
.zs-app {
  --zs-ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --zs-terracotta: #c95f33;
  --zs-ivory: #faf9f5;
  --zs-seg-on-bg: #0f1220;
  --zs-seg-on-fg: #ffffff;
}

[data-theme="dark"] .zs-app {
  --zs-terracotta: #f08a5d;
  --zs-ivory: #f1efe8;
  --zs-seg-on-bg: #eef0f6;
  --zs-seg-on-fg: #0f1220;
}

/* ---------- Segmented switchers (project layout, album view) ---------- */
.zs-viewbar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 0 0 20px;
  animation: zuiRise .5s var(--ease-out) .08s backwards;
}

.zs-viewbar.is-sticky {
  position: sticky;
  top: max(10px, env(safe-area-inset-top));
  z-index: 40;
}

.zs-seg {
  display: inline-flex;
  gap: 2px;
  max-width: 100%;
  padding: 4px;
  overflow-x: auto;
  box-sizing: border-box;
  border-radius: var(--r-pill);
  border: 1px solid var(--glass-border);
  background: var(--glass);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
  box-shadow: var(--glass-hi), var(--shadow-1);
  scrollbar-width: none;
}

.zs-seg::-webkit-scrollbar {
  display: none;
}

.zs-seg button,
.zs-seg-default,
.zs-pile-controls button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 13px;
  border: none;
  border-radius: var(--r-pill);
  background: transparent;
  color: var(--text-3);
  font: 600 12.5px var(--font-ui);
  white-space: nowrap;
  cursor: pointer;
  transition: background .35s var(--zs-ease), color .2s ease, transform .35s var(--zs-ease);
}

.zs-seg button svg,
.zs-seg-default svg,
.zs-pile-controls button svg {
  width: 15px;
  height: 15px;
}

.zs-seg button:hover,
.zs-pile-controls button:hover {
  color: var(--text);
}

.zs-seg button.is-on {
  background: var(--zs-seg-on-bg);
  color: var(--zs-seg-on-fg);
  box-shadow: 0 4px 12px -4px rgba(0, 0, 0, .3);
}

.zs-seg-default {
  border: 1px dashed var(--border-strong);
  color: var(--text-2);
}

.zs-seg-default:hover {
  background: var(--fill);
  color: var(--text);
}

/* ---------- Project: Moments carousel ---------- */
.zs-moments {
  margin: 0 -20px 6px;
}

/* Extra padding (cancelled by negative margins) keeps the cards' shadows inside the scroller */
.zs-carousel {
  display: flex;
  gap: 16px;
  margin: -24px 0 -30px;
  padding: 28px max(20px, calc(50% - 150px)) 48px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}

.zs-carousel::-webkit-scrollbar {
  display: none;
}

.zs-moment {
  flex: 0 0 min(64vw, 300px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  color: inherit;
  text-decoration: none;
  scroll-snap-align: center;
  animation: zuiRise .6s var(--ease-out) calc(.05s + var(--i, 0) * .05s) backwards;
}

.zs-moment-when {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-3);
  transition: color .3s ease;
}

.zs-moment.is-current .zs-moment-when {
  color: var(--text-2);
}

.zs-moment-card {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  box-sizing: border-box;
  border-radius: 26px;
  border: 3px solid rgba(255, 255, 255, .85);
  background:
    radial-gradient(120% 90% at 20% 10%, hsl(var(--hue, 12) 80% 62% / .55), transparent 60%),
    radial-gradient(120% 90% at 90% 90%, hsl(calc(var(--hue, 12) + 40) 80% 60% / .45), transparent 60%),
    var(--surface-3);
  box-shadow: 0 30px 60px -22px rgba(15, 18, 32, .5), 0 8px 18px -8px rgba(15, 18, 32, .25);
  transform: scale(.9);
  opacity: .7;
  transition: transform .55s var(--zs-ease), opacity .55s var(--zs-ease);
}

.zs-moment.is-current .zs-moment-card,
.zs-moment:hover .zs-moment-card {
  transform: none;
  opacity: 1;
}

.zs-moment-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.zs-moment-card::after {
  content: '';
  position: absolute;
  inset: auto 0 0;
  height: 48%;
  background: linear-gradient(transparent, rgba(0, 0, 0, .58));
  pointer-events: none;
}

.zs-moment-foot {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 18px;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  color: #fff;
  text-align: center;
}

.zs-moment-foot b {
  font-size: 21px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.025em;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .35);
}

.zs-pill {
  padding: 4px 11px;
  border-radius: var(--r-pill);
  border: 1px solid rgba(255, 255, 255, .3);
  background: rgba(255, 255, 255, .2);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  font: 600 12px var(--font-num);
  color: #fff;
}

/* Wide screens: the Moments sit side by side, centred, all in full colour */
@media (min-width: 761px) {
  .zs-carousel {
    padding-left: 20px;
    padding-right: 20px;
  }

  .zs-moment:first-child {
    margin-left: auto;
  }

  .zs-moment:last-child {
    margin-right: auto;
  }

  .zs-moment {
    flex-basis: 260px;
  }

  .zs-moment-card {
    transform: none;
    opacity: 1;
  }

  .zs-moment:hover .zs-moment-card {
    transform: translateY(-4px);
  }
}

.zs-dots {
  position: relative;
  display: flex;
  justify-content: center;
  gap: 6px;
}

.zs-dots button {
  width: 6px;
  height: 6px;
  padding: 0;
  border: none;
  border-radius: 99px;
  background: var(--text-4);
  cursor: pointer;
  transition: width .4s var(--zs-ease), background .25s ease;
}

.zs-dots button.is-on {
  width: 18px;
  background: var(--text-2);
}

.zs-albums-title {
  margin: 22px 0 12px;
}

/* ---------- Project: album stack tiles ---------- */
.zs-stack-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 14px;
}

.zs-stack-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 2px;
  aspect-ratio: 1 / 1.04;
  padding: 14px 12px 16px;
  box-sizing: border-box;
  border-radius: 24px;
  border: 1px solid var(--glass-border);
  background: var(--glass);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
  box-shadow: var(--glass-hi), var(--shadow-1);
  color: inherit;
  text-decoration: none;
  animation: zuiRise .55s var(--ease-out) calc(.1s + var(--i, 0) * .04s) backwards;
  transition: transform .45s var(--zs-ease), box-shadow .3s ease;
}

.zs-stack-tile:hover {
  transform: translateY(-3px);
  box-shadow: var(--glass-hi), var(--shadow-2);
}

.zs-mini-stack {
  position: relative;
  flex: none;
  width: 100%;
  height: 64%;
  margin-bottom: 10px;
}

.zs-mini {
  position: absolute;
  left: 50%;
  top: 0;
  height: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  box-sizing: border-box;
  border-radius: 12px;
  border: 2px solid #fff;
  background:
    radial-gradient(120% 90% at 20% 10%, hsl(var(--hue, 12) 80% 62% / .5), transparent 60%),
    var(--surface-3);
  box-shadow: 0 10px 20px -8px rgba(15, 18, 32, .4);
  transform: translateX(-50%);
  transition: transform .5s var(--zs-ease);
}

.zs-mini img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.zs-mini.is-l { transform: translateX(-88%) rotate(-8deg) scale(.86); }
.zs-mini.is-r { transform: translateX(-12%) rotate(8deg) scale(.86); }
.zs-mini.is-c { z-index: 2; }
.zs-stack-tile:hover .zs-mini.is-l { transform: translateX(-100%) rotate(-12deg) scale(.86); }
.zs-stack-tile:hover .zs-mini.is-r { transform: translateX(0) rotate(12deg) scale(.86); }
.zs-stack-tile:hover .zs-mini.is-c { transform: translateX(-50%) translateY(-3px); }

.zs-mini-bar {
  position: absolute;
  left: 50%;
  bottom: 7px;
  width: 36%;
  height: 4px;
  border-radius: 99px;
  background: rgba(255, 255, 255, .88);
  box-shadow: 0 1px 4px rgba(0, 0, 0, .25);
  transform: translateX(-50%);
}

.zs-stack-title {
  max-width: 100%;
  overflow: hidden;
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: -0.015em;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text);
}

.zs-stack-count {
  font-size: 12px;
  color: var(--text-3);
}

.zs-stack-tile .zs-chip,
.zs-moment-card .zs-chip,
.zs-feed-link .zs-chip {
  z-index: 6;
}

/* ---------- Fans of four tilted cards (project Feed, album Deck) ---------- */
.zs-project.is-fanned-feed {
  display: flex;
  flex-direction: column;
  gap: 38px;
  max-width: 760px;
  margin: 0 auto;
  padding-top: 6px;
}

.zs-feed-item {
  animation: zuiRise .6s var(--ease-out) calc(.06s + var(--i, 0) * .06s) backwards;
}

.zs-feed-link {
  position: relative;
  display: block;
  color: inherit;
  text-decoration: none;
}

.zs-feed-cap {
  margin-top: 14px;
  text-align: center;
}

.zs-feed-cap b {
  display: block;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
}

.zs-feed-cap span {
  font-size: 13px;
  color: var(--text-3);
}

.zs-fan {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 14px 6px;
}

.zs-fan-card {
  position: relative;
  flex: 0 0 30%;
  aspect-ratio: 3 / 4;
  box-sizing: border-box;
  border-radius: 18px;
  border: 2.5px solid #fff;
  background: var(--surface-3);
  box-shadow: 0 16px 32px -14px rgba(15, 18, 32, .45), 0 2px 6px rgba(15, 18, 32, .12);
  transform: rotate(var(--tilt));
  transition: transform .5s var(--zs-ease), box-shadow .3s ease;
}

.zs-fan-card + .zs-fan-card {
  margin-left: -6.67%;
}

.zs-fan-card > img,
.zs-more-glass {
  border-radius: 15.5px;
}

.zs-fan-card > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.zs-fan-card[data-id] {
  cursor: zoom-in;
}

.zs-fan-card.is-empty {
  background:
    radial-gradient(120% 90% at 20% 10%, var(--accent-soft), transparent 60%),
    var(--surface-3);
}

.zs-feed-link:hover .zs-fan-card:nth-child(1) { transform: translateX(-5%) rotate(-5deg); }
.zs-feed-link:hover .zs-fan-card:nth-child(2) { transform: translateX(-2%) translateY(-4px) rotate(2deg); }
.zs-feed-link:hover .zs-fan-card:nth-child(3) { transform: translateX(2%) rotate(-3deg); }
.zs-feed-link:hover .zs-fan-card:nth-child(4) { transform: translateX(5%) rotate(5deg); }

.zs-deck-fan .zs-fan-card[data-id]:hover {
  z-index: 5;
  transform: translateY(-10px) rotate(0deg) scale(1.04);
  box-shadow: 0 26px 44px -16px rgba(15, 18, 32, .5), 0 3px 8px rgba(15, 18, 32, .14);
}

/* Story note: warm paper with editorial type */
.zs-fan-card.is-note {
  z-index: 2;
  display: flex;
  padding: 10% 9%;
  overflow: hidden;
  container-type: inline-size;
  background-color: #fbf6ea;
  background-image:
    radial-gradient(120% 80% at 50% 0%, rgba(255, 255, 255, .7), transparent 60%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .45 0 0 0 0 .35 0 0 0 0 .2 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.zs-note-text {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 12;
  overflow: hidden;
  font-family: 'Newsreader', 'Iowan Old Style', Georgia, serif;
  font-size: max(9px, 8.4cqi);
  line-height: 1.38;
  color: #3b3226;
  white-space: pre-line;
  text-align: left;
}

/* A line or two reads like a pull quote */
.zs-fan-card.is-short {
  align-items: center;
}

.zs-fan-card.is-short .zs-note-text {
  font-size: max(11px, 12.5cqi);
  font-style: italic;
  line-height: 1.22;
  letter-spacing: -0.01em;
}

/* +N: a heavy frosted pane over the next photo */
.zs-fan-card.is-more {
  cursor: pointer;
}

.zs-more-glass {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, .26);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
}

.zs-more-glass b {
  font-size: clamp(22px, 5vw, 36px);
  font-weight: 600;
  letter-spacing: -0.03em;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .25);
}

.zs-fan-add {
  position: absolute;
  top: -13px;
  right: -13px;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #fff;
  color: #14161c;
  box-shadow: 0 8px 20px -6px rgba(0, 0, 0, .4);
  cursor: pointer;
  transition: transform .4s var(--zs-ease);
}

.zs-fan-add:hover {
  transform: scale(1.08) rotate(90deg);
}

.zs-fan-add svg {
  width: 20px;
  height: 20px;
}

/* ---------- Album boards (every view but the justified grid) ---------- */
.zs-board {
  position: relative;
}

.zs-board img.zs-ph {
  opacity: 0;
  transition: opacity .4s ease;
}

.zs-board img.zs-ph.is-loaded {
  opacity: 1;
}

.zs-mode-fanned-deck {
  display: flex;
  flex-direction: column;
  gap: 26px;
  max-width: 760px;
  margin: 0 auto;
}

.zs-deck-fan {
  animation: zuiRise .6s var(--ease-out) calc(.05s + var(--i, 0) * .07s) backwards;
}

.zs-deck-fan.is-new {
  animation: zsDeal .7s var(--zs-ease) calc(var(--i, 0) * .08s) backwards;
}

@keyframes zsDeal {
  from { opacity: 0; transform: translateY(-24px) scale(.94); }
}

.zs-deck-cap {
  margin: 6px 0 0;
  font-size: 13px;
  text-align: center;
  color: var(--text-3);
  white-space: pre-line;
}

/* ---------- Instant-film Polaroids ---------- */
.zs-polaroid {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  flex: none;
  width: var(--pw, 158px);
  padding: 7px 7px 0;
  box-sizing: border-box;
  border-radius: 3px;
  background: var(--zs-ivory);
  box-shadow: 0 8px 20px rgba(0, 0, 0, .12), 0 1px 3px rgba(0, 0, 0, .08);
  transform: rotate(var(--r, 0deg));
  cursor: zoom-in;
  outline: none;
  transition: transform .45s var(--zs-ease), box-shadow .3s ease;
}

.zs-polaroid-photo {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #d9d6cf;
}

.zs-polaroid-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 4px rgba(0, 0, 0, .12);
  pointer-events: none;
}

.zs-polaroid-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Counts sit on the left: the next print overlaps the right edge */
.zs-polaroid-foot {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 4px;
  height: 26px;
  padding: 0 2px;
  font: 600 10.5px var(--font-num);
  color: #8d8679;
}

.zs-polaroid-foot svg {
  width: 11px;
  height: 11px;
}

.zs-polaroid-foot svg:not(:first-child) {
  margin-left: 6px;
}

.zs-play {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin: -17px 0 0 -17px;
  border-radius: 50%;
  background: rgba(0, 0, 0, .45);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: #fff;
}

.zs-play svg {
  width: 14px;
  height: 14px;
  margin-left: 2px;
  fill: currentColor;
}

.zs-mode-polaroid-stream .zs-polaroid:hover,
.zs-mode-polaroid-stream .zs-polaroid:focus-visible {
  z-index: 10;
  transform: translateY(-6px) rotate(0deg) scale(1.03);
  box-shadow: 0 18px 36px rgba(0, 0, 0, .18), 0 2px 6px rgba(0, 0, 0, .1);
}

/* Day-stream */
.zs-mode-polaroid-stream {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.zs-day {
  animation: zuiRise .5s var(--ease-out) calc(var(--i, 0) * .06s) backwards;
}

.zs-day-head {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 0 0 14px;
  font-size: 17px;
  letter-spacing: -0.015em;
}

.zs-day-head b {
  font-weight: 700;
  color: var(--text);
}

.zs-day-head.is-recent b {
  color: var(--zs-terracotta);
}

.zs-day-head span {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-3);
}

.zs-day-head span::before {
  content: '•';
  margin-right: 8px;
  color: var(--text-4);
}

.zs-day-row {
  display: flex;
  flex-wrap: wrap;
  row-gap: 18px;
  padding: 4px 0 0 12px;
}

.zs-day-row .zs-polaroid {
  margin-left: -12px;
  animation: zsDrop .55s var(--zs-ease) calc(var(--d, 0) * 35ms) backwards;
}

@keyframes zsDrop {
  from { opacity: 0; transform: translateY(-16px) rotate(calc(var(--r, 0deg) * 2.5)); }
}

/* Scattered pile */
.zs-pile-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 6px;
}

.zs-pile {
  position: relative;
  width: 100%;
  min-height: 460px;
  transition: height .6s var(--zs-ease);
}

.zs-pile-card {
  --pw: var(--cw, 170px);
  position: absolute;
  left: 0;
  top: 0;
  transition: transform .75s var(--ease-spring), box-shadow .3s ease, opacity .4s ease;
}

.zs-pile.is-spread .zs-pile-card {
  transition-delay: calc(var(--k, 0) * 18ms);
}

.zs-pile.is-still .zs-pile-card {
  transition: none;
}

.zs-pile-card.is-buried {
  opacity: 0;
  pointer-events: none;
}

.zs-pile-card.is-flying {
  z-index: 400 !important;
  transition: transform .3s var(--zs-ease);
}

.zs-pile-card.is-top {
  cursor: pointer;
}

.zs-pile-card:hover,
.zs-pile-card:focus-visible {
  box-shadow: 0 22px 40px rgba(0, 0, 0, .2), 0 2px 6px rgba(0, 0, 0, .1);
}

.zs-pile.is-spread .zs-pile-card {
  cursor: zoom-in;
}

.zs-pile-open {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(0, 0, 0, .45);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: #fff;
  opacity: 0;
  cursor: zoom-in;
  transition: opacity .2s ease, transform .3s var(--zs-ease);
}

.zs-pile-open svg {
  width: 14px;
  height: 14px;
}

.zs-pile-open:hover {
  transform: scale(1.1);
}

.zs-pile:not(.is-spread) .zs-pile-card.is-top .zs-pile-open,
.zs-pile.is-spread .zs-pile-card:hover .zs-pile-open {
  opacity: 1;
}

.zs-pile-subtitle {
  margin: 18px 0 0;
  padding: 0 16px;
  font-size: clamp(18px, 2.5vw, 24px);
  letter-spacing: -0.02em;
  text-align: center;
  color: var(--text-3);
}

/* Floats over a long spread; sits under the pile otherwise */
.zs-pile-controls {
  position: relative;
  z-index: 50;
  display: inline-flex;
  gap: 2px;
  margin-top: 8px;
  padding: 4px;
  border-radius: var(--r-pill);
  border: 1px solid var(--glass-border);
  background: var(--glass);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
  box-shadow: var(--glass-hi), var(--shadow-2);
}

.zs-pile-wrap.is-spread .zs-pile-controls {
  position: sticky;
  bottom: max(16px, env(safe-area-inset-bottom));
}

.zs-pile-controls button {
  color: var(--text-2);
}

.zs-pile-controls button.is-on {
  background: var(--zs-seg-on-bg);
  color: var(--zs-seg-on-fg);
}

.zs-pile-more {
  margin-top: 12px;
  padding: 6px;
  border: none;
  background: none;
  color: var(--text-2);
  font: 600 13px var(--font-ui);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

/* ---------- Scrapbook ---------- */
.zs-album-subtitle {
  margin: 6px 0 0;
  font-size: 15.5px;
  font-weight: 500;
  color: var(--text-2);
}

.zs-album-subtitle:empty {
  display: none;
}

#view-album.is-scrapbook .zs-title-block {
  text-align: center;
}

#view-album.is-scrapbook .zs-title-row,
#view-album.is-scrapbook .zs-title-actions,
#view-album.is-scrapbook .zs-viewbar {
  justify-content: center;
}

#view-album.is-scrapbook #album-title {
  font-size: clamp(28px, 5vw, 42px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.035em;
}

#view-album.is-scrapbook .zs-album-subtitle,
#view-album.is-scrapbook .zs-desc {
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.zs-scrap {
  max-width: 640px;
  margin: 0 auto;
}

.zs-map {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 30px auto 34px;
  animation: zuiRise .6s var(--ease-out) .05s backwards;
}

.zs-map-pill {
  position: relative;
  width: 100%;
  height: 110px;
  overflow: hidden;
  box-sizing: border-box;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, .6);
  background: #e9eee2;
  box-shadow: 0 16px 36px -16px rgba(15, 40, 80, .5);
}

.zs-map-tiles {
  position: absolute;
  inset: 0;
  filter: saturate(.75) contrast(.96) brightness(1.03);
}

.zs-map-tiles img {
  position: absolute;
  width: 256px;
  height: 256px;
  max-width: none;
}

.zs-map-faux {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: #ecefe4;
}

.zs-map-faux g path {
  fill: none;
  stroke: #fff;
  stroke-width: 5;
  stroke-linecap: round;
}

.zs-map-faux .r {
  fill: none;
  stroke: #a9d0f0;
  stroke-width: 14;
  stroke-linecap: round;
}

.zs-map-faux .p {
  fill: #cfe5c4;
}

.zs-map-attr {
  position: absolute;
  left: 50%;
  bottom: 5px;
  padding: 0 7px;
  border-radius: 99px;
  background: rgba(255, 255, 255, .7);
  font-size: 9px;
  color: rgba(0, 0, 0, .6);
  transform: translateX(-50%);
}

.zs-map-dot {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 12px;
  height: 12px;
  margin: -6px 0 0 -6px;
  box-sizing: border-box;
  border-radius: 50%;
  border: 2.5px solid #fff;
  background: #e5484d;
  box-shadow: 0 0 0 7px rgba(229, 72, 77, .22);
}

.zs-map-ticket {
  position: absolute;
  top: -20px;
  left: 50%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 58px;
  height: 40px;
  color: #6b3d00;
  filter: drop-shadow(0 8px 10px rgba(150, 85, 0, .35));
  transform: translateX(-50%) rotate(-8deg);
  animation: zsBob 6s ease-in-out infinite;
}

.zs-map-ticket i {
  position: absolute;
  inset: 0;
  border-radius: 7px;
  background: linear-gradient(135deg, #ffe08a 0%, #f7b733 55%, #e39200 100%);
  -webkit-mask:
    radial-gradient(circle 6px at 0 50%, transparent 97%, #000) left / 51% 100% no-repeat,
    radial-gradient(circle 6px at 100% 50%, transparent 97%, #000) right / 51% 100% no-repeat;
  mask:
    radial-gradient(circle 6px at 0 50%, transparent 97%, #000) left / 51% 100% no-repeat,
    radial-gradient(circle 6px at 100% 50%, transparent 97%, #000) right / 51% 100% no-repeat;
}

.zs-map-ticket i::after {
  content: '';
  position: absolute;
  top: 6px;
  bottom: 6px;
  left: 70%;
  border-left: 1.5px dashed rgba(107, 61, 0, .45);
}

.zs-map-ticket svg {
  position: relative;
  width: 18px;
  height: 18px;
  margin-right: 10px;
}

.zs-map-name {
  margin-top: 12px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--text);
}

.zs-scrap-cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 24px;
  align-items: start;
  padding: 12px 10px 30px;
}

.zs-scrap-col {
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.zs-scrap-col.is-offset {
  padding-top: 56px;
}

.zs-scrap-stack {
  position: relative;
  transform: rotate(var(--r, 0deg));
  animation: zsPop .65s var(--zs-ease) calc(.08s + var(--i, 0) * 50ms) backwards;
}

@keyframes zsPop {
  from { opacity: 0; transform: translateY(18px) scale(.92) rotate(var(--r, 0deg)); }
}

.zs-scrap-card {
  display: block;
  overflow: hidden;
  box-sizing: border-box;
  border-radius: 18px;
  border: 3px solid #fff;
  background: #cfd8e3;
  box-shadow: 0 18px 34px -16px rgba(10, 30, 60, .5), 0 2px 6px rgba(10, 30, 60, .12);
  cursor: zoom-in;
  outline: none;
}

.zs-scrap-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.zs-scrap-card.is-front {
  position: relative;
  z-index: 2;
  transition: transform .45s var(--zs-ease);
}

.zs-scrap-card.is-back {
  position: absolute;
  inset: 0;
  z-index: 1;
  transform: rotate(var(--r)) scale(.96);
  transition: transform .5s var(--zs-ease);
}

.zs-scrap-stack:hover .zs-scrap-card.is-front,
.zs-scrap-card.is-front:focus-visible {
  transform: translateY(-4px) scale(1.02);
}

.zs-scrap-stack:hover .zs-scrap-card.is-back {
  transform: rotate(calc(var(--r) * 1.6)) scale(.96) translateY(-4px);
}

.zs-bubble {
  position: absolute;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  box-sizing: border-box;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .65);
  background:
    radial-gradient(circle at 30% 26%, rgba(255, 255, 255, .95) 0 7%, rgba(255, 255, 255, .25) 20%, transparent 42%),
    conic-gradient(from 210deg, rgba(255, 150, 220, .5), rgba(130, 200, 255, .5), rgba(160, 255, 210, .45), rgba(255, 230, 150, .45), rgba(255, 150, 220, .5));
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  box-shadow: inset 0 0 12px rgba(255, 255, 255, .5), 0 8px 18px -6px rgba(20, 40, 80, .35);
  color: #fff;
  font: 700 11px/1 var(--font-num);
  text-shadow: 0 1px 3px rgba(0, 0, 0, .35);
  pointer-events: none;
  animation: zsBob 5s ease-in-out infinite;
}

.zs-bubble svg {
  width: 15px;
  height: 15px;
  margin-bottom: 2px;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .25));
}

.zs-bubble.is-heart svg {
  color: #ff4f7a;
  fill: currentColor;
}

.zs-bubble.is-sticker {
  font-size: 22px;
  text-shadow: none;
}

.zs-bubble.is-tr { top: -16px; right: -8px; }
.zs-bubble.is-tl { top: -16px; left: -8px; animation-delay: -1.5s; }
.zs-bubble.is-br { bottom: -16px; right: -8px; animation-delay: -3s; }
.zs-bubble.is-bl { bottom: -16px; left: -8px; animation-delay: -4s; }

@keyframes zsBob {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -4px; }
}

.zs-scrap-add {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  aspect-ratio: 4 / 5;
  box-sizing: border-box;
  border-radius: 18px;
  border: 2.5px solid #fff;
  background: rgba(150, 160, 175, .38);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  box-shadow: 0 14px 30px -16px rgba(10, 30, 60, .45);
  color: #fff;
  font: 600 13px var(--font-ui);
  transform: rotate(5deg);
  cursor: pointer;
  transition: transform .45s var(--zs-ease), background .2s ease;
}

.zs-scrap-add:hover {
  background: rgba(150, 160, 175, .5);
  transform: rotate(2deg) scale(1.02);
}

.zs-scrap-add svg {
  width: 34px;
  height: 34px;
}

/* Selecting in any view */
.zs-board.is-selecting [data-id] {
  cursor: pointer;
}

.zs-board [data-id].is-selected {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

/* ---------- Dialog bits: sections, rows, choice chips ---------- */
.zs-wide {
  max-width: 560px;
}

.zs-form-section {
  margin: 22px 0 -4px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-3);
}

.modal-header + .zs-form-section {
  margin-top: 14px;
  padding-top: 0;
  border-top: none;
}

.zs-field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 12px;
}

.zs-field-label {
  font-size: 12.5px;
  font-weight: 560;
  color: var(--text-2);
}

.zs-input-row {
  display: flex;
  gap: 8px;
}

.zs-input-row .btn {
  height: 40px;
  flex: none;
}

.zs-gps-btn {
  margin-top: 10px;
}

.zs-choice {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 8px;
}

.zs-choice.is-compact,
.zs-choice.is-swatches {
  grid-template-columns: repeat(auto-fit, minmax(84px, 1fr));
}

.zs-choice button {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  padding: 10px 11px;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  background: var(--fill);
  color: var(--text-2);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}

.zs-choice.is-compact button,
.zs-choice.is-swatches button {
  align-items: center;
  text-align: center;
}

.zs-choice button svg {
  width: 17px;
  height: 17px;
  color: var(--text-3);
}

.zs-choice button b {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text);
}

.zs-choice button small {
  font-size: 11.5px;
  color: var(--text-3);
}

.zs-choice button:hover {
  border-color: var(--border-strong);
}

.zs-choice button.is-on {
  border-color: var(--accent);
  background: var(--accent-soft);
  box-shadow: 0 0 0 1px var(--accent) inset;
}

.zs-choice button.is-on svg {
  color: var(--accent-text);
}

.zs-swatch {
  width: 100%;
  height: 26px;
  box-sizing: border-box;
  border-radius: 7px;
  border: 1px solid var(--border);
}

.zs-swatch.is-default { background: linear-gradient(135deg, var(--surface) 0%, var(--surface-3) 100%); }
.zs-swatch.is-sky { background: linear-gradient(180deg, #3f8ee0, #b7dcf7); }
.zs-swatch.is-paper { background: linear-gradient(135deg, #f6eedd, #e6d6b8); }
.zs-swatch.is-midnight { background: radial-gradient(80% 120% at 30% 0%, #2a2440, #0b0d12 70%); }

/* ---------- Album themes (tint the page behind an open album) ---------- */
.zs-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

body[data-album-theme] .zs-backdrop {
  display: block;
  animation: zsFade .6s ease both;
}

.zs-backdrop i {
  display: none;
  position: absolute;
  border-radius: 50%;
}

body[data-album-theme="sky-clouds"] .zs-backdrop {
  background: linear-gradient(180deg, #3d8bdc 0%, #66abeb 42%, #b3d9f6 100%);
}

body[data-album-theme="sky-clouds"] .zs-backdrop i {
  display: block;
  background:
    radial-gradient(closest-side, rgba(255, 255, 255, .85), rgba(255, 255, 255, 0)),
    radial-gradient(closest-side at 30% 60%, rgba(255, 255, 255, .7), rgba(255, 255, 255, 0)),
    radial-gradient(closest-side at 72% 55%, rgba(255, 255, 255, .7), rgba(255, 255, 255, 0));
  filter: blur(14px);
  animation: zsDrift 60s linear infinite alternate;
}

body[data-album-theme="sky-clouds"] .zs-backdrop i:nth-child(1) { width: 70vw; height: 24vw; left: -20vw; top: 8vh; }
body[data-album-theme="sky-clouds"] .zs-backdrop i:nth-child(2) { width: 56vw; height: 18vw; right: -16vw; top: 42vh; animation-duration: 80s; animation-direction: alternate-reverse; opacity: .8; }
body[data-album-theme="sky-clouds"] .zs-backdrop i:nth-child(3) { width: 80vw; height: 26vw; left: 10vw; bottom: -6vh; animation-duration: 95s; opacity: .9; }

@keyframes zsDrift {
  from { translate: -4vw 0; }
  to { translate: 6vw -1vh; }
}

body[data-album-theme="warm-paper"] .zs-backdrop {
  background-color: #f1e7d3;
  background-image:
    radial-gradient(120% 90% at 50% 0%, rgba(255, 252, 244, .8), transparent 60%),
    radial-gradient(140% 120% at 50% 50%, transparent 55%, rgba(120, 90, 40, .18)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .45 0 0 0 0 .33 0 0 0 0 .15 0 0 0 .14 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

body[data-album-theme="midnight-grain"] .zs-backdrop {
  background-color: #0a0c11;
  background-image:
    radial-gradient(60% 50% at 20% 0%, rgba(110, 80, 200, .22), transparent 70%),
    radial-gradient(50% 40% at 90% 100%, rgba(40, 120, 200, .16), transparent 70%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.95' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

body[data-album-theme] .zs-shell {
  --zs-ivory: #faf9f5;
}

body[data-album-theme="sky-clouds"] .zs-shell {
  --text: #ffffff;
  --text-2: rgba(255, 255, 255, .9);
  --text-3: rgba(255, 255, 255, .78);
  --text-4: rgba(255, 255, 255, .55);
  --border: rgba(255, 255, 255, .3);
  --border-strong: rgba(255, 255, 255, .5);
  --fill: rgba(255, 255, 255, .16);
  --fill-2: rgba(255, 255, 255, .26);
  --glass: rgba(255, 255, 255, .2);
  --glass-border: rgba(255, 255, 255, .42);
  --glass-hi: inset 0 1px 0 rgba(255, 255, 255, .5);
  --surface-3: rgba(255, 255, 255, .3);
  --accent-text: #ffffff;
  --zs-terracotta: #ffe3a3;
  --zs-seg-on-bg: #ffffff;
  --zs-seg-on-fg: #1f5fa3;
}

body[data-album-theme="warm-paper"] .zs-shell {
  --text: #2b2419;
  --text-2: #4b4132;
  --text-3: #7a6c57;
  --text-4: #a99b83;
  --border: rgba(70, 48, 14, .14);
  --border-strong: rgba(70, 48, 14, .26);
  --fill: rgba(70, 48, 14, .06);
  --fill-2: rgba(70, 48, 14, .1);
  --glass: rgba(255, 250, 240, .68);
  --glass-border: rgba(255, 255, 255, .7);
  --glass-hi: inset 0 1px 0 rgba(255, 255, 255, .8);
  --surface-3: #e6dbc5;
  --accent-text: #8a4a1c;
  --zs-terracotta: #b5532a;
  --zs-seg-on-bg: #2b2419;
  --zs-seg-on-fg: #f6efe2;
}

body[data-album-theme="midnight-grain"] .zs-shell {
  --text: #ece9e2;
  --text-2: #c7c2b7;
  --text-3: #8f8a80;
  --text-4: #5f5b54;
  --border: rgba(255, 255, 255, .09);
  --border-strong: rgba(255, 255, 255, .17);
  --fill: rgba(255, 255, 255, .05);
  --fill-2: rgba(255, 255, 255, .09);
  --glass: rgba(20, 22, 30, .6);
  --glass-border: rgba(255, 255, 255, .09);
  --glass-hi: inset 0 1px 0 rgba(255, 255, 255, .06);
  --surface-3: #1d2029;
  --accent-text: #c9b8ff;
  --zs-terracotta: #f0916a;
  --zs-seg-on-bg: #ece9e2;
  --zs-seg-on-fg: #0a0c11;
  --zs-ivory: #efece4;
}

body[data-album-theme="sky-clouds"] .zs-title-block h1,
body[data-album-theme="sky-clouds"] .zs-map-name {
  text-shadow: 0 2px 18px rgba(20, 60, 120, .35);
}

/* ---------- Small screens ---------- */
@media (max-width: 760px) {
  .zs-moments {
    margin: 0 -12px 6px;
  }

  .zs-carousel {
    gap: 12px;
    padding-left: max(12px, calc(50% - 32vw));
    padding-right: max(12px, calc(50% - 32vw));
  }

  .zs-stack-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .zs-viewbar .zs-seg button:not(.is-on) span {
    display: none;
  }

  .zs-viewbar .zs-seg button {
    padding: 0 11px;
  }

  .zs-mode-polaroid-stream {
    --pw: 112px;
  }

  .zs-pile {
    min-height: 380px;
  }

  .zs-polaroid {
    padding: 5px 5px 0;
  }

  .zs-polaroid-foot {
    height: 20px;
  }

  .zs-fan-add {
    width: 36px;
    height: 36px;
    top: -10px;
    right: -10px;
  }

  .zs-fan-card {
    border-radius: 14px;
    border-width: 2px;
  }

  .zs-fan-card > img,
  .zs-more-glass {
    border-radius: 12px;
  }

  .zs-scrap-cols {
    gap: 0 16px;
    padding: 12px 4px 24px;
  }

  .zs-scrap-col {
    gap: 28px;
  }

  .zs-scrap-col.is-offset {
    padding-top: 40px;
  }

  .zs-scrap-card {
    border-radius: 14px;
  }

  .zs-bubble {
    width: 40px;
    height: 40px;
    font-size: 10px;
  }

  .zs-bubble svg {
    width: 13px;
    height: 13px;
  }

  .zs-map-pill {
    height: 96px;
  }

  .zs-field-row {
    grid-template-columns: 1fr;
  }
}
