.main {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: #ADF5FF;
   background-image: url(Images/Memories/BGDonut.png);
   background-size: 100%;
}

.heading {
  padding-top: 15vh;
  margin-left: -5vw;
  margin-bottom: 15vh;
  font-family: dynapuff, Great Vibes;
  font-size: 8vw;
  font-weight: 500;
  color: #13070C;
}

.wrapper {
  max-width: 80vw;
  margin: auto;
  padding: 20px 20px;
}

.masonry {
  column-count: 2;
  /* Change to 3 or 4 on larger screens */
  column-gap: 16px;
}

@media (min-width: 768px) {
  .masonry {
    column-count: 3;
  }
}

@media (min-width: 1024px) {
  .masonry {
    column-count: 4;
  }
}

@media (max-width: 767px) {
  .heading {
    font-size: 10vw;
  }

  .wrapper {
    max-width: 90vw;
  }

  .masonry {
    column-gap: 3vw;
  }
}

.masonry__img {
  width: 100%;
  height: auto;
  display: block;
  margin-bottom: 16px;
  border-radius: 8px;
  background: #eceae6;

  opacity: 1;
  transform: scale(1);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.masonry__img.lazyloaded {
  opacity: 1;
  transform: scale(1);
}

.media-cat {
  width: 100%;
  padding: 0px 0px 20px 0px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.family {
  background-color: #F8B49B;
}

.happiness {
  background-color: #FFFFFF;
}

.media-cat h2 {
  font-family: dynapuff, Great Vibes;
  font-size: 4vw;
  margin: 5vh 0 2vh -5vw;
  font-weight: 300;
}

.family h2 {
  color: #13070C;
}

.happiness h2 {
  color: #13070C;
}

@media (max-width: 767px) {
  .media-cat h2 {
    font-size: 6vw;
  }
}

.media-scroller {
  max-width: 96%;
  margin-left: auto;
  margin-right: auto;

  display: grid;
  grid-auto-flow: column;

  overflow-x: auto;
}

.family .media-scroller {
  scrollbar-color: #13070C #f8b49b;
}

.happiness .media-scroller {
  scrollbar-color: #13070C white;
}

.media-scroller .media-element {
  padding: 1vw;
}

.media-scroller .media-element img {
  height: 30vh;
  width: auto;

  border: 5px dashed #8b4513;
  border-radius: 20px;
  padding: 5px;
  background-color: #fff8f0;
}

/*
.media-scroller {
  -ms-overflow-style: none;
  scrollbar-width: none;
  overflow-y: scroll;
}
.media-scroller::-webkit-scrollbar {
  display: none;
}
  */