 .masonry {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  grid-auto-rows: minmax(-webkit-min-content, 1fr);
  grid-auto-rows: minmax(min-content, 1fr);
  gap: 1rem;
}
@media (min-width: 36.01rem) {
  .masonry {
    grid-template-columns: repeat(1, 1fr);
  }
  
/*  
@media (min-width: 36.01rem) {
  .masonry {
    grid-template-columns: repeat(2, 1fr);
  }
*/
  
}
@media (min-width: 65.01rem) {
  .masonry {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (min-width: 90.01rem) {
  .masonry {
    grid-template-columns: repeat(4, 1fr);
  }
}
.masonry > * {
  box-sizing: border-box;
  padding: 0 1rem;
}
body {
  margin: 1em;
  line-height: 1.67;
  font-family: 'Palatino Linotype", Palatino,  "Century Schoolbook L", "Linux Libertine", "Times",  serif; 
  color: #e91e63;
  background: #fff;
}
.wrapper {
  max-width: 90rem;
  margin: 4em auto;
}
a {
  text-decoration: none;
  color: #fff;
}
a:focus,
a:hover,
a:active {
  text-decoration: none;
  color: #fff;
}
.masonry > * {
  position: relative;
  color: #000;
 background-color: #cacccf; 
  transition: background-color 0.3s ease-in-out;
  border-radius: 0.5rem;
}
.masonry > :hover {
  background-color: #747574;
}



