/* Moments (addon/gallery/150) — INV-12B Sakura Morning W1b (A2552; owner 2026-11-02: "exact replica of INV-12 with just the
   colours and flowers replaced", the missing sections in INV-12's look). The last stretch of INV-12's long card (.k-card--bottom,
   as the venue card is in INV-12, so the reply still lies on the linen): the sakura join, a corner spray like dc003, caps kicker,
   script title and foil rule; each photo in vn013's mount (the card's cotton, a gilt edge, a gilt-bevelled window), two a row on a
   phone and three on the wide card, an odd last row centred. The story shows gallery.0, so with five or more photos it is hidden
   here. Still (stage 1): no motion yet (W2). */
.ga160 { color: var(--k-ink); text-align: center; }
.ga160 .ga160__in { position: relative; padding: calc(var(--k-cw) * .14 + var(--k-join-room)) calc(var(--k-cw) * .07) calc(var(--k-cw) * .14); }
.ga160 .ga160__corner { width: 13cqw; right: -2.5cqw; top: 9%; rotate: 8deg; }
.ga160 .ga160__kicker { margin: 0 0 clamp(6px, 2cqw, 12px); }
.ga160 .ga160__title { margin: 0; }
.ga160 .ga160-rule { margin: clamp(6px, 2cqw, 12px) auto clamp(18px, 6cqw, 32px); }

.ga160 .ga160__grid { --ga160-gap: clamp(12px, 3.8cqw, 22px); display: flex; flex-wrap: wrap; justify-content: center; gap: var(--ga160-gap);
  margin: 0; padding: 0; list-style: none; }
.ga160 .ga160-photo { flex: 0 0 calc((100% - var(--ga160-gap)) / 2); }
.ga160 .ga160__grid:has(li:nth-child(5)) > li:first-child { display: none; } /* the story (st150) shows gallery.0 */
.ga160 .ga160-print { display: block; padding: clamp(7px, 2.2cqw, 14px);
  background-color: var(--k-paper); background-image: var(--k-cotton-fine, none, none, none);
  box-shadow: inset 1.5px 0 0 var(--k-gilt-hi), inset -1.5px 0 0 var(--k-gilt-lo), inset 0 1.5px 0 var(--k-gilt-hi), inset 0 -1.5px 0 var(--k-gilt-lo);
  filter: drop-shadow(0 1px 1px rgb(60 32 20 / .2)) drop-shadow(0 6px 9px rgb(60 32 20 / .22)); }
.ga160 .ga160-print:focus-visible { outline: 2px solid var(--k-gold); outline-offset: 3px; }
.ga160 .ga160__win { display: block; position: relative; aspect-ratio: 4 / 5; overflow: hidden; overflow: clip;
  box-shadow: 0 0 0 1px var(--k-gilt-lo), 0 0 0 2.5px var(--k-gilt), 0 0 0 3.5px rgb(233 212 160 / .7); }
.ga160 .ga160__win::after { content: ""; position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 2px 4px rgb(40 20 10 / .38), inset 0 -1px 0 rgb(255 248 236 / .35); }
.ga160 .ga160__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* the wide card (the skin's query: laptops and portrait tablets): dc003's rhythm; three a row */
@media (min-aspect-ratio: 1/1) and (min-width: 1000px), (max-aspect-ratio: 999/1000) and (min-width: 700px) {
  .ga160 > .k-join { top: calc((var(--k-dpad-t) + var(--k-join-room) - var(--k-dpad-b)) / 2); }
  .ga160 .ga160__in { padding: calc(var(--k-dpad-t) + var(--k-join-room)) calc(var(--k-cw) * .07) calc(var(--k-dpad-b) * 1.4); }
  .ga160 .ga160__corner { width: min(13cqw, 110px); }
  .ga160 .ga160-rule { margin-bottom: clamp(26px, 3cqw, 40px); }
  .ga160 .ga160__grid { --ga160-gap: clamp(18px, 2.4cqw, 32px); max-inline-size: 1000px; margin-inline: auto; }
  .ga160 .ga160-photo { flex-basis: calc((100% - 2 * var(--ga160-gap)) / 3); }
  .ga160 .ga160-print { padding: clamp(10px, 1.2cqw, 16px); }
}

/* INV-12B W1d (A2569; owner 2026-11-02: "sprinkle more blossom on the left side, it looks a bit empty"): a mirrored spray on
   the card's left, opposite this section's right-hand corner (the long card had blossom on the right only). */
.ga160 .ga160__corner--l { right: auto; left: -3cqw; top: auto; bottom: 3%; rotate: -24deg; scale: -1 1; }

/* W1e (A2571): the viewer, core/venue/150's (vn005's, forked), so the gallery and the venue open photos the same way */
.ga160__view {
  position: fixed; inset: 0; width: auto; height: auto; max-width: none; max-height: none; margin: 0; padding: 0;
  border: 0; background: rgb(28 6 12 / .9); color: #FCFCFD;
  overflow: hidden; overscroll-behavior: contain; touch-action: pinch-zoom;
}
.ga160__view::backdrop { background: rgb(28 6 12 / .9); }
.ga160__view[open] { animation: ga160-in .22s ease-out; }
@keyframes ga160-in { from { opacity: 0; } }
.ga160__view-in {
  height: 100%; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: minmax(0, 1fr) auto;
  grid-template-areas: "fig fig" "prev next"; align-items: center; gap: 16px;
  padding: calc(76px + env(safe-area-inset-top)) 16px calc(24px + env(safe-area-inset-bottom));
}
.ga160__view-fig {
  grid-area: fig; display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-width: 0; min-height: 0; height: 100%; margin: 0;
}
.ga160__view-img {
  display: block; width: auto; height: auto; max-width: 100%; max-height: min(80vh, calc(100vh - 220px)); max-height: min(80svh, calc(100svh - 220px));
  object-fit: contain; border: 8px solid var(--k-paper, #FCFCFD); user-select: none; -webkit-user-select: none; -webkit-user-drag: none;
  box-shadow: 0 20px 40px -12px rgb(0 0 0 / .5);
}
.ga160__view-cap {
  max-width: 60ch; margin-top: 12px; text-align: center; text-wrap: balance;
  font: 400 clamp(10px, 2.8vw, 13px)/1.6 var(--k-font-caps); letter-spacing: .1em; text-transform: uppercase; color: #FCFCFD;
}
.ga160__view-btn {
  display: grid; place-items: center; width: 48px; height: 48px; padding: 0; border-radius: 0;
  cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.ga160__view-btn[hidden] { display: none; }
.ga160__view-ico { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: square; stroke-linejoin: miter; }
.ga160__view-close {
  position: absolute; z-index: 2; top: calc(16px + env(safe-area-inset-top)); right: calc(16px + env(safe-area-inset-right));
  background: transparent; color: #FCFCFD; border: 1px solid rgb(252 252 253 / .7);
}
.ga160__view-prev, .ga160__view-next { background: transparent; color: #FCFCFD; border: 1px solid rgb(252 252 253 / .5); }
.ga160__view-prev { grid-area: prev; justify-self: end; }
.ga160__view-next { grid-area: next; justify-self: start; }
.ga160__view-close:focus-visible, .ga160__view-prev:focus-visible, .ga160__view-next:focus-visible { outline: 2px solid #E9D3A1; outline-offset: 3px; }
