#main-section {
  justify-content: flex-start;
}

#gallery-section {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  width: 100%;
  max-width: 1270px;   /* match your body container width */
  margin: 0 auto;      /* center on large screens */
  overflow: hidden;    /* clip overflow if image scales */
}


.gallery-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}