/* Shared albums: the same cream paper, ink, red stamp and loose photographs. */
#albumNav{position:absolute;left:7cqw;bottom:2.4cqw;display:flex;flex-direction:column;gap:.4cqw;transform:rotate(-2deg)}
#albumNav button{border:0;background:#e9e2d0;padding:.4cqw 1cqw;font-size:.9cqw;box-shadow:0 .2cqw .5cqw #0008;text-align:left}
#albumNav button:first-child{background:#a7372c;color:#fff5e4}
#gallery button{padding:0;border:0;background:none;transition:transform .28s cubic-bezier(.2,1.5,.5,1)}
#gallery button:hover{transform:translateY(-.5cqw) rotate(2deg)}
#gallery button:focus-visible{outline:2px solid #f9d47d;outline-offset:4px}
#albumRoom{color-scheme:light;position:fixed;inset:0;margin:auto;width:min(1120px,calc(100vw - 48px));max-width:none;height:min(860px,calc(100dvh - 48px));max-height:none;border:0;padding:0;background:#f4efe4;color:#2a2520;box-shadow:0 24px 100px #0009;overflow:auto;font:14px/1.6 'Noto Sans SC','PingFang SC',sans-serif}
#albumRoom[open]{animation:album-arrive .4s cubic-bezier(.2,1.15,.35,1)}
#albumRoom::backdrop{background:#17100cc9;backdrop-filter:blur(8px)}
#albumRoom button:focus-visible,#albumRoom input:focus-visible,#albumRoom textarea:focus-visible{outline:2px solid #9c392d;outline-offset:4px}
.album-top{display:flex;justify-content:space-between;align-items:center;gap:24px;padding:28px 32px 20px;border-bottom:1px solid #2a252033;background:linear-gradient(100deg,#eee5d3,#f7f3e9)}
.album-top small{font:12px 'Barlow Condensed',sans-serif;letter-spacing:.2em;color:#86745a}
.album-top h2{margin:4px 0 0;font:600 28px/1.3 'Noto Serif SC','Songti SC',serif;letter-spacing:.08em}
.album-button{border:1px solid #9b8a6f;background:transparent;padding:8px 16px;min-height:44px;color:inherit;font:inherit;transition:transform .26s cubic-bezier(.2,1.5,.5,1),background .2s}
.album-button:hover{background:#e5dcc8;transform:translateY(-2px)}
.album-button.primary{background:#a7372c;color:#fff4df;border-color:#a7372c;box-shadow:2px 3px 0 #482b2322}
.album-button.primary:hover{background:#8f2d24}
.album-tabs{display:flex;gap:8px;flex-wrap:wrap;padding:20px 32px 0}
.album-tabs button{border:0;border-bottom:2px solid transparent;background:transparent;padding:8px 16px;min-height:44px;color:#756652}
.album-tabs button.active{color:#9d3429;border-bottom-color:#9d3429;background:#eadfc9}
#albumNotice{padding:16px 32px 0;min-height:40px;margin:0;color:#756652;font-size:13px;white-space:pre-wrap}
#albumNotice.error{color:#a02f25}
#albumContent{padding:24px 32px 40px}
.album-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:32px 24px;padding:8px 4px}
.album-card{width:100%;padding:12px 12px 16px;border:0;background:#fffdf5;text-align:left;color:inherit;box-shadow:0 4px 12px #47342126;transform:rotate(-1deg);transition:transform .35s cubic-bezier(.2,1.4,.4,1),box-shadow .3s;animation:album-card-in .45s both;animation-delay:var(--delay)}
.album-card:nth-child(even){transform:rotate(1.5deg)}
.album-card:hover{transform:rotate(0) translateY(-6px);box-shadow:0 12px 24px #47342133}
.album-card>img{width:100%;aspect-ratio:3/2;object-fit:cover;background:#e7ddca;display:block}
.album-card-label{padding:16px 4px 0;overflow-wrap:anywhere}
.album-card-label small{font:10px 'Barlow Condensed',sans-serif;letter-spacing:.1em;color:#917e60}
.album-card h3{font:600 20px/1.5 'Noto Serif SC',serif;margin:4px 0 8px}
.album-card-label>span{font-size:12px;color:#8e8170}
.album-empty{text-align:center;padding:48px 16px 72px;color:#756652}
.album-empty-mark{display:inline-grid;place-items:center;width:72px;height:88px;background:#e8c573;color:#342c24;border-top:12px solid #37332e;border-bottom:12px solid #37332e;border-radius:8px;font:32px 'Barlow Condensed',sans-serif;transform:rotate(-8deg)}
.album-empty h3{font:600 24px 'Noto Serif SC',serif;color:#352c22;margin:28px 0 12px}
.album-empty p{margin:0}
.album-more{display:block;margin:32px auto 0}
.album-detail{margin-top:24px}
.album-main-photo{width:100%;height:400px;max-height:48dvh;object-fit:contain;background:#e5decd;padding:12px;box-shadow:0 4px 16px #55412b22}
.album-film{display:flex;gap:12px;overflow:auto;padding:20px 4px}
.album-film button{flex:0 0 100px;padding:4px;background:#fffdf5;border:2px solid transparent;box-shadow:0 2px 4px #0002}
.album-film button.selected{border-color:#a7372c;transform:rotate(-2deg)}
.album-film img{display:block;width:100%;height:64px;object-fit:cover}
.album-description{border-top:1px solid #93846c55;padding-top:20px;overflow-wrap:anywhere}
.album-description h3{font:600 28px 'Noto Serif SC',serif;margin:0 0 12px}
.album-description p{white-space:pre-wrap}.album-description small{color:#84755f}
.album-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:24px}
.album-link{width:100%}
.album-share-form{display:grid;grid-template-columns:1.1fr 1fr;gap:32px;align-items:start}
.album-share-preview{width:100%;padding:12px;background:#fffdf5;box-shadow:0 8px 24px #35251833;transform:rotate(-2deg);margin:16px 0}
.album-share-fields>label{display:block;margin-bottom:20px;color:#66553d}
.album-share-fields input:not([type=checkbox]),.album-share-fields textarea,.album-link{display:block;width:100%;margin-top:8px;border:1px solid #b2a48b;background:#fffdf780;color:#2a2520;padding:12px;font:inherit;border-radius:0;resize:vertical}
.album-share-fields .album-consent{display:flex;gap:12px;align-items:start;margin-top:28px;cursor:pointer}
.album-consent input{width:20px;height:20px;flex:0 0 20px;accent-color:#a7372c;margin:2px 0 0}
.album-fineprint{font-size:12px;color:#8b7c65}
@keyframes album-arrive{from{opacity:0;transform:translateY(24px) rotate(-1deg) scale(.98)}to{opacity:1;transform:none}}
@keyframes album-card-in{from{opacity:0;translate:0 16px}to{opacity:1;translate:0 0}}
@media(max-width:760px){#albumRoom{width:calc(100vw - 24px);height:calc(100dvh - 24px)}.album-top{padding:20px;gap:12px}.album-top h2{font-size:22px}.album-top small{font-size:10px}.album-tabs{padding:16px 16px 0;gap:4px}.album-tabs button{padding:8px 12px}#albumNotice{padding:12px 20px 0}#albumContent{padding:20px}.album-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:24px 16px}.album-card{padding:8px}.album-card h3{font-size:17px}.album-share-form{grid-template-columns:1fr;gap:16px}.album-share-preview{max-height:260px;object-fit:contain}.album-main-photo{padding:8px}.album-film button{flex-basis:80px}.album-description h3{font-size:24px}}
@media(max-width:440px){.album-grid{gap:20px 12px}.album-card-label{padding:12px 0 4px}.album-card-label small{font-size:9px}.album-card-label>span{font-size:10px}.album-top .album-button{padding:8px;font-size:12px}.album-top h2{font-size:20px}}
@media(prefers-reduced-motion:reduce){#albumRoom[open],.album-card{animation:none}#albumRoom *,#gallery button{transition:none}}
