.community-gallery-actions{display:grid;gap:10px;margin:14px 0 4px;padding:12px 14px;border:1px solid var(--ink200);border-radius:14px;background:var(--ink50)}
.community-gallery-action-copy{display:grid;gap:3px;color:var(--ink700);font-size:11px;line-height:1.5}
.community-gallery-action-copy span{color:var(--ink500);font-size:10px}
.community-gallery-actions .tools{flex-wrap:wrap}
.community-gallery-page{display:grid;gap:16px}
.community-gallery-selection{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:12px 14px;border:1px solid var(--ink200);border-radius:14px;background:var(--ink50);color:var(--ink700)}
.community-gallery-selection>div:first-child{display:grid;gap:3px;min-width:0;font-size:11px;line-height:1.5}
.community-gallery-selection>div:first-child span{color:var(--ink500);font-size:10px}
.community-gallery-selection .tools{align-items:center;justify-content:flex-end;flex-wrap:wrap}
.community-gallery-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.community-gallery-tile{position:relative;display:block;min-width:0;aspect-ratio:4/3;padding:0;overflow:hidden;border:1px solid var(--ink200);border-radius:14px;background:var(--navy950);text-align:left;box-shadow:var(--shadow)}
.community-gallery-thumb{display:block;width:100%;height:100%;object-fit:cover;transition:transform .2s}
.community-gallery-tile:hover .community-gallery-thumb{transform:scale(1.025)}
.community-gallery-tile:focus-visible{outline:3px solid var(--gold500);outline-offset:2px}
.community-gallery-tile.is-selected{border-color:var(--gold500);box-shadow:0 0 0 2px rgba(197,152,63,.24),var(--shadow)}
.community-gallery-select-mark{position:absolute;z-index:2;top:9px;left:9px;display:none;width:27px;height:27px;place-items:center;border:1px solid rgba(255,255,255,.8);border-radius:999px;background:rgba(15,23,42,.78);color:#fff;box-shadow:0 2px 8px rgba(0,0,0,.25)}
.community-gallery-select-mark svg{width:15px;height:15px}
.community-gallery-tile.is-selecting .community-gallery-select-mark{display:grid}
.community-gallery-tile.is-selected .community-gallery-select-mark{background:var(--gold600,#9a7425)}
.community-gallery-tile.is-not-selectable .community-gallery-select-mark{color:rgba(255,255,255,.72)}
.community-gallery-play{position:absolute;inset:0;display:grid;place-items:center;background:linear-gradient(180deg,transparent 25%,rgba(2,6,23,.5));color:#fff}
.community-gallery-play svg{width:38px;height:38px;filter:drop-shadow(0 3px 10px rgba(0,0,0,.35))}
.community-gallery-type{position:absolute;top:9px;left:9px;padding:4px 7px;border:1px solid rgba(255,255,255,.35);border-radius:999px;background:rgba(15,23,42,.68);color:#fff;font-size:9px;font-weight:800}
.community-gallery-caption{position:absolute;right:0;bottom:0;left:0;padding:22px 10px 9px;background:linear-gradient(transparent,rgba(2,6,23,.78));color:#fff;font-size:10px;font-weight:700;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.community-gallery-pagination{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 0;color:var(--ink500);font-size:11px}
.community-gallery-pagination .tools{align-items:center}
.community-gallery-pagination .tools>span{font:600 10px 'JetBrains Mono';white-space:nowrap}
.community-gallery-unavailable{color:var(--ink500);font-size:11px}
.community-viewer-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap}
@media(max-width:980px){.community-gallery-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:640px){.community-gallery-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.community-gallery-pagination{align-items:flex-start;flex-direction:column}.community-gallery-pagination .tools{width:100%;justify-content:space-between}.community-gallery-actions .tools>.btn{flex:1}.community-gallery-selection{align-items:flex-start;flex-direction:column}.community-gallery-selection .tools{width:100%;justify-content:flex-start}.community-gallery-selection .tools>.btn{flex:1}}
