 {
  "$schema": "https://schemas.wp.org/trunk/block.json",
  "apiVersion": 3,
  "name": "flexa/images-gallery",
  "version": "1.0.0",
  "title": "Images Gallery",
  "category": "flexa",
  "description": "Multi-image gallery in a grid, masonry or justified-tiled layout with per-device columns and gap, hover motion, colour or gradient overlay, captions and a prev/next lightbox.",
  "keywords": [
    "flexa",
    "gallery",
    "images",
    "masonry",
    "lightbox",
    "photos"
  ],
  "textdomain": "flexa-block",
  "example": {
    "attributes": {
      "isExamplePreview": true
    },
    "viewportWidth": 500
  },
  "attributes": {
    "isExamplePreview": {
      "type": "boolean",
      "default": false
    },
    "blockId": {
      "type": "string"
    },
    "images": {
      "type": "array",
      "default": []
    },
    "galleryLayout": {
      "type": "string",
      "default": "grid",
      "enum": [
        "grid",
        "masonry",
        "tiled"
      ]
    },
    "columns": {
      "type": "object",
      "default": {
        "desktop": {
          "value": "3",
          "unit": ""
        },
        "tablet": {
          "value": "2",
          "unit": ""
        },
        "mobile": {
          "value": "1",
          "unit": ""
        }
      }
    },
    "gap": {
      "type": "object",
      "default": {
        "desktop": {
          "value": "12",
          "unit": "px"
        },
        "tablet": {},
        "mobile": {}
      }
    },
    "tiledHeight": {
      "type": "object",
      "default": {
        "desktop": {
          "value": "220",
          "unit": "px"
        },
        "tablet": {},
        "mobile": {}
      }
    },
    "imageSize": {
      "type": "string",
      "default": "large"
    },
    "aspectRatio": {
      "type": "object",
      "default": {
        "enabled": false,
        "ratio": "1/1"
      }
    },
    "imageRadius": {
      "type": "object",
      "default": {
        "desktop": {
          "value": "",
          "unit": "px"
        },
        "tablet": {},
        "mobile": {}
      }
    },
    "imageShadow": {
      "type": "object",
      "default": {
        "horizontal": "0",
        "vertical": "6",
        "blur": "16",
        "spread": "0",
        "color": {
          "light": "rgba(0,0,0,0.15)",
          "dark": ""
        },
        "inset": false,
        "enabled": false
      }
    },
    "lazyLoad": {
      "type": "boolean",
      "default": true
    },
    "hoverEffect": {
      "type": "string",
      "default": "none"
    },
    "overlay": {
      "type": "object",
      "default": {
        "type": "none",
        "color": {
          "light": "",
          "dark": ""
        },
        "gradient": {
          "light": "",
          "dark": ""
        },
        "opacity": 0.3,
        "hoverOpacity": 0.5
      }
    },
    "caption": {
      "type": "object",
      "default": {
        "show": false,
        "display": "overlay",
        "position": "bottom",
        "visibility": "always",
        "alignment": "center"
      }
    },
    "captionColor": {
      "type": "object",
      "default": {
        "light": "#ffffff",
        "dark": ""
      }
    },
    "captionBackground": {
      "type": "object",
      "default": {
        "light": "",
        "dark": ""
      }
    },
    "captionTypography": {
      "type": "object",
      "default": {
        "desktop": {},
        "tablet": {},
        "mobile": {}
      }
    },
    "clickAction": {
      "type": "string",
      "default": "lightbox",
      "enum": [
        "none",
        "lightbox",
        "media"
      ]
    },
    "lightbox": {
      "type": "object",
      "default": {
        "background": {
          "light": "rgba(17,17,17,0.9)",
          "dark": ""
        },
        "showCaption": true
      }
    },
    "spacing": {
      "type": "object",
      "default": {
        "desktop": {},
        "tablet": {},
        "mobile": {}
      }
    },
    "background": {
      "type": "object",
      "default": {
        "type": "none",
        "color": {
          "light": "",
          "dark": ""
        },
        "gradient": {
          "light": "",
          "dark": ""
        },
        "image": {
          "url": "",
          "id": null,
          "position": "center center",
          "repeat": "no-repeat",
          "size": "cover",
          "attachment": "scroll"
        },
        "lazyLoad": false
      }
    },
    "border": {
      "type": "object",
      "default": {
        "desktop": {
          "style": "",
          "width": {
            "top": "",
            "right": "",
            "bottom": "",
            "left": "",
            "unit": "px"
          },
          "color": {
            "light": "",
            "dark": ""
          },
          "radius": {
            "topLeft": "",
            "topRight": "",
            "bottomRight": "",
            "bottomLeft": "",
            "unit": "px"
          }
        },
        "tablet": {},
        "mobile": {}
      }
    },
    "boxShadow": {
      "type": "object",
      "default": {
        "horizontal": "0",
        "vertical": "4",
        "blur": "12",
        "spread": "0",
        "color": {
          "light": "rgba(0,0,0,0.1)",
          "dark": ""
        },
        "inset": false,
        "enabled": false
      }
    },
    "advancedLayout": {
      "type": "object",
      "default": {
        "desktop": {
          "zIndex": "",
          "overflow": "",
          "position": ""
        },
        "tablet": {},
        "mobile": {}
      }
    },
    "responsiveVisibility": {
      "type": "object",
      "default": {
        "hideOnDesktop": false,
        "hideOnTablet": false,
        "hideOnMobile": false
      }
    },
    "animation": {
      "type": "object",
      "default": {
        "type": "none",
        "duration": "normal",
        "delay": ""
      }
    },
    "htmlAttributes": {
      "type": "object",
      "default": {
        "customAttributes": []
      }
    }
  },
  "supports": {
    "anchor": true,
    "className": true,
    "html": false,
    "align": false
  },
  "editorScript": "file:./index.js",
  "editorStyle": "file:./index.css",
  "style": "file:./style-index.css",
  "viewScript": "file:./view.js",
  "render": "file:./render.php"
}