.edit-gallery .moment-open{display:block;width:100%;height:100%;padding:0;border:0;background:transparent;cursor:zoom-in}.moment-open:focus-visible{outline:3px solid #9b737b;outline-offset:-5px}.gallery-lightbox{width:min(1100px,96vw);max-width:96vw;height:94dvh;max-height:94dvh;padding:0;border:1px solid #d6bfc3;border-radius:4px;background:#faf7f3;color:#49382f;overflow:hidden}.gallery-lightbox::backdrop{background:rgba(33,24,22,.88)}.gallery-viewer{height:100%;display:grid;grid-template-rows:auto minmax(0,1fr) auto}.gallery-toolbar,.gallery-bottom{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 20px}.gallery-toolbar span{font-size:.8rem;letter-spacing:.08em}.gallery-lightbox button{border:1px solid #d6bfc3;background:#faf7f3;color:#49382f;cursor:pointer;font:inherit;border-radius:3px;min-width:44px;min-height:44px}.gallery-lightbox button:focus-visible{outline:3px solid #9b737b;outline-offset:2px}.gallery-close{font-size:1.6rem!important}.gallery-stage{position:relative;min-height:0;display:flex;align-items:center;justify-content:center;margin:0 12px;touch-action:pan-y}.gallery-stage img{display:block;max-width:100%;max-height:100%;width:100%;height:100%;object-fit:contain}.gallery-arrow{position:absolute;top:50%;transform:translateY(-50%);font-size:1.7rem!important;box-shadow:0 2px 12px #0002}.gallery-prev{left:10px}.gallery-next{right:10px}.gallery-bottom p{margin:0;font-size:.8rem;line-height:1.5;max-width:75%}.gallery-play{padding:8px 16px;white-space:nowrap;font-size:.8rem!important}@media(max-width:600px){.gallery-lightbox{width:100vw;max-width:100vw;height:100dvh;max-height:100dvh;border:0;border-radius:0}.gallery-toolbar,.gallery-bottom{padding:12px}.gallery-stage{margin:0}.gallery-bottom p{max-width:65%}.gallery-arrow{background:#faf7f3e8!important}}
.edit-gallery{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.edit-gallery figure.signs,.edit-gallery figure.live,.edit-gallery figure.napkins,.edit-gallery figure.real-event,.edit-gallery figure.new-moment{grid-column:auto;aspect-ratio:4/5}.edit-gallery figure[hidden]{display:none}.gallery-pair-controls{display:flex;justify-content:center;align-items:center;gap:18px;margin-top:24px}.gallery-pair-controls button{border:1px solid var(--mauve);background:var(--paper);color:var(--ink);min-width:44px;min-height:44px;cursor:pointer;font:inherit;padding:7px 14px}.gallery-pair-controls button:focus-visible{outline:3px solid #9b737b;outline-offset:3px}.gallery-pair-count{font-size:.8rem;color:var(--soft)}@media(max-width:600px){.edit-gallery{gap:8px}.gallery-pair-controls{gap:10px}}

.edit-gallery .frame-moment img{object-fit:contain;background:#e8dfd8}