.gallery-section h1 {
  font-size: 3rem;
}

/* Moble styles */
.gallery-section {
  margin: 0 2vw;
  background-color: #fff;
  text-align: center;
  padding: 1rem;
}

.gallery-list {
  padding-top: 1rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 15px;
  grid-auto-rows: 1fr;
}

.card {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transition: 0.3s;
  border-radius: 5px;
  padding: 10px;
  background-color: #f7f7f7;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.card:hover {
  box-shadow: 0 8px 16px 0 rgba(0, 0, 0, 0.5);
}

.container {
  padding: 5px 16px;
}

.container p {
  text-align: center;
  font-size: 1.2rem;
}

.card img {
  width: 100%;
}

.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  justify-content: center;
  align-items: center;
  z-index: 3000;
}

.modal-image {
  max-width: 90%;
  max-height: 90%;
  border: 2px solid #fff;
  border-radius: 8px;
}

.modal .close {
  position: absolute;
  font-weight: 800;
  top: 20px;
  right: 20px;
  font-size: 2rem;
  color: #fff;
  cursor: pointer;
}

.close {
  z-index: 3000;
}

.close:hover {
  color: #aaa;
}

.nav-button {
  color: #fff;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
}

#prev {
  left: 0.25%;
}

#next {
  right: 0%;
}

.nav-button:hover {
  color: #ddd;
}

.nav-button:active {
  color: #aaa;
}

/* Tablets */
@media (min-width: 768px) {
  .gallery-section {
    margin: 0 5vw;
    background-color: #fff;
    text-align: center;
    padding: 2rem;
  }

  .gallery-list {
    padding-top: 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
    grid-auto-rows: 1fr;
  }

  .modal-image {
    max-width: 90%;
  }

  .fa-2xl {
    font-size: 5em;
  }
}

/* Desktop pcs */
@media (min-width: 1024px) {
  .gallery-section {
    margin: 0 10vw;
    background-color: #fff;
    text-align: center;
    padding: 2rem;
  }

  .gallery-list {
    padding-top: 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 25px;
    grid-auto-rows: 1fr;
  }

  .fa-2xl {
    font-size: 5em !important;
  }
}
