.festival-memories{padding:70px max(24px,6vw);background:#fffaf1;scroll-margin-top:30px}.memories-head{display:flex;align-items:end;justify-content:space-between;gap:24px;margin-bottom:28px}.memories-head h2{font-family:Paperlogy,sans-serif;font-size:clamp(28px,4vw,44px);margin:10px 0}.memories-head p{line-height:1.7}.memories-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}.memory-card{padding:10px 10px 16px;background:#fff;border:1px solid #e6e6dc;border-radius:6px;box-shadow:0 8px 24px #25465b0c;cursor:zoom-in;text-align:left;color:#2d4958}.memory-card img{width:100%;aspect-ratio:4/3;object-fit:cover;display:block;border-radius:3px}.memory-card span{display:block;padding:14px 5px 0;font-size:16px;line-height:1.5;overflow-wrap:anywhere}.memories-empty{padding:35px;border:1px dashed #a6c8d6;border-radius:18px;color:#476779;line-height:1.8}.memories-error{color:#a52f5e}.photo-dialog{padding:0;border:0;border-radius:20px;background:#132b38;color:#fff;width:min(1100px,96vw);max-width:96vw;max-height:94dvh}.photo-dialog::backdrop{background:#0b1828d9}.photo-dialog header{display:flex;justify-content:space-between;align-items:center;padding:16px 20px}.photo-dialog h2{font-size:20px;margin:0}.photo-dialog button{min-width:44px;min-height:44px;border:1px solid #ffffff66;border-radius:50%;background:#25495f;color:#fff;cursor:pointer}.photo-dialog .photo-stage{position:relative;display:flex;align-items:center;justify-content:center;min-height:200px;background:#0b1e2b;touch-action:pan-y pinch-zoom}.photo-stage img{display:block;max-width:100%;width:100%;height:65dvh;object-fit:contain}.photo-stage button{position:absolute;top:calc(50% - 22px);font-size:28px}.photo-stage button:first-of-type{left:12px}.photo-stage button:last-of-type{right:12px}.photo-view-caption{display:flex;justify-content:space-between;gap:18px;padding:16px 22px;line-height:1.6;font-size:16px}.photo-view-caption p{margin:0;overflow-wrap:anywhere}.photo-view-caption span{white-space:nowrap}.photo-view-hint{font-size:14px;color:#c6d9e7;text-align:center;margin:0 15px 18px}.admin-photos{border:1px solid #cddfea;border-radius:18px;padding:22px;margin:30px 0;background:#f4fbff}.admin-photos summary{font-size:22px;font-weight:bold;cursor:pointer;min-height:44px}.admin-photos p{line-height:1.8}.admin-photos label{display:block;margin:18px 0 8px}.admin-photos input[type=file]{background:white;padding:14px;max-width:100%;box-sizing:border-box}.admin-photo-preview,.admin-photo-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:18px 0}.admin-photo-tile{border:1px solid #cadce6;border-radius:12px;padding:10px;min-width:0;background:white}.admin-photo-tile img{width:100%;aspect-ratio:4/3;object-fit:cover;display:block;border-radius:7px}.admin-photo-tile p{font-size:16px;overflow-wrap:anywhere}.admin-photo-tile button{min-height:44px}.admin-photo-tile .photo-ok{color:#286044}.admin-photo-tile .photo-failed{color:#a31f51}.admin-photo-controls{display:flex;align-items:center;flex-wrap:wrap;gap:14px}.admin-photo-controls a{color:#2a627b;text-decoration:underline}.admin-photo-tile.is-hidden{opacity:.8}.admin-photo-tile small{font-size:14px}.photo-publish-status{font-weight:bold;color:#315b75;line-height:1.8}@media(max-width:700px){.festival-memories{padding:40px 20px}.memories-head{display:block}.memories-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}.memory-card{padding:7px 7px 12px}.memory-card span{padding:9px 2px 0;font-size:14px}.photo-dialog{width:96vw;border-radius:14px}.photo-stage img{height:61dvh}.photo-dialog header{padding:12px}.photo-dialog h2{font-size:18px}.photo-view-caption{padding:13px;font-size:15px}.admin-photo-preview,.admin-photo-list{grid-template-columns:repeat(2,minmax(0,1fr))}.admin-photos{padding:16px}.admin-photos summary{font-size:20px}}@media(max-width:380px){.admin-photo-preview,.admin-photo-list{grid-template-columns:1fr}}

.photo-download-actions{display:flex;justify-content:center;padding:0 16px 16px}.photo-download{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:0 24px;border-radius:24px;background:#fff;color:#23475a;font-size:16px;font-weight:700;text-decoration:none}.photo-download:hover{background:#f6cce1}.photo-download:focus-visible{outline:3px solid #f2a6d0;outline-offset:4px}
