/* Defaults */
body {
  background-color: #e5efff;
}

/* The title */
.title {
  font-weight: 300;
  text-align: center;
  margin: 80px 0 25px 0;
}

img, video {
  max-width: 100%;
  vertical-align: middle;
}

.wrapper {
  margin-left: auto;
  margin-right: auto;
  padding-right: 1.5em;
  padding-left: 1.5em;
  max-width: 1080px;
}

/* Masonry grid */
.masonry {
  transition: all .5s ease-in-out;
  column-gap: 30px;
  column-fill: initial;
}

/* Masonry item */
.masonry .brick {
  margin-bottom: 30px;
  display: inline-block; /* Fix the misalignment of items */
  vertical-align: top; /* Keep the item on the very top */
}

/* Masonry image effects */
.masonry .brick img {
  transition: all .5s ease-in-out;
  backface-visibility: hidden; 
}

/* Bordered masonry */
.masonry.bordered {
  column-rule: 1px solid #eee;
  column-gap: 10px;
}

.masonry.bordered .brick {
  padding-bottom: 25px;
  margin-bottom: 15px;
  border-bottom: 1px solid #eee;
}

/* Masonry on tablets */
@media only screen and (min-width: 800px) and (max-width: 1023px) {
  .masonry {
    column-count: 2;
  }
}

/* Masonry on big screens */
@media only screen and (min-width: 1024px) {
  .masonry {
    column-count: 3;
  }
  .title {
    font-weight: 300;
    text-align: center;
    margin: 30px 0 !important;
  }
}

header {
  position: relative !important;
  background-color: rgba(0, 0, 0, 0.7) !important;
  padding: 25px 100px !important;
  margin-bottom: 0 !important;
}


@media (max-width: 800px) {
  .hamburger {
    top: 0;
  }

  .gallery {
      margin: 0 20px;
  }
}