.ctc-gallery-dialog{box-sizing:border-box;width:min(100vw,900px);height:min(100dvh,900px);max-width:none;max-height:none;border:0;padding:0;background:#111;color:#fff}.ctc-gallery-dialog::backdrop{background:rgba(0,0,0,.84)}.ctc-gallery-dialog header{height:56px;display:flex;align-items:center;justify-content:space-between;padding:0 16px}.ctc-gallery-dialog button{cursor:pointer;color:inherit;background:#282828;border:1px solid #666;border-radius:8px;min-width:44px;min-height:44px}.ctc-gallery-dialog button:focus-visible{outline:3px solid #8ce7bd;outline-offset:2px}.ctc-gallery-stage{height:calc(100% - 150px);display:flex;align-items:center;justify-content:center;gap:8px;padding:0 8px}.ctc-gallery-stage>img{min-width:0;max-width:calc(100% - 104px);max-height:100%;object-fit:contain}.ctc-gallery-stage>button{font-size:30px}.ctc-gallery-thumbs{height:90px;display:flex;justify-content:center;gap:8px;overflow-x:auto;align-items:center;padding:0 12px}.ctc-gallery-thumbs button{padding:2px;width:58px;height:58px;flex:none}.ctc-gallery-thumbs button[aria-pressed=true]{outline:2px solid #fff;outline-offset:2px}.ctc-gallery-thumbs img{width:100%;height:100%;object-fit:cover}
