/* Masonry Gallery Block - Adapté à parent flex/50vw */
.masonry-gallery-block {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  display: block;
  position: relative;
  overflow: visible !important;
  min-height: 400px;
  clear: both;
}

.masonry-gallery-item {
  width: 300px;
  min-width: 160px;
  margin-bottom: 16px;
  margin-left: 2%;
  box-sizing: border-box;
  border-radius: 8px;
  overflow: hidden;
  background: #f7f7f7;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
  display: block;
  position: relative;
  padding: 0;
  float: left;
}

.masonry-gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 8px;
}

.masonry-gallery-clearfix {
  clear: both;
  height: 0;
  visibility: hidden;
}

/* Correction parent overflow pour Masonry.js */
.custom-page-content-side {
  overflow-x: visible !important;
}
