body {
    margin: 0;
    font-family: sans-serif;
    background-color: #f5f5f5;
    color: #333;
  }
  
  .container {
    max-width: 900px;
    margin: 20px auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  }
  
  .title {
    text-align: center;
    margin-bottom: 20px;
    font-size: 2.5rem;
  }
  
  .gallery {
    margin-top: 20px;
  }
  
  .grid {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    flex-wrap: wrap;
  }
  
  .grid-sizer {
    width: 33.33%; /* 3 columns on large screens */
   
  }
  
  .grid-item {
    width: 33.33%; /* 3 columns on large screens */
    
    background-color: #eee;
    overflow: hidden;
  }
  
  .grid-item img {
    width: 100%; /* Responsive image */
    height: auto; /* Maintain aspect ratio */
    display: block;
  }
  
  /* Responsive styles for smaller screens */
  @media (max-width: 768px) {
    .grid-sizer {
      width: 50%; /* 2 columns on medium screens */
    }
  
    .grid-item {
      width: 50%; /* 2 columns on medium screens */
    }
  }
  
  @media (max-width: 480px) { /* Adjust breakpoint if needed */
    .grid-sizer {
      width: 100%; /* 1 column on mobile screens */
    }
  
    .grid-item {
      width: 100%; /* 1 column on mobile screens */
    }
  }