section.gallery {
  padding-top: 2rem;
  position: relative;
}

section.gallery .container {
  padding: 3rem;
}

section.gallery h1 {
  font-size: 165%;
  position: absolute;
  top: -2rem;
}

.mod_Gallery {
  display: flex;
  align-items: stretch;
  flex-direction: row;
  max-height: 100vh;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 20px;
}

.mod_Gallery img {
  width: auto;
  max-width: calc(20% - 17px);
  max-height: 15vw;
  cursor: pointer;
  border-radius: 1rem;
  border: 2px solid transparent;
}

.mod_Gallery img:hover {
  border: 2px solid var(--color-white);
}

@media (max-width: 575px) {

  section.gallery .container {
    padding: 2rem;
    border-radius: 0;
    max-width: 100% !important;
    margin-bottom: 2rem;
  }

  section.gallery h1 {
    font-size: 165%;
    position: absolute;
    top: -2rem;
    text-align: left;
    padding-left: 0.5rem;
  }

  .mod_Gallery img {
    width: auto;
    max-width: calc(50% - 17px);
    max-height: 7rem;
    cursor: pointer;
    border-radius: 1rem;
    border: 2px solid transparent;
  }
}