/* Shared gallery viewer: circular controls and independent image area. */
.ab-gallery[open]{display:grid;grid-template-columns:56px minmax(0,1fr) 56px;grid-template-rows:auto auto auto;gap:18px;box-sizing:border-box;width:min(1160px,calc(100vw - 48px));max-width:none;height:fit-content;min-height:0;max-height:calc(100dvh - 40px);padding:24px;position:fixed;margin:0;inset:auto;top:50%;left:50%;transform:translate(-50%,-50%);border:1px solid #454545;border-radius:22px;background:#191919;color:#f4f4f4;overflow:auto;box-shadow:0 32px 100px #0009}
.ab-gallery::backdrop{background:#080808e8;backdrop-filter:blur(8px)}
.ab-gallery .ab-gallery-head{grid-column:1/-1;grid-row:1;display:flex;align-items:center;justify-content:space-between;gap:24px;padding:0 0 16px;border-bottom:1px solid #343434}
.ab-gallery .ab-gallery-head h2{margin:0;min-width:0;font:600 16px/1.45 system-ui,sans-serif;letter-spacing:0;color:#f4f4f4}
.ab-gallery .ab-gallery-stage{grid-column:2;grid-row:2;display:flex;justify-content:center;align-items:center;min-width:0;min-height:120px;overflow:hidden;border:0;border-radius:10px;background:#0e0e0e}
.ab-gallery .ab-gallery-stage img{display:block;max-width:100%;max-height:calc(100dvh - 222px);width:auto;height:auto;object-fit:contain;margin:0 auto;border-radius:0}
.ab-gallery .ab-gallery-controls{display:contents}
.ab-gallery .ab-gallery-button{position:static;display:inline-flex;align-items:center;justify-content:center;width:56px;height:56px;min-width:56px;min-height:56px;padding:0;border:1px solid #737373;border-radius:50%;background:linear-gradient(145deg,#414141,#2a2a2a);color:#fff;cursor:pointer;box-shadow:0 6px 18px #0005;flex-shrink:0;transition:background .18s,border-color .18s,box-shadow .18s,transform .18s}
.ab-gallery .ab-gallery-button svg{display:block;width:27px;height:27px;flex:0 0 27px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.ab-gallery .ab-gallery-button:hover{background:#767676;border-color:#b5b5b5;box-shadow:0 0 0 5px #76767622,0 8px 22px #0005;transform:scale(1.06)}
.ab-gallery .ab-gallery-button:focus-visible{outline:3px solid #cacaca;outline-offset:5px}
.ab-gallery .ab-gallery-button:disabled{opacity:.35;cursor:default;transform:none;box-shadow:none}
.ab-gallery .ab-gallery-label{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.ab-gallery .ab-gallery-prev{grid-column:1;grid-row:2;justify-self:start;align-self:center}
.ab-gallery .ab-gallery-next{grid-column:3;grid-row:2;justify-self:end;align-self:center}
.ab-gallery .ab-gallery-close{width:44px;height:44px;min-width:44px;min-height:44px;border-color:#4e4e4e;background:#272727;color:#e3e3e3;box-shadow:none}
.ab-gallery .ab-gallery-close svg{width:22px;height:22px;flex-basis:22px}
.ab-gallery .ab-gallery-close:hover{background:#444444;border-color:#b1b1b1;box-shadow:0 0 0 4px #b1b1b115}
.ab-gallery .ab-gallery-counter{grid-column:2;grid-row:3;justify-self:center;position:static;display:block;max-height:none;max-width:100%;overflow:visible;margin:0;padding:4px 14px;border:0;border-radius:0;background:transparent;color:#aeaeae;font:500 13px/1.4 system-ui,sans-serif;text-align:center;white-space:nowrap;letter-spacing:2px}
@media(max-width:600px){.ab-gallery[open]{width:calc(100vw - 20px);max-height:calc(100dvh - 20px);grid-template-columns:48px minmax(0,1fr) 48px;gap:14px;padding:14px;border-radius:16px}.ab-gallery .ab-gallery-head{gap:12px;padding-bottom:12px}.ab-gallery .ab-gallery-head h2{font-size:14px}.ab-gallery .ab-gallery-stage{grid-column:1/-1;grid-row:2}.ab-gallery .ab-gallery-stage img{max-height:calc(100dvh - 208px)}.ab-gallery .ab-gallery-prev,.ab-gallery .ab-gallery-next{grid-row:3;width:48px;height:48px;min-width:48px;min-height:48px}.ab-gallery .ab-gallery-counter{align-self:center}}
@media(prefers-reduced-motion:reduce){.ab-gallery .ab-gallery-button{transition:none}.ab-gallery .ab-gallery-button:hover{transform:none}}

/* Application card carousel uses the same icon and button family. */
.apps-nav{gap:10px}
.apps-nav button{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;min-width:44px;padding:0;border:1px solid #737373;border-radius:50%;background:linear-gradient(145deg,#414141,#2a2a2a);color:#fff;box-shadow:0 4px 12px #0003;transition:background .18s,border-color .18s,transform .18s}
.apps-nav button svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.apps-nav button:hover:not(:disabled){background:#767676;border-color:#b5b5b5;transform:scale(1.06)}
.apps-nav button:disabled{opacity:.3;cursor:default;box-shadow:none}
.apps-nav button:focus-visible{outline:3px solid #cacaca;outline-offset:4px}
@media(prefers-reduced-motion:reduce){.apps-nav button{transition:none}.apps-nav button:hover:not(:disabled){transform:none}}
