/* Horizontal native scrolling keeps swipe and vertical thread scrolling familiar. */
.group-photos{width:min(340px,100%);min-width:0;overflow:hidden;border:1px solid var(--border,rgba(127,127,127,.2));border-radius:20px;background:var(--card,#141418);box-shadow:0 3px 14px #0000000a;margin:8px 0}
.group-photos-track{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;overscroll-behavior-x:contain;scrollbar-width:none}
.group-photos-track::-webkit-scrollbar{display:none}
.group-photos-frame{flex:0 0 100%;min-width:0;aspect-ratio:4/3;scroll-snap-align:center;scroll-snap-stop:always;display:flex;align-items:center;justify-content:center;background:#151a23;cursor:zoom-in;position:relative;color:#fff}
.group-photos-frame img{width:100%;height:100%;object-fit:contain;display:block}
.group-photos-frame:focus-visible,.group-photos:focus-visible{outline:3px solid var(--accent,#6750a4);outline-offset:-4px}
.group-photos-toolbar{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:2px 8px}
.group-photos-arrow,.group-photos-close{width:44px;height:44px;border:0;border-radius:50%;background:transparent;color:inherit;font:28px/1 system-ui;cursor:pointer;flex-shrink:0}
.group-photos-arrow:hover:not(:disabled),.group-photos-close:hover{background:#80808018}
.group-photos-arrow:disabled{opacity:.25;cursor:default}
.group-photos-progress{display:flex;align-items:center;gap:10px;min-width:0}
.group-photos-dots{display:flex;gap:5px;align-items:center}
.group-photos-dots i{display:block;width:5px;height:5px;border-radius:50%;background:currentColor;opacity:.2;transition:opacity .15s,transform .15s}
.group-photos-dots i.active{opacity:.85;transform:scale(1.3)}
.group-photos-count{font:500 11px/1.4 system-ui;color:var(--muted,#666);font-variant-numeric:tabular-nums;white-space:nowrap}
.group-photos-hint{display:block;text-align:center;color:var(--muted,#666);font-size:10px;padding:0 8px 9px}
.group-photos-unavailable{padding:24px;text-align:center;font-size:12px}
.group-photo-viewer{width:min(94vw,960px);max-width:960px;max-height:94dvh;overflow:auto;border:0;border-radius:24px;padding:12px 16px 18px;background:#171b24;color:#fff;box-shadow:0 24px 100px #0008}
.group-photo-viewer::backdrop{background:#080c14dc;backdrop-filter:blur(12px)}
.group-photo-viewer-header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-left:8px}
.group-photos-large{width:100%;border:0;background:transparent;box-shadow:none}
.group-photos-large .group-photos-frame{aspect-ratio:auto;height:min(65dvh,720px);cursor:default;background:transparent}
.group-photos-large .group-photos-count{color:#ccd1dc}
.group-photo-viewer-caption{white-space:pre-wrap;overflow-wrap:anywhere;margin:12px 8px 0;color:#e1e5ed;font-size:14px}
.group-photo-draft-heading{font-size:11px;color:var(--muted,#666);padding:0 4px 6px}
.group-photo-draft-strip{display:flex;gap:10px;overflow-x:auto;padding:4px 4px 8px;scroll-snap-type:x proximity}
.group-photo-draft-item{position:relative;flex:0 0 88px}
.group-photo-draft-preview{padding:0;width:88px;height:88px;border:1px solid var(--border,rgba(127,127,127,.2));border-radius:14px;overflow:hidden;cursor:zoom-in;background:#151a23;position:relative;display:block}
.group-photo-draft-preview img{width:100%;height:100%;object-fit:cover}
.group-photo-draft-number{position:absolute;left:5px;bottom:5px;border-radius:8px;padding:1px 5px;background:#0009;color:#fff;font-size:10px}
.group-photo-draft-remove{position:absolute;right:-6px;top:-6px;width:44px;height:44px;border:0;background:transparent;color:#fff;font-size:22px;cursor:pointer;text-shadow:0 1px 4px #000}
.group-photo-draft-remove::before{content:"";position:absolute;inset:8px;border-radius:50%;background:#171b24d9;z-index:-1}
.group-photo-draft-remove{isolation:isolate}
.group-photo-draft-remove:disabled{opacity:.4;cursor:wait}
#groupPhotoPreview{padding:8px 10px 0}
@media(prefers-reduced-motion:reduce){.group-photos-dots i{transition:none}}
@media(max-width:420px){.group-photos-dots{gap:4px}.group-photos-progress{gap:7px}.group-photo-viewer{width:96vw;padding:8px;border-radius:20px}}

.group-photos-frame img[hidden],.group-photos-unavailable[hidden]{display:none}
