.run-photos{margin:0 0 22px}.run-photo-cover{display:block;width:100%;height:auto;max-height:520px;object-fit:contain;margin:0 0 18px;background:var(--rule-2)}.run-photo-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.run-photo-grid figure{margin:0}.run-photo-grid img{display:block;width:100%;aspect-ratio:1;object-fit:cover}.run-photo-grid button{width:100%;margin-top:4px}.photo-add{display:inline-flex;align-items:center;min-height:44px;margin-top:10px;padding:0 12px;border:1px solid var(--rule);color:var(--ink);font-size:13px;cursor:pointer}.photo-add input{position:absolute;width:1px;height:1px;opacity:0}.photo-crop{margin-top:12px;padding-top:12px;border-top:1px solid var(--rule)}.photo-crop canvas{display:block;width:min(100%,520px);height:auto;background:var(--rule-2)}.photo-crop label{margin-top:10px}.photo-position{display:grid;grid-template-columns:1fr 1fr;gap:10px}.photo-crop button{margin:4px 6px 0 0}@media(max-width:700px){.run-photo-cover{max-height:420px}.run-photo-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.photo-position{grid-template-columns:1fr}}
.run-photo-grid figcaption{padding:8px 0;font-size:13px}.run-photo-grid button:disabled{color:var(--blue);opacity:1;cursor:default}.run-evidence-basis{font-size:13px;color:var(--muted,#666);line-height:1.5;margin:12px 0}.run-evidence-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.run-evidence-facts div{min-width:0}.run-evidence-facts dt{font-size:12px;color:var(--muted,#666)}.run-evidence-facts dd{margin:4px 0;overflow-wrap:anywhere}.run-photo-cover{object-fit:contain;background:var(--rule-2)}@media(prefers-reduced-motion:no-preference){.run-photo-grid figure{animation:photo-arrive .18s ease-out}@keyframes photo-arrive{from{opacity:.2;transform:translateY(4px)}to{opacity:1;transform:none}}}
.run-media-gallery{display:grid;grid-auto-flow:column;grid-auto-columns:min(48%,360px);align-items:start;gap:12px;margin:0 20px 20px;padding:4px 0 8px;overflow-x:auto;overscroll-behavior-inline:contain;scroll-snap-type:x mandatory;scrollbar-width:thin}
.run-media-gallery figure{min-width:0;margin:0;background:var(--box);border:1px solid var(--rule);border-radius:10px;overflow:hidden}
.run-media-gallery figure{scroll-snap-align:start}
.run-media-gallery figure a{display:flex;align-items:center;justify-content:center;min-height:190px;background:#f6f7f9}
.run-media-gallery .run-photo-cover{display:block;width:100%;height:auto;max-height:none;margin:0;object-fit:contain;background:transparent}
.run-media-gallery figcaption{padding:8px 11px;color:var(--soft);font-size:12px}
.run-media-gallery figure a:focus-visible{outline:3px solid var(--blue);outline-offset:-3px}
.run-media-gallery:focus-visible{outline:3px solid var(--blue);outline-offset:2px}
.run-gallery-story-link{display:inline-flex;align-items:center;justify-content:center;min-height:40px;margin:0 20px 20px;padding:0 16px;border:1px solid var(--rule);border-radius:999px;background:#fff;color:var(--blue);font-size:13px;font-weight:600;text-decoration:none}
.run-gallery-story-link:hover{border-color:var(--blue);background:var(--blue-wash)}
@media(max-width:520px){.run-media-gallery{gap:8px;margin:0 14px 16px}.run-media-gallery figure a{min-height:120px}}
@media(max-width:600px){.card.fc .run-project-gallery{display:grid;grid-auto-flow:row;grid-auto-columns:auto;grid-template-columns:minmax(0,1fr);overflow:visible}.card.fc .run-project-gallery figure a{min-height:0}}

/* Detail is for inspection: keep the full source visible; feed crops are separate. */
.run-photo-grid--reader{min-width:0}.run-photo-grid--reader figure{min-width:0}.run-photo-grid--reader .photo-open{display:block;width:100%;padding:0;margin:0;border:1px solid var(--rule);background:var(--rule-2);color:var(--blue);cursor:zoom-in;overflow:hidden}.run-photo-grid--reader .photo-open img{width:100%;height:auto;aspect-ratio:1;object-fit:contain;object-position:center}.run-photo-grid--reader .photo-open span{display:block;padding:8px;font-size:11px;background:white}
.photo-move{display:flex;gap:4px}.photo-move button{min-height:32px;min-width:40px;padding:3px 8px;background:#fff;color:#0047ff;border:1px solid #ccd7f6}.photo-move button:disabled{opacity:.3}.photo-public{width:100%;padding:5px;font-size:11px;background:#f1f5ff;border:1px solid #b8caff;color:#0047ff}.photo-consent-note{font-size:10px;line-height:1.3;color:#666;display:block;padding:4px 0}.run-photo-grid figure[draggable=true]{cursor:grab}
#run-edit .photo-public[aria-pressed=false]{background:#fff;color:#0047ff;border:1px solid #b8caff}#run-edit .photo-public[aria-pressed=true]{background:#0047ff;color:#fff}#run-edit .photo-move button{background:#fff;color:#0047ff;border:1px solid #ccd7f6}#run-edit .photo-consent-note{padding:4px 0;line-height:1.3;font-size:10px}
/* Edit run photo grid */
.run-photos .head{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin-bottom:4px}
.run-photos .head h2{margin:0;font-size:19px;line-height:1.3}
.run-photos .head .meta{font-size:13px;color:#727d92}
.run-photos .photo-help{margin:0 0 14px;color:#727d92;font-size:13px}
.run-photos .run-photo-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.run-photos .run-photo-grid figure{position:relative;overflow:hidden;border-radius:10px;background:#f0f3f8;min-width:0;aspect-ratio:1}
.run-photos .run-photo-grid figure>img{width:100%;height:100%;aspect-ratio:1;object-fit:cover}
.run-photos .run-photo-grid figure button{position:absolute;display:grid;place-items:center;width:34px;height:34px;min-height:34px;margin:0;padding:0;border:1px solid #dce3ee;border-radius:50%;background:#fff;color:#273956;font-size:18px;box-shadow:0 2px 8px #1b2c4d22}
.run-photos .run-photo-grid figure .photo-remove{top:8px;right:8px}
.run-photos .run-photo-grid figure .photo-drag-handle{top:8px;left:8px;touch-action:none;cursor:grab;font-size:20px;line-height:1}
.run-photos .run-photo-grid figure .photo-drag-handle:active{cursor:grabbing}
.run-photos .run-photo-grid figure .photo-lock{bottom:8px;right:8px;display:block;width:auto;height:30px;min-height:30px;padding:0 9px;border-radius:999px;font-size:11px;font-weight:700}
.run-photos .run-photo-grid figure .photo-lock[aria-pressed="true"]{background:#24364e;color:#fff;border-color:#24364e}
.run-photos .photo-cover-tag{position:absolute;left:8px;bottom:8px;border-radius:999px;background:#fff;color:#1258f4;padding:4px 10px;font-size:11px;font-weight:700;box-shadow:0 2px 8px #1b2c4d22}
.run-photos .photo-add-tile{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;min-width:0;aspect-ratio:1;border:2px dashed #bdcdee;border-radius:10px;background:#f6f9ff;color:#1258f4;font-size:13px;font-weight:700;cursor:pointer}
.run-photos .photo-add-tile span:first-child{font-size:28px;font-weight:400;line-height:1}
.run-photos .photo-add-tile input{position:absolute;width:1px;height:1px;opacity:0}
.run-photos .photo-add-tile:focus-within{outline:3px solid #1258f4;outline-offset:3px}
.run-photos .photo-undo{display:flex;align-items:center;gap:10px;margin-top:12px;color:#45536b;font-size:13px}
.run-photos .photo-undo button{border:0;background:transparent;color:#1258f4;font-weight:700;cursor:pointer;padding:4px}
@media(max-width:600px){.run-photos .run-photo-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.run-photos .photo-help{font-size:12px}}
.run-photos .run-photo-grid .photo-dragging{opacity:.68;box-shadow:0 8px 24px #1b2c4d33}.run-photos .run-photo-grid .photo-drop-target{outline:3px solid #1258f4;outline-offset:-3px}

/* Owner editor thumbnails fill their square frame beneath the existing controls.
   Absolute positioning avoids intrinsic-size/flex shrink from the editor layout. */
#run-edit .run-photo-grid:not(.run-photo-grid--reader) figure>img{position:absolute;inset:0;display:block;width:100%;height:100%;max-width:none;max-height:none;object-fit:cover}
