/* KS RUN: event gallery, isolated from the studio's existing components. */
.run-section { background: #f8f5f2; }
.run-heading { display:flex; justify-content:space-between; align-items:flex-end; gap:2rem; margin-bottom:2rem; }
.run-heading h2 { font-family:var(--font-display); font-size:clamp(3.4rem,7vw,6rem); line-height:1; letter-spacing:-.065em; color:var(--brand); display:flex; align-items:center; gap:1.5rem; }
.run-edition { font-family:var(--font-body); font-size:.75rem; font-weight:600; letter-spacing:.04em; border:1px solid #d7c8d9; border-radius:100px; padding:.65rem .9rem; white-space:nowrap; }
.run-heading p { color:var(--ink-2); font-size:1rem; max-width:330px; }
.run-mosaic { display:grid; grid-template-columns:2fr 1fr 1fr; grid-template-rows:220px 220px; gap:12px; }
.run-shot { position:relative; display:block; border:0; padding:0; background:#e5dce5; overflow:hidden; border-radius:16px; cursor:pointer; width:100%; height:100%; }
.run-mosaic > .run-shot:first-child { grid-row:span 2; }
.run-mosaic > .run-shot:nth-child(6) { display:none; }
.run-shot img { width:100%; height:100%; object-fit:cover; transition:transform .5s ease; }
.run-shot:hover img { transform:scale(1.035); }
.run-shot-zoom { position:absolute; right:12px; top:12px; color:white; background:#210e2b80; border:1px solid #ffffff70; border-radius:50%; width:34px; height:34px; display:grid; place-items:center; font-size:1.2rem; }
.run-cover-label { position:absolute; inset:auto 0 0; padding:4rem 1.5rem 1.5rem; background:linear-gradient(transparent,#18091ed9); color:white; text-align:left; font-size:1.15rem; font-family:var(--font-display); }
.run-bottom { display:flex; justify-content:space-between; align-items:center; gap:1.5rem; padding-top:1.8rem; }
.run-bottom p { font-size:.95rem; color:var(--ink); }
.run-bottom p span { color:var(--ink-2); }
.run-feedback:empty { display:none; }
.run-feedback { margin-top:1rem; color:var(--brand); }
/* The dialog is a fixed shell; only its photo area scrolls. */
body.run-locked { overflow:hidden; }
.run-album,.run-viewer {
 border:1px solid #ffffff80; padding:0; max-width:none; max-height:none;
 margin:auto; overflow:hidden; box-shadow:0 32px 100px #14091e55;
}
.run-album::backdrop,.run-viewer::backdrop {
 background:#150d20b8; backdrop-filter:blur(12px); -webkit-backdrop-filter:blur(12px);
}
.run-album {
 width:min(1280px,calc(100% - 64px)); height:min(960px,calc(100dvh - 64px));
 border-radius:28px; background:#fbfaf8; color:var(--ink);
}
.run-album[open],.run-viewer[open] { display:flex; flex-direction:column; animation:run-dialog-in .25s ease-out; }
@keyframes run-dialog-in { from { opacity:0; transform:translateY(12px) scale(.985); } to { opacity:1; transform:none; } }
.run-album-bar {
 display:flex; justify-content:space-between; align-items:center; gap:1rem;
 padding:24px 28px; flex-shrink:0; border-bottom:1px solid #ebe6ed; background:#fffdfa;
}
.run-album-heading,.run-album-title,.run-album-tools { display:flex; align-items:center; }
.run-album-heading { gap:14px; }
.run-album-mark {
 display:grid; place-items:center; width:52px; height:56px; border-radius:16px;
 background:var(--brand); color:#fff; font-family:var(--font-display); font-size:1.25rem; font-weight:700; letter-spacing:-.06em;
}
.run-album-bar .eyebrow { display:block; margin:0 0 4px; font-size:.62rem; letter-spacing:.16em; color:#79667d; }
.run-album-title { gap:12px; }
.run-album h2 { font-family:var(--font-display); font-size:1.9rem; letter-spacing:-.06em; color:var(--brand); line-height:1; }
.run-album-year { font-size:.68rem; font-weight:600; color:var(--brand); background:#f3eaf4; border-radius:6px; padding:3px 8px; }
.run-album-tools { gap:24px; }
.run-album-total { font-size:.78rem; color:#796b7c; }
.run-icon {
 display:grid; place-items:center; flex-shrink:0; width:44px; height:44px;
 border:1px solid #e5dfe7; border-radius:50%; color:var(--brand); background:#fff;
 cursor:pointer; transition:background .2s,border-color .2s,transform .2s;
}
.run-icon svg { width:20px; height:20px; }
.run-icon:hover { background:#f3eaf4; border-color:#cfb8d4; }
.run-icon:active { transform:scale(.94); }
.run-album-content {
 flex:1; min-height:0; overflow-y:auto; overflow-x:hidden; overscroll-behavior:contain;
 margin:0 6px; padding:24px 22px 28px; scroll-padding-top:24px;
 scrollbar-width:thin; scrollbar-color:#d1bed5 transparent;
}
.run-album-content::-webkit-scrollbar { width:6px; }
.run-album-content::-webkit-scrollbar-track { background:transparent; margin-block:14px; }
.run-album-content::-webkit-scrollbar-thumb { background:#d1bed5; border-radius:10px; }
.run-album-content::-webkit-scrollbar-thumb:hover { background:#a884b1; }
@media(min-width:901px) {
 .run-album-content { scrollbar-width:none; }
 .run-album-content::-webkit-scrollbar { display:none; }
}
.run-album-intro { margin-bottom:24px; }
.run-album-intro h3 { font-family:var(--font-display); font-weight:500; font-size:1.55rem; letter-spacing:-.045em; line-height:1.25; margin-bottom:6px; }
.run-album-intro p { color:#796b7c; font-size:.84rem; }
.run-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; }
.run-grid .run-shot {
 aspect-ratio:3/2; grid-row:auto; display:block; border-radius:12px; isolation:isolate;
 transition:box-shadow .25s,transform .25s;
}
.run-grid .run-shot::after { content:''; position:absolute; inset:0; border:1px solid #1d0b250a; border-radius:inherit; pointer-events:none; }
.run-grid .run-shot img { transition:transform .45s ease,filter .3s; }
.run-shot-caption {
 position:absolute; inset:auto 0 0; padding:30px 14px 12px; text-align:left;
 background:linear-gradient(transparent,#190d26a8); color:#fff;
 font-size:.7rem; font-weight:500; letter-spacing:.04em; opacity:0; transition:opacity .25s;
}
.run-grid .run-shot-zoom { width:30px; height:30px; top:10px; right:10px; font-size:1.05rem; opacity:0; transform:translateY(4px); transition:opacity .25s,transform .25s; }
.run-grid .run-shot:focus-visible { outline-offset:3px; border-radius:12px; }
.run-grid .run-shot:focus-visible img { transform:scale(1.04); }
.run-grid .run-shot:focus-visible :is(.run-shot-caption,.run-shot-zoom) { opacity:1; transform:none; }
@media(hover:hover) {
 .run-grid .run-shot:hover { box-shadow:0 8px 24px #2a102c1a; }
 .run-grid .run-shot:hover img { transform:scale(1.04); filter:brightness(.97); }
 .run-grid .run-shot:hover :is(.run-shot-caption,.run-shot-zoom) { opacity:1; transform:none; }
}
.run-more {
 display:flex; justify-content:space-between; align-items:center; gap:16px;
 padding:16px 28px; flex-shrink:0; border-top:1px solid #ebe6ed; background:#fffdfa;
}
.run-progress p { color:#796b7c; font-size:.73rem; margin-bottom:7px; font-variant-numeric:tabular-nums; }
.run-progress progress { display:block; width:140px; height:3px; appearance:none; border:0; border-radius:8px; overflow:hidden; background:#eee7ef; color:var(--brand-light); }
.run-progress progress::-webkit-progress-bar { background:#eee7ef; }
.run-progress progress::-webkit-progress-value { background:var(--brand-light); border-radius:8px; }
.run-progress progress::-moz-progress-bar { background:var(--brand-light); border-radius:8px; }
.run-more .btn { background:#f3eaf4; color:var(--brand); border:1px solid #e8d9eb; padding:.7rem 1.1rem; font-size:.78rem; box-shadow:none; }
.run-more .btn svg { width:16px; height:16px; }
.run-more .btn:hover { background:var(--brand); border-color:var(--brand); color:#fff; }
.run-more [hidden] { display:none; }

/* An immersive viewer with the same controls on desktop and touch screens. */
.run-viewer {
 background:#151019; color:#fff; width:calc(100% - 40px); height:calc(100dvh - 40px);
 border-color:#ffffff1a; border-radius:24px;
}
.run-viewer-bar,.run-viewer-bottom { display:flex; align-items:center; gap:1rem; padding:18px 24px; flex-shrink:0; }
.run-viewer-bar { justify-content:space-between; }
.run-viewer-brand { font-family:var(--font-display); font-size:1.1rem; font-weight:600; letter-spacing:-.04em; }
.run-viewer-brand span { font-family:var(--font-body); font-size:.65rem; font-weight:400; letter-spacing:.05em; margin-left:8px; color:#b8abbf; }
#run-counter { font-size:.75rem; color:#c9bdcf; font-variant-numeric:tabular-nums; }
.run-viewer .run-icon { border-color:#ffffff29; color:#f7effa; background:#ffffff08; }
.run-viewer .run-icon:hover { background:#ffffff1c; border-color:#ffffff50; }
.run-viewer :is(button,a):focus-visible { outline-color:var(--gold-soft); border-radius:100px; }
.run-stage { position:relative; flex:1; min-height:0; display:flex; align-items:center; justify-content:center; padding:0 24px; touch-action:pan-y pinch-zoom; }
.run-stage img { width:100%; height:100%; object-fit:contain; animation:run-photo-in .2s ease-out; }
@keyframes run-photo-in { from { opacity:0; } to { opacity:1; } }
.run-stage img[hidden] { display:none; }
.run-stage p { position:absolute; max-width:360px; text-align:center; padding:1rem; color:#c9bdcf; font-size:.85rem; }
.run-stage p:empty { display:none; }
.run-viewer-bottom { position:relative; justify-content:center; gap:14px; }
.run-viewer-hint { position:absolute; left:24px; color:#b8abbf; font-size:.7rem; }
.run-viewer-hint kbd { display:inline-grid; place-items:center; width:24px; height:24px; margin-left:3px; border:1px solid #ffffff26; border-radius:6px; font:inherit; }
.run-download { display:inline-flex; align-items:center; justify-content:center; gap:9px; font-size:.8rem; font-weight:500; padding:12px 22px; border:1px solid #ffffff30; border-radius:100px; background:#f6eff9; color:#26162d; transition:background .2s; }
.run-download svg { width:18px; height:18px; }
.run-download:hover { background:#e3cbe9; }
@media(min-width:901px) { .run-mosaic { grid-template-columns:2fr 1fr 1fr 1fr; } .run-mosaic > .run-shot:nth-child(2) { grid-column:span 2; } .run-mosaic > .run-shot:nth-child(6) { display:block; } }
@media(max-width:1100px) { .run-heading h2 { flex-wrap:wrap; gap:1rem; } .run-heading p { max-width:270px; } }
@media(max-width:600px) {
 .run-section { padding:64px 0; }
 .run-heading { display:block; }
 .run-heading h2 { font-size:3.6rem; }
 .run-heading p { margin-top:1.3rem; max-width:none; }
 .run-mosaic { grid-template-columns:1fr 1fr; grid-template-rows:260px 140px 140px 160px; gap:8px; }
 .run-mosaic > .run-shot:first-child { grid-column:span 2; grid-row:auto; }
 .run-mosaic > .run-shot:nth-child(6) { display:block; grid-column:span 2; }
 .run-shot { border-radius:12px; }
 .run-bottom { align-items:flex-start; flex-direction:column; }
 .run-bottom .btn { width:100%; }
 .run-bottom p { font-size:.85rem; }
 .run-album { width:100%; height:100dvh; border:0; border-radius:0; }
 .run-album-bar { padding:max(16px,env(safe-area-inset-top)) max(16px,env(safe-area-inset-right)) 16px max(16px,env(safe-area-inset-left)); }
 .run-album-heading { gap:10px; }
 .run-album-mark { width:40px; height:44px; border-radius:12px; font-size:1rem; }
 .run-album h2 { font-size:1.5rem; }
 .run-album-bar .eyebrow { font-size:.54rem; }
 .run-album-title { gap:8px; }
 .run-album-year { font-size:.58rem; padding:2px 6px; }
 .run-album-total { display:none; }
 .run-album-content { margin:0 3px; padding:20px max(13px,env(safe-area-inset-right)) 20px max(13px,env(safe-area-inset-left)); scroll-padding-top:20px; }
 .run-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
 .run-grid .run-shot { border-radius:9px; }
 .run-album-intro { margin-bottom:18px; }
 .run-album-intro h3 { font-size:1.35rem; }
 .run-album-intro p { font-size:.76rem; max-width:290px; }
 .run-more { padding:14px max(16px,env(safe-area-inset-right)) max(14px,env(safe-area-inset-bottom)) max(16px,env(safe-area-inset-left)); }
 .run-progress p { font-size:.65rem; }
 .run-progress progress { width:90px; }
 .run-more .btn { padding:.75rem .85rem; font-size:.7rem; gap:6px; min-height:44px; }
 .run-viewer { width:100%; height:100dvh; border:0; border-radius:0; }
 .run-viewer-bar { padding:max(14px,env(safe-area-inset-top)) max(16px,env(safe-area-inset-right)) 14px max(16px,env(safe-area-inset-left)); }
 .run-viewer-brand { font-size:.95rem; }
 .run-viewer-brand span { display:none; }
 #run-counter { font-size:.68rem; }
 .run-stage { padding:0 max(8px,env(safe-area-inset-right)) 0 max(8px,env(safe-area-inset-left)); }
 .run-viewer-bottom { padding:18px max(16px,env(safe-area-inset-right)) max(18px,env(safe-area-inset-bottom)) max(16px,env(safe-area-inset-left)); }
}
@media(min-width:601px) and (max-width:1000px) { .run-grid { grid-template-columns:repeat(3,minmax(0,1fr)); } }
@media(max-width:800px) { .run-viewer-hint { display:none; } }
@media(prefers-reduced-motion:reduce) {
 .run-album[open],.run-viewer[open],.run-stage img { animation:none; }
 .run-shot,.run-shot img,.run-shot-caption,.run-shot-zoom,.run-icon,.run-download,.run-more .btn { transition:none; }
 .run-grid .run-shot:is(:hover,:focus-visible) img { transform:none; }
}
/* Keep the studio navigation comfortable with the event link. */
@media(min-width:769px) { .nav-links { gap:clamp(.7rem,1.7vw,1.5rem); } }
@media(min-width:769px) and (max-width:1100px) { .nav-cta { display:none; } }
@media(min-width:601px) and (max-width:900px) {
 .run-mosaic { grid-template-columns:repeat(2,1fr); grid-template-rows:repeat(3,220px); }
 .run-mosaic > .run-shot:first-child { grid-row:auto; grid-column:auto; }
 .run-mosaic > .run-shot:nth-child(6) { display:block; }
}
