/* 3D print gallery hallway + list view on /prints/.
   Sizes are in px on purpose: the public site's root font-size is 10px. */

.g3d-shell {
  --g3d-ink: #1f1d1a;
  --g3d-ink-soft: rgba(31, 29, 26, 0.68);
  --g3d-glass: rgba(255, 255, 255, 0.72);
  --g3d-glass-strong: rgba(255, 255, 255, 0.9);
  --g3d-line: rgba(31, 29, 26, 0.14);
  --g3d-serif: "Playfair Display", Georgia, "Times New Roman", serif;
  position: relative;
}
/* Night colours apply over the 3D scene only; the list sits on the light page. */
.g3d-shell.g3d-dark:not([data-view="list"]) {
  --g3d-ink: #f4efe6;
  --g3d-ink-soft: rgba(244, 239, 230, 0.72);
  --g3d-glass: rgba(14, 20, 40, 0.55);
  --g3d-glass-strong: rgba(14, 20, 40, 0.82);
  --g3d-line: rgba(244, 239, 230, 0.2);
}

/* ── View selection ─────────────────────────────────────────────────────── */
.g3d-shell[data-view="gallery"].g3d-js:not(.g3d-unsupported) .g3d-list { display: none; }
.g3d-shell[data-view="gallery"].g3d-js:not(.g3d-unsupported) .g3d-stage { display: block; }
.g3d-shell.g3d-unsupported .g3d-switch,
.g3d-shell.g3d-unsupported .g3d-daynight,
.g3d-shell.g3d-unsupported .g3d-icon-btn { display: none !important; }

/* ── Immersive: the gallery covers the whole window, site header included ── */
html.g3d-immersive,
html.g3d-immersive body { overflow: hidden; height: 100%; overscroll-behavior: none; }
html.g3d-immersive .g3d-shell[data-view="gallery"] .g3d-stage {
  position: fixed;
  inset: 0;
  height: 100%;
  min-height: 0;
  z-index: 10001;
}
html.g3d-immersive .g3d-shell[data-view="gallery"] .g3d-topbar {
  position: fixed;
  z-index: 10003;
}
/* The cart drawer must open above the gallery. */
html.g3d-immersive .ps-cart-panel { z-index: 10050; }
/* Site dark mode inverts the whole page (html.dark-mode { filter: invert }).
   The hallway has its own day/night lighting, so undo that on the stage and
   its bar — otherwise every print shows as a negative. Both are fixed
   themselves, so the filter doesn't move them. */
html.dark-mode.g3d-immersive .g3d-shell[data-view="gallery"] .g3d-stage,
html.dark-mode.g3d-immersive .g3d-shell[data-view="gallery"] .g3d-topbar { filter: invert(1) hue-rotate(180deg); }

/* ── Top bar: Gallery / List pill + day/night ───────────────────────────── */
.g3d-topbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 16px 16px 0;
}
.g3d-shell[data-view="gallery"] .g3d-topbar {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 6;
}
.g3d-shell:not(.g3d-js) .g3d-topbar { display: none; }

.g3d-switch {
  display: inline-flex;
  padding: 3px;
  border-radius: 999px;
  background: var(--g3d-glass);
  border: 1px solid var(--g3d-line);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.g3d-shell[data-view="list"] .g3d-switch { --g3d-glass: #f3f1ec; }
.g3d-switch-btn {
  font: 500 13px/1 "Raleway", system-ui, sans-serif;
  letter-spacing: 0.04em;
  color: var(--g3d-ink-soft);
  text-decoration: none;
  padding: 9px 16px;
  border-radius: 999px;
  transition: background 0.2s, color 0.2s;
}
.g3d-switch-btn[aria-pressed="true"] {
  background: var(--g3d-ink);
  color: #fff;
}
.g3d-dark:not([data-view="list"]) .g3d-switch-btn[aria-pressed="true"] { color: #10152a; }
.g3d-switch-btn:focus-visible,
.g3d-daynight:focus-visible,
.g3d-icon-btn:focus-visible,
.g3d-env-item:focus-visible,
.g3d-title:focus-visible,
.g3d-arrow:focus-visible,
.g3d-back:focus-visible { outline: 2px solid #c9a96e; outline-offset: 2px; }

.g3d-daynight {
  width: 40px;
  height: 40px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--g3d-line);
  background: var(--g3d-glass);
  color: var(--g3d-ink);
  cursor: pointer;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.g3d-shell[data-view="list"] .g3d-daynight { display: none; }
.g3d-daynight svg {
  width: 20px; height: 20px; grid-area: 1 / 1;
  fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round;
  transition: opacity 0.4s, transform 0.6s;
}
.g3d-daynight .g3d-moon { fill: currentColor; stroke: none; opacity: 0; transform: rotate(-40deg) scale(0.6); }
.g3d-daynight .g3d-sun circle { fill: currentColor; }
.g3d-daynight[data-mode="night"] .g3d-sun { opacity: 0; transform: rotate(60deg) scale(0.6); }
.g3d-daynight[data-mode="night"] .g3d-moon { opacity: 1; transform: none; }

/* Environment picker, full screen and cart buttons */
.g3d-icon-btn {
  position: relative;
  width: 40px;
  height: 40px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--g3d-line);
  background: var(--g3d-glass);
  color: var(--g3d-ink);
  cursor: pointer;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: background 0.2s;
}
.g3d-icon-btn:hover { background: var(--g3d-glass-strong); }
.g3d-icon-btn[hidden] { display: none; }
.g3d-icon-btn svg {
  width: 19px; height: 19px; grid-area: 1 / 1;
  fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
}
.g3d-fs-off { display: none; }
[data-g3d-fullscreen][aria-pressed="true"] .g3d-fs-on { display: none; }
[data-g3d-fullscreen][aria-pressed="true"] .g3d-fs-off { display: block; }
.g3d-shell[data-view="list"] .g3d-only-gallery,
.g3d-shell[data-view="list"] .g3d-env { display: none; }
.g3d-cart-count {
  position: absolute;
  top: -3px;
  right: -3px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: #c9a96e;
  color: #1b1712;
  font: 600 11px/18px "Raleway", system-ui, sans-serif;
  text-align: center;
}
.g3d-cart-count[hidden] { display: none; }

.g3d-env { position: relative; }
.g3d-env-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 236px;
  max-height: min(70vh, 520px);
  overflow-y: auto;
  padding: 6px;
  border-radius: 14px;
  background: var(--g3d-glass-strong);
  border: 1px solid var(--g3d-line);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
}
.g3d-env-menu[hidden] { display: none; }
.g3d-env-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px 10px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--g3d-ink);
  font: 500 13px/1.2 "Raleway", system-ui, sans-serif;
  text-align: left;
  cursor: pointer;
}
.g3d-env-item:hover { background: var(--g3d-line); }
.g3d-env-item[aria-checked="true"] { background: var(--g3d-line); font-weight: 700; }
.g3d-env-swatch {
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid var(--g3d-line);
}

/* ── Stage ──────────────────────────────────────────────────────────────── */
.g3d-stage {
  position: relative;
  height: calc(100vh - var(--g3d-top, 72px));
  height: calc(100svh - var(--g3d-top, 72px));
  min-height: 420px;
  overflow: hidden;
  background: linear-gradient(#bcd3ea, #e9eef2 60%, #d8cdb8 61%);
  color: var(--g3d-ink);
  user-select: none;
  -webkit-user-select: none;
}
.g3d-dark .g3d-stage { background: linear-gradient(#0b1430, #1b1f38 60%, #2a2622 61%); }
.g3d-stage[hidden] { display: none !important; }
/* Before the bundle runs, show the (loading) stage rather than nothing. */
.g3d-shell.g3d-js:not(.g3d-booted):not(.g3d-unsupported)[data-view="gallery"] .g3d-stage[hidden] { display: block !important; }
.g3d-canvas {
  position: absolute;
  inset: 0;
  display: block;
  touch-action: none;
  cursor: grab;
  opacity: 0;
  transition: opacity 0.8s ease;
}
.g3d-stage.is-ready .g3d-canvas { opacity: 1; }
.g3d-stage.is-fading .g3d-canvas { opacity: 0.15; transition-duration: 0.15s; }
.g3d-stage.is-switching .g3d-canvas { opacity: 0; transition-duration: 0.2s; }

.g3d-loading {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font: italic 400 18px/1.3 var(--g3d-serif);
  color: var(--g3d-ink-soft);
  pointer-events: none;
  transition: opacity 0.6s;
}
.g3d-stage.is-ready .g3d-loading { opacity: 0; }

.g3d-title {
  position: absolute;
  top: 18px;
  left: 20px;
  z-index: 5;
  display: block;
  text-decoration: none;
  border-radius: 6px;
  text-shadow: 0 1px 12px rgba(255, 255, 255, 0.35);
}
.g3d-dark .g3d-title { text-shadow: 0 1px 12px rgba(0, 0, 0, 0.5); }
.g3d-title-name {
  display: block;
  margin: 0;
  font: 500 26px/1.1 var(--g3d-serif);
  color: var(--g3d-ink);
}
.g3d-title-tag {
  display: block;
  margin: 4px 0 0;
  font: 400 12px/1.2 "Raleway", system-ui, sans-serif;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--g3d-ink-soft);
}

.g3d-skip {
  position: absolute;
  left: 20px;
  top: -60px;
  z-index: 8;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--g3d-glass-strong);
  color: var(--g3d-ink);
  font: 500 14px/1 "Raleway", system-ui, sans-serif;
}
.g3d-skip:focus { top: 16px; }

/* HUD */
.g3d-hud { position: absolute; inset: 0; pointer-events: none; z-index: 4; }
.g3d-hud > * { pointer-events: auto; }

.g3d-caption {
  position: absolute;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 12px 22px 13px;
  border-radius: 16px;
  background: var(--g3d-glass);
  border: 1px solid var(--g3d-line);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  text-align: center;
  max-width: min(440px, calc(100% - 32px));
}
.g3d-caption-eyebrow {
  font: 500 11px/1 "Raleway", system-ui, sans-serif;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--g3d-ink-soft);
}
.g3d-caption-title {
  font: 500 22px/1.2 var(--g3d-serif);
  color: var(--g3d-ink);
}
.g3d-caption.is-in .g3d-caption-title { animation: g3d-rise 0.5s ease both; }
@keyframes g3d-rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.g3d-caption-link {
  font: 500 13px/1.2 "Raleway", system-ui, sans-serif;
  color: var(--g3d-ink);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

.g3d-nav {
  position: absolute;
  right: 20px;
  bottom: 26px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}
.g3d-hint {
  margin: 0;
  max-width: 230px;
  text-align: right;
  font: 400 12px/1.45 "Raleway", system-ui, sans-serif;
  color: var(--g3d-ink-soft);
  pointer-events: none;
}
.g3d-arrows { display: flex; gap: 8px; }
.g3d-arrow, .g3d-back {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--g3d-line);
  background: var(--g3d-glass);
  color: var(--g3d-ink);
  cursor: pointer;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: background 0.2s, transform 0.2s;
}
.g3d-arrow:hover, .g3d-back:hover { background: var(--g3d-glass-strong); }
.g3d-arrow:active { transform: scale(0.94); }
.g3d-arrow svg, .g3d-back svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.g3d-back {
  position: absolute;
  left: 20px;
  bottom: 26px;
  width: auto;
  padding: 0 16px 0 10px;
  border-radius: 999px;
  display: inline-flex;
  gap: 6px;
  font: 500 13px/1 "Raleway", system-ui, sans-serif;
}
.g3d-back[hidden] { display: none; }

.g3d-tooltip {
  position: absolute;
  left: 0;
  top: 0;
  padding: 8px 12px;
  border-radius: 8px;
  background: var(--g3d-ink);
  color: #fff;
  font: 500 12px/1 "Raleway", system-ui, sans-serif;
  letter-spacing: 0.04em;
  pointer-events: none !important;
  white-space: nowrap;
}
.g3d-dark .g3d-tooltip { color: #10152a; }
.g3d-tooltip[hidden] { display: none; }

/* Keyboard / screen-reader list of prints: invisible until tabbed into. */
.g3d-sr-list {
  position: absolute;
  top: 70px;
  left: 20px;
  z-index: 7;
}
.g3d-sr-item {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
  padding: 0;
}
.g3d-sr-item:focus {
  width: auto;
  height: auto;
  clip: auto;
  max-width: 320px;
  white-space: normal;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--g3d-glass-strong);
  color: var(--g3d-ink);
  font: 500 13px/1.4 "Raleway", system-ui, sans-serif;
  text-align: left;
  outline: 2px solid #c9a96e;
}

@media (max-width: 700px) {
  /* controls take the top row; the title sits under them */
  .g3d-title { top: 62px; left: 16px; }
  .g3d-title-name { font-size: 19px; }
  .g3d-title-tag { display: none; }
  .g3d-topbar { padding: 12px 12px 0; gap: 6px; }
  .g3d-switch-btn { padding: 8px 11px; font-size: 12px; }
  .g3d-icon-btn, .g3d-daynight { width: 36px; height: 36px; }
  .g3d-caption { bottom: 84px; padding: 10px 16px; }
  .g3d-caption-title { font-size: 19px; }
  .g3d-nav { right: 16px; bottom: 16px; left: 16px; flex-direction: row; align-items: center; justify-content: space-between; }
  .g3d-hint { text-align: left; max-width: none; flex: 1; font-size: 11.5px; }
  .g3d-back { left: 16px; bottom: auto; top: 100px; }
}

/* ── List view ──────────────────────────────────────────────────────────── */
.g3d-collection { padding: 8px 0 40px; background: transparent; }
.g3d-collection-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 0 20px 14px;
  max-width: 1920px;
  margin: 0 auto;
}
.g3d-collection-title {
  margin: 0;
  font: 500 26px/1.2 var(--g3d-serif);
  color: #1f1d1a;
}
.g3d-collection-count {
  font: 400 13px/1 "Raleway", system-ui, sans-serif;
  letter-spacing: 0.08em;
  color: rgba(31, 29, 26, 0.6);
  white-space: nowrap;
}
.g3d-collection-desc {
  max-width: 1920px;
  margin: -6px auto 16px;
  padding: 0 20px;
  font: 400 15px/1.6 "Raleway", system-ui, sans-serif;
  color: rgba(31, 29, 26, 0.75);
}
/* Rows: thumb | title + place | price | arrow, ruled with hairlines. */
.g3d-list { --reveal-ease: cubic-bezier(0.16, 1, 0.3, 1); }
.g3d-rows { list-style: none; max-width: 1920px; margin: 0 auto; padding: 0 20px; }
.g3d-row {
  position: relative;
  display: grid;
  grid-template-columns: 368px minmax(0, 1fr) auto auto;
  align-items: center;
  column-gap: 32px;
  padding: 18px 16px 18px 0;
  color: #1f1d1a;
  text-decoration: none;
  transition: background-color 0.3s ease;
}
.g3d-row::before,
.g3d-rows > li:last-child .g3d-row::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(31, 29, 26, 0.16);
  transform-origin: 0 50%;
}
.g3d-row::before { top: 0; }
.g3d-row::after { bottom: 0; }
.g3d-row:hover, .g3d-row:focus-visible { background: rgba(31, 29, 26, 0.04); color: #1f1d1a; }
.g3d-row-thumb {
  display: block;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: rgba(31, 29, 26, 0.06);
}
.g3d-row-thumb img { display: block; width: 100%; height: 100%; object-fit: contain; }
.g3d-row-text { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.g3d-row-title { font: 500 24px/1.2 var(--g3d-serif); }
.g3d-row-meta {
  font: 500 11px/1.4 ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(31, 29, 26, 0.6);
}
.g3d-row-price { font: 500 15px/1 "Raleway", system-ui, sans-serif; white-space: nowrap; }
.g3d-row-go { font-size: 20px; line-height: 1; }
.g3d-row-go > span { display: inline-block; transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1); }
.g3d-row:hover .g3d-row-go > span, .g3d-row:focus-visible .g3d-row-go > span { transform: translateX(3px); }
@media (max-width: 1100px) { .g3d-row { grid-template-columns: 280px minmax(0, 1fr) auto auto; column-gap: 24px; } }
@media (max-width: 700px) {
  .g3d-row { grid-template-columns: 184px minmax(0, 1fr) auto; column-gap: 14px; padding: 14px 4px 14px 0; }
  .g3d-row-go { display: none; }
  .g3d-row-title { font-size: 18px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .g3d-row-text { gap: 6px; }
  .g3d-row-price { font-size: 13px; }
}
@media (max-width: 420px) { .g3d-row { grid-template-columns: 120px minmax(0, 1fr) auto; } }
@media (min-width: 1440px) { .g3d-collection-head, .g3d-collection-desc, .g3d-rows { padding-left: 30px; padding-right: 30px; } }

/* Staged reveal (only once the inline script has added .g3d-reveal-on): the
   rule draws left to right, the image wipes up out of a slight zoom, then the
   text rises. --reveal-delay staggers rows within each batch. */
.g3d-reveal-on [data-reveal] { --reveal-delay: 0s; }
.g3d-reveal-on li[data-reveal] .g3d-row::before,
.g3d-reveal-on li[data-reveal]:last-child .g3d-row::after {
  transform: scaleX(0);
  transition: transform 0.9s var(--reveal-ease) var(--reveal-delay);
}
.g3d-reveal-on li[data-reveal] .g3d-row-thumb { opacity: 0; transition: opacity 0.5s ease var(--reveal-delay); }
.g3d-reveal-on li[data-reveal] .g3d-row-thumb img {
  clip-path: inset(100% 0 0);
  transform: scale(1.14);
  transition: clip-path 0.85s var(--reveal-ease) calc(var(--reveal-delay) + 90ms),
              transform 1.1s var(--reveal-ease) calc(var(--reveal-delay) + 90ms);
}
.g3d-reveal-on li[data-reveal] :is(.g3d-row-text, .g3d-row-price, .g3d-row-go) {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.6s ease calc(var(--reveal-delay) + 0.16s),
              transform 0.8s var(--reveal-ease) calc(var(--reveal-delay) + 0.16s);
}
.g3d-reveal-on :is(header, p)[data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s ease var(--reveal-delay), transform 0.8s var(--reveal-ease) var(--reveal-delay);
}
.g3d-reveal-on li[data-shown] .g3d-row::before,
.g3d-reveal-on li[data-shown]:last-child .g3d-row::after { transform: scaleX(1); }
.g3d-reveal-on li[data-shown] .g3d-row-thumb { opacity: 1; }
.g3d-reveal-on li[data-shown] .g3d-row-thumb img[data-loaded] { clip-path: inset(0); transform: none; }
.g3d-reveal-on li[data-shown] :is(.g3d-row-text, .g3d-row-price, .g3d-row-go),
.g3d-reveal-on :is(header, p)[data-shown] { opacity: 1; transform: none; }

/* WebGL list layer (list-gl.js): a canvas over the list redraws the images
   and text — the wavy load-in and the jello scroll. It covers the viewport
   plus a margin, inside the list's box, and is re-centred every frame. Each
   DOM element it replaces fades out (opacity, so screen readers still get
   it) once the canvas can draw it; the rules, tint and arrow stay DOM. */
.g3d-list.g3d-gl-on { position: relative; }
.g3d-gl-wrap { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 3; }
.g3d-gl-canvas { position: absolute; top: 0; left: 0; display: block; will-change: transform; }
/* Site dark mode inverts the page; undo it on the canvas so photos keep their
   colours (list-gl.js draws text in its dark-mode colour). */
html.dark-mode .g3d-gl-canvas { filter: invert(1) hue-rotate(180deg); }
/* Text the canvas draws holds still in the DOM so it can be measured. */
.g3d-gl-on li[data-reveal] .g3d-row-text,
.g3d-gl-on header[data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
.g3d-gl-on li[data-reveal] .g3d-row-price { transform: none !important; transition: none !important; }
.g3d-gl-on li[data-reveal] [data-gl][data-gl-ready],
.g3d-gl-on header[data-reveal] [data-gl][data-gl-ready] { opacity: 0 !important; }

/* Print sheet (print_sheet.js): a print opens over the dimmed list or
   hallway, its photo flying from the row (or the wall) to the sheet. */
html.ps-sheet-open { overflow: hidden; }
html.ps-sheet-open .ps-cart-panel { z-index: 10060; } /* the drawer opens over the sheet */
.ps-sheet { position: fixed; inset: 0; z-index: 10040; }
.ps-sheet[hidden] { display: none; }
.ps-sheet-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(14, 13, 12, 0.62);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  opacity: 0;
  transition: opacity 0.42s ease;
}
/* Site dark mode inverts everything, this veil included: keep it dark. */
html.dark-mode .ps-sheet-backdrop { background: rgba(244, 243, 241, 0.6); }
.ps-sheet-panel {
  position: absolute;
  top: max(14px, 3vh);
  bottom: 0;
  left: 0;
  right: 0;
  width: min(1480px, calc(100% - 32px));
  margin: 0 auto;
  background: #fff;
  border-radius: 14px 14px 0 0;
  overflow: hidden;
  box-shadow: 0 -12px 60px rgba(0, 0, 0, 0.22);
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.42s ease, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.ps-sheet.is-open .ps-sheet-backdrop,
.ps-sheet.is-open .ps-sheet-panel { opacity: 1; }
.ps-sheet.is-open .ps-sheet-panel { transform: none; }
.ps-sheet.is-closing .ps-sheet-panel { transition-duration: 0.32s, 0.38s; transition-timing-function: ease, cubic-bezier(0.5, 0, 0.75, 0); }
.ps-sheet.is-closing .ps-sheet-backdrop { transition-duration: 0.38s; }
/* Indeterminate bar along the top edge until the print's page is in. */
.ps-sheet-panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 2px;
  width: 30%;
  background: #1a1a1a;
  opacity: 0.55;
  animation: ps-sheet-load 1.1s cubic-bezier(0.45, 0, 0.55, 1) infinite;
}
.ps-sheet.is-ready .ps-sheet-panel::before { display: none; }
@keyframes ps-sheet-load { from { transform: translateX(-100%); } to { transform: translateX(340%); } }
.ps-sheet-frame {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #fff;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.ps-sheet-frame.is-shown { opacity: 1; }
.ps-sheet-close {
  position: absolute;
  top: 12px;
  right: 14px;
  z-index: 2;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(26, 26, 26, 0.14);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: #1a1a1a;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}
.ps-sheet-close:hover { background: #fff; transform: rotate(90deg); }
.ps-sheet-close:focus-visible { outline: 2px solid #1a1a1a; outline-offset: 2px; }
.ps-sheet-close svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.ps-sheet-flyer { position: absolute; z-index: 3; overflow: hidden; pointer-events: none; }
.ps-sheet-flyer img { display: block; width: 100%; height: 100%; object-fit: cover; }
/* The row's photo is in flight; don't show it twice. */
#print-list li[data-flying] .g3d-row-thumb img { visibility: hidden; }
@media (max-width: 700px) {
  .ps-sheet-panel { top: 8px; width: 100%; border-radius: 12px 12px 0 0; }
  .ps-sheet-close { top: 8px; right: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  .g3d-canvas, .g3d-daynight svg, .g3d-caption.is-in .g3d-caption-title { transition: none; animation: none; }
  .ps-sheet-backdrop, .ps-sheet-panel, .ps-sheet-frame, .ps-sheet-close { transition: none; }
  .ps-sheet-panel { transform: none; }
}
