{ name: "image", description: "Image component with inline img (src + description) and layout", tags: ["component", "media"], category: "components", fields: { name: { type: "string", required: true, description: "Internal component name", }, img: { type: "referenceOrInline", collection: "img", required: true, description: "Image: Slug (Referenz) oder Inline-Objekt (gleiche Felder wie img)", }, caption: { type: "string", description: "Image caption", }, layout: { type: "object", useFields: "component_layout", description: "Column width (grid)", }, maxWidth: { type: "integer", description: "Max width in px", }, aspectRatio: { type: "string", description: "Aspect ratio", enum: ["1:1", "4:3", "3:2", "16:9", "21:9", "2:3", "3:4"], default: "4:3", }, }, }