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

  100% {
    opacity: 1;
  }
}

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

  100% {
    opacity: 1;
  }
}

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

  100% {
    opacity: 1;
  }
}

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

  100% {
    opacity: 1;
  }
}

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

  100% {
    opacity: 1;
  }
}

.fade-in {
  animation: fadeIn 1s;
  -webkit-animation: fadeIn 1s;
  -moz-animation: fadeIn 1s;
  -o-animation: fadeIn 1s;
  -ms-animation: fadeIn 1s;
  transition: transform .2s;
}

.fade-in:hover {
  transform: scale(1.15);
  z-index:10;
}

body {
  margin: 0;
  width: 100%;
  font-family: 'Nothing You Could Do', cursive;
  font-size: 1.5em;
  position: relative;
}

article {
  min-height: 70vh;
}

#content p {
  margin-left: 1em;
  margin-right: 1em;
  max-width: 1600px;
  display: inline-block;
}

#content {
  text-align: center;
  padding-bottom: 5.5em;
}

article ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-evenly;
  align-items: center;
  padding: 1em 0.5em 0 0.5em;
  max-width: 1600px;
  margin-left: auto;
  margin-right: auto;
  gap: 30px;
}

article ul>li {
  height: 25vh;
  border: 16px solid white;
  outline: 1px solid #999;
  box-shadow: 10px 5px 15px grey;
}

article ul a {
  position: relative;
}

article li img {
  object-fit: cover;
  width: 100%;
  height: 100%;
  vertical-align: middle;
}

picture {
  width: 100%;
  overflow: hidden;
}

picture img {
  width: 100%;
}

picture.lazy img {
  /* filter: blur(20px); */
}

header {
  font-family: 'babylonica', cursive;
  font-size: 2em;
  text-align: center;
  background-color: #eee;

}

header h1 {
  margin-top: 0;
  margin-bottom: 0;
  padding-top: 0.5em;
  padding-bottom: 0.5em;
}

footer {
  position: absolute;
  bottom: 0;
  width: 100%;
  text-align: center;
  height: 3em;
  background-color: #eee;
  padding-top: 1.5em;
}

ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
}

nav {
  padding-top: 0.5em;
  padding-bottom: 0.5em;
  background-color: #eee;
}

nav ul {
  display: flex;
  justify-content: space-evenly;
  flex-wrap: wrap;
  gap: 5px;
}

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

a:hover,
a:focus,
a:active,
a.focused {
  text-decoration: underline;
}

.overlay {
  opacity: 0;
  position: absolute;
  height: 25vh;
  width: calc(100% - 20px);
}

.overlay:hover {
  background-color: rgba(0, 0, 0, 0.3);
  color: white;
  opacity: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding-right: 7px;
}


#modal {
  display: none;
  position: fixed;
  z-index: 100;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgb(0, 0, 0);
  background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
  background-color: white;
  width: fit-content;
  max-width: 90vw;
  position: relative;
  margin: auto;
  border: 15px solid white;
  outline: 2px solid black;
}

.close {
  color: #222;
  position: absolute;
  right: 10px;
  float: right;
  font-size: 28px;
  font-weight: bold;
}

.close:hover,
.close:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}

#modal-image {
  display: flex;
  flex-direction: column;
}

#modal-image img {
  max-width: 90vw;
  max-height: 90vh;
  margin: auto;
}

#modal-image p {
  text-align: center;
}

@media only screen and (max-width: 990px) {
  header {
    font-size: 1em;
  }

  article ul>li {
    height: 30vh;
  }

  .overlay {
    height: 30vh;
  }
}