.cmg-container {
    width: 100%;
    position: relative;
    margin: 0 auto;
}

.cmg-container-masonry {
    columns: 4;
    column-gap: 16px;
	margin-top: 24px;
  }

  @media screen and (max-width: 1200px) {
    .cmg-container-masonryy {
      columns: 3;
    }
  }
  
  @media screen and (max-width: 900px) {
    .cmg-container-masonry {
      columns: 2;
    }
  }
  
  @media screen and (max-width: 500px) {
    .cmg-container-masonry {
      columns: 1;
    }
  }
  
  .cmg-item-masonry {
    position: relative;
    visibility: visible;
    height: auto;
    margin-bottom: 0.5rem;
    border-radius: 3px;
    overflow: hidden;
    opacity: 1;
    transition: visibility 0.3s, opacity 0.4s ease-in-out;
  }

  .cmg-item-masonry.hidden {
    height: 0;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
}

.cmg-item-masonry img {
  object-fit: cover;
  height: 100%;
  width: 100%;
  transition: 0.5s;
}

.cmg-item-masonry:hover img {
  scale: 1.5
}

.cmg-filter {
  text-align: center;
}

.cmg-filter button {
  cursor: pointer;
  color: #fff;
  border-radius: 15px 0 15px 0;
  background-color: #83a697;
  border-color: #83a697;
  text-transform: uppercase;
  font-weight: bold;
  box-shadow: none;
  border-style: none;
  transition: 0.5s;
  margin: 0.3rem;
}

.cmg-filter button:hover,
.cmg-filter button.active {
  box-shadow: inset 0 0 0 100px rgba(0, 0, 0, .2);
    color: #fff;
    opacity: 1;
    outline: none;
}

.cmg-filter .lvl-parent,
.cmg-filter .lvl-children {
  display: block;
  width: 100%;
  text-align: center;
}

.cmg-filter .child-group {
  display: none; /* Cacher par défaut */
}

.cmg-filter .child-group.active {
  display: block; /* Montrer si actif */
}

  