.chouran-lightbox{box-sizing:border-box;position:fixed;inset:0;margin:0;width:100vw;max-width:none;height:100vh;height:100dvh;max-height:none;padding:54px 12px 16px;border:0;background:rgba(15,12,11,.97);color:#fff;overflow:hidden}
.chouran-lightbox::backdrop{background:rgba(0,0,0,.8)}
.chouran-lightbox[open]{display:grid;grid-template-columns:48px minmax(0,1fr) 48px;grid-template-rows:minmax(0,1fr);gap:12px;align-items:center;direction:ltr}
.chouran-lightbox figure{grid-column:2;grid-row:1;display:flex;flex-direction:column;align-items:center;justify-content:center;min-width:0;min-height:0;height:100%;margin:0;gap:8px}
.chouran-lightbox img{display:block;width:100%;height:0;min-height:0;flex:1;object-fit:contain;object-position:center;max-width:none;max-height:none;border:0;border-radius:0;background:transparent}
.chouran-lightbox figcaption{direction:inherit;font:inherit;font-size:1rem;text-align:center;line-height:1.4;max-height:5.6em;overflow:auto;flex-shrink:0}
.chouran-lightbox-count{font-size:.95rem;flex-shrink:0}
.chouran-lightbox button{box-sizing:border-box;width:48px;height:48px;min-width:44px;min-height:44px;padding:0;border:1px solid #fff;border-radius:50%;background:#941307;color:#fff;font:32px/1 sans-serif;cursor:pointer}
.chouran-lightbox button:focus-visible{outline:3px solid #fff;outline-offset:4px}
.chouran-lightbox-close{position:absolute;top:8px;right:12px}
.chouran-lightbox-prev{grid-column:1;grid-row:1}.chouran-lightbox-next{grid-column:3;grid-row:1}
[dir=rtl] .chouran-lightbox-prev{grid-column:3}[dir=rtl] .chouran-lightbox-next{grid-column:1}[dir=rtl] .chouran-lightbox figcaption{direction:rtl}
.chouran-lightbox button:disabled{opacity:.4;cursor:default}
@media(max-width:540px){.chouran-lightbox{padding:58px 4px 12px}.chouran-lightbox[open]{grid-template-columns:44px minmax(0,1fr) 44px;gap:4px}.chouran-lightbox button{width:44px;height:44px}.chouran-lightbox figcaption{font-size:.85rem}}
