.gallery_section {
    padding: 40px 0;
    background-color: #f9f9f9;
  }
  
  .heading_container {
    text-align: center;
    margin-bottom: 30px;
  
    h2 {
      font-size: 2rem;
      font-weight: 700;
      color: #333;
      position: relative;
      display: inline-block;
  
      &::after {
        content: '';
        display: block;
        width: 50px;
        height: 3px;
        background-color: #ff6347;
        margin: 8px auto 0;
      }
    }
  }
  
  .gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
  }
  
  .gallery-item {
    flex: 1 1 calc(20% - 20px); /* Reduced size */
    margin-bottom: 10px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  
    &:hover {
      transform: translateY(-3px);
      box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    }
  
    img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
      transition: transform 0.3s ease;
    }
  
    &:hover img {
      transform: scale(1.05);
    }
  
    &::after {
      content: "";
      display: block;
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: linear-gradient(45deg, rgba(255, 255, 255, 0.3), rgba(0, 0, 0, 0.2));
      opacity: 0;
      transition: opacity 0.3s ease;
    }
  
    &:hover::after {
      opacity: 1;
    }
  }
  
  @media (max-width: 1200px) {
    .gallery-item {
      flex: 1 1 calc(25% - 20px); /* Adjusted size for medium screens */
    }
  }
  
  @media (max-width: 992px) {
    .gallery-item {
      flex: 1 1 calc(33.333% - 20px); /* Adjusted size for smaller screens */
    }
  }
  
  @media (max-width: 768px) {
    .gallery-item {
      flex: 1 1 calc(50% - 20px); /* Adjusted size for tablets */
    }
  }
  
  @media (max-width: 576px) {
    .gallery-item {
      flex: 1 1 calc(100% - 20px); /* Adjusted size for mobile devices */
    }
  }
  