AI media harness for planning, generating, and editing locally
TypeScript
Refresh project library
Bitti4de06bf8db09
diff --git a/src-tauri/src/lib.rs b/src-tauri/src/lib.rsindex ccef398..3b30832 100644--- a/src-tauri/src/lib.rs+++ b/src-tauri/src/lib.rs@@ -588,9 +588,6 @@ fn validate_and_normalize_config(mut config: ProjectConfig) -> Result<ProjectCon}check_iso_datetime("Project createdAt", &config.created_at)?;check_iso_datetime("Project updatedAt", &config.updated_at)?;- if config.brief.prompt.trim().is_empty() {- return Err("Project brief cannot be empty.".into());- }if !is_supported_aspect_ratio(&config.settings.aspect_ratio) {return Err(format!("Unsupported aspect ratio '{}'.",@@ -3451,6 +3448,14 @@ mod tests {);}+ #[test]+ fn blank_brief_is_a_valid_empty_project() {+ let mut config = fixture();+ config.brief.prompt.clear();+ config.generation_jobs.clear();+ assert!(validate_and_normalize_config(config).is_ok());+ }+#[test]fn validator_rejects_what_the_frontend_schema_rejects() {// Configs arriving from the agent subprocess are written to disk beforediff --git a/src/App.test.tsx b/src/App.test.tsxindex bc78ee9..74e43ac 100644--- a/src/App.test.tsx+++ b/src/App.test.tsx@@ -4,7 +4,7 @@ import { cleanup, fireEvent, render, screen, waitFor } from "@testing-library/reimport { afterEach, beforeEach, describe, expect, it } from "vitest";import App from "./App";import { ProjectCard, relativeDate } from "./components/ProjectCard";-import { createProjectConfig } from "./lib/project";+import { createProjectConfig, STORY_TRACK_ID } from "./lib/project";describe("how long ago a project was edited", () => {afterEach(cleanup);@@ -32,6 +32,20 @@ describe("how long ago a project was edited", () => {const { container } = render(<ProjectCard project={{ folderPath: "C:\\Ceramic Lamp", config }} index={0} onOpen={() => undefined} />);expect(container.querySelector(".project-card__meta")!.textContent).toContain("Edited just now");});++ it("uses the first visual timeline asset as the project cover", () => {+ const config = createProjectConfig({ name: "Ceramic lamp", prompt: "A quiet product film", aspectRatio: "16:9", resolution: "1080p", targetDurationSeconds: 30 });+ config.assets = [{+ id: "asset-cover", kind: "video", name: "Opening shot", relativePath: "media/opening.mp4", sourcePath: null,+ mimeType: "video/mp4", durationMs: 5_000, width: 1920, height: 1080, createdAt: config.createdAt,+ }];+ config.timeline.tracks = config.timeline.tracks.map((track) => track.id === STORY_TRACK_ID ? { ...track, clips: [{+ id: "clip-cover", assetId: "asset-cover", trackId: track.id, startMs: 2_000, durationMs: 3_000,+ sourceStartMs: 750, label: "Opening shot", color: null, status: "approved",+ }] } : track);+ const { container } = render(<ProjectCard project={{ folderPath: "C:\\Ceramic Lamp", config }} index={0} onOpen={() => undefined} />);+ expect(container.querySelector(".project-card__art > .media-thumb")?.getAttribute("aria-label")).toBe("Opening shot");+ });});describe("project library controls", () => {@@ -41,6 +55,7 @@ describe("project library controls", () => {it("can put back words an example chip overwrote", async () => {const { container } = render(<App />);await screen.findByText("Northern Light — Brand Film");+ fireEvent.click(screen.getByRole("button", { name: "New project" }));const box = screen.getByRole("textbox", { name: "Describe your video" }) as HTMLTextAreaElement;fireEvent.change(box, { target: { value: "a rocket launch over the ocean at dawn" } });// While the box holds the user's own words the row says what a click costs.@@ -94,6 +109,7 @@ describe("project library controls", () => {it("offers frame sizes MiniMax H3 can generate, relabelled when the shape changes", async () => {render(<App />);await screen.findByText("Northern Light — Brand Film");+ fireEvent.click(screen.getByRole("button", { name: "New project" }));const shape = screen.getByRole("combobox", { name: /Video shape/ }) as HTMLSelectElement;const size = screen.getByRole("combobox", { name: /Frame size/ }) as HTMLSelectElement;@@ -124,6 +140,7 @@ describe("project library controls", () => {it("opens a prompt-created project in Generator with its initial draft selected", async () => {render(<App />);await screen.findByText("Northern Light — Brand Film");+ fireEvent.click(screen.getByRole("button", { name: "New project" }));fireEvent.change(screen.getByRole("textbox", { name: "Describe your video" }), { target: { value: "A quiet product film for a ceramic lamp" } });fireEvent.click(screen.getByRole("button", { name: "Create project" }));await screen.findByRole("heading", { name: "Generator" });@@ -133,6 +150,18 @@ describe("project library controls", () => {expect(await screen.findByText("Preview mode")).not.toBeNull();});+ it("creates an empty project when the new-project form is left blank", async () => {+ render(<App />);+ await screen.findByText("Northern Light — Brand Film");+ fireEvent.click(screen.getByRole("button", { name: "New project" }));+ expect(screen.getByRole("dialog", { name: "What do you want to make?" })).not.toBeNull();+ fireEvent.click(screen.getByRole("button", { name: "Create project" }));++ expect(await screen.findByRole("heading", { name: "Timeline editor" })).not.toBeNull();+ expect(screen.getAllByText("Untitled video").length).toBeGreaterThan(0);+ expect(screen.queryByText("First scene")).toBeNull();+ });+it("reports a project it can’t read instead of dropping it from the library", async () => {const readable = createProjectConfig({ name: "Readable film", prompt: "A calm kitchen scene", aspectRatio: "16:9", resolution: "1080p", targetDurationSeconds: 30 });localStorage.setItem("polstudio.web-projects.v1", JSON.stringify([diff --git a/src/App.tsx b/src/App.tsxindex 420b6d4..602c51e 100644--- a/src/App.tsx+++ b/src/App.tsx@@ -1,6 +1,6 @@import { invoke } from "@tauri-apps/api/core";import { listen } from "@tauri-apps/api/event";-import { FolderOpen, Grid2X2, List, Search, Settings } from "lucide-react";+import { FolderOpen, Grid2X2, List, Plus, Search, Settings } from "lucide-react";import { useCallback, useEffect, useMemo, useRef, useState } from "react";import { Brand } from "./components/Brand";import { ExitGuardDialog, type OngoingGeneration } from "./components/ExitGuardDialog";@@ -30,6 +30,7 @@ function App() {const [query, setQuery] = useState("");const [projectLayout, setProjectLayout] = useState<"grid" | "list">("grid");const [error, setError] = useState<LibraryError | null>(null);+ const [newProjectOpen, setNewProjectOpen] = useState(false);/* Settings is an overlay rather than a view of its own so opening it frominside a project cannot unmount the editor and throw away unsaved edits.Closing it bumps `settingsRevision`, which is what tells an open project to@@ -153,7 +154,8 @@ function App() {const project = await createProject(input);if (!project) return;setProjects((current) => [project, ...current]);- setActiveProjectInitialView("generator");+ setNewProjectOpen(false);+ setActiveProjectInitialView(input.prompt.trim() ? "generator" : "timeline");setActiveProject(project);} catch (reason) {setError({ title: "Couldn’t create that project", detail: describe(reason) });@@ -191,10 +193,9 @@ function App() {<Brand /><div className="search-field"><Search size={17} /><input ref={searchInput} value={query} onChange={(event) => setQuery(event.target.value)} placeholder="Search projects" aria-label="Search projects" /><kbd>Ctrl K</kbd></div><button className="secondary-button" onClick={() => void openFromFolder()}><FolderOpen size={17} /> Open project</button>+ <button className="primary-button" onClick={() => setNewProjectOpen(true)}><Plus size={17} /> New project</button></header><div className="library__content">- <PromptComposer busy={busy} onCreate={createFromPrompt} />-<section className="recent-projects" aria-labelledby="recent-heading"><div className="section-heading"><div>@@ -221,7 +222,7 @@ function App() {<div className="library-empty"><FolderOpen size={28} /><h3>No projects yet</h3>- <p>Describe your video in the box above and press <strong>Create project</strong>. PolStudio makes the folder, the settings, and a first scene for you.</p>+ <p>Create an empty project, or add a description and start with a first scene.</p><p className="library-empty__aside">Already made one on this computer?</p><button className="secondary-button" onClick={() => void openFromFolder()}><FolderOpen size={17} /> Open project</button></div>@@ -230,6 +231,7 @@ function App() {</div></main>{settingsLauncher}+ {newProjectOpen && <PromptComposer busy={busy} onCreate={createFromPrompt} onClose={() => setNewProjectOpen(false)} />}{settingsOpen && <SettingsView onClose={closeSettings} />}{exitGuard}{error && <div className="toast" role="alert"><strong>{error.title}</strong><span>{error.detail}</span><button onClick={() => setError(null)}>Dismiss</button></div>}diff --git a/src/components/ProjectCard.tsx b/src/components/ProjectCard.tsxindex 4ab99d4..17096e7 100644--- a/src/components/ProjectCard.tsx+++ b/src/components/ProjectCard.tsx@@ -1,7 +1,8 @@import { Clock3, Folder, MoreHorizontal, Play, Ratio, Sparkles } from "lucide-react";import { useEffect, useRef, useState } from "react";-import { resolutionLabel } from "../lib/export";+import { resolutionLabel, visibleClipAt } from "../lib/export";import type { ProjectRecord } from "../lib/project";+import { MediaThumbnail } from "./workspace/MediaThumbnail";interface ProjectCardProps {project: ProjectRecord;@@ -41,6 +42,12 @@ export function ProjectCard({ project, index, onOpen }: ProjectCardProps) {const menuAnchor = useRef<HTMLDivElement>(null);const { config } = project;const style = config.thumbnail ? { backgroundImage: `url(${JSON.stringify(config.thumbnail).slice(1, -1)})` } : undefined;+ const firstVisualMs = config.timeline.tracks+ .filter((track) => track.kind === "video")+ .flatMap((track) => track.clips)+ .reduce<number | null>((first, clip) => first === null ? clip.startMs : Math.min(first, clip.startMs), null);+ const firstClip = firstVisualMs === null ? null : visibleClipAt(config.timeline.tracks, firstVisualMs);+ const firstAsset = firstClip ? config.assets.find((asset) => asset.id === firstClip.assetId) : undefined;useEffect(() => {if (!menuOpen) return;@@ -65,7 +72,13 @@ export function ProjectCard({ project, index, onOpen }: ProjectCardProps) {return (<article className="project-card" onDoubleClick={() => onOpen(project)}><button className="project-card__art-button" onClick={() => onOpen(project)} aria-label={`Open ${config.name}`}>- <div className={`project-card__art project-card__art--${artwork[index % artwork.length]}`} style={style}>+ <div className={`project-card__art project-card__art--${artwork[index % artwork.length]}${firstAsset ? " project-card__art--media" : ""}`} style={style}>+ {firstAsset && <MediaThumbnail+ key={`${firstAsset.id}-${firstClip!.sourceStartMs}`}+ folderPath={project.folderPath}+ asset={firstAsset}+ posterTimeSeconds={firstClip!.sourceStartMs / 1000}+ />}<span className="project-card__format"><Ratio size={13} /> {config.settings.aspectRatio}</span><span className="project-card__quality">{resolutionLabel(config.settings.resolution, config.settings.aspectRatio)}</span><span className="project-card__play"><Play size={18} fill="currentColor" /></span>diff --git a/src/components/PromptComposer.tsx b/src/components/PromptComposer.tsxindex 6e14818..e125ed1 100644--- a/src/components/PromptComposer.tsx+++ b/src/components/PromptComposer.tsx@@ -9,6 +9,7 @@ import { PolStudioLogo } from "./PolStudioLogo";interface PromptComposerProps {busy: boolean;onCreate: (input: CreateProjectInput) => Promise<void>;+ onClose: () => void;}/** Clicking a chip fills the box with a complete starter description. */@@ -43,8 +44,7 @@ const durationLabel = (seconds: number) =>const modifierKey =typeof navigator !== "undefined" && /Mac|iPhone|iPad/i.test(navigator.userAgent) ? "⌘" : "Ctrl";-export function PromptComposer({ busy, onCreate }: PromptComposerProps) {- const [open, setOpen] = useState(false);+export function PromptComposer({ busy, onCreate, onClose }: PromptComposerProps) {const [prompt, setPrompt] = useState("");const [aspectRatio, setAspectRatio] = useState<AspectRatio>("16:9");const [resolution, setResolution] = useState<Resolution>(DEFAULT_RESOLUTION);@@ -77,18 +77,16 @@ export function PromptComposer({ busy, onCreate }: PromptComposerProps) {setPrompt(ideaPrompt);};- /* Focus the box when the section is opened — that click is a statement of- intent, so landing in the field saves a second one. It used to fire on- mount, which is wrong now that the section starts closed: there would be- nothing to focus. Focus still moves only from the summary that was just- activated or from nowhere, so it never yanks focus off a field the user- already picked (Ctrl+K search included). */+ /* Opening the modal is a statement of intent, so land in the optional brief. */useEffect(() => {- if (!open) return;- const active = document.activeElement;- if (active && active !== document.body && !(active instanceof HTMLElement && active.tagName === "SUMMARY")) return;promptInput.current?.focus({ preventScroll: true });- }, [open]);+ }, []);++ useEffect(() => {+ const close = (event: KeyboardEvent) => { if (event.key === "Escape" && !busy) onClose(); };+ window.addEventListener("keydown", close);+ return () => window.removeEventListener("keydown", close);+ }, [busy, onClose]);const addReferenceImages = async () => {setReferenceError(null);@@ -101,7 +99,7 @@ export function PromptComposer({ busy, onCreate }: PromptComposerProps) {};const submit = async () => {- if (!prompt.trim() || busy) return;+ if (busy) return;await onCreate({name: projectNameFromPrompt(prompt),prompt,@@ -113,16 +111,13 @@ export function PromptComposer({ busy, onCreate }: PromptComposerProps) {};return (- /* Collapsed by default. The library's job on open is to show you your- projects; starting a new one is deliberate, so it asks for one click- rather than taking the top of the page every time. <details> carries the- open/closed state and the keyboard behaviour natively. */- <details className="composer-shell" open={open} onToggle={(event) => setOpen(event.currentTarget.open)}>- <summary className="composer-heading">- <span className="eyebrow"><Sparkles size={14} /> New project</span>- <h2 id="create-heading">What do you want to make?</h2>- <ChevronDown className="composer-heading__chevron" size={20} aria-hidden="true" />- </summary>+ <div className="composer-overlay" role="dialog" aria-modal="true" aria-labelledby="create-heading">+ <section className="composer-shell">+ <header className="composer-heading">+ <div><span className="eyebrow"><Sparkles size={14} /> New project</span>+ <h2 id="create-heading">What do you want to make?</h2></div>+ <button className="icon-button icon-button--strong" onClick={onClose} disabled={busy} aria-label="Close new project"><X size={18} /></button>+ </header><div className="composer-shell__glow" /><div className="composer">@@ -198,7 +193,7 @@ export function PromptComposer({ busy, onCreate }: PromptComposerProps) {</button>{/* The shortcut rides on the button it triggers rather than holding apermanent line of its own in the action row. */}- <button className="primary-button composer__submit" disabled={!prompt.trim() || busy} aria-busy={busy} onClick={() => void submit()} title={`Create project — or press ${modifierKey}+Enter`}>+ <button className="primary-button composer__submit" disabled={busy} aria-busy={busy} onClick={() => void submit()} title={`Create project — or press ${modifierKey}+Enter`}>{busy ? <span className="spinner" /> : <WandSparkles size={18} />}Create project</button>@@ -218,6 +213,7 @@ export function PromptComposer({ busy, onCreate }: PromptComposerProps) {<Undo2 size={15} /> Undo — put my words back</button>}</div>- </details>+ </section>+ </div>);}diff --git a/src/components/workspace/MediaThumbnail.tsx b/src/components/workspace/MediaThumbnail.tsxindex e82d2e0..54d991b 100644--- a/src/components/workspace/MediaThumbnail.tsx+++ b/src/components/workspace/MediaThumbnail.tsx@@ -117,7 +117,7 @@ const release = (element: HTMLMediaElement) => {}};-async function videoPoster(url: string): Promise<{ poster: string | null; measured: MeasuredMedia }> {+async function videoPoster(url: string, posterTimeSeconds: number): Promise<{ poster: string | null; measured: MeasuredMedia }> {const video = document.createElement("video");video.muted = true;video.preload = "auto";@@ -131,7 +131,9 @@ async function videoPoster(url: string): Promise<{ poster: string | null; measurwidth: pixelsOf(video.videoWidth),height: pixelsOf(video.videoHeight),};- const target = Number.isFinite(video.duration) ? Math.min(video.duration / 2, POSTER_TIME_SECONDS) : 0;+ const target = Number.isFinite(video.duration)+ ? Math.min(Math.max(0, video.duration - 0.05), Math.max(0, posterTimeSeconds))+ : 0;// Frame zero is a perfectly good fallback, so a seek that fails — or one that// simply never arrives — costs the half-second offset and nothing else.if (target > 0) {@@ -175,24 +177,28 @@ async function measureAudio(url: string): Promise<MeasuredMedia> {const wantsMeasuring = (asset: ProjectAsset) =>asset.kind === "image" ? !asset.width || !asset.height : !asset.durationMs;-export function MediaThumbnail({ folderPath, asset, onMeasured }: {+export function MediaThumbnail({ folderPath, asset, onMeasured, posterTimeSeconds = POSTER_TIME_SECONDS }: {folderPath: string;asset: ProjectAsset;/** Called once with whatever the decode could measure, so the project can* record the file's real length instead of carrying nulls. Omit it and this* component only draws. */onMeasured?: (measured: MeasuredMedia) => void;+ /** Video time to draw. Media cards avoid fade-in black; project covers use+ * the exact first source frame present in the edit. */+ posterTimeSeconds?: number;}) {- const cacheKey = `${folderPath}::${asset.sourcePath ?? asset.relativePath}`;- const [poster, setPoster] = useState<string | null>(() => POSTER_CACHE.get(cacheKey) ?? null);+ const fileKey = `${folderPath}::${asset.sourcePath ?? asset.relativePath}`;+ const posterKey = `${fileKey}::${Math.max(0, posterTimeSeconds)}`;+ const [poster, setPoster] = useState<string | null>(() => POSTER_CACHE.get(posterKey) ?? null);const [failed, setFailed] = useState(false);/* Held in a ref because the parent passes a fresh closure on every render,and a callback in the dependency list would re-read the file each time. */const report = useRef(onMeasured);report.current = onMeasured;- const needsPoster = asset.kind !== "audio" && !POSTER_CACHE.has(cacheKey);- const needsMeasuring = Boolean(onMeasured) && !UNMEASURABLE.has(cacheKey) && wantsMeasuring(asset);+ const needsPoster = asset.kind !== "audio" && !POSTER_CACHE.has(posterKey);+ const needsMeasuring = Boolean(onMeasured) && !UNMEASURABLE.has(fileKey) && wantsMeasuring(asset);/* One read of the file per mount, however often this effect re-runs.Measuring the asset changes it, and that change re-runs the effect — sowithout this, a file that gave up its numbers but no drawable frame would@@ -203,8 +209,8 @@ export function MediaThumbnail({ folderPath, asset, onMeasured }: {// Nothing to draw and nothing left to learn: sound has no picture, a cached// poster is already the answer, and a measured asset stays measured.if (!needsPoster && !needsMeasuring) return;- if (readOnce.current === cacheKey) return;- readOnce.current = cacheKey;+ if (readOnce.current === posterKey) return;+ readOnce.current = posterKey;let live = true;setFailed(false);void (async () => {@@ -218,31 +224,31 @@ export function MediaThumbnail({ folderPath, asset, onMeasured }: {if (asset.kind === "audio") {measured = await measureAudio(url);} else {- const value = asset.kind === "image" ? await imagePoster(url) : await videoPoster(url);+ const value = asset.kind === "image" ? await imagePoster(url) : await videoPoster(url, posterTimeSeconds);measured = value.measured;// A file that opened but would not draw is still a file that could// not be previewed, and the panel says so — after taking what it did// learn from it.- if (value.poster) cachePoster(cacheKey, value.poster);+ if (value.poster) cachePoster(posterKey, value.poster);if (live) { if (value.poster) setPoster(value.poster); else setFailed(true); }}// Only ever hand up numbers something read off the file. When the file// gave none, remember that rather than reading it again next mount.if (measuredSomething(measured)) report.current?.(measured);- else UNMEASURABLE.add(cacheKey);+ else UNMEASURABLE.add(fileKey);} catch {- UNMEASURABLE.add(cacheKey);+ UNMEASURABLE.add(fileKey);if (live) setFailed(true);} finally {if (url) URL.revokeObjectURL(url);}})();return () => { live = false; };- }, [cacheKey, folderPath, asset.relativePath, asset.sourcePath, asset.mimeType, asset.kind, needsPoster, needsMeasuring]);+ }, [posterKey, fileKey, folderPath, asset.relativePath, asset.sourcePath, asset.mimeType, asset.kind, posterTimeSeconds, needsPoster, needsMeasuring]);if (poster) {return <span className="media-thumb media-thumb--poster">- <img src={poster} alt={`First frames of ${asset.name}`} loading="lazy" />+ <img src={poster} alt={`Frame from ${asset.name}`} loading="lazy" /></span>;}/* Three states, said plainly: sound never has a picture, a file the projectdiff --git a/src/lib/project.ts b/src/lib/project.tsindex 9516ebb..c66f9ec 100644--- a/src/lib/project.ts+++ b/src/lib/project.ts@@ -164,7 +164,8 @@ export const timelineTrackSchema = z.object({});export const generationBriefSchema = z.object({- prompt: z.string().min(1),+ /* Blank is a real empty project: no brief and no seeded scene. */+ prompt: z.string(),status: z.enum(["draft", "queued", "generating", "ready", "failed"]),targetDurationSeconds: z.number().int().min(5).max(600),aspectRatio: aspectRatioSchema,@@ -1052,7 +1053,7 @@ export function createProjectConfig(input: CreateProjectInput): ProjectConfig {{ id: "track-a2", kind: "audio", name: "Track 2", locked: false, muted: false, clips: [] },] },references: [],- generationJobs: [createDraftGenerationJob(brief, { id: "job-initial-brief", title: "First scene", now })],+ generationJobs: brief ? [createDraftGenerationJob(brief, { id: "job-initial-brief", title: "First scene", now })] : [],agentConversation: { messages: [] }, providerSettings: {},});}diff --git a/src/styles/library.css b/src/styles/library.cssindex e6fa797..e1ab789 100644--- a/src/styles/library.css+++ b/src/styles/library.css@@ -49,9 +49,24 @@/* --- Prompt composer ------------------------------------------------------- */+.composer-overlay {+ position: fixed;+ z-index: 60;+ inset: 0;+ overflow-y: auto;+ display: grid;+ align-content: center;+ padding: var(--space-7) var(--space-5);+ background: var(--scrim);+ backdrop-filter: blur(10px);+}+.composer-shell {+ width: min(880px, 100%);+ max-height: calc(100dvh - var(--space-7) * 2);+ margin: 0 auto;position: relative;- overflow: hidden;+ overflow-y: auto;border: 1px solid var(--accent-line);border-radius: var(--radius-xl);padding: var(--space-6);@@ -78,35 +93,11 @@grid-template-columns: minmax(0, 1fr) auto;align-items: center;gap: var(--space-3);- cursor: pointer;- list-style: none;-}--/* Both engines' default disclosure triangles, replaced by the chevron below. */-.composer-heading::-webkit-details-marker {- display: none;-}--.composer-heading__chevron {- grid-row: 1 / 3;- grid-column: 2;- flex: 0 0 auto;- color: var(--text-muted);- transition: transform 0.18s ease;-}--.composer-shell[open] .composer-heading__chevron {- transform: rotate(180deg);+ cursor: default;}-/* Closed, the shell is a single control-height row; the padding that frames a- full composer would leave it looking like an empty card. */-.composer-shell:not([open]) {- padding: var(--space-4) var(--space-5);-}--.composer-shell:not([open]) .composer-heading h2 {- margin-bottom: 0;+.composer-heading > div {+ min-width: 0;}.composer-heading h2 {@@ -539,6 +530,30 @@background-position: center;}+/* The first visual clip supplies the cover. Placeholders stay transparent so+ the built-in artwork remains a useful fallback in browser preview or when a+ source file cannot be read. */+.project-card__art > .media-thumb {+ position: absolute;+ z-index: 1;+ inset: 0;+ width: 100%;+ height: 100%;+ border: 0;+ border-radius: 0;+}++.project-card__art > .media-thumb:not(.media-thumb--poster) {+ display: none;+}++.project-card__art > .media-thumb img {+ width: 100%;+ height: 100%;+ display: block;+ object-fit: cover;+}+.project-card__art::before,.project-card__art::after {content: "";