/*!
Theme Name: Kadence Child
Theme URI: https://www.kadencewp.com/kadence-theme/
Template: kadence
Author: Kadence WP
Author URI: https://www.kadencewp.com/
Description: A child theme for the Kadence Theme.
Version: 1.0.0
License: GNU General Public License v3.0 (or later)
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Text Domain: kadence-child
*/

/* Theme customization starts here
-------------------------------------------------------------- */

.colour-gallery .kb-gallery-ul.kb-gallery-type-grid {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  gap: 20px !important;
  margin: 0 !important;
  grid-template-columns: none !important;
}

.colour-gallery
  .kb-gallery-ul.kb-gallery-type-grid
  .kadence-blocks-gallery-item {
  flex: 0 0 calc((100% - 80px) / 5) !important;
  width: calc((100% - 80px) / 5) !important;
  max-width: calc((100% - 80px) / 5) !important;
  padding: 0 !important;
  margin: 0 !important;
}

@media (min-width: 768px) and (max-width: 1024px) {
  .colour-gallery
    .kb-gallery-ul.kb-gallery-type-grid
    .kadence-blocks-gallery-item {
    flex: 0 0 calc((100% - 40px) / 3) !important;
    width: calc((100% - 40px) / 3) !important;
    max-width: calc((100% - 40px) / 3) !important;
  }
}

@media (max-width: 767px) {
  .colour-gallery
    .kb-gallery-ul.kb-gallery-type-grid
    .kadence-blocks-gallery-item {
    flex: 0 0 calc((100% - 20px) / 2) !important;
    width: calc((100% - 20px) / 2) !important;
    max-width: calc((100% - 20px) / 2) !important;
  }

  .colour-gallery .kadence-blocks-gallery-item__caption {
    font-size: 13px !important;
    white-space: nowrap;
    padding-left: 4px !important;
    padding-right: 4px !important;
  }
}
