.wp-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 15px; 
  justify-content: center; 
}

.gallery-item {
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1); 
  transition: all 0.3s ease-in-out; 
}

.gallery-item:hover {
  transform: translateY(-5px); 
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15); 
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover; 
  object-position: center; 
  transition: transform 0.3s ease-in-out; 
}

.gallery-item:hover img {
  transform: scale(1.05);
}

@media only screen and (min-width: 750px) {
  .gallery-item {
    width: 250px;
    height: 250px;
  }
}
