.main-container {
  width: 100%;
  margin: auto;
}

.img-container {
  display: grid;
  width: 100%;
  grid-template-columns: 1fr 1fr 1fr;
  padding-top: 10px;
}

.img-wrapper {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
}

.img-wrapper img {
  display: block;
  width: 100%;
  height: auto;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

.img-wrapper.loaded img {
  opacity: 1;
}

.img-wrapper img:hover {
  opacity: 0.7;
  cursor: pointer;
}

.img-skeleton {
  position: relative;
  overflow: hidden;
}

.img-skeleton::before {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  content: "";
  background-color: #aaaaaa;
  z-index: -1;
}

.img-skeleton.img-potrait::before {
  width: 64%;
  height: 85%;
}

.img-skeleton.img-landscape::before {
  width: 85%;
  height: 64%;
}

.img-skeleton::after {
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background-image: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0,
    rgba(255, 255, 255, 0.2) 20%,
    rgba(255, 255, 255, 0.6) 60%,
    rgba(255, 255, 255, 0)
  );
  animation: shimmer 1.6s infinite;
  content: "";
  z-index: -1;
}

.footer-container {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 30px;
  font-weight: 300;
  font-size: 12px;
}

.lightbox {
  opacity: 0;
  visibility: hidden;
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  z-index: -1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease-in;
  width: 100%;
}

.lightbox.show {
  background-color: rgba(0, 0, 0, 0.75);
  opacity: 1;
  visibility: visible;
  z-index: 1000;
}

.lightbox img {
  height: auto;
  width: 95%;
}

.lightbox .close-lightbox {
  cursor: pointer;
  position: absolute;
  top: 20px;
  right: 20px;
  width: 30px;
  height: 30px;
}

.lightbox .close-lightbox i {
  color: white;
  text-align: center;
  margin: auto;
  height: 100%;
  width: 100%;
}

@media only screen and (min-width: 768px) {
  .footer-container {
    font-size: 1rem;
  }

  .lightbox img {
    height: 90%;
    width: auto;
  }

  .lightbox .close-lightbox {
    top: 30px;
    right: 50px;
  }
}
