.gallery-grid-photos {
  display: grid;
  gap: 20px;
  max-width: 1680px;
  margin-left: auto;
  margin-right: auto;
  justify-content: center;
  text-align: center;
}

@media (min-width: 851px) and (min-height: 851px) {
  .gallery-grid-photos {
    grid-template-columns: repeat(auto-fit, minmax(400px, 400px));
  }
  .gallery-grid-photo,
  .gallery-grid-photo-portrait {
    width: 400px;
  }
}

@media (min-width: 600px) and (min-height: 600px) and ((max-width: 850px) or (max-height: 850px)) {
  .gallery-grid-photos {
    grid-template-columns: repeat(auto-fit, minmax(290px, 290px));
  }
  .gallery-grid-photo,
  .gallery-grid-photo-portrait {
    width: 290px;
  }
}
@media (max-width: 599px) or (max-height: 599px) {
  .gallery-grid-photos {
    grid-template-columns: repeat(1, 1fr); /* Equivalent to grid-cols-1 */
  }
}

@media (orientation: landscape) and ((max-width: 599px) or (max-height: 599px)) {
  .gallery-grid-photo-portrait {
    height: 100vmin;
  }
  .gallery-grid-photo {
    width: 100vmin;
  }
}

@media (orientation: portrait) and ((max-width: 599px) or (max-height: 599px)) {
  .gallery-grid-photo,
  .gallery-grid-photo-portrait {
    width: 100vmin;
  }
}

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

  100% {
    opacity: 1;
  }
}

.fadeIn {
  animation: fadeIn 500ms forwards;
}*/
