.photo-portal{background:#fafbfd;color:#16284c}
.photo-shell{width:min(1240px,calc(100% - 64px));margin-left:auto;margin-right:auto}
.photo-portal h1,.photo-portal h2,.photo-portal h3{color:#0f255f;letter-spacing:-.04em}
.photo-portal h1{font:800 clamp(2.6rem,4.4vw,4.4rem)/1.02 'Barlow Condensed',Impact,sans-serif}
.photo-portal h2{font:800 clamp(1.8rem,2.8vw,2.6rem)/1.05 'Barlow Condensed',Impact,sans-serif}
.photo-portal button,.photo-portal input{font:inherit}
.photo-portal button,.photo-portal a{touch-action:manipulation}
.photo-portal button{cursor:pointer}
.photo-portal button:disabled{opacity:.55;cursor:wait}
.photo-portal :focus-visible{outline:3px solid #ca981c;outline-offset:4px}
.photo-portal [hidden]{display:none!important}
.photo-skip{position:fixed;top:12px;left:16px;background:#fff;padding:12px;z-index:1000;transform:translateY(-200%)}
.photo-skip:focus-visible{transform:translateY(0)}
.photo-eyebrow{display:flex;align-items:center;gap:8px;font-size:.67rem;letter-spacing:.16em;line-height:1.5;font-weight:800;color:#52627f}
.photo-eyebrow>span{width:7px;height:7px;background:#e8b93d;border-radius:50%}
.photo-breadcrumb{display:flex;gap:12px;align-items:center;padding:28px 0 22px;font-size:.76rem;color:#62708b;flex-wrap:wrap}
.photo-breadcrumb a{text-decoration:none;font-weight:600}
.photo-breadcrumb a:hover{text-decoration:underline}
.photo-results-link{margin-left:auto;color:#17398f}
.photo-hero{display:grid;grid-template-columns:.95fr 1.15fr;min-height:240px;background:#0f255f;border-radius:8px;overflow:hidden;position:relative}
.photo-hero-copy{padding:28px 32px;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;position:relative}
.photo-upload-action{display:flex;justify-content:flex-end;margin-top:12px}.photo-upload-action .photo-share-upload,.photo-upload-action .photo-alert-button{gap:8px}.photo-share-upload svg,.photo-alert-button svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}
.photo-hero-copy .photo-eyebrow{color:#c6d2ee;font-size:.62rem}
.photo-hero h1{color:#fff;margin:0 0 14px;max-width:400px;font-size:clamp(2.2rem,3.6vw,3.6rem)}
.photo-race-meta{display:flex;flex-wrap:wrap;gap:8px;font-size:.74rem;color:#ccd7f0}
.photo-hero-copy p{font-size:1.04rem;line-height:1.6;color:#d1dbef;margin:24px 0 22px}
.photo-hero-link{color:#efc650;font-size:.81rem;font-weight:700;text-decoration:none;display:flex;align-items:center;gap:24px;margin-top:auto;padding-bottom:5px;border-bottom:1px solid #526282}
.photo-hero-link span{font-size:1.25rem}
.photo-hero-image{position:relative;min-height:240px}
.photo-hero-image:after{content:'';position:absolute;inset:0;background:linear-gradient(90deg,rgba(15,37,95,.15),transparent 35%);pointer-events:none}
.photo-hero-image>img{width:100%;height:100%;object-fit:cover;object-position:49% center;position:absolute;inset:0}
.photo-count-badge{position:absolute;bottom:22px;right:22px;z-index:1;display:flex;gap:8px;align-items:center;background:rgba(255,255,255,.94);border-radius:4px;padding:10px 13px;color:#0f255f;font-size:.7rem;font-weight:800;box-shadow:0 4px 20px #0002}
.photo-count-badge svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.6}
.photo-find{display:grid;grid-template-columns:1fr 1fr;gap:24px;background:#fff;padding:18px 20px;margin-top:16px;border:1px solid #e1e6ef;border-radius:8px;scroll-margin-top:110px;box-shadow:0 4px 18px #0f255f04}
.photo-find h2{margin:6px 0 8px;font-size:2rem}
.photo-find-heading p{font-size:.75rem;color:#67748b;margin:0}
.photo-bib-form,.photo-selfie-prompt{display:flex;flex-direction:column;justify-content:center;min-width:0}
.photo-bib-form label,.photo-selfie-prompt>label{font-size:.82rem;font-weight:700;display:flex;gap:8px;align-items:center;margin-bottom:10px}
.photo-search-icon{font-size:1.05rem;color:#17398f}
.photo-input-row{display:flex;gap:8px;align-items:stretch}
.photo-input-row input{min-width:0;width:100%;border:1px solid #ccd4e4;border-radius:4px;padding:10px 12px;font-size:.82rem;background:#fafbfd;color:#16284c;min-height:44px}
.photo-input-row input:focus{outline:none;border-color:#17398f;box-shadow:0 0 0 3px #17398f12}
.photo-input-row .photo-btn{padding:10px 13px;flex-shrink:0}
.photo-runner-suggestions{list-style:none;margin:8px 0 0;padding:4px;border:1px solid #ccd4e4;border-radius:5px;background:#fff;max-height:264px;overflow-y:auto;box-shadow:0 5px 14px #16284c0c}
.photo-runner-suggestions [role=option]{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:44px;padding:9px 10px;border-radius:3px;cursor:pointer;font-size:.78rem;line-height:1.4;overflow-wrap:anywhere;color:#16284c}
.photo-runner-suggestions [role=option]:hover,.photo-runner-suggestions [aria-selected=true]{background:#edf2fa}
.photo-runner-suggestions [role=option]>span:last-child{flex-shrink:0;color:#17398f;font-size:.7rem;font-weight:600}
.photo-runner-status{color:#17398f!important}
.photo-bib-form small,.photo-selfie-prompt small{font-size:.67rem;color:#6b7890;margin-top:9px;line-height:1.5}
.photo-selfie-prompt{position:relative;border-left:1px solid #e1e6ef;padding-left:30px}
.photo-selfie-prompt svg{width:19px;height:19px;fill:none;stroke:#17398f;stroke-width:1.5}
.photo-or{position:absolute;left:-10px;top:calc(50% - 8px);background:#fff;font-size:.55rem;font-weight:800;color:#94a0b5;padding:4px 0}
.photo-btn{display:inline-flex;align-items:center;justify-content:center;gap:16px;min-height:44px;border:1px solid transparent;border-radius:4px;padding:11px 18px;font-size:.75rem!important;line-height:1.4;font-weight:700!important;white-space:nowrap;text-decoration:none;transition:background .15s,transform .15s}
.photo-btn:hover{transform:translateY(-1px)}
.photo-btn--blue{color:#fff;background:#17398f;border-color:#17398f}
.photo-btn--blue:hover{background:#0f255f}
.photo-btn--gold{color:#0f255f;background:#e8b93d;border-color:#e8b93d}
.photo-btn--gold:hover{background:#f2c955}
.photo-btn--outline{color:#17398f;background:#fff;border-color:#cbd5e6}
.photo-btn--outline:hover{background:#f1f5ff;border-color:#17398f}
.photo-collection{margin-top:28px;min-height:260px}
.photo-collection-head{display:flex;justify-content:space-between;align-items:end;gap:16px;margin-bottom:12px}
.photo-collection-head h2{margin:0}
.photo-filter{display:flex;align-items:center;gap:12px;flex-wrap:wrap;font-size:.75rem;color:#69768e;justify-content:flex-end}
.photo-filter button{border:1px solid #d9e1ee;background:#fff;color:#17398f;border-radius:30px;padding:8px 12px;font-size:.7rem;min-height:44px}
.photo-status{font-size:.8rem;color:#64738f;margin:0 0 12px}
.photo-status:empty{display:none}
.photo-outfit-toggle{position:relative;display:flex;width:max-content;max-width:100%;align-items:center;gap:10px;color:#17398f;font-size:.76rem;margin:0 0 8px;font-weight:600;min-height:44px;padding:0 8px 0 0;cursor:pointer}
.photo-outfit-toggle input{position:absolute;left:0;top:0;width:44px;height:44px;opacity:0;margin:0;cursor:pointer}
.photo-switch{width:42px;height:24px;background:#a9b5c9;border-radius:20px;flex-shrink:0;transition:background .15s;pointer-events:none}
.photo-switch:after{content:'';display:block;width:18px;height:18px;background:#fff;border-radius:50%;margin:3px;transition:transform .15s;box-shadow:0 1px 4px #0f255f30}
.photo-outfit-toggle input:checked+.photo-switch{background:#17398f}
.photo-outfit-toggle input:checked+.photo-switch:after{transform:translateX(18px)}
.photo-outfit-toggle input:focus-visible+.photo-switch{outline:3px solid #ca981c;outline-offset:4px}
.photo-outfit-toggle small{display:block;color:#67748b;font-size:.68rem;font-weight:400;margin-top:3px}
.photo-group-title{font:800 1.45rem/1.1 'Barlow Condensed',Impact,sans-serif;margin:10px 0}
.photo-possible{margin:14px 0 0;border:1px solid #d4deed;border-radius:8px;background:#fff;padding:0 16px 12px}
.photo-possible summary{display:flex;align-items:center;justify-content:space-between;min-height:48px;gap:12px;cursor:pointer;list-style:none;font-weight:800;color:#17398f;font-size:1rem}
.photo-possible summary::-webkit-details-marker{display:none}
.photo-possible:not([open]){padding-bottom:0}
.photo-possible>p{color:#64738f;font-size:.78rem;line-height:1.6;margin:0 0 18px}
.photo-possible-count{display:inline-block;background:#edf2fa;border-radius:30px;padding:4px 9px;margin-left:7px;font-size:.74rem}
.photo-possible-chevron{font-size:1.5rem}
.photo-possible[open] .photo-possible-chevron{transform:rotate(180deg)}
.photo-downloads{display:flex;flex-direction:column;gap:4px;background:#f0f4fb;border:1px solid #d6e0ee;border-radius:6px;padding:10px;margin:0 0 10px}
#download-batches{display:flex;flex-wrap:wrap;gap:10px}
.photo-downloads small{color:#64738f;font-size:.7rem;line-height:1.5}
.photo-bulk-choice{display:flex;align-items:center;gap:10px;min-height:44px;font-size:.75rem;cursor:pointer}
.photo-bulk-choice input{width:20px;height:20px;accent-color:#17398f;margin:0}
.photo-card{min-width:0}
.photo-card>.photo-tile{width:100%}
.photo-include{display:flex;align-items:center;gap:8px;min-height:44px;color:#17398f;font-size:.72rem;cursor:pointer;line-height:1.4}
.photo-include input{width:20px;height:20px;flex-shrink:0;margin:0;accent-color:#17398f}
.photo-collection{scroll-margin-top:120px}
#collection-title{scroll-margin-top:120px}
.photo-status.is-error{color:#a32939;background:#fff4f4;padding:12px;border-radius:4px}
.photo-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.photo-tile{display:block;border:0;background:transparent;text-align:left;padding:0;color:#16284c;min-width:0}
.photo-tile-image{position:relative;aspect-ratio:3/2;background:#e8edf5;border:1px solid #dce1e8;border-radius:5px;box-shadow:0 2px 8px rgba(22,40,76,.1);box-sizing:border-box;container-type:inline-size;overflow:hidden}
.photo-match-badge{position:absolute;bottom:10px;left:10px;padding:6px 9px;border-radius:4px;background:#e8b93d;color:#0f255f;font-size:.63rem;font-weight:800;line-height:1.25;text-transform:uppercase;box-shadow:0 2px 8px #0003}
.photo-match-badge--possible{background:#0f255f;color:#fff}
.photo-tile-image>img{width:100%;height:100%;object-fit:cover;transition:transform .3s}
.photo-tile:hover .photo-tile-image>img{transform:scale(1.035)}
.photo-watermark{position:absolute;left:4%;right:4%;bottom:4%;display:flex;align-items:center;justify-content:space-between;gap:8px;pointer-events:none;opacity:.52;z-index:1}
.photo-watermark-label{color:#fff;font-size:clamp(7px,2.8cqw,13px);font-weight:600;letter-spacing:.035em;white-space:nowrap;text-shadow:0 1px 3px #0008}
.photo-watermark-logo{display:block;width:30%;flex:none;aspect-ratio:2172/724;background-size:contain;background-position:center;background-repeat:no-repeat;filter:brightness(0) invert(1) drop-shadow(0 1px 2px #0008)}
.photo-race-logo{position:absolute;top:3%;left:3%;display:flex;align-items:flex-start;pointer-events:none;z-index:3;height:20%}.photo-tile-image .photo-race-logo img{display:block;position:static;width:auto;height:auto;max-width:100%;max-height:100%;object-fit:contain;transform:none;box-sizing:border-box}.photo-race-logo--background img{background:rgba(255,255,255,.85);padding:3px;border-radius:2px}
.photo-tile-image--watermarked .photo-match-badge,.photo-tile-image--watermarked:after{bottom:calc(12% + 22px)}
.photo-tile-image:after{content:'↗';position:absolute;right:12px;bottom:12px;color:#fff;background:#0f255f99;width:28px;height:28px;display:grid;place-items:center;border-radius:50%;opacity:0;transition:opacity .2s}
.photo-tile:hover .photo-tile-image:after{opacity:1}
.photo-tile-meta{display:flex;justify-content:space-between;align-items:center;gap:8px;padding:7px 1px 0;font-size:.66rem;color:#68778f;min-height:24px}
.photo-bibs{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#17398f;font-weight:600}
.photo-load-wrap{display:flex;justify-content:center;margin:0}
.photo-load-wrap .photo-btn{min-width:190px;margin:16px 0}
.photo-empty{text-align:center;padding:32px 20px;border:1px dashed #cbd5e6;border-radius:8px;background:#fff}
.photo-empty>svg{width:36px;fill:none;stroke:#8696b1;stroke-width:1.5;margin:0 auto}
.photo-empty h3{font-size:1.2rem;margin:18px 0 8px;letter-spacing:-.02em}
.photo-empty p{font-size:.85rem;color:#67768f;max-width:440px;margin:0 auto 24px}
.photo-note{display:flex;gap:18px;padding:24px 0 36px;border-top:1px solid #dde4ef;margin-top:40px;align-items:center}
.photo-note-icon{font-size:2rem;color:#17398f;font-weight:400}
.photo-note h3{font-size:.85rem;margin:0 0 4px;letter-spacing:0}
.photo-note p{font-size:.75rem;color:#6b7890;margin:0}
.photo-portal dialog{border:0;box-shadow:0 24px 100px #04102655;color:#16284c}
.photo-portal dialog::backdrop{background:rgba(6,17,38,.8);backdrop-filter:blur(4px)}
.photo-selfie-dialog{padding:36px;width:min(490px,calc(100% - 24px));border-radius:12px;max-height:calc(100dvh - 32px);overflow:auto}
.photo-close{background:transparent;border:0;font-size:1.8rem!important;font-weight:400;color:#74839d;width:44px;height:44px;display:grid;place-items:center;line-height:1;padding:0}
.photo-selfie-dialog>.photo-close{position:absolute;top:12px;right:12px}
.photo-selfie-icon{display:grid;place-items:center;width:48px;height:48px;background:#f0f4fc;border-radius:12px;margin-bottom:20px}
.photo-selfie-icon svg{width:28px;height:28px;fill:none;stroke:#17398f;stroke-width:1.4}
.photo-selfie-dialog h2{font-size:2.2rem;margin:10px 0 14px}
.photo-selfie-dialog>p{font-size:.82rem;line-height:1.65;color:#62718a}
.photo-upload{display:flex;position:relative;align-items:center;justify-content:center;text-align:center;border:1px dashed #a6b6d1;border-radius:6px;min-height:150px;margin:22px 0;background:#f7f9fd;overflow:hidden;cursor:pointer}
.photo-upload img{width:100%;max-height:210px;object-fit:contain}
.photo-upload input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}
.photo-upload:focus-within{outline:3px solid #e8b93d;outline-offset:3px}
.photo-upload strong,.photo-upload small{display:block}
.photo-upload strong{font-size:.83rem;color:#17398f;margin:10px 0 5px}
.photo-upload small{font-size:.66rem;color:#77859c}
.photo-upload svg{width:25px;height:25px;fill:none;stroke:#17398f;stroke-width:1.4;margin:auto}
.photo-camera-open{width:100%;margin-top:-8px}
.photo-camera{margin-top:16px}
.photo-camera video{display:block;width:100%;max-height:220px;object-fit:contain;background:#071024;border-radius:6px;transform:scaleX(-1)}
.photo-camera>div{display:flex;gap:10px;margin-top:10px}
.photo-camera>div .photo-btn{flex:1;min-width:0;padding:11px 8px}
@media(max-width:400px){.photo-match-badge{left:6px;bottom:6px;padding:5px 6px;font-size:.53rem}}
.photo-consent-wrap{margin:16px 0}
.photo-consent{display:flex;align-items:flex-start;gap:10px;font-size:.73rem;line-height:1.6;margin:8px 0 0;min-height:44px;cursor:pointer}
.photo-consent input{width:18px;height:18px;flex-shrink:0;margin:2px 0;accent-color:#17398f}
#find-selfie{width:100%;font-size:.83rem!important}
.photo-selfie-dialog .photo-privacy{font-size:.7rem;line-height:1.6;margin:0;color:#526584}
.photo-selfie-loading{margin-top:16px;color:#17398f;font-size:.73rem}
.photo-selfie-loading label{display:block;font-weight:700}
.photo-selfie-loading progress{display:block;width:100%;height:12px;margin:9px 0;accent-color:#17398f}
.photo-selfie-loading small{display:block;color:#64738f;font-size:.68rem;line-height:1.5}
.photo-selfie-status{color:#17398f!important;font-weight:600;font-size:.76rem!important;min-height:0}
.photo-selfie-status:empty{display:none}
.photo-lightbox{width:min(1280px,calc(100% - 32px));max-width:none;background:#0b162d!important;padding:0;border-radius:8px;max-height:calc(100dvh - 28px);overflow:auto}
.photo-viewer-top{display:flex;align-items:center;justify-content:space-between;color:#c6d2e9;padding:8px 16px;font-size:.74rem}
.photo-viewer-top .photo-close{color:#fff}
.photo-viewer-image{position:relative;display:flex;justify-content:center;align-items:center;min-height:180px;background:#071024;touch-action:pan-y}
.photo-viewer-image>img{max-height:calc(100dvh - 190px);width:auto;max-width:100%;object-fit:contain}
.photo-matched-face{position:absolute;border:3px solid #efc650;border-radius:6px;box-shadow:0 0 0 1px #0b162dcc;pointer-events:none}
.photo-matched-face--outfit{border-style:dashed;border-width:2px}
.photo-arrow{position:absolute;top:calc(50% - 24px);width:44px;height:48px;background:#09182ebf;border:1px solid #ffffff38;color:#fff;z-index:1;font:36px/1 Georgia!important;border-radius:5px}
.photo-arrow--prev{left:12px}.photo-arrow--next{right:12px}
.photo-viewer-bottom{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 20px;color:#c6d2e9;font-size:.74rem}
.photo-viewer-bottom>div{display:flex;gap:10px;width:100%;justify-content:flex-end}
.photo-viewer-bottom .photo-btn--outline{color:#e0e7f5;background:transparent;border-color:#40506b}
#share-status{margin:0;padding:0 20px 12px;color:#e9c250;font-size:.72rem}
#share-status:empty{display:none}
.photo-index-head{padding-top:54px;padding-bottom:32px}
.photo-index-head h1{margin:0 0 24px;font-size:clamp(2.4rem,4vw,3.4rem)}
.photo-index-head>p{color:#67748d;margin:0 0 28px;font-size:.95rem}
.photo-event-search{display:flex;flex-direction:column;gap:8px;font-size:.75rem;font-weight:700;max-width:430px}
.photo-event-search input{padding:13px 16px;border:1px solid #cdd7e8;border-radius:5px;background:#fff;font-size:.85rem;font-weight:400}
.photo-event-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:28px;margin-bottom:64px}
.photo-event-card{text-decoration:none;background:#fff;border:1px solid #dfe6f0;border-radius:8px;overflow:hidden;transition:box-shadow .2s}
.photo-event-card:hover{box-shadow:0 12px 40px #0f255f18}
.photo-event-image{aspect-ratio:16/9;position:relative;overflow:hidden}
.photo-event-image img{width:100%;height:100%;object-fit:cover}
.photo-event-image>span{position:absolute;bottom:16px;right:16px;background:#fff;padding:7px 12px;border-radius:4px;font-size:.72rem;font-weight:800}
.photo-event-copy{padding:25px}
.photo-event-copy h2{margin:10px 0;font-size:2rem}
.photo-event-copy p{margin:0;color:#718098;font-size:.8rem}
.photo-text-link{display:flex;align-items:center;justify-content:space-between;margin-top:20px;padding-top:16px;border-top:1px solid #e2e7ef;color:#17398f;font-size:.82rem;font-weight:700}
.photo-muted{color:#65738e;margin-bottom:60px}
.photo-not-found{padding-top:70px;padding-bottom:100px}
@media(min-width:1500px){.photo-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:1100px){.photo-find{grid-template-columns:1fr 1fr;gap:20px;padding:25px}.photo-selfie-prompt{padding-left:24px}.photo-hero-copy{padding:28px}.photo-hero{min-height:240px}}
@media(max-width:700px){.photo-shell{width:calc(100% - 32px)}.photo-breadcrumb{font-size:.66rem;gap:8px;padding:20px 0 16px}.photo-breadcrumb>span:last-of-type{display:none}.photo-hero{grid-template-columns:1fr;min-height:auto}.photo-hero-copy{padding:28px 24px}.photo-hero h1{font-size:3.1rem;max-width:330px;margin:15px 0 12px}.photo-hero-copy p{margin:15px 0;font-size:.88rem}.photo-hero-copy p br{display:none}.photo-hero-copy p br:after{content:' '}.photo-hero-link{margin-top:2px}.photo-hero-image{min-height:225px}.photo-count-badge{bottom:14px;right:14px;font-size:.65rem;padding:8px 11px}.photo-find{grid-template-columns:1fr;padding:24px;gap:22px;margin-top:16px;scroll-margin-top:160px}.photo-find-heading{grid-column:auto}.photo-selfie-prompt{border-left:0;border-top:1px solid #e0e6ef;padding:24px 0 0}.photo-or{top:-9px;left:calc(50% - 14px);padding:0 6px}.photo-selfie-prompt>.photo-btn{justify-content:space-between}.photo-find h2{font-size:1.8rem}.photo-input-row .photo-btn{padding:10px 13px;gap:10px}.photo-collection{margin-top:36px}.photo-collection-head{align-items:start;gap:12px;margin-bottom:18px}.photo-collection-head h2{font-size:1.9rem}.photo-filter{font-size:.65rem;flex-direction:column;align-items:flex-end;gap:6px;max-width:135px;padding-top:5px}.photo-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 10px}.photo-tile-meta{font-size:.57rem;gap:4px;flex-wrap:wrap;padding-top:6px}.photo-tile-image:after{display:none}.photo-tile-image{border-radius:4px}.photo-note{align-items:flex-start;gap:12px;margin-top:30px}.photo-note h3{font-size:.8rem}.photo-note p{font-size:.7rem}.photo-selfie-dialog{padding:28px 24px;max-height:calc(100dvh - 24px)}.photo-selfie-dialog h2{font-size:2rem}.photo-lightbox{width:calc(100% - 12px)}.photo-viewer-bottom{padding:14px 12px;flex-direction:column;align-items:stretch;gap:12px}.photo-viewer-bottom>div .photo-btn{flex:1;padding:11px 10px;gap:6px;font-size:.68rem!important}.photo-viewer-image>img{max-height:calc(100dvh - 230px)}.photo-arrow{width:36px}.photo-arrow--prev{left:6px}.photo-arrow--next{right:6px}.photo-index-head{padding-top:36px}.photo-index-head h1{font-size:3.2rem}.photo-event-grid{grid-template-columns:1fr;gap:20px}.photo-event-copy{padding:22px}}
@media(prefers-reduced-motion:reduce){.photo-portal *{scroll-behavior:auto!important;transition:none!important}}
@media(max-width:700px){.photo-breadcrumb{padding:12px 0 10px}.photo-hero-copy{padding:16px 20px}.photo-hero-copy>.photo-eyebrow,.photo-hero-copy>p,.photo-hero-link,.photo-hero-image{display:none}.photo-hero h1{font-size:2rem;max-width:none;margin:0 0 8px}.photo-race-meta{font-size:.67rem;gap:6px}.photo-find{padding:16px;gap:14px;margin-top:12px;scroll-margin-top:100px}.photo-find-heading{display:none}.photo-bib-form label,.photo-selfie-prompt>label{margin-bottom:7px;font-size:.76rem}.photo-bib-form small,.photo-selfie-prompt small{margin-top:5px}.photo-selfie-prompt{padding-top:16px}.photo-collection{margin-top:24px;scroll-margin-top:100px}.photo-possible{padding-left:12px;padding-right:12px}.photo-possible summary{font-size:.91rem}.photo-downloads{padding:12px}#download-batches>.photo-btn{width:100%}.photo-selfie-dialog{padding:22px 18px}.photo-selfie-icon{width:36px;height:36px;margin-bottom:10px}.photo-selfie-icon svg{width:22px;height:22px}.photo-selfie-dialog h2{font-size:1.8rem;margin:8px 0}.photo-selfie-dialog>p{font-size:.74rem;line-height:1.5;margin:8px 0}.photo-upload{min-height:112px;margin:14px 0}.photo-upload img{max-height:150px}.photo-consent{font-size:.7rem;line-height:1.5}.photo-selfie-loading{margin-top:12px}.photo-tile-meta{min-height:24px}}
@media(max-width:700px){#collection-title{scroll-margin-top:100px}}
@media(min-width:701px) and (max-width:1100px){.photo-find{padding:18px 20px}}
@media(max-width:700px){.photo-find{padding:14px;gap:10px;margin-top:10px}.photo-selfie-prompt{padding-top:14px}.photo-collection{margin-top:16px}.photo-collection-head{margin-bottom:8px}.photo-group-title{margin:8px 0}.photo-downloads{padding:10px}.photo-grid{gap:12px 10px}.photo-tile-meta{padding-top:5px;min-height:20px}}

.photo-photographer{margin:10px 0 0;font-size:.78rem;line-height:1.5;color:#e0e7f7}
.photo-photographer a{color:inherit;text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:3px}
.photo-photographer a:focus-visible{outline:2px solid #e8b93d;outline-offset:4px}
.photo-hero-image img,.photo-event-image img{object-position:center top}
@media(max-width:700px){.photo-hero-copy>.photo-photographer{display:block;margin-top:8px;font-size:.7rem}}
@media(max-width:700px){.photo-hero-copy{align-items:center;text-align:center}.photo-race-meta{justify-content:center}}
.photo-viewer-bottom>div{flex-wrap:wrap}.photo-tag-panel{background:#fff;color:#16284c;padding:20px;margin:0 16px 16px;border-radius:8px}.photo-tag-panel h3{margin:0 0 8px;font-size:1.2rem}.photo-tag-panel p,.photo-tag-panel small{font-size:.8rem;line-height:1.5}.photo-tag-panel small{display:block;margin-top:12px;color:#62708b}.photo-tag-panel label{display:block;font-size:.8rem;font-weight:700;margin:12px 0 8px}.photo-tag-panel input{width:100%;min-width:0;min-height:44px;padding:12px;border:1px solid #ccd4e4;border-radius:4px;color:#16284c;background:#fff}.photo-tag-panel .photo-input-row{display:flex;gap:10px}.photo-tag-panel .photo-btn{min-height:44px;white-space:nowrap}.photo-tag-chip{display:inline-flex;align-items:center;gap:10px;margin:4px 8px 4px 0;padding:6px 10px;border-radius:6px;background:#edf2fa;font-size:.8rem}.photo-tag-chip button,.photo-tag-chip .photo-tag-undo{min-height:44px;border:0;background:transparent;color:#17398f;font-weight:700;text-decoration:underline}.photo-tag-panel .photo-text-link{display:inline-block;margin-top:12px}
@media(max-width:700px){.photo-viewer-bottom>div{display:grid;grid-template-columns:1fr 1fr;width:100%}#tag-photo:first-child{grid-column:1/-1}.photo-tag-panel{padding:16px;margin:0 12px 12px}.photo-tag-panel .photo-input-row{flex-direction:column}.photo-tag-panel .photo-btn{width:100%}.photo-tag-panel .photo-runner-suggestions{max-height:180px}}

/* Participant credit; existing portal styling is preserved. */
.photo-tile-meta .pp-photo-credit{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:70%}

.photo-tag-chip a.photo-tag-undo{display:inline-flex;align-items:center;padding:0 6px;min-height:44px;font-size:inherit;white-space:nowrap}

.photo-search-actions{margin-top:10px}.photo-search-actions .photo-btn{min-height:44px;padding:10px 16px;font-weight:700}#photo-group-filter{margin-top:12px}#photo-group{width:100%;min-height:44px;border:1px solid #ccd4e4;border-radius:4px;padding:10px;font:inherit;color:#16284c;background:#fff}.photo-viewer-top-actions{display:flex;gap:10px;align-items:center}#viewer-slideshow{min-height:44px;border:1px solid #52617d;border-radius:5px;background:transparent;color:#e0e7f5;padding:8px 12px;font-size:.75rem}.photo-viewer-summary{padding:10px 20px 0;color:#c6d2e9;font-size:.74rem}.photo-viewer-people{color:#e0e7f5;display:grid;gap:8px}.photo-viewer-people:empty{display:none}.photo-viewer-runner{display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:12px;font-size:.8rem}.photo-viewer-runner>span{min-width:0;overflow-wrap:anywhere}.photo-viewer-runner>a{display:inline-flex;align-items:center;min-height:44px;color:#f0c650;font-weight:700;padding:4px 6px;white-space:nowrap}.photo-viewer-confirm{padding:0 20px 14px;display:flex;align-items:center;gap:12px;flex-wrap:wrap}.photo-viewer-confirm>span{color:#e0e7f5;font-size:.8rem}.photo-tile-image .photo-tile-backdrop{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;filter:blur(12px);opacity:.4;transform:scale(1.08);pointer-events:none;z-index:0}.photo-tile-image .photo-tile-main{position:relative;z-index:1}.photo-match-badge,.photo-watermark,.pp-participant-badge{z-index:2}
@media(max-width:700px){.photo-search-actions .photo-btn{width:100%}.photo-viewer-summary{padding:8px 12px 0}.photo-viewer-runner{gap:6px}.photo-viewer-runner>a{padding-left:3px;padding-right:3px}.photo-viewer-confirm{padding:0 12px 12px}.photo-viewer-confirm .photo-btn{width:100%;min-height:44px}.photo-viewer-top{gap:8px;padding:6px 10px}.photo-viewer-top-actions{gap:6px}#viewer-slideshow{padding:8px;font-size:.7rem}}
@media(min-width:701px){
  .photo-viewer-footer{display:flex;flex-wrap:wrap;align-items:flex-start;gap:12px 24px;padding:16px 20px}
  .photo-viewer-footer .photo-viewer-summary{flex:1 1 330px;min-width:0;padding:0}
  .photo-viewer-footer .photo-viewer-bottom{flex:0 1 auto;min-width:0;padding:0}
  .photo-viewer-footer .photo-viewer-runner{grid-template-columns:minmax(0,max-content) auto auto;justify-content:start}
}

/* Result summary and compact gallery actions. */
.photo-race-card{display:flex;align-items:center;gap:24px;flex-wrap:wrap;background:#fff;border:1px solid #dce3ee;border-left:3px solid #e8b93d;border-radius:7px;padding:18px 20px;margin-bottom:24px;color:#16284c}
.photo-race-card-runner{flex:1;min-width:160px}.photo-race-card-label{font-size:.7rem;color:#66758f;font-weight:700}.photo-race-card h3{font:700 1.2rem/1.3 Barlow,Arial,sans-serif;letter-spacing:0;margin:5px 0}.photo-race-card-runner>span:last-child{font-size:.75rem;color:#66758f}
.photo-race-card-stats{display:flex;gap:24px;margin:0}.photo-race-card-stats dt{font-size:.7rem;color:#66758f}.photo-race-card-stats dd{margin:4px 0 0;font-size:1.4rem;font-weight:800;color:#0f255f}
.photo-viewer-bottom{justify-content:flex-end}.photo-viewer-bottom>div{width:auto}.photo-viewer-primary{order:1}.photo-viewer-more{order:0}#viewer-more{display:none}
@media(max-width:700px){
  .photo-upload-action{justify-content:center;margin-top:10px}.photo-upload-action .photo-share-upload,.photo-upload-action .photo-alert-button{font-size:.7rem!important;padding:9px 14px}
  .photo-race-card{gap:14px;padding:16px;margin-bottom:18px}.photo-race-card-runner{flex-basis:100%}.photo-race-card-stats{flex:1;gap:24px}.photo-race-card .photo-btn{padding:10px 12px}
  .photo-lightbox[open]{display:flex;flex-direction:column;height:calc(100dvh - 12px);max-height:calc(100dvh - 12px);overflow:hidden}
  .photo-viewer-top{flex:none}.photo-viewer-image{flex:1 1 auto;min-height:80px;overflow:hidden}.photo-viewer-image>img{width:100%;height:100%;max-height:100%;object-fit:contain}
  .photo-viewer-footer{flex:none;min-height:0}.photo-viewer-summary{max-height:100px;overflow:auto}
  .photo-viewer-bottom{padding:10px 12px max(10px,env(safe-area-inset-bottom));gap:8px;flex-direction:column;align-items:stretch}
  .photo-viewer-bottom>.photo-viewer-primary{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr) minmax(0,.65fr) auto;width:100%;gap:7px;order:0}
  .photo-viewer-primary .photo-btn{min-width:0;gap:5px;padding:10px 8px}#viewer-more{display:inline-flex;padding:10px 9px}
  .photo-viewer-bottom>.photo-viewer-more{display:none;order:1;width:100%;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.photo-viewer-bottom>.photo-viewer-more.is-open{display:grid}#tag-photo:first-child{grid-column:auto}
  #share-status{flex:none;max-height:36px;overflow:auto;padding-bottom:8px}.photo-viewer-confirm{flex:none;max-height:76px;overflow:auto}
  .photo-tag-panel{flex:0 1 auto;min-height:0;max-height:32dvh;overflow:auto;margin:0 12px 10px}
}

/* Gallery browsing and individually selected downloads. */
.photo-stage-nav{display:flex;gap:7px;overflow-x:auto;max-width:100%;padding:2px 0 8px;margin:10px 0 8px;scrollbar-width:thin}
.photo-stage-nav button{flex:none;min-height:44px;border:1px solid #d3dce9;border-radius:5px;background:#fff;color:#17398f;padding:10px 16px;font-size:.78rem;font-weight:700;white-space:nowrap}.photo-stage-nav [aria-pressed=true]{background:#17398f;color:#fff;border-color:#17398f}
.photo-selection-toolbar{display:flex;align-items:center;gap:9px;flex-wrap:wrap;margin-bottom:14px}.photo-selection-toolbar>span{font-size:.76rem;color:#536580}.photo-card{position:relative;min-width:0}.photo-pick{display:none;position:absolute;top:7px;right:7px;z-index:4;width:44px;height:44px;cursor:pointer}.photo-selection-active .photo-pick{display:block}.photo-selection-active .photo-include{display:none}
.photo-pick input{position:absolute;inset:0;width:44px;height:44px;margin:0;opacity:0;cursor:pointer}.photo-pick span{display:grid;place-items:center;width:30px;height:30px;margin:7px;background:#ffffffee;border:1px solid #bac7d9;border-radius:5px;color:transparent;box-shadow:0 2px 8px #0a1c3f24}.photo-pick input:checked+span{background:#e8b93d;border-color:#cfa130;color:#12265d;font-weight:800}.photo-pick:focus-within{outline:3px solid #e8b93d;outline-offset:2px;border-radius:5px}
@media(max-width:700px){.photo-stage-nav button{padding:9px 13px;font-size:.72rem}.photo-selection-toolbar{gap:7px}.photo-selection-toolbar .photo-btn{padding:9px 12px;font-size:.69rem!important}}

.photo-upload-action{gap:10px;flex-wrap:wrap}.photo-alert-form{display:grid;gap:16px}.photo-alert-form label{display:grid;gap:7px;font-size:.8rem;font-weight:700}.photo-alert-form input{width:100%;min-width:0;min-height:44px;border:1px solid #cbd5e6;border-radius:5px;padding:10px 12px;box-sizing:border-box;color:#12265d;background:white}.photo-alert-form small,.photo-alert-form>a{font-size:.72rem;color:#62738e}.photo-alert-form .photo-btn{width:100%}.photo-alert-form .pp-trap{position:absolute!important;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);left:-10000px}.photo-alert-page{max-width:720px;padding:40px 20px 70px}.photo-alert-page h1{font-size:2.4rem}.photo-alert-page p{line-height:1.6}.photo-alert-page .photo-btn{margin:8px 8px 0 0}
