.gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
  }
  
  .gallery__item {
    flex: 1 1 280px; /* flexible but minimum 280px */
    max-width: 350px;
    transition: transform 0.9s ease, box-shadow 0.3s ease;
  }
  
  .gallery__img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 12px;
    transition: transform 0.3s ease, filter 0.3s ease;
  }
  
  
  /* Hover effect */
  .gallery__item:hover {
    transform: scale(2.5) rotate(-1deg);
    filter: brightness(1.1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 15px rgba(89, 133, 225, 0.3);
  }

  @media (max-width: 1000px) {
    .gallery__item:hover {
      transform: scale(1.25);
      box-shadow: none;
    }
  }
  
  /* Responsive tweaks */
  @media (max-width: 768px) {
    .gallery__img {
      height: 180px;
    }
  }
  
  @media (max-width: 576px) {
    .gallery__img {
      height: 160px;
    }
  }
  