.content-image-thumbnail img,.content-image-preview img{display:block;width:100%;height:100%;object-fit:cover}.content-image-failure{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;width:100%;height:100%;min-height:100px;padding:16px;color:var(--xj-text-soft);font-size:var(--xj-font-caption);text-align:center}.content-image-group{gap:12px;margin-top:22px}.content-image-thumbnail{display:block;min-width:0;min-height:44px;aspect-ratio:3 / 2;padding:0;overflow:hidden;border:1px solid var(--xj-line);border-radius:12px;background:var(--xj-surface-soft);cursor:pointer}.content-image-thumbnail:hover{border-color:var(--xj-accent)}.content-image-thumbnail:focus-visible,.content-image-remove:focus-visible,.content-image-add:focus-within{outline:3px solid #7e9e62;outline-offset:4px}.content-image-picker{display:grid;gap:12px;min-width:0}.content-image-picker-label{color:var(--xj-text);font-size:var(--xj-font-body);font-weight:600}.content-image-previews{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.content-image-preview{position:relative;min-width:0;height:110px;border-radius:12px;background:var(--xj-surface-soft)}.content-image-preview img{border-radius:inherit}.content-image-remove{position:absolute;right:6px;top:6px;display:grid;place-items:center;width:44px;height:44px;padding:0;border:1px solid var(--xj-line);border-radius:50%;background:var(--xj-surface);color:var(--xj-text);cursor:pointer}.content-image-picker .content-image-add{position:relative;display:inline-flex;align-items:center;justify-content:center;gap:8px;justify-self:start;min-height:48px;max-width:100%;padding:10px 18px;border:1px solid var(--xj-line);border-radius:12px;color:var(--xj-text);background:var(--xj-surface);font-size:var(--xj-font-body);font-weight:600;cursor:pointer}.content-image-add input{position:absolute;inset:0;width:100%;height:100%;min-height:100%;padding:0;opacity:0;cursor:pointer}.content-image-add.is-disabled{opacity:.6}.content-image-add.is-disabled,.content-image-add input:disabled,.content-image-remove:disabled{cursor:not-allowed}.content-image-remove:disabled{opacity:.6}.content-image-help,.content-image-error{margin:0;font-size:var(--xj-font-caption);line-height:1.6;overflow-wrap:anywhere}.content-image-help{color:var(--xj-text-soft)}.content-image-error{color:var(--xj-error)}dialog.content-image-viewer{--viewer-inset: clamp(12px, 3vw, 24px);position:fixed;inset:0;width:100vw;height:100dvh;max-width:none;max-height:none;margin:0;padding:0;overflow:hidden;border:0;border-radius:0;background:#000c;color:#fff;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}.content-image-viewer::backdrop{background:transparent}.content-image-stage{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;padding:68px clamp(12px,8vw,88px) 28px;touch-action:pan-y}.content-image-stage img{display:block;max-width:100%;max-height:100%;object-fit:contain;-webkit-user-select:none;user-select:none}.content-image-viewer .content-image-failure{color:#fff}.content-image-viewer button.content-image-control{position:absolute;z-index:1;display:grid;place-items:center;width:48px;height:48px;min-width:48px;min-height:48px;padding:0;border:1px solid #ffffff30;border-radius:50%;background:#0008;color:#fff;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}.content-image-viewer button.content-image-control:hover{background:#000b}.content-image-viewer button.content-image-control:focus-visible{outline:3px solid #fff;outline-offset:3px}.content-image-close{top:max(var(--viewer-inset),env(safe-area-inset-top));right:max(var(--viewer-inset),env(safe-area-inset-right))}.content-image-previous,.content-image-next{top:50%;transform:translateY(-50%)}.content-image-previous{left:var(--viewer-inset)}.content-image-next{right:var(--viewer-inset)}.content-image-pager{position:absolute;z-index:1;top:max(var(--viewer-inset),env(safe-area-inset-top));left:50%;display:flex;align-items:center;justify-content:center;gap:7px;height:48px;transform:translate(-50%);pointer-events:none}.content-image-pager span{width:7px;height:7px;border-radius:50%;background:#ffffff70}.content-image-pager .is-current{background:#fff}.content-image-status{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}@media(max-width:480px){.content-image-previews{grid-template-columns:repeat(2,minmax(0,1fr))}.content-image-preview{height:100px}.content-image-group{gap:8px}}.post-image-grid{gap:4px;overflow:hidden;border-radius:12px}.post-image-grid .content-image-thumbnail{border:0;border-radius:0}.post-image-grid .content-image-thumbnail:only-child{aspect-ratio:16 / 9;max-height:280px}.post-image-grid .content-image-thumbnail:focus-visible{outline-offset:-3px}.post-image-grid:has(>:nth-child(2):last-child) .content-image-thumbnail{aspect-ratio:1}
