.job-camera-actions {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:6px 0 10px}
.job-camera-actions:has(> :only-child),.job-camera-actions:has(> [hidden]) {grid-template-columns:1fr}
.job-focus-work-actions .job-camera-actions button,.tc-work .job-camera-actions button {width:100%;margin:0;min-height:48px;justify-content:center;text-align:center;white-space:normal;line-height:1.2}
html:has(.job-gallery[open]) {overflow:hidden}
dialog.job-gallery {position:fixed;inset:0;width:min(100%,1050px);height:min(90dvh,940px);max-width:100%;max-height:100dvh;margin:auto;padding:0;border:1px solid var(--line);border-radius:18px;background:var(--card);color:var(--ink);font-family:inherit;overflow:hidden;box-shadow:0 12px 52px #00142750}
.job-gallery::backdrop {background:rgb(8 21 30/.7)}
.jg-index,.jg-viewer {display:flex;flex-direction:column;height:100%;min-height:0}
.job-gallery .jg-head,.jg-viewer .jg-foot {display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px clamp(14px,3vw,30px);flex:none}
.jg-index .jg-head {border-bottom:1px solid var(--line)}
.jg-index .jg-head small,.jg-tile small {color:var(--mut)}
.jg-index h2 {margin:3px 0 0;font-size:clamp(23px,3.4vw,30px);line-height:1.15;letter-spacing:-.025em;text-transform:none;color:var(--ink)}
.job-gallery button {font:inherit;color:inherit;cursor:pointer}
.job-gallery button:focus-visible {outline:3px solid #3a9aea;outline-offset:-3px}
.job-gallery .jg-head button,.jg-summary button,.jg-viewer .jg-foot button {min-height:44px;min-width:44px;border:1px solid var(--line);border-radius:10px;background:var(--card);padding:8px 14px;font-weight:650;font-size:14px}
.jg-scroll {padding:0 clamp(12px,3vw,30px) 24px;overflow:auto;overscroll-behavior:contain}
.jg-summary {display:flex;justify-content:space-between;align-items:center;margin:10px 0;color:var(--ink);font-size:15px}
.jg-summary button {border:none;background:transparent;color:var(--sea)}
.jg-message {color:var(--mut);font-size:14px;margin:0 0 14px;overflow-wrap:anywhere}
.jg-message:empty {display:none}
.jg-grid {display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,185px),1fr));gap:16px}
.jg-tile {align-self:stretch;display:flex;flex-direction:column;padding:0;border:1px solid var(--line);border-radius:12px;overflow:hidden;background:var(--card);text-align:left;min-width:0}
.jg-thumb {position:relative;display:grid;place-items:center;width:100%;flex:none;aspect-ratio:4/3;overflow:hidden;background:var(--bg)}
.jg-thumb img {display:block;position:absolute;inset:0;height:100%;width:100%;object-fit:cover}
.jg-thumb img:not([src]) {display:none}
.jg-fallback {font-size:13px;color:var(--mut);padding:6px;text-align:center}
.jg-caption {display:grid;gap:5px;padding:10px 12px 12px}
.jg-caption strong {font-size:15px;line-height:1.3;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere}
.jg-caption small {font-size:12px;line-height:1.4;overflow-wrap:anywhere}
.jg-tile[data-pending=true] .jg-caption small {color:var(--warn);font-weight:650}
.jg-viewer {background:#101820;color:#f6f8fa}
.jg-viewer .jg-head,.jg-viewer .jg-foot {background:#17232d;color:#f6f8fa}
.jg-viewer .jg-head button,.jg-viewer .jg-foot button {border-color:#52606a;color:#f6f8fa;background:#263540}
.jg-viewer button:disabled {opacity:.4;cursor:default}
.jg-stage {flex:1;position:relative;min-height:0;overflow:auto;overscroll-behavior:contain}
.jg-stage img {width:100%;height:100%;display:block;object-fit:contain;max-width:none}
.jg-stage.zoom img {width:200%;height:200%;object-fit:contain}
.jg-stage p:not(:empty) {position:absolute;top:45%;left:12%;width:76%;text-align:center}
.jg-viewer .jg-foot {margin:0;position:static;justify-content:flex-start}
.jg-viewer .jg-foot div {flex:1;min-width:0}
.jg-viewer .jg-foot strong,.jg-viewer .jg-foot small {display:block;overflow-wrap:anywhere}
.jg-viewer .jg-foot small,.jg-viewer [data-position] {color:#c1ced8;font-size:13px}
.jg-viewer .jg-foot button {font-size:26px;line-height:1}
@media(max-width:650px) {
  dialog.job-gallery {height:100dvh;max-height:100dvh !important;width:100vw;border:0;border-radius:0}
  .job-gallery .jg-head {padding-top:max(14px,env(safe-area-inset-top))}
  .jg-viewer .jg-foot,.jg-scroll {padding-bottom:max(18px,env(safe-area-inset-bottom))}
  .jg-grid {grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .jg-caption {padding:9px}
}

.job-gallery .jg-head button {flex:none;white-space:nowrap}
.jg-head>div {min-width:0;overflow-wrap:anywhere}
.jg-index .jg-head {background:var(--card)}
@media(min-width:651px) {dialog.job-gallery {width:min(calc(100vw - 40px),1050px)}}
