/* Spherical photo gallery; scoped to avoid changing homestyle.css */
.sphere-gallery{width:100%;max-width:680px;box-sizing:border-box;margin:10px auto 20px;background:radial-gradient(ellipse at 48% 38%,#6D8BA0 0%,#48657A 52%,#30495C 100%);color:#f3eee5;border:1px solid #333b46;overflow:hidden;font:13px/1.4 Arial,sans-serif}
.sphere-stage{height:490px;position:relative;touch-action:none;cursor:grab}
.sphere-stage:active{cursor:grabbing}
.sphere-stage canvas{display:block;width:100%;height:100%;touch-action:none}
.sphere-loading{position:absolute;inset:0;display:grid;place-items:center;color:#e4d8c5;pointer-events:none;z-index:1}
.sphere-controls{display:flex;align-items:center;gap:9px;flex-wrap:wrap;padding:10px 12px;background:#111720;border-top:1px solid #303846}
.sphere-hint{flex:1;min-width:185px;color:#ddd;font-size:12px}
.sphere-controls button{border:1px solid #b69a70;background:#2b313b;color:#fff;border-radius:3px;padding:7px 11px;cursor:pointer}
.sphere-controls button:hover,.sphere-controls button:focus-visible{background:#46505f}
.sphere-modal[hidden]{display:none!important}
.sphere-modal{position:fixed;inset:0;z-index:99999;background:rgba(0,0,0,.92);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;padding:40px 16px;box-sizing:border-box}
.sphere-modal img{max-width:94vw;max-height:78vh;object-fit:contain;box-shadow:0 8px 30px #000}
.sphere-modal a{color:#fff;text-decoration:underline}
.sphere-close{position:absolute;top:12px;right:20px;background:transparent;border:0;color:#fff;font-size:36px;cursor:pointer}
@media(max-width:600px){.sphere-stage{height:400px}.sphere-hint{font-size:11px}}
