.masonry {
  display: flex;
  flex-flow: row wrap;
  margin-left: -8px; /* Adjustment for the gutter */
  width: 100%;
}

.masonry-brick {
  flex: auto;
  height: 250px;
  min-width: 150px;
  margin: 0 8px 8px 0; /* Some gutter */
}

.masonry-brick:nth-child(4n+1) {
  width: 250px;
}
.masonry-brick:nth-child(4n+1):nth-child(4n+2) {
  width: 325px;
}
.masonry-brick:nth-child(4n+1):nth-child(4n+3) {
  width: 180px;
}
.masonry-brick:nth-child(4n+1):nth-child(4n+4) {
  width: 380px;
}

.gradientback{

  position:absolute;
  bottom:0px;
  left:0px;
  width:100%;
  height:50px;
  background: -moz-linear-gradient(top,  rgba(239,239,239,0) 0%, var(--is-cor-fundo) 100%); /* FF3.6+ */
  background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(239,239,239,0)), color-stop(100%, var(--is-cor-fundo))); /* Chrome,Safari4+ */
  background: -webkit-linear-gradient(top,  rgba(239,239,239,0) 0%, var(--is-cor-fundo) 100%); /* Chrome10+,Safari5.1+ */
  background: -o-linear-gradient(top,  rgba(239,239,239,0) 0%, var(--is-cor-fundo) 100%); /* Opera 11.10+ */
  background: -ms-linear-gradient(top,  rgba(239,239,239,0) 0%, var(--is-cor-fundo) 100%); /* IE10+ */
  background: linear-gradient(to bottom,  rgba(239,239,239,0) 0%, var(--is-cor-fundo) 100%); /* W3C */
  filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#0089fff1', endColorstr='#000000',GradientType=0 ); /* IE6-9 */

}

.portal-publicacao > * {
  margin: 0;
}