/* CH-P11D – scoped gallery lightbox; no header/footer changes. */
.ch11d-overlay[hidden]{display:none!important}
.ch11d-overlay{position:fixed;inset:0;z-index:99999;background:rgba(17,12,26,.93);display:flex;align-items:center;justify-content:center;padding:62px 52px 40px;box-sizing:border-box}
.ch11d-viewer{position:relative;display:flex;align-items:center;justify-content:center;width:min(1200px,100%);height:100%;max-height:100%;outline:none}
.ch11d-frame{display:flex;flex-direction:column;align-items:center;justify-content:center;min-width:0;margin:0;width:100%;height:100%;gap:10px}
.ch11d-frame img{display:block;max-width:100%;max-height:calc(100% - 42px);width:auto;height:auto;object-fit:contain;border-radius:6px;background:#241e2e}
.ch11d-frame figcaption{color:#f8f5ef;font:500 13px/1.55 'Be Vietnam Pro',system-ui,sans-serif;text-align:center;max-height:3.1em;overflow:auto}
.ch11d-overlay button{position:absolute;z-index:2;border:1px solid #ffffff66;border-radius:50%;background:#221b36dd;color:white;width:42px;height:42px;cursor:pointer;font:400 32px/1 system-ui,sans-serif;display:grid;place-items:center;padding:0}
.ch11d-overlay button[hidden]{display:none!important}
.ch11d-overlay button:focus-visible{outline:3px solid #ffd88c;outline-offset:3px}
.ch11d-close{right:0;top:-52px}.ch11d-prev{left:-48px;top:45%}.ch11d-next{right:-48px;top:45%}
.ch11d-count{position:absolute;bottom:-27px;left:50%;transform:translateX(-50%);color:white;font:500 12px/1.4 system-ui,sans-serif}
@media(max-width:700px){.ch11d-overlay{padding:65px 12px 65px}.ch11d-overlay button{width:36px;height:36px;font-size:27px}.ch11d-close{right:0;top:-51px}.ch11d-prev{left:0;top:45%}.ch11d-next{right:0;top:45%}.ch11d-frame{padding:0 5px;box-sizing:border-box}.ch11d-frame img{max-height:calc(100% - 56px)}.ch11d-count{bottom:-32px}.ch11d-frame figcaption{padding:0 18px}}
