#gallery {
  background: white;
  padding: 3rem 0 5rem;
  width: 100%;
}

.photo_gallery-post-container {
  display: grid;
  grid-gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  grid-auto-rows: minmax(250px, auto);
  grid-auto-flow: dense;
  justify-items: center;
}

.img-wrapper {
  overflow: hidden;
}

.photo_gallery-item:hover .img-wrapper img {
  transform: scale(1.15);
}

.photo_gallery-item img {
  transition: all ease-in-out 0.3s;
  height: 245px;
}
.photo_gallery-list .post-wrapper img {
  object-fit: contain;
  height: 424px;
}
#gallery .post-wrapper img {
  width: 364px;
  height: 242px;
  padding-right: 20px;
  position: relative;
  z-index: 10;
  background-color: white;
  object-fit: cover;
}
.photo_gallerytext {
  font-size: 16px;
}
#gallery .post-wrapper {
  width: 350px;
  margin-right: 20px;
  counter-increment: carousel-cell;
}

#gallery .flickity-prev-next-button.next {
  right: -10px;
  top: 50%;
}

#gallery .flickity-prev-next-button.previous {
  top: 50%;
  left: -10px;
}
#gallery .flickity-prev-next-button.next .flickity-button-icon {
  top: 25%;
  left: 5px;
}
#gallery .container {
  padding-left: 5%;
  max-width: 100% !important;
  padding-right: 5%;
}
#photo-button {
  display: block;
  width: max-content;
  margin: 0 auto;
  padding: 10px 20px;
  border-radius: 48px;
  background-color: #4a5a0b;
  color: white;
  font-size: 16px;
  font-weight: 500;
}
#photo-button:hover {
  text-decoration: none;
  background-color: #8aa04e;
}
.linkforphotos {
  background: #ccdba1;
  border-radius: 50%;
  width: 65px;
  height: 65px;
  transition: all ease-in-out 0.2s;
}
