.cg-gallery-launcher{position:fixed;right:max(14px,env(safe-area-inset-right));bottom:max(14px,env(safe-area-inset-bottom));z-index:9000;border:1px solid #b99b69;border-radius:999px;background:#211b17;color:#f7e7c8;padding:11px 18px;font:600 15px system-ui;box-shadow:0 5px 22px #0008;touch-action:manipulation}.cg-gallery-launcher[hidden]{display:none}.cg-gallery{position:fixed;inset:0;z-index:10000;background:#100e0d;color:#f5eee4;display:flex;flex-direction:column;padding: max(10px,env(safe-area-inset-top)) max(10px,env(safe-area-inset-right)) max(10px,env(safe-area-inset-bottom)) max(10px,env(safe-area-inset-left));font-family:system-ui,sans-serif}.cg-gallery[hidden]{display:none}.cg-gallery-head,.cg-gallery-foot{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.cg-gallery-head strong{font-size:19px}.cg-gallery-head small{display:block;color:#b9aa98;font-size:12px}.cg-gallery-tools,.cg-gallery-actions{display:flex;align-items:center;gap:8px}.cg-gallery button,.cg-gallery select{background:#29231e;color:#f5eee4;border:1px solid #625346;border-radius:9px;padding:9px 12px;font:inherit;touch-action:manipulation}.cg-gallery-stage{flex:1;min-height:0;display:flex;align-items:center;justify-content:space-between;gap:8px;padding:8px 0}.cg-gallery-image{max-width:calc(100% - 90px);max-height:100%;width:auto;height:auto;object-fit:contain;user-select:none}.cg-gallery-prev,.cg-gallery-next{font-size:34px!important;min-width:42px;min-height:54px;padding:0!important}.cg-gallery-name{font-size:13px;color:#c7b9a8;overflow-wrap:anywhere}.cg-gallery-index{font-variant-numeric:tabular-nums;color:#d9c8b1}.cg-gallery-thumbs{display:flex;gap:7px;overflow-x:auto;padding:10px 0;max-height:100px}.cg-gallery-thumbs[hidden]{display:none}.cg-gallery-thumb{position:relative;flex:0 0 76px;padding:2px!important;height:76px;overflow:hidden}.cg-gallery-thumb img{width:100%;height:100%;object-fit:cover}.cg-gallery-thumb span{position:absolute;right:3px;bottom:2px;background:#000b;padding:1px 4px;font-size:10px}.cg-gallery-thumb.active{outline:2px solid #d8b477}.cg-gallery-open{overflow:hidden}@media(orientation:landscape){.cg-gallery-stage{padding:4px 0}.cg-gallery-image{max-height:calc(100vh - 130px)}}@media(max-width:600px){.cg-gallery-head strong{font-size:16px}.cg-gallery-tools{gap:5px}.cg-gallery button,.cg-gallery select{padding:8px 9px;font-size:13px}.cg-gallery-prev,.cg-gallery-next{min-width:34px}.cg-gallery-image{max-width:calc(100% - 72px)}}