#container {
  margin: auto;
  width: 100%;
}

h1 {
  font-weight: normal;
  font-size: 60px;
  position: relative;
  margin: 40px 0;
}

h1::before {
  content: '';
  position: absolute;
  width: 200px;
  height: 3px;
  background-color: #ff8c00;
  bottom: -10px;
  left: 50%;
  transform: translate(-50%);
  animation: animate 4s linear infinite;
}

@keyframes animate {
  0% {
    width: 100px;
  }

  50% {
    width: 200px;
  }
  100% {
    width: 100px;
  }
}

.grid-item {
  display: inline-block;
  height: 259px;
  padding: 5px;
  overflow: hidden;
  text-align: center;
  width: 400px;
}

@media (max-width: 400px) {
  #IMAGO {
    width: 360px;
  }
  #container {
    width: 100%;
  }
}
.grid-item img {
  width: 100%;
  height: 100%;
}
.grid-item img:hover {
  filter: none;
}

.isotope-pager .pager {
  display: inline-block;
}
.filters {
  width: 100%;
  text-align: center;
  padding-bottom: 35px;
  padding-top: 10rem;
}

.filters ul {
  list-style: none;
  padding: 20px 10px;
  margin: 0 40px;
}

.filters li {
  display: inline-block;
  padding: 10px 25px;
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
}
.filters li a {
  color: #2c3e50;
  text-decoration: none;
}
.filters li a:hover {
  color: #ff8c00;
}

.filters li:hover {
  box-shadow: -1px 1px 11px rgba(0, 0, 0, 0.4);
  border-radius: 15px;
}

.filters li.active a {
  color: #ff8c00;
  border: 1px solid #ff8c00;
  border-radius: 15px;
  box-shadow: -1px 1px 11px rgba(0, 0, 0, 0.4);
  background-color: white;
  padding: 10px 25px;
}

.isotope-pager a {
  margin: 6px 1px;
  display: inline-block;
  width: 50px;
  /* height: 60px; */
  line-height: 31px;
  color: #ff8c00;
  font-weight: 600;
  transition: 0.3s;
  /* position: relative; */
  /* padding-right: 26px; */
  box-shadow: -1px 1px 11px rgba(0, 0, 0, 0.1);
  border-radius: 25px;
  background-color: white;
  border: 0.5px solid #e3ca66;
  text-decoration: none;
}

.isotope-pager a:hover {
  color: black;
  border: 0.5px solid #ffeeac;
  box-shadow: -1px 1px 10px 3px rgba(0, 0, 0, 0.1);
}

.isotope-pager .active {
  color: white !important;
  box-shadow: -1px 1px 10px 5px rgba(0, 0, 0, 0.1);
  border-radius: 25px;
  background-color: #ff8c00;
  border: 1px dotted #e3ca66;
}

.isotope-pager .prev {
  border-radius: 30px 0 0 30px;
}

.isotope-pager .next {
  border-radius: 0 30px 30px 0;
}

.isotope-pager a::before,
.isotope-pager a:after {
  content: '';
  position: absolute;
  border-top: 30px solid transparent;
  border-bottom: 30px solid transparent;
}
.isotope-pager .num::before,
.next::before {
  border-right: 20px solid #2c3e50;
  right: 100%;
}

.isotope-pager .num:after,
.prev:after {
  border-right: 20px solid #f1f1f1;
  right: 0;
}

.overlay {
  position: absolute;
  bottom: 0;
  background: rgb(0, 0, 0);
  background: rgba(0, 0, 0, 0.5); /* Black see-through */
  color: #f1f1f1;
  width: 97.5%;
  height: 30%;
  bottom: 5px;
  transition: 0.5s ease;
  opacity: 0;
  color: white;
  font-size: 20px;
  padding: 20px;
  text-align: center;
}
.photo-grid-gallery {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
}

.photo-grid-gallery > #grid-Gallery {
  flex: 30%; /*grow | shrink | basis */
  height: 350px;
}
.grid-item:hover .overlay {
  opacity: 1;
}

@media (max-width: 820px) {
  .grid-item {
    display: inline-block;
    height: 259px;
    overflow: hidden;
    text-align: center;
    width: auto;
  }

  .photo-grid-gallery {
    display: grid;
    align-items: center;
    justify-content: center;
  }
  .photo-grid-gallery {
    display: grid;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
  }
  .grid-item img {
    width: 374px;
    padding: 10px;
    height: 340px;
  }
  .overlay {
    position: absolute;
    bottom: 0;
    background: rgb(0, 0, 0);
    background: rgba(0, 0, 0, 0.5); /* Black see-through */
    color: #f1f1f1;
    width: 100%;
    height: 60px;
    transition: 0.5s ease;
    opacity: 0;
    color: white;
    font-size: 20px;
    padding: 20px;
    text-align: center;
    top: 13rem;
  }
}
