.photo-dialog{border:1px solid #dca64c;padding:22px 22px 18px;border-radius:10px;background:#fff5df;color:#85163e;width:min(90vw,1000px);max-height:95dvh;overflow:auto;box-shadow:0 20px 90px #16080c77}.photo-dialog::backdrop{background:#18080ce8;backdrop-filter:blur(6px)}.photo-dialog figure{margin:0}.photo-dialog figure>img{display:block;max-height:73dvh;max-width:100%;width:auto;height:auto;margin:auto;object-fit:contain;border-radius:3px}.photo-dialog figcaption{text-align:center;font-family:var(--serif);font-size:23px;line-height:1.3;margin:15px 30px 8px}.photo-dialog-close{position:sticky;top:0;float:right;margin:-10px -9px 10px 10px;background:#85163e;color:#fff5df;border:1px solid #eab745;border-radius:50%;width:44px;height:44px;font-size:28px;line-height:1;z-index:2}.photo-dialog-controls{display:flex;align-items:center;justify-content:center;gap:24px}.photo-dialog-controls>button{width:48px;height:44px;border-radius:4px;background:#0d666b;color:#fff5df;border:1px solid #0d666b;font-size:20px}.photo-dialog-controls>span{font-size:12px;letter-spacing:.06em;min-width:50px;text-align:center}.memory-photo-button{display:block;width:100%;border:0;padding:0;cursor:zoom-in}.memory-photo-button:focus-visible{outline:4px solid #efad32;outline-offset:5px}.gallery-hint{font-size:11px;letter-spacing:.04em;text-align:center;margin-top:25px;color:inherit}.memory-card{margin:0}.memory-caption{display:flex;align-items:center;gap:12px}.memory-caption>span:first-child{font-family:var(--serif);font-style:italic;opacity:.7}.memory-photo-button img{transition:transform .4s}.memory-photo-button:hover img{transform:scale(1.025)}@media(max-width:540px){.photo-dialog{width:calc(100% - 22px);padding:17px 14px 15px;max-height:94dvh}.photo-dialog figure>img{max-height:65dvh}.photo-dialog figcaption{font-size:20px}.photo-dialog-close{margin:-5px -3px 8px 8px}.gallery-hint{font-size:12px}}@media(prefers-reduced-motion:reduce){.memory-photo-button img{transition:none}}
