body {
  font-family: 'Cormorant', serif;
  font-size: small;
  height: 100%;
  margin: 0 auto;
}

main {
  max-width: 1600px;
  margin: 0 auto;
  background-color: white;
}

section {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
}

#header-main {
  text-align: center;
  color: #1B1B1B;
  font-weight: lighter;
}

#header-main h1 {
  font-size: 3em;
  text-transform: uppercase;
  margin-bottom: 0;
}

.text-page {
  max-width: 800px;
  margin: 0 auto;
}

article h1 {
  text-align: center;
  font-size: 2em;
  margin-bottom: .8em;
}

article h2 {
  text-align: center;
  font-size: 2em;
  margin-bottom: .8em;
}

article h3 {
  font-size: 1em;
  font-weight: bold;
  margin-bottom: 0.1em;
}

article p {
  text-align: justify;
  line-height: 2em;
  font-size: 1em;
  margin-top: 0em;
}

.image-page {
  text-align: center;
}

.image-page img {
  max-width: 100%;
}


hr {
  width: 75%;
  border-top: 3px solid black;
  margin-bottom: 3em;
}

a {
  text-decoration: none;
}

/**/

article,
aside {
  flex-basis: 100%;
}

/* NEW GALLERY */
.image-gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 25px;
}

.image-gallery>li {
  flex-basis: 23%;
  list-style: none;
}

.image-gallery li img {
  object-fit: cover;
  max-width: 100%;
  height: auto;
  vertical-align: top;
  animation-name: fadeIn;
  -webkit-animation: fadeIn;
  -moz-animation: fadeIn;
  -o-animation: fadeIn;
  -ms-animation: fadeIn;
  animation-duration: 0.5s;
  animation-iteration-count: 1;
  animation-fill-mode: forwards;
}

.image-gallery::after {
  content: "";
  flex-basis: 350px;
}



.image-gallery li a:nth-child(2)>img {
  animation-delay: .1s;
}

.image-gallery li a:nth-child(3)>img {
  animation-delay: .2s;
}

.image-gallery li a:nth-child(4)>img {
  animation-delay: .3s;
}

.image-gallery li a:nth-child(5)>img {
  animation-delay: .3s;
}

.image-gallery li a:nth-child(6)>img {
  animation-delay: .4s;
}

.image-gallery li a:nth-child(7)>img {
  animation-delay: .5s;
}

.image-gallery li a:nth-child(8)>img {
  animation-delay: .6s;
}

.image-gallery li a:nth-child(9)>img {
  animation-delay: .7s;
}

.image-gallery li a:nth-child(10)>img {
  animation-delay: .8s;
}

.image-gallery li a:nth-child(11)>img {
  animation-delay: .9s;
}

.image-gallery li a:nth-child(12)>img {
  animation-delay: 1s;
}

.image-gallery li a:nth-child(13)>img {
  animation-delay: 1.1s;
}

.image-gallery li a:nth-child(14)>img {
  animation-delay: 1.2s;
}

.image-gallery li a:nth-child(15)>img {
  animation-delay: 1.3s;
}

.image-gallery li a:nth-child(16)>img {
  animation-delay: 1.4s;
}

.image-gallery li a:nth-child(17)>img {
  animation-delay: 1.5s;
}

@keyframes fadeIn {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}


input[type=checkbox] {
  display: none;
}


@media screen and (min-width: 800px) {
  aside {
    flex: 2.5;
  }

  article {
    flex: 7.5;
    border-top: 5px;
  }

  footer {
    background-color: #000;
    color: white;
    width: 100%;
    position: fixed;
    bottom: 0;
    left: 0
  }

/* Navbar */

.nav-menu {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  list-style: none;
  width: 100%;
  padding: 0;
  padding-bottom: 4em;
  margin-top: 0;
}

.nav-menu li {
  padding: 0 2em;
}

.nav-menu a li {
  color: #1B1B1B;
}

.nav-menu a li:hover {
  color: dimgrey;
  transition: 3ms;
}


/* HAMBURGER MENU */
.hamburger {
  display: none;
  font-size: 50px;
  user-select: none;
  margin-top: 0;
}

}

@media (max-width: 800px) {

  article {
    padding: 0 2em;
  }

  /* NEW GALLERY */
  .image-gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: 0;
  }

  .image-gallery>li {
    flex-basis: 100%;
    list-style: none;
  }

  .image-gallery li img {
    object-fit: cover;
    max-width: 100%;
    height: auto;
    vertical-align: top;
    animation-name: fadeIn;
    -webkit-animation: fadeIn;
    -moz-animation: fadeIn;
    -o-animation: fadeIn;
    -ms-animation: fadeIn;
    animation-duration: 0.5s;
    animation-iteration-count: 1;
    animation-fill-mode: forwards;
  }

  .image-gallery::after {
    content: "";
    flex-basis: 350px;
  }



  .nav-menu {
    display: none;
    position: relative;
    right: 0;
    left: 0;
    text-align: center;
    padding: 0 0;
    
  }

  .nav-menu a {
    background-color: #111;

  }

  .nav-menu a li {
    text-decoration: none;
    font-size: 2em;
    color:#fff;
    background-color: #111;
    padding: 1em 0;
    margin-bottom: 2px;
  }

  .nav-menu a :hover {
    background-color: #fff;
    color: #111;
    transition: 0.3s ease;
  }

  input[type=checkbox]:checked ~ .nav-menu {
    display: block;
    animation-name: fadeIn;
    -webkit-animation: fadeIn;
    -moz-animation: fadeIn;
    -o-animation: fadeIn;
    -ms-animation: fadeIn;
    animation-duration: 0.5s;
    animation-iteration-count: 1;
    animation-fill-mode: forwards;
  }

 .hamburger {
    display: block;
    text-align: center;
    font-size: 2em;
  }

  footer {
    background-color: #000;
    color: white;
    width: 100%;
    bottom: 0;
    left: 0
  }
}