.chouran-photo-album{width:min(100%,680px);margin:2.5rem auto 0;padding:1.2rem;border:1px solid #e7dedb;border-radius:14px;background:#fff;box-sizing:border-box;scroll-margin-top:1rem}
.chouran-photo-album h2{font-size:1.4rem;margin:0 0 1rem;color:#8c0f01}
.chouran-photo-album[data-album-ready] .chouran-photo-album-grid{display:block;height:300px;background:#f5f3f1;border-radius:9px;overflow:hidden}
.chouran-photo-album[data-album-ready] .chouran-photo-album-grid figure{height:100%;margin:0;animation:chouran-album-fade .3s ease}
.chouran-photo-album[data-album-ready] figure[hidden]{display:none!important}
.chouran-photo-album[data-album-ready] .chouran-photo-album-grid a{display:flex;width:100%;height:100%;align-items:center;justify-content:center}
.chouran-photo-album[data-album-ready] .chouran-photo-album-grid img{width:100%;height:100%;max-height:100%;object-fit:contain!important;aspect-ratio:auto}
.chouran-photo-album[data-album-ready] figcaption{display:none}
.chouran-album-caption{font-size:.88rem;line-height:1.6;margin:.65rem 0;min-height:2.8em;color:#514b48}
.chouran-album-controls{display:flex;align-items:center;justify-content:center;gap:.55rem;flex-wrap:wrap;direction:ltr}
.chouran-album-controls button,.chouran-album-thumbs button{border:1px solid #cdbbb4;border-radius:7px;background:#fff;color:#8c0f01;cursor:pointer;font:inherit}
.chouran-album-controls button{min-width:42px;min-height:42px;padding:.3rem .65rem}
.chouran-album-controls button[data-album-toggle]{font-size:.85rem}
.chouran-album-controls output{min-width:55px;text-align:center;font-size:.85rem;color:#514b48}
.chouran-album-thumbs{display:flex;gap:.4rem;overflow-x:auto;padding:.7rem .1rem .2rem;scrollbar-width:thin;direction:ltr}
.chouran-album-thumbs button{flex:0 0 58px;height:46px;padding:2px;border:2px solid transparent;background:#f5f3f1}
.chouran-album-thumbs button[aria-current=true]{border-color:#8c0f01}
.chouran-album-thumbs img{display:block;width:100%;height:100%;object-fit:contain!important}
.chouran-photo-album button:focus-visible,.chouran-photo-album a:focus-visible{outline:3px solid #8c0f01;outline-offset:3px}
.chouran-album-empty{font-size:.95rem;color:#655c58;margin:0}
@keyframes chouran-album-fade{from{opacity:.45}to{opacity:1}}
@media(max-width:600px){.chouran-photo-album{padding:.8rem}.chouran-photo-album[data-album-ready] .chouran-photo-album-grid{height:220px}.chouran-photo-album h2{font-size:1.2rem}.chouran-album-caption{font-size:.82rem}}
@media(prefers-reduced-motion:reduce){.chouran-photo-album[data-album-ready] .chouran-photo-album-grid figure{animation:none}}
