/* Shared, native photo scrolling. Additional images stay in templates until needed. */
.swa-photo-carousel{min-width:0}
.swa-photo-viewport{position:relative;width:100%;height:100%;overflow:hidden}
.swa-photo-track{display:flex;width:100%;height:100%;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x mandatory;overscroll-behavior-x:contain;scrollbar-width:none;touch-action:pan-x pan-y pinch-zoom}
.swa-photo-track::-webkit-scrollbar{display:none}
.swa-photo-track:focus-visible{outline:3px solid #f4a340;outline-offset:-4px}
.swa-photo-slide{flex:0 0 100%;min-width:0;height:100%;overflow:hidden;scroll-snap-align:start;scroll-snap-stop:always}
.swa-photo-slide>a{display:block;width:100%;height:100%}
.swa-photo-slide img{display:block;width:100%;height:100%;object-fit:var(--swa-photo-fit,cover);object-position:var(--swa-photo-position,center);padding:var(--swa-photo-padding,0);user-select:none}
.swa-photo-logo{background:#fff;--swa-photo-fit:contain;--swa-photo-position:center;--swa-photo-padding:var(--swa-logo-padding,clamp(24px,4vw,48px))}
.swa-entity-image.swa-club-carousel{--swa-logo-padding:clamp(12px,1.4vw,20px)}
.swa-post-image-club{background:#fff}
.swa-post-image-club img{object-fit:contain;object-position:center;padding:24px}
.swa-card-clubs{margin-bottom:18px}
.swa-card-club{display:grid;grid-template-columns:100px minmax(0,1fr);align-items:center;gap:12px;padding:10px 12px;border:1px solid var(--line);border-radius:10px;background:#fff;min-width:0;font-size:.8rem;line-height:1.4}
.swa-card-club:hover{border-color:var(--teal)}
.swa-card-club-logo{display:block;width:100px;height:64px;background:#fff}
.swa-card-club-logo img{width:100%;height:100%;object-fit:contain;object-position:center}
.swa-card-club-name{min-width:0;overflow-wrap:anywhere}
.swa-card-club-name small{display:block;color:var(--muted);font-size:.65rem;margin-bottom:3px}
.swa-photo-carousel:not([data-photo-ready]) .swa-photo-slide:not(:first-child){display:none}
.swa-photo-controls{position:absolute;inset:auto 10px 10px;display:flex;align-items:center;justify-content:space-between;gap:8px;pointer-events:none}
.swa-photo-controls button{display:grid;place-items:center;flex-shrink:0;width:40px;height:40px;border-radius:50%;background:#fffffff2;color:var(--navy);box-shadow:0 2px 12px #0002;pointer-events:auto}
.swa-photo-controls button:hover{background:#fff}
.swa-photo-controls button:disabled{opacity:.38;cursor:default}
.swa-photo-controls [data-photo-count]{padding:4px 11px;border-radius:999px;background:color-mix(in srgb,var(--navy) 91%,transparent);color:#fff;font-size:.75rem;font-variant-numeric:tabular-nums;line-height:1.6}
.swa-profile-featured .swa-photo-viewport{height:auto;aspect-ratio:1.5}
.swa-profile-type-swa_coach .swa-profile-featured .swa-photo-viewport{aspect-ratio:4/5}
.swa-lightbox-content{--swa-photo-fit:contain;--swa-photo-padding:0;--swa-photo-position:center}
.swa-lightbox-content .swa-photo-viewport{height:min(66dvh,640px);background:var(--soft);border-radius:10px}
.swa-lightbox-content figcaption{margin-top:14px;color:var(--muted);font-size:.8rem;text-align:center;overflow-wrap:anywhere}
.swa-lightbox-content .swa-photo-controls{inset:50% 10px auto;transform:translateY(-50%)}
.swa-lightbox-content [data-photo-count]{position:absolute;left:50%;top:calc(min(33dvh,320px) - 35px);transform:translateX(-50%)}
.swa-club-carousel .swa-photo-viewport{display:flex;flex-direction:column;background:#fff}
.swa-club-carousel .swa-photo-track{flex:1;min-height:0;height:0}
.swa-club-carousel .swa-photo-controls{position:static;transform:none;flex-shrink:0;padding:6px 10px;background:#fff}
.swa-club-carousel [data-photo-count]{position:static;transform:none}
[data-results].is-photos{grid-template-columns:minmax(0,1fr)}
[data-results].is-photos>:is(.swa-location-card,.swa-coach-card,.swa-entity-card){display:flex;flex-direction:column}
[data-results].is-photos :is(.swa-card-image,.swa-entity-image){height:auto;min-height:0;aspect-ratio:1.8}
[data-results].is-photos .swa-coach-photo{height:360px;min-height:0}
[data-results] .swa-entity-image.swa-club-carousel{height:auto;aspect-ratio:1.7}
.swa-coaches-grid.is-list,.swa-entity-grid.is-list{grid-template-columns:minmax(0,1fr)}
.swa-coaches-grid.is-list .swa-coach-card,.swa-entity-grid.is-list .swa-entity-card{display:grid;grid-template-columns:34% minmax(0,1fr)}
.swa-coaches-grid.is-list .swa-coach-photo,.swa-entity-grid.is-list .swa-entity-image{height:100%;min-height:290px;aspect-ratio:auto}
@media(max-width:720px){
 .swa-photo-controls button{width:44px;height:44px}
 [data-results].is-photos .swa-coach-photo{height:clamp(260px,80vw,360px)}
 .swa-profile-featured .swa-photo-viewport{aspect-ratio:1.35}
 .swa-profile-type-swa_coach .swa-profile-featured .swa-photo-viewport{aspect-ratio:4/5}
 .swa-lightbox-content .swa-photo-viewport{height:60dvh}
 .swa-lightbox-content [data-photo-count]{top:calc(30dvh - 35px)}
}
@media(max-width:500px){.swa-entity-grid.is-list .swa-entity-card,.swa-coaches-grid.is-list .swa-coach-card{grid-template-columns:1fr}.swa-entity-grid.is-list .swa-entity-image{height:auto;min-height:0;aspect-ratio:1.8}.swa-coaches-grid.is-list .swa-coach-photo{height:280px;min-height:0}}

/* The first reviewed result is a single, wider card, never a duplicate. */
@media(min-width:721px){
 [data-ranked-results]>.swa-profile-card.is-featured{grid-column:1/-1;display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr)}
 [data-ranked-results]>.is-featured>.swa-photo-carousel{position:relative;height:auto;min-height:0;aspect-ratio:auto}
 [data-ranked-results]>.is-featured>.swa-photo-carousel>.swa-photo-viewport{position:absolute;inset:0}
 [data-ranked-results]>.is-featured>.swa-profile-card-body{padding:28px;min-height:330px}
 [data-ranked-results]>.is-featured h2{font-size:1.6rem}
}
