.cg-lightbox{position:fixed;inset:0;margin:auto;box-sizing:border-box;width:min(1200px,94vw);max-width:94vw;max-height:94vh;max-height:94dvh;padding:0;border:1px solid #46524e;border-radius:18px;background:#17201e;color:#fff;box-shadow:0 30px 100px #0008;overflow:hidden}
.cg-lightbox::backdrop{background:rgba(7,13,11,.9)}
.cg-lb-header{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 20px}
.cg-lb-header h2{margin:0;color:#fff;font-size:clamp(16px,2vw,23px);line-height:1.3}
.cg-lightbox button{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;min-width:48px;height:48px;padding:0 12px;border:1px solid #73817b;border-radius:12px;background:#ffffff0a;color:#fff;font:inherit;font-size:28px;cursor:pointer}
.cg-lightbox button:hover{background:#ffffff20}
.cg-lightbox button:focus-visible{outline:3px solid #fff;outline-offset:3px}
.cg-lightbox button:disabled{opacity:.35;cursor:default}
.cg-lb-stage{position:relative;display:flex;align-items:center;justify-content:center;height:calc(90vh - 170px);height:calc(90dvh - 170px);min-height:100px;background:#0d1210;touch-action:pan-y pinch-zoom;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}
.cg-lb-image{display:block;width:100%;height:100%;object-fit:contain;pointer-events:none;-webkit-user-drag:none}
.cg-lb-image[hidden]{display:none}
.cg-lb-status{position:absolute;max-width:80%;padding:20px;text-align:center;color:#dce4df}
.cg-lb-status:empty{display:none}
.cg-lb-footer{display:flex;align-items:center;justify-content:center;gap:24px;padding:12px 20px}
.cg-lb-counter{min-width:70px;text-align:center;font-variant-numeric:tabular-nums}
@media(max-width:520px){.cg-lightbox{width:96vw;max-width:96vw;border-radius:12px}.cg-lb-header{padding:12px;gap:10px}.cg-lb-header h2{font-size:16px}.cg-lb-footer{padding:10px}.cg-lb-stage{height:calc(90vh - 190px);height:calc(90dvh - 190px)}}
