{
  "template": "tpl_gallerySlideshow",
  "name": "Product slideshow",
  "version": 1,
  "canvas": {"w": 1080, "h": 1920, "fps": 30, "duration": 7},
  "variables": {
    "title": {"type": "text", "max": 40},
    "slides": {
      "type": "list",
      "min": 1,
      "max": 20,
      "section": {"start": 2, "dur": 3},
      "fields": {
        "photo": {"type": "image", "required": true},
        "caption": {"type": "text", "max": 40, "required": false}
      }
    },
    "cta": {"type": "text", "max": 24},
    "brand_color": {"type": "color"},
    "logo": {"type": "image", "required": false},
    "music": {"type": "audio", "required": false}
  },
  "tracks": [
    {"id": "V1", "kind": "video", "clips": [
      {"id": "intro", "kind": "color", "src": "{{brand_color}}", "start": 0, "dur": 2},
      {"id": "shot", "kind": "image", "src": "{{slides.photo}}", "start": 2, "dur": 3, "move": "zoom_in"},
      {"id": "outro", "kind": "color", "src": "{{brand_color}}", "start": 5, "dur": 2, "anim": "fade_in"}
    ]},
    {"id": "T1", "kind": "text", "clips": [
      {"id": "title", "kind": "text", "src": "{{title}}", "start": 0.2, "dur": 1.7, "size": 110, "edge": "top", "anim": "fade_in"},
      {"id": "cap", "kind": "text", "src": "{{slides.caption}}", "start": 2.3, "dur": 2.6, "size": 80, "edge": "bottom", "anim": "slide_up"},
      {"id": "cta", "kind": "text", "src": "{{cta}}", "start": 5.3, "dur": 1.6, "size": 96, "edge": "bottom", "anim": "slide_up"}
    ]},
    {"id": "O1", "kind": "overlay", "clips": [
      {"id": "logo", "kind": "overlay", "src": "{{logo}}", "start": 0, "dur": 7, "anim": "fade_in"}
    ]},
    {"id": "A1", "kind": "audio", "clips": [
      {"id": "music", "kind": "audio", "src": "{{music}}", "start": 0, "dur": 7, "gain": 0.6, "anim": "fade_out"}
    ]}
  ]
}
