/* Community cards and manual image carousel; all rules scoped to community media. */
.m-space-cover.community-card-link{padding:0;overflow:hidden;height:100%;display:flex;flex-direction:column}
.community-card-copy{padding:22px;flex:1;display:flex;flex-direction:column;min-width:0}
.community-card-copy>.m-row{font-size:12px;color:var(--muted)}
.community-card-copy .m-card-bottom{margin-top:auto}
.community-card-copy h2{margin-top:16px}
.community-media{margin:0;min-width:0;background:#edf0f3;position:relative}
.community-image-frame{position:relative;aspect-ratio:16/10;overflow:hidden;display:grid;place-items:center;background:linear-gradient(125deg,#e1e9ed,#f3f2ed)}
.community-image-frame img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block}
.community-image-frame img[hidden]{display:none}
.community-image-fallback{font-size:14px;color:#596573;padding:20px;text-align:center}
.community-media figcaption{background:#f4f5f6;color:#495563;font-size:11px;line-height:1.6;padding:7px 12px;border-bottom:1px solid var(--line)}
.community-gallery{max-width:100%;min-width:0;margin-bottom:24px}
.community-gallery-track{display:flex;overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x mandatory;scrollbar-width:thin;max-width:100%;border-radius:4px}
.community-gallery-track>.community-media{flex:0 0 100%;scroll-snap-align:start;scroll-snap-stop:always}
.community-gallery-controls{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:12px;font-size:13px}
.community-gallery-controls button{min-height:44px;padding:8px 12px}
.community-gallery-controls button[hidden]{display:none}
.community-gallery-controls button:disabled{opacity:.45;cursor:default}
.community-gallery-hint{font-size:12px!important;line-height:1.7;color:var(--muted);margin-top:10px}
.community-gallery-track:focus-visible,.community-gallery-controls button:focus-visible,.community-card-link:focus-visible{outline:3px solid #244bd8;outline-offset:3px}
.detail-layout:has(.community-gallery)>div{min-width:0}
.community-no-media{padding:24px;background:#edf0f3;color:#596573;text-align:center}
@media(max-width:480px){.community-card-copy{padding:18px}.community-gallery-controls button{font-size:12px;padding:8px}.community-media figcaption{font-size:11px}}
@media(prefers-reduced-motion:reduce){.community-gallery-track{scroll-behavior:auto}}
