.memories{background:#eee5f3;color:#25202a;padding:80px 24px;border-block:2px solid #25202a;scroll-margin-top:90px}.memories-inner{max-width:1160px;margin:auto;text-align:center}.memories-date{font-size:12px;font-weight:900;letter-spacing:.13em}.memories h2{font-family:inherit;font-size:clamp(32px,5vw,62px);font-weight:900;line-height:1.06;margin:22px 0}.memories h2 span{color:#6c497c}.memories-intro{max-width:610px;margin:0 auto 18px;line-height:1.65;font-size:17px}.memories-note{font-size:13px;margin:0 0 30px}.memories-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}.memory-card{min-width:0;background:#fffdf8;padding:10px 10px 14px;border:1.5px solid #25202a;border-radius:5px;box-shadow:4px 5px 0 #bda9c7}.memory-card[hidden]{display:none}.memory-card:nth-child(3n+1){transform:rotate(-1deg)}.memory-card:nth-child(3n){transform:rotate(1deg)}.memory-open{display:block;text-decoration:none;color:inherit}.memory-open img{display:block;width:100%;height:auto;aspect-ratio:3/4;border-radius:2px}.memory-open span{display:flex;justify-content:space-between;align-items:center;padding:13px 3px 8px;font-size:14px}.memory-save{display:inline-block;font-size:13px;color:#513260;text-underline-offset:4px;padding:8px;min-height:44px}.memory-button,.memory-viewer button,.memory-viewer a{font:inherit;cursor:pointer}.memory-button{border:2px solid #25202a;border-radius:30px;background:#d5e2b7;color:#25202a;padding:15px 24px;font-weight:800;margin-top:35px}.memories-signoff{font-size:14px;line-height:1.7;margin:24px auto 0}.memories-signoff a{color:inherit}.memories a:focus-visible,.memories button:focus-visible,.memory-viewer :focus-visible{outline:3px solid #806094;outline-offset:4px}
dialog.memory-viewer{position:fixed;inset:0;margin:auto;width:calc(100% - 24px);max-width:1250px;height:calc(100dvh - 24px);max-height:100dvh;padding:14px;border:2px solid #25202a;border-radius:18px;background:#fffaf4;box-shadow:none;color:#25202a;overflow:hidden}dialog.memory-viewer[open]{display:flex;flex-direction:column;gap:10px}.memory-viewer::backdrop{background:#19121bed;backdrop-filter:blur(5px)}.memory-toolbar,.memory-bottom{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-shrink:0}.memory-viewer h2{font-size:16px;margin:0;line-height:1.2}.memory-viewer button,.memory-viewer a{color:#25202a;background:#eee5f3;border:1px solid #25202a;border-radius:24px;min-height:44px;padding:10px 16px;text-decoration:none;font-size:14px;font-weight:800}.memory-stage{flex:1;min-height:0;overflow:auto;display:flex;align-items:center;justify-content:center;background:#e9e4df;border-radius:10px;touch-action:pan-y pinch-zoom}.memory-stage img{display:block;max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain}.memory-stage.is-zoomed{display:block}.memory-stage.is-zoomed img{max-width:none;max-height:none;width:150%;height:auto;margin:auto}.memory-viewer p.memory-counter{font-size:13px;margin:0;text-align:center}.memory-bottom{flex-wrap:wrap;justify-content:center}.memory-bottom .memory-download{background:#d5e2b7}.memory-load{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);padding:10px 18px;background:#fffaf4;border-radius:20px;font-size:14px}.memory-load[hidden]{display:none}@media(max-width:600px){.memories{padding:50px 16px}.memories-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 12px}.memory-card{padding:6px 6px 9px}.memory-open span{font-size:11px;gap:4px}.memory-save{font-size:12px}.memory-viewer button,.memory-viewer a{padding:9px 12px;font-size:12px}.memory-viewer h2{font-size:13px}.memory-toolbar{flex-wrap:wrap}.memory-toolbar h2{flex:1}.memory-bottom{gap:6px}}@media(prefers-reduced-motion:reduce){.memories .memory-card{transform:none}}
@media(max-width:600px){.memory-bottom{display:grid;grid-template-columns:44px minmax(0,1fr) 44px;width:100%}.memory-prev{grid-column:1;grid-row:1}.memory-zoom{grid-column:2;grid-row:1}.memory-next{grid-column:3;grid-row:1}.memory-bottom .memory-download{grid-column:1/-1;text-align:center}.memory-viewer h2{letter-spacing:normal}}
