/* Box-sizing reset: //w3bits.com/?p=3225 */
html {
  box-sizing: border-box;
}

body {
 margin: 1.5em 2.5em;
}

*,
*:before,
*:after {
  box-sizing: inherit;
}

h1 {
  font-family: 'Cairo', sans-serif;
  text-transform: uppercase;
  font-size: 1.5em;
  margin: 0;
  display: flex;
  justify-content: space-between;
}

h1 a {
  color: black;
  text-decoration: none;
}

@media (min-width: 768px) {
  span#burger-menu-icon {
    display: none;
  }
}

/* The Masonry Container */
.masonry {
  margin: 2.5em auto;
  max-width: 768px;
  column-gap: 2.5em;
}

/* The Masonry Brick */
.item {
  background: #fff;

  margin-bottom: 30px;
  display: inline-block;
  vertical-align: top;
}

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

/* Masonry on large screens */
@media only screen and (min-width: 1400px) {
  .masonry {
    column-count: 3;
    max-width: 1350px;
    margin: 3.5em auto 0 auto;
  }
}

/* Masonry on large screens */
@media only screen and (min-width: 1023px) and (max-width: 1399px) {
  .masonry {
    column-count: 3;
    max-width: 950px;
    margin: 3em auto 0 auto;
  }
}

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

/* Masonry on small screens */
@media only screen and (max-width: 767px) and (min-width: 540px) {
  .masonry {
    column-count: 2;
  }
}

/* Categories links */

ul#categories,
ul#categories h1 {
  display: none;
}

ul#categories.displayed {
  display: flex;
  position: fixed;
  top: -1em;
  left: 0;
  height: 100%;
  width: 100%;
  background-color: black;
  z-index: 100;
  padding: 0;
  justify-content: center;
  flex-direction: column;
}

ul#categories.displayed h1 {
  display: block;
}

ul#categories.displayed h1 a {
  color: white;
  position: absolute;
  top: 1em;
  right: 1.5em;
}

ul#categories.displayed li {
  text-align: center;
  padding: 2em;
}

ul#categories.displayed li a {
  font-family: 'Cairo', sans-serif;
  color: white;
  font-size: 1.5em;
  text-decoration: none;
}

@media (min-width: 768px) {
  ul#categories {
    display: block;
    list-style-type: none;
    float: right;
    margin: 0;
    padding: 0;
  }

  ul#categories h1 {
    display: none;
  }
  
  ul#categories li {
    display: inline-block;
    margin-right: 20px;
  }
  
  ul#categories li a {
    font-family: 'Cairo', sans-serif;
    text-decoration: none;
    color: #484848;
    line-height: 45px;
    vertical-align: middle;
  }
  
  ul#categories li.active a {
    color: black;
    text-decoration: underline;
  }
  
  ul#categories li a:hover {
    text-decoration: underline;
  }
}


/* Footer */

.footer p {
  text-align: center;
  font-family: 'Cairo', sans-serif;
  font-size: 1em;
  margin: 0.5em;
}

.footer a {
  text-decoration: none;
  color: #484848;
}

.footer a:hover {
  color: black;
}

.footer a.contact:hover {
  text-decoration: underline;
}