/* A continuous rope carries each print by its actual rotation point. */
.memory-section{background:linear-gradient(180deg,#fff8ec 0%,#f5e6cf 48%,#f9edda 100%);padding:68px 0 43px;border-bottom:1px solid var(--line);overflow:clip}
.memory-heading{display:flex;justify-content:space-between;align-items:flex-end;gap:40px;margin-bottom:30px}
.memory-heading .eyebrow{margin-bottom:15px;color:#9c6d3d}
.memory-heading>p{font-size:13px;line-height:1.85;color:#8a715d;max-width:340px;padding-bottom:5px}
.memory-toolbar{display:flex;justify-content:space-between;align-items:center;gap:20px;position:relative;z-index:2}
.motion-status{display:inline-flex;align-items:center;gap:9px;color:#96744f;font-size:11px;min-width:215px}
.motion-status .dot{background:#c69a58}
.memory-controls{display:flex;align-items:center;gap:16px}
.memory-mode{display:flex;padding:4px;border:1px solid #dfc7a3;border-radius:30px;background:#fff8ed80}
.memory-mode button{padding:7px 16px;border:0;border-radius:30px;background:none;font-size:11px;color:#9c8060;transition:background .2s,color .2s}
.memory-mode button[aria-pressed=true]{background:#fffdf7;color:#6e4326;box-shadow:0 2px 6px #65401b0b}
.motion-toggle{border:0;padding:9px 0 9px 3px;background:none;display:flex;align-items:center;gap:6px;color:#85603d;font-size:10px;min-width:72px}
.motion-toggle svg{width:18px;height:18px;stroke-width:1.5}
.motion-toggle .play-shape{display:none}
.motion-toggle[aria-pressed=false] .pause-shape{display:none}
.motion-toggle[aria-pressed=false] .play-shape{display:block}
.memory-arrows{display:flex;align-items:center;gap:8px}
.memory-arrows button{display:grid;place-items:center;width:38px;height:38px;border:1px solid #d3b58e;border-radius:50%;color:#8d623c;background:#fff9ef80;padding:0;transition:background .2s}
.memory-arrows button:hover{background:#fffaf2}
.memory-arrows button:disabled{cursor:default;opacity:.45}
.memory-arrows svg{width:18px;height:18px}
.memory-theatre{position:relative;height:532px;margin-top:18px;isolation:isolate;overflow:clip;mask-image:linear-gradient(90deg,transparent,#000 20px,#000 calc(100% - 20px),transparent)}
.memory-theatre:focus-visible{outline:2px solid #b78c55;outline-offset:-3px}
.garland-wire{position:absolute;inset:0;width:100%;height:100%;color:#b49a77;stroke-width:1.5;z-index:0;pointer-events:none}
.garland-wire path{vector-effect:non-scaling-stroke}
.memory-cards{position:relative;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:60px;width:min(1180px,calc(100% - 100px));height:100%;margin:0 auto;padding-top:55px;align-items:start}
.hanging-memory{--reveal:0;position:relative;margin:0;transform:rotate(var(--tilt));transform-origin:50% -6px;min-width:0}
.memory-theatre.is-carousel .memory-cards{display:block;padding:0}
.memory-theatre.is-carousel .hanging-memory{position:absolute;margin:0;will-change:transform;transition:none}
.memory-paper{padding:11px 11px 0;background:#fffcf4;box-shadow:2px 5px 6px #61401e12,5px 18px 28px #6a441c15;border:1px solid #e9dac4}
.memory-image{position:relative;aspect-ratio:3/4;overflow:hidden;isolation:isolate;background:#eedec4}
.memory-image img{display:block;position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.memory-image .memory-art{object-fit:contain;clip-path:inset(0 calc(100% - var(--reveal)*100%) 0 0);z-index:1}
.memory-wipe{position:absolute;top:0;bottom:0;left:calc(var(--reveal)*100% - 10px);width:20px;background:linear-gradient(90deg,transparent,#fff3cdcc,transparent);filter:blur(4px);opacity:0;z-index:2;pointer-events:none}
.is-revealing .memory-wipe{opacity:.85}
.memory-peg{position:absolute;top:-18px;left:calc(50% - 7px);height:36px;width:14px;transform:rotate(-3deg);z-index:3;background:linear-gradient(90deg,#b7935e,#e3c795 40%,#c6a36b 72%,#b08951);border:1px solid #b38d54;border-radius:2px;box-shadow:2px 3px 3px #5b3e261f}
.memory-peg:after{content:'';position:absolute;left:1px;right:1px;top:19px;border-top:1px solid #9d783e}
.memory-paper figcaption{padding:13px 3px 15px;display:flex;align-items:baseline;justify-content:space-between;gap:6px;line-height:1.2}
.memory-caption-title{font-family:var(--serif);font-size:15px;color:#88623e;font-style:italic;min-width:0}
.memory-caption-year{font-size:9px;letter-spacing:1px;color:#b1916e;flex-shrink:0}
.memory-bottom{display:flex;align-items:center;justify-content:space-between;gap:25px;position:relative;margin-top:5px}
.memory-bottom>p{font-family:var(--serif);font-style:italic;font-size:22px;line-height:1.4;color:#9c7b55}
.memory-bottom>p>span{color:#b49a7c}
.memory-bottom .text-link{font-size:11px}
.memory-announcement{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
@media(max-width:1150px){.memory-cards{gap:44px}.memory-caption-title{font-size:14px}.memory-paper figcaption{flex-direction:column;gap:6px;padding-block:11px}}
@media(max-width:900px){.memory-section{padding-top:54px}.memory-cards{grid-template-columns:repeat(3,minmax(0,1fr));gap:28px}.memory-paper{padding:8px 8px 0}.memory-heading>p{font-size:11px}.memory-bottom>p{font-size:20px}.memory-controls{gap:10px}}
@media(max-width:680px){
 .memory-section{padding:43px 0 31px}.memory-heading{display:block;margin-bottom:24px}.memory-heading .eyebrow{font-size:8px;letter-spacing:1.2px;margin-bottom:12px}.memory-heading h2{font-size:34px}.memory-heading>p{font-size:12px;line-height:1.8;padding-top:19px}
 .memory-toolbar{flex-wrap:wrap;gap:13px}.motion-status{font-size:10px;min-width:0;flex-basis:100%}.memory-controls{width:100%;justify-content:space-between;gap:8px;flex-wrap:wrap}.memory-mode{margin-right:auto}.memory-mode button{font-size:10px;padding:7px 10px}.motion-toggle{font-size:10px;min-width:60px;justify-content:flex-end}.memory-arrows{gap:6px;margin-left:auto}.memory-arrows button{width:32px;height:32px}.memory-arrows svg{width:16px;height:16px}
 .memory-theatre{margin-top:15px;mask-image:linear-gradient(90deg,transparent,#000 8px,#000 calc(100% - 8px),transparent)}.memory-cards{width:calc(100% - 36px);gap:14px}
 .memory-paper{padding:5px 5px 0}.memory-peg{width:9px;height:25px;top:-13px;left:calc(50% - 4.5px)}.memory-peg:after{top:13px}
 .memory-paper figcaption{padding:8px 0 10px;flex-direction:column;gap:4px}.memory-caption-title{font-size:clamp(10px,2.6vw,14px);overflow-wrap:anywhere}.memory-caption-year{font-size:7px}
 .memory-bottom{align-items:flex-start;gap:21px;flex-direction:column}.memory-bottom>p{font-size:22px}.memory-bottom .text-link{font-size:10px;gap:22px}
}
@media(prefers-reduced-motion:reduce){.memory-wipe{display:none}.memory-mode button,.memory-arrows button{transition:none}}

/* The gallery illustrates the style; every gift starts with the visitor's photo. */
.year-field{margin-top:15px;max-width:205px}
.upload-zone{min-height:154px;background:#fffaf1}
.upload-zone>svg{width:27px;height:27px;margin-bottom:7px}
.upload-zone>span{font-size:12px}
.preview-empty{position:absolute;inset:22px 0;display:flex;align-items:center;justify-content:center;flex-direction:column;text-align:center;z-index:3;padding:25px 15px;border:1px dashed #ddc7a5;border-radius:7px;background:#fff9ed80}
.preview-empty>svg{width:61px;height:61px;color:#c6a475;stroke-width:1;margin-bottom:22px}
.preview-empty>strong{font-family:var(--serif);font-size:25px;font-weight:400;color:#96734e;line-height:1.3}
.preview-empty>p{font-size:11px;color:#ad9477;line-height:1.8;margin-top:13px}
.preview-empty>.text-link{border:0;border-bottom:1px solid #c7a276;background:none;border-radius:0;padding:0 0 4px;margin-top:24px;gap:12px;font-size:11px;color:#8d5c33}
.preview-stage.is-empty .art-object,.preview-stage.is-empty .key-ring,.preview-stage.is-empty .stage-annotation{display:none!important}
.preview-actions button:disabled{cursor:not-allowed;opacity:.36;transform:none;box-shadow:none}
@media(max-width:900px){.preview-empty>strong{font-size:22px}.preview-empty>p{font-size:10px}}
@media(max-width:680px){.upload-zone{min-height:140px}.year-field{max-width:none}.preview-empty{inset:13px 0}.preview-empty>strong{font-size:24px}.preview-empty>p{font-size:11px}}

.memory-section .memory-bottom{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:16px}
.memory-bottom .text-link{justify-self:end}
.memory-bottom .memory-arrows{margin:0;gap:12px}
.memory-bottom .memory-arrows button{width:46px;height:46px;background:#815132;border-color:#75482d;color:#fff8ed;box-shadow:0 2px 6px #683d2424}
.memory-bottom .memory-arrows button:hover{background:#633d27}
.memory-bottom .memory-arrows svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
@media(max-width:680px){.memory-section .memory-bottom{grid-template-columns:1fr 1fr}.memory-bottom .memory-arrows{grid-column:1/-1;grid-row:1;justify-self:center}.memory-bottom .text-link{grid-column:2}}
