/* Three warm photograph slots; the remaining album stays out of the paint tree. */
.memory-carousel{position:relative;isolation:isolate;width:100%;min-width:0;max-width:560px;justify-self:center;align-self:center;margin-block:15px}
.memory-carousel-deck{position:relative;width:100%;aspect-ratio:1.2;isolation:isolate;overflow:clip;overflow-clip-margin:22px;touch-action:pan-y;cursor:grab;user-select:none;-webkit-user-select:none}
.memory-carousel-deck:focus-visible{outline:2px solid #d1af75;outline-offset:13px;border-radius:3px}
.memory-carousel-thread{position:absolute;left:15%;right:1%;top:-13px;height:48px;border-top:1px solid #b99c663b;border-radius:50%;transform:rotate(5deg);z-index:5;pointer-events:none}
.memory-carousel-thread:before,.memory-carousel-thread:after{content:'✧';position:absolute;top:-8px;color:#eac58a;font-size:25px;line-height:1}
.memory-carousel-thread:before{left:3%}.memory-carousel-thread:after{right:12%;font-size:16px;top:10px}
.memory-carousel-card{position:absolute;left:0;top:0;width:75%;aspect-ratio:1.4;margin:0;padding:0;background:#faf2df;box-shadow:0 10px 28px #100c082e;transform-origin:0 0;opacity:0;pointer-events:none;transition:transform 300ms cubic-bezier(.22,.68,.3,1),opacity 300ms ease;transform:translate(0,12%) rotate(-6deg) scale(.88)}
.memory-carousel-card[hidden]{display:none!important}
.memory-carousel-card img{position:absolute;left:8px;top:8px;width:calc(100% - 16px);height:calc(100% - 29px);display:block;object-fit:cover;object-position:var(--memory-focus,50% 40%);pointer-events:none}
.memory-carousel-card.is-memory-front{z-index:3;opacity:1;transform:translate(10%,50%) rotate(-2deg)}
.memory-carousel-card.is-memory-right{z-index:2;opacity:1;transform:translate(51%,15%) rotate(7deg) scale(.82)}
.memory-carousel-card.is-memory-third{z-index:1;opacity:1;transform:translate(0,12%) rotate(-6deg) scale(.88)}
.memory-carousel-card.is-memory-leaving{z-index:4;animation:memory-photo-leave 300ms cubic-bezier(.22,.68,.3,1) forwards}
.memory-carousel-card.is-memory-arriving{z-index:1;animation:memory-photo-arrive 300ms ease-out both}
.memory-carousel-card.is-memory-entering{z-index:4;animation:memory-photo-return 300ms cubic-bezier(.22,.68,.3,1) both}
.memory-carousel.is-changing .memory-carousel-card:not([hidden]){will-change:transform,opacity}
.memory-carousel-deck.is-dragging{cursor:grabbing}
.memory-carousel-deck.is-dragging .is-memory-front{transition:none;transform:translate(calc(10% + var(--memory-drag,0px)),50%) rotate(calc(-2deg + var(--memory-roll,0deg)))}
.memory-carousel-footer{position:relative;z-index:5;display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:13px 15px;margin:17px 0 0;padding-top:16px;border-top:1px solid #c7a6742b}
.memory-carousel-note{font-size:.75rem;line-height:1.7;color:#bba98c;margin:0;max-width:275px}
.memory-carousel-controls{display:flex;align-items:center;justify-content:space-between;gap:11px;flex-shrink:0;color:#dfc69c}
.memory-carousel-controls button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:42px;padding:7px 2px;background:none;border:0;border-bottom:1px solid #b99c665c;border-radius:0;color:inherit;font-size:.8125rem;line-height:1.5;cursor:pointer;transition:color 150ms,border-color 150ms}
.memory-carousel-controls button:focus-visible{outline:2px solid #d1af75;outline-offset:4px}
.memory-carousel-controls button svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}
.memory-carousel-counter{min-width:42px;white-space:nowrap;text-align:center;color:#bba98c;font-size:.75rem;line-height:1.6;font-variant-numeric:tabular-nums}
.memory-carousel-status{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@keyframes memory-photo-leave{from{transform:translate(10%,50%) rotate(-2deg);opacity:1}to{transform:translate(-42%,47%) rotate(-10deg) scale(.96);opacity:0}}
@keyframes memory-photo-arrive{from{transform:translate(5%,4%) rotate(-8deg) scale(.86);opacity:0}to{transform:translate(0,12%) rotate(-6deg) scale(.88);opacity:1}}
@keyframes memory-photo-return{from{transform:translate(-42%,47%) rotate(-10deg) scale(.96);opacity:0}to{transform:translate(10%,50%) rotate(-2deg);opacity:1}}
@media(hover:hover){.memory-carousel-controls button:hover{color:#fff3d9;border-color:#dfc69c}}
@media(max-width:1050px){.memory-carousel-footer{gap:10px 12px}.memory-carousel-note{max-width:260px}.memory-carousel-controls{gap:10px}.memory-carousel-controls button{font-size:.8125rem}}
@media(max-width:760px){.memory-carousel{width:min(480px,94%);margin-block:18px 4px}.memory-carousel-footer{margin-top:18px;gap:12px 20px}.memory-carousel-note{max-width:none}.memory-carousel-controls{margin-left:auto}.memory-carousel-card{box-shadow:0 8px 22px #100c0828}}
@media(max-width:440px){.memory-carousel{width:100%;margin-top:16px}.memory-carousel-deck{aspect-ratio:1.2}.memory-carousel-card img{left:6px;top:6px;width:calc(100% - 12px);height:calc(100% - 24px)}.memory-carousel-footer{display:block;margin-top:14px;padding-top:12px}.memory-carousel-note{font-size:.75rem;line-height:1.7}.memory-carousel-controls{margin-top:10px;width:100%;gap:14px}.memory-carousel-controls button{font-size:.875rem;gap:9px}.memory-carousel-thread{top:-11px}.memory-carousel-deck:focus-visible{outline-offset:9px}}
@media(prefers-reduced-motion:reduce){.memory-carousel-card{transition:none!important;animation:none!important}.memory-carousel-controls button{transition:none!important}.memory-carousel.is-changing .memory-carousel-card:not([hidden]){will-change:auto}}
