{
  "$schema": "https://schemas.wp.org/trunk/block.json",
  "name": "magazine-blocks/grid-module",
  "title": "Grid Module",
  "description": "Full-width block to showcase highlighted posts",
  "keywords": [
    "grid",
    "module",
    "grid-module"
  ],
  "category": "magazine-blocks",
  "textdomain": "magazine-blocks",
  "supports": {
    "className": false,
    "customClassName": false
  },
  "example": {
    "attributes": {}
  },
  "attributes": {
    "clientId": {
      "type": "string"
    },
    "hoverAnimation": {
      "type": "string",
      "default": "none"
    },
    "layout": {
      "type": "string",
      "default": "layout-1"
    },
    "layout1AdvancedStyle": {
      "type": "string",
      "default": "layout-1-style-1"
    },
    "layout2AdvancedStyle": {
      "type": "string",
      "default": "layout-2-style-1"
    },
    "gap": {
      "type": "object",
      "default": {
        "desktop": {
          "value": 0,
          "unit": "px"
        }
      },
      "style": [
        {
          "selector": "{{WRAPPER}} .mzb-posts {gap: {{VALUE}}; }"
        }
      ]
    },
    "category": {
      "type": "string",
      "default": "all"
    },
    "tag": {
      "type": "string",
      "default": "all"
    },
    "orderBy": {
      "type": "string",
      "default": "date"
    },
    "orderType": {
      "type": "string",
      "default": "desc"
    },
    "authorName": {
      "type": "string",
      "default": ""
    },
    "excludedCategory": {
      "type": "array"
    },
    "postCount": {
      "type": "number",
      "default": 4
    },
    "offset": {
      "type": "number",
      "default": 0
    },
    "column": {
      "type": "string",
      "default": "4"
    },
    "size": {
      "type": "string"
    },
    "label": {
      "type": "string",
      "default": "Explore More"
    },
    "enableHeading": {
      "type": "boolean",
      "default": true
    },
    "enableReadTime": {
      "type": "boolean",
      "default": false
    },
    "enableViewCount": {
      "type": "boolean",
      "default": false
    },
    "headingLayout": {
      "type": "string",
      "default": "heading-layout-1"
    },
    "headingLayout1AdvancedStyle": {
      "type": "string",
      "default": "heading-layout-1-style-1"
    },
    "headingLayout2AdvancedStyle": {
      "type": "string",
      "default": "heading-layout-2-style-1"
    },
    "headingLayout3AdvancedStyle": {
      "type": "string",
      "default": "heading-layout-3-style-1"
    },
    "headingLayout4AdvancedStyle": {
      "type": "string",
      "default": "heading-layout-4-style-1"
    },
    "headingLayout5AdvancedStyle": {
      "type": "string",
      "default": "heading-layout-5-style-1"
    },
    "enableCategory": {
      "type": "boolean",
      "default": false
    },
    "headingColor": {
      "type": "string",
      "style": [
        {
          "selector": "{{WRAPPER}} .mzb-post-heading h2 {color: {{VALUE}}; }"
        },
        {
          "selector": "{{WRAPPER}} .mzb-post-heading.mzb-heading-layout-2-style-1 h2{color: {{VALUE}}; }"
        },
        {
          "selector": "{{WRAPPER}} .mzb-post-heading.mzb-heading-layout-3-style-1 h2 {color: {{VALUE}}; }"
        }
      ]
    },
    "headingHoverColor": {
      "type": "string",
      "style": [
        {
          "selector": "{{WRAPPER}} .mzb-post-heading h2:hover {color: {{VALUE}}; }"
        },
        {
          "selector": "{{WRAPPER}} .mzb-post-heading.mzb-heading-layout-2-style-1 h2:hover {color: {{VALUE}}; }"
        },
        {
          "selector": "{{WRAPPER}} .mzb-post-heading.mzb-heading-layout-3-style-1 h2:hover {color: {{VALUE}}; }"
        }
      ]
    },
    "headingBorderWidth": {
      "type": "string",
      "style": [
        {
          "selector": "{{WRAPPER}} .mzb-post-heading.mzb-heading-layout-2-style-1 {border-bottom-width: {{VALUE}}; } {{WRAPPER}} .mzb-post-heading.mzb-heading-layout-3-style-1 {border-bottom-width: {{VALUE}}; }"
        }
      ]
    },
    "headingBorderWidthBefore": {
      "type": "string",
      "style": [
        {
          "selector": "{{WRAPPER}} .mzb-post-heading h2::before {border-bottom-width: {{VALUE}}; } {{WRAPPER}} .mzb-post-heading.mzb-heading-layout-3-style-1::before {border-bottom-width: {{VALUE}}; }"
        }
      ]
    },
    "headingBorderColor": {
      "type": "object",
      "default": {
        "border": 1,
        "radius": {
          "desktop": {
            "lock": true
          }
        },
        "size": {
          "desktop": {
            "lock": true
          }
        }
      },
      "style": [
        {
          "selector": "{{WRAPPER}} .mzb-post-heading.mzb-heading-layout-2-style-1 {border-bottom-color: {{VALUE}}; } {{WRAPPER}} .mzb-post-heading.mzb-heading-layout-3-style-1 {border-bottom-color: {{VALUE}}; }"
        }
      ]
    },
    "headingBorderColorBefore": {
      "type": "object",
      "default": {
        "border": 1,
        "radius": {
          "desktop": {
            "lock": true
          }
        },
        "size": {
          "desktop": {
            "lock": true
          }
        }
      },
      "style": [
        {
          "selector": "{{WRAPPER}} .mzb-post-heading h2::before {background-color: {{VALUE}}; } {{WRAPPER}} .mzb-post-heading.mzb-heading-layout-3-style-1::before {border-bottom-color: {{VALUE}}; }"
        }
      ]
    },
    "headingBorderBottomInset": {
      "type": "string",
      "style": [
        {
          "selector": "{{WRAPPER}} .mzb-post-heading.mzb-heading-layout-3-style-1::before {bottom: {{VALUE}}; }"
        }
      ]
    },
    "border": {
      "type": "object",
      "default": {
        "border": 1,
        "radius": {
          "desktop": {
            "lock": true
          }
        },
        "size": {
          "desktop": {
            "lock": true
          }
        }
      },
      "style": [
        {
          "selector": "{{WRAPPER}} .mzb-posts .mzb-post"
        }
      ]
    },
    "borderHover": {
      "type": "object",
      "default": {
        "border": 1,
        "radius": {
          "desktop": {
            "lock": true
          }
        },
        "size": {
          "desktop": {
            "lock": true
          }
        }
      },
      "style": [
        {
          "selector": "{{WRAPPER}} .mzb-posts .mzb-post:hover"
        }
      ]
    },
    "categoryTypography": {
      "type": "object",
      "default": {
        "typography": 1,
        "weight": 500
      },
      "style": [
        {
          "selector": "{{WRAPPER}} .mzb-post-categories a"
        }
      ]
    },
    "enablePostTitle": {
      "type": "boolean",
      "default": true
    },
    "postTitleMarkup": {
      "type": "string",
      "default": "h3"
    },
    "postTitleTypography": {
      "type": "object",
      "default": {
        "typography": 1,
        "weight": 500
      },
      "style": [
        {
          "selector": "{{WRAPPER}} .mzb-post-title a"
        }
      ]
    },
    "postTitleColor": {
      "type": "string",
      "style": [
        {
          "selector": "{{WRAPPER}} .mzb-post-title a {color: {{VALUE}}; }"
        }
      ]
    },
    "postTitleHoverColor": {
      "type": "string",
      "style": [
        {
          "selector": "{{WRAPPER}} .mzb-post-title a:hover {color: {{VALUE}}; }"
        }
      ]
    },
    "categoryColor": {
      "type": "string",
      "style": [
        {
          "selector": "{{WRAPPER}} .mzb-post-content .mzb-post-categories a {color: {{VALUE}}; }"
        }
      ]
    },
    "featuredImageHeight": {
      "type": "object",
      "default": {
        "value": 500,
        "unit": "px"
      },
      "style": [
        {
          "selector": "{{WRAPPER}} .mzb-post, {{WRAPPER}} .mzb-featured-image img { height: {{VALUE}} }"
        }
      ]
    },
    "alignment": {
      "type": "object",
      "style": [
        {
          "selector": "{{WRAPPER}} .mzb-post .mzb-post-title {text-align: {{VALUE}}; }"
        },
        {
          "selector": "{{WRAPPER}} .mzb-post .mzb-entry-summary {text-align: {{VALUE}}; }"
        },
        {
          "selector": "{{WRAPPER}} .mzb-post .mzb-post-categories {justify-content: {{VALUE}}; }"
        },
        {
          "selector": "{{WRAPPER}} .mzb-post .mzb-post-entry-meta {justify-content: {{VALUE}}; }"
        }
      ],
      "default": {
        "desktop": "left"
      }
    },
    "contentPadding": {
      "type": "string",
      "style": [
        {
          "selector": "{{WRAPPER}}.mzb-grid-module .mzb-posts .mzb-post .mzb-post-content { padding: {{VALUE}}; }"
        }
      ]
    },
    "enableDate": {
      "type": "boolean",
      "default": true
    },
    "enableAuthor": {
      "type": "boolean",
      "default": true
    },
    "enableMetaSeparator": {
      "type": "boolean",
      "default": false
    },
    "separatorType": {
      "type": "string",
      "default": "none"
    },
    "metaPosition": {
      "type": "string",
      "default": "bottom"
    },
    "metaIconColor": {
      "type": "string",
      "style": [
        {
          "selector": "{{WRAPPER}} .mzb-post-date svg, {{WRAPPER}} .mzb-layout-2 .mzb-post-date svg, {{WRAPPER}} .mzb-layout-2 .mzb-post-view-count svg, {{WRAPPER}} .mzb-layout-2 .mzb-post-read-time svg {fill: {{VALUE}}; }"
        }
      ]
    },
    "metaLinkColor": {
      "type": "string",
      "style": [
        {
          "selector": "{{WRAPPER}} .mzb-post-date a, {{WRAPPER}} .mzb-post-author a, {{WRAPPER}} .mzb-layout-2 .mzb-post-view-count span, {{WRAPPER}} .mzb-layout-2 .mzb-post-read-time span  {color: {{VALUE}}; }"
        }
      ]
    },
    "metaLinkHoverColor": {
      "type": "string",
      "style": [
        {
          "selector": "{{WRAPPER}} .mzb-post-date a:hover, {{WRAPPER}} .mzb-post-author a:hover, {{WRAPPER}} .mzb-layout-2 .mzb-post-view-count span:hover, {{WRAPPER}} .mzb-layout-2 .mzb-post-read-time span:hover {color: {{VALUE}}; }"
        }
      ]
    },
    "enableExcerpt": {
      "type": "boolean",
      "default": false
    },
    "excerptLimit": {
      "type": "number",
      "default": 20
    },
    "excerptColor": {
      "type": "string",
      "style": [
        {
          "selector": "{{WRAPPER}} .mzb-entry-summary p {color: {{VALUE}}; }"
        }
      ]
    },
    "excerptMargin": {
      "type": "object",
      "default": {
        "dimension": 1,
        "desktop": {
          "lock": true
        }
      },
      "style": [
        {
          "selector": "{{WRAPPER}} .mzb-entry-summary p { margin: {{VALUE}}; }"
        }
      ]
    },
    "enableViewMore": {
      "type": "boolean",
      "default": false
    },
    "viewMoreText": {
      "type": "string",
      "default": "View All"
    },
    "viewButtonPosition": {
      "type": "string",
      "default": "top"
    },
    "viewMoreIcon": {
      "type": "object",
      "default": {
        "enable": false,
        "icon": "arrowRight"
      }
    },
    "viewMoreColor": {
      "type": "string",
      "style": [
        {
          "selector": "{{WRAPPER}} .mzb-view-more a p{color: {{VALUE}}; }{{WRAPPER}} .mzb-view-more a svg{fill: {{VALUE}}; }"
        }
      ]
    },
    "viewMoreBackground": {
      "type": "object",
      "default": {
        "background": 1
      },
      "style": [
        {
          "selector": "{{WRAPPER}} .mzb-view-more a"
        }
      ]
    },
    "viewMoreHoverColor": {
      "type": "string",
      "style": [
        {
          "selector": "{{WRAPPER}} .mzb-view-more a p:hover {color: {{VALUE}}; }{{WRAPPER}} .mzb-view-more a svg:hover{fill: {{VALUE}}; }"
        }
      ]
    },
    "viewMoreHoverBackground": {
      "type": "object",
      "default": {
        "background": 1
      },
      "style": [
        {
          "selector": "{{WRAPPER}} .mzb-view-more a:hover"
        }
      ]
    },
    "viewMoreSpacing": {
      "type": "object",
      "style": [
        {
          "selector": "{{WRAPPER}} .mzb-view-more a { gap: {{VALUE}} }"
        }
      ]
    },
    "viewMorePadding": {
      "type": "object",
      "default": {
        "dimension": 1,
        "desktop": {
          "lock": true
        }
      },
      "style": [
        {
          "selector": "{{WRAPPER}} .mzb-view-more a { padding: {{VALUE}}; }"
        }
      ]
    },
    "viewMoreBorder": {
      "type": "object",
      "default": {
        "border": 1,
        "radius": {
          "desktop": {
            "lock": true
          }
        },
        "size": {
          "desktop": {
            "lock": true
          }
        }
      },
      "style": [
        {
          "selector": "{{WRAPPER}} .mzb-view-more a"
        }
      ]
    },
    "viewMoreHoverBorder": {
      "type": "object",
      "default": {
        "border": 1,
        "radius": {
          "desktop": {
            "lock": true
          }
        },
        "size": {
          "desktop": {
            "lock": true
          }
        }
      },
      "style": [
        {
          "selector": "{{WRAPPER}} .mzb-view-more a:hover"
        }
      ]
    },
    "viewMoreBoxShadow": {
      "type": "object",
      "default": {
        "boxShadow": 1
      },
      "style": [
        {
          "selector": "{{WRAPPER}} .mzb-view-more a"
        }
      ]
    },
    "viewMoreBoxShadowHover": {
      "type": "object",
      "default": {
        "boxShadow": 1
      },
      "style": [
        {
          "selector": "{{WRAPPER}} .mzb-view-more a:hover"
        }
      ]
    },
    "enableReadMore": {
      "type": "boolean",
      "default": false
    },
    "readMoreText": {
      "type": "string",
      "default": "Read More"
    },
    "readMoreColor": {
      "type": "string",
      "style": [
        {
          "selector": "{{WRAPPER}} .mzb-post .mzb-read-more a {color: {{VALUE}}; }"
        }
      ]
    },
    "readMoreBackground": {
      "type": "object",
      "default": {
        "background": 1
      },
      "style": [
        {
          "selector": "{{WRAPPER}} .mzb-post .mzb-read-more a"
        }
      ]
    },
    "categoryBackground": {
      "type": "object",
      "default": {
        "background": 1
      },
      "style": [
        {
          "selector": "{{WRAPPER}} .mzb-post-content .mzb-post-categories a"
        }
      ]
    },
    "readMorewHoverColor": {
      "type": "string",
      "style": [
        {
          "selector": "{{WRAPPER}} .mzb-post .mzb-read-more a:hover {color: {{VALUE}}; }"
        }
      ]
    },
    "readMoreHoverBackground": {
      "type": "object",
      "default": {
        "background": 1
      },
      "style": [
        {
          "selector": "{{WRAPPER}} .mzb-post .mzb-read-more a:hover"
        }
      ]
    },
    "readMoreSpacing": {
      "type": "object",
      "style": [
        {
          "selector": "{{WRAPPER}}  .mzb-read-more { margin-top: {{VALUE}} }"
        }
      ]
    },
    "readMorePadding": {
      "type": "object",
      "default": {
        "dimension": 1,
        "desktop": {
          "lock": true
        }
      },
      "style": [
        {
          "selector": "{{WRAPPER}} .mzb-read-more a { padding: {{VALUE}}; }"
        }
      ]
    },
    "categoryPadding": {
      "type": "object",
      "default": {
        "dimension": 1,
        "desktop": {
          "lock": true
        }
      },
      "style": [
        {
          "selector": "{{WRAPPER}} .mzb-post-content .mzb-post-categories a { padding: {{VALUE}}; }"
        }
      ]
    },
    "categoryMargin": {
      "type": "object",
      "default": {
        "dimension": 1,
        "desktop": {
          "lock": true
        }
      },
      "style": [
        {
          "selector": "{{WRAPPER}} .mzb-post-content .mzb-post-categories a { margin: {{VALUE}}; }"
        }
      ]
    },
    "readMoreBorder": {
      "type": "object",
      "default": {
        "border": 1,
        "radius": {
          "desktop": {
            "lock": true
          }
        },
        "size": {
          "desktop": {
            "lock": true
          }
        }
      },
      "style": [
        {
          "selector": "{{WRAPPER}} .mzb-post .mzb-read-more a"
        }
      ]
    },
    "categoryBorder": {
      "type": "object",
      "default": {
        "border": 1,
        "radius": {
          "desktop": {
            "lock": true
          }
        },
        "size": {
          "desktop": {
            "lock": true
          }
        }
      },
      "style": [
        {
          "selector": "{{WRAPPER}} .mzb-post-categories a"
        }
      ]
    },
    "readMoreHoverBorder": {
      "type": "object",
      "default": {
        "border": 1,
        "radius": {
          "desktop": {
            "lock": true
          }
        },
        "size": {
          "desktop": {
            "lock": true
          }
        },
        "style": [
          {
            "selector": "{{WRAPPER}} .mzb-post .mzb-read-more a:hover"
          }
        ]
      }
    },
    "readMoreBoxShadow": {
      "type": "object",
      "default": {
        "boxShadow": 1
      },
      "style": [
        {
          "selector": "{{WRAPPER}} .mzb-post .mzb-read-more a"
        }
      ]
    },
    "readMoreBoxShadowHover": {
      "type": "object",
      "default": {
        "boxShadow": 1
      },
      "style": [
        {
          "selector": "{{WRAPPER}} .mzb-post .mzb-read-more a:hover"
        }
      ]
    },
    "enablePagination": {
      "type": "boolean",
      "default": false
    },
    "paginationAlignment": {
      "type": "object",
      "style": [
        {
          "selector": "{{WRAPPER}} .mzb-pagination-numbers, {{WRAPPER}} .mzb-pagination-numbers .components-flex {justify-content: {{VALUE}}; }"
        }
      ],
      "default": {
        "desktop": "left"
      }
    },
    "paginationColor": {
      "type": "string",
      "style": [
        {
          "selector": "{{WRAPPER}} .mzb-pagination-numbers .page-item a, {{WRAPPER}} .mzb-pagination-numbers .components-flex .components-button {color: {{VALUE}}; fill: {{VALUE}};}"
        }
      ]
    },
    "paginationBackground": {
      "type": "object",
      "default": {
        "background": 1
      },
      "style": [
        {
          "selector": "{{WRAPPER}} .mzb-pagination-numbers .page-item a, {{WRAPPER}} .mzb-pagination-numbers .components-flex .components-button"
        }
      ]
    },
    "paginationHoverColor": {
      "type": "string",
      "style": [
        {
          "selector": "{{WRAPPER}} .mzb-pagination-numbers .page-item a:hover, {{WRAPPER}} .mzb-pagination-numbers .components-flex .components-button:hover {fill: {{VALUE}}; }"
        }
      ]
    },
    "paginationHoverBackground": {
      "type": "object",
      "default": {
        "background": 1
      },
      "style": [
        {
          "selector": "{{WRAPPER}} .mzb-pagination-numbers .page-item a:hover, {{WRAPPER}} .mzb-pagination-numbers .components-flex .components-button:hover"
        }
      ]
    },
    "paginationPadding": {
      "type": "object",
      "default": {
        "dimension": 1,
        "desktop": {
          "lock": true
        }
      },
      "style": [
        {
          "selector": "{{WRAPPER}} .mzb-pagination-numbers .page-item a, {{WRAPPER}} .mzb-pagination-numbers .components-flex .components-button { padding: {{VALUE}}; }"
        }
      ]
    },
    "paginationBorder": {
      "type": "object",
      "default": {
        "border": 1,
        "radius": {
          "desktop": {
            "lock": true
          }
        },
        "size": {
          "desktop": {
            "lock": true
          }
        }
      },
      "style": [
        {
          "selector": "{{WRAPPER}} .mzb-pagination-numbers .page-item a, {{WRAPPER}} .mzb-pagination-numbers .components-flex .components-button"
        }
      ]
    },
    "paginationHoverBorder": {
      "type": "object",
      "default": {
        "border": 1,
        "radius": {
          "desktop": {
            "lock": true
          }
        },
        "size": {
          "desktop": {
            "lock": true
          }
        }
      },
      "style": [
        {
          "selector": "{{WRAPPER}} .mzb-pagination-numbers .page-item a:hover, {{WRAPPER}} .mzb-pagination-numbers .components-flex .components-button"
        }
      ]
    },
    "paginationBoxShadow": {
      "type": "object",
      "default": {
        "boxShadow": 1
      },
      "style": [
        {
          "selector": "{{WRAPPER}} .mzb-pagination-numbers .page-item a, {{WRAPPER}} .mzb-pagination-numbers .components-flex .components-button"
        }
      ]
    },
    "paginationBoxShadowHover": {
      "type": "object",
      "default": {
        "boxShadow": 1
      },
      "style": [
        {
          "selector": "{{WRAPPER}} .mzb-pagination-numbers .page-item a:hover, {{WRAPPER}} .mzb-pagination-numbers .components-flex .components-button:hover"
        }
      ]
    },
    "page": {
      "type": "number",
      "default": 1
    },
    "blockHTML": {
      "type": "string",
      "default": "div"
    },
    "blockMargin": {
      "type": "object",
      "default": {
        "dimension": 1,
        "desktop": {
          "lock": true
        }
      },
      "style": [
        {
          "selector": "{{WRAPPER}} { margin: {{VALUE}}; }"
        }
      ]
    },
    "blockPadding": {
      "type": "object",
      "default": {
        "dimension": 1,
        "desktop": {
          "lock": true
        }
      },
      "style": [
        {
          "selector": "{{WRAPPER}} { padding: {{VALUE}}; }"
        }
      ]
    },
    "blockZIndex": {
      "type": "number",
      "style": [
        {
          "selector": "{{WRAPPER}} { z-index: {{VALUE}}; }"
        }
      ]
    },
    "cssID": {
      "type": "string"
    },
    "hideOnDesktop": {
      "type": "boolean",
      "style": [
        {
          "selector": "@media (min-width:62em) { {{WRAPPER}} { display: none; } }"
        }
      ]
    },
    "hideOnTablet": {
      "type": "boolean",
      "style": [
        {
          "selector": "@media (min-width:48em) and (max-width:62em) { {{WRAPPER}} { display: none; } }"
        }
      ]
    },
    "hideOnMobile": {
      "type": "boolean",
      "style": [
        {
          "selector": "@media (max-width:48em) { {{WRAPPER}} { display: none; } }"
        }
      ]
    },
    "blockCSS": {
      "type": "string"
    },
    "className": {
      "type": "string"
    }
  },
  "style": "magazine-blocks-blocks",
  "editorScript": "magazine-blocks-blocks",
  "editorStyle": "magazine-blocks-blocks-editor"
}