.gallery-section {
    padding: 50px 0;
    background-color: #fff;
    overflow: hidden;
  }
  
  .gallery-container {
    width: 82%;
 
    margin: 0 auto;
  }
  
  .gallery-row {
    display: flex;
    justify-content: space-between;
    gap: 10px;
  }
  
  .gallery-item {
    flex: 1;
    position: relative;
    overflow: hidden;
    height: 750px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    will-change: transform, opacity; 
  }
  
  .gallery-item:nth-child(1) { animation-delay: 0.1s; }
  .gallery-item:nth-child(2) { animation-delay: 0.2s; }
  .gallery-item:nth-child(3) { animation-delay: 0.3s; }
  .gallery-item:nth-child(4) { animation-delay: 0.4s; }
  .gallery-item:nth-child(5) { animation-delay: 0.5s; }
  
  .gallery-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform; 
  }
  
  .gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.2);
    opacity: 0;
    transition: opacity 0.4s ease;
  }
  
  .gallery-item:hover .gallery-image {
    transform: scale(1.05);
  }
  
  .gallery-item:hover .gallery-overlay {
    opacity: 1;
  }
  
  @keyframes fadeInUp {
    from {
      opacity: 0;
      transform: translateY(20px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  @media (max-width: 1024px) {
    .gallery-item {
      height: 200px;
    }
  }
  
  @media (max-width: 768px) {
    .gallery-container {
      width: 90%;
    }
    
    .gallery-row {
      flex-wrap: wrap;
      gap: 15px;
    }
    
    .gallery-item {
      flex: 0 0 calc(50% - 8px);
      height: 180px;
    }
  }
  
  @media (max-width: 480px) {
    .gallery-item {
      flex: 0 0 100%;
      height: 200px;
      margin-bottom: 10px;
    }
  }