.photo-gallery-card{grid-column:1 / -1;min-width:0;color:var(--paper)}
.photo-gallery-card [hidden]{display:none!important}
.match-photos-header{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:16px;min-width:0}
.match-photos-title{display:flex;align-items:center;gap:9px;margin:0;font-size:17px;font-weight:600;line-height:1.4;color:var(--paper);min-width:0}
.match-photos-title svg{width:21px;height:21px;flex:none;color:var(--muted)}
.match-photos-counter{flex:none;font-size:15px;font-weight:600;line-height:1.4;white-space:nowrap;color:var(--muted);font-variant-numeric:tabular-nums}
.match-photos-stage{position:relative;isolation:isolate;width:100%;min-width:0;height:clamp(200px,35vw,340px);overflow:hidden;border:1px solid var(--line);border-radius:12px;background:var(--panel);touch-action:pan-y pinch-zoom}
.match-photos-open{position:absolute;inset:0;display:block;width:100%;height:100%;padding:0;border:0;border-radius:inherit;background:transparent;color:var(--paper);cursor:zoom-in;touch-action:pan-y pinch-zoom;-webkit-tap-highlight-color:transparent}
.match-photos-image{display:block;width:100%;height:100%;max-width:100%;object-fit:contain;object-position:center;user-select:none;-webkit-user-select:none;-webkit-user-drag:none}
.match-photos-stage[data-loading] .match-photos-image,.match-photos-stage[data-error] .match-photos-image{opacity:0}
.match-photos-expand{position:absolute;right:11px;bottom:11px;display:grid;place-items:center;width:36px;height:36px;border:1px solid var(--line);border-radius:10px;color:var(--paper);background:var(--panel);pointer-events:none}
.match-photos-expand svg{width:20px;height:20px}
.match-photos-image-status{position:absolute;inset:0;display:grid;place-items:center;padding:24px;text-align:center;font-size:15px;line-height:1.6;color:var(--muted);pointer-events:none}
.match-photos-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:9px;min-height:190px;padding:26px 18px;border:1px dashed var(--line);border-radius:12px;background:var(--panel);text-align:center;color:var(--muted)}
.match-photos-empty>svg{width:32px;height:32px;margin-bottom:4px}
.match-photos-empty strong{font-size:16px;font-weight:600;line-height:1.5;color:var(--paper)}
.match-photos-empty p{margin:0;font-size:14px;line-height:1.6}
.match-photos-caption{display:flex;align-items:baseline;justify-content:space-between;gap:10px 18px;flex-wrap:wrap;margin-top:12px;min-width:0;line-height:1.55}
.match-photos-author{min-width:0;font-size:15px;color:var(--paper);overflow-wrap:anywhere}
.match-photos-details{min-width:0;font-size:14px;color:var(--muted);overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
.match-photos-hint{margin:10px 0 0;font-size:14px;line-height:1.6;color:var(--muted);overflow-wrap:break-word}
.match-photos-controls{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:14px;min-width:0}
.match-photos-nav-button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-width:44px;min-height:44px;padding:10px 13px;border:1px solid var(--line);border-radius:10px;background:var(--panel);color:var(--paper);font:inherit;font-size:14px;font-weight:600;line-height:1.4;cursor:pointer}
.match-photos-nav-button svg{width:17px;height:17px;flex:none}
.match-photos-nav-button:hover:enabled{border-color:var(--accent)}
.match-photos-nav-button:disabled{opacity:.45;cursor:default}
.match-photos-open:focus-visible{outline:3px solid var(--focus,var(--accent));outline-offset:-4px}
.match-photos-nav-button:focus-visible{outline:2px solid var(--focus,var(--accent));outline-offset:3px}
@media(max-width:600px){.match-photos-stage{height:clamp(190px,56vw,280px)}.match-photos-header{gap:10px;margin-bottom:14px}.match-photos-caption{gap:4px 12px}.match-photos-controls{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.match-photos-nav-button{padding:10px 8px;gap:6px}.match-photos-empty{min-height:180px}}
