body {
    margin: 0;
    font-family: sans-serif;
    background-color: #f5f5f5;
  }
  
  .gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
    padding: 10px;
  }
  
  .gallery-img {
    margin-top: 20px;
    width: 100%;
    height: 220px;
    object-fit: cover;
    cursor: pointer;
    border-radius: 8px;
    transition: transform 0.3s;
  }
  
  .gallery-img:hover {
    transform: scale(1.05);
  }
  
  /* Modal styles */
  .modal {
    display: none;
    position: fixed;
    z-index: 100;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
  }
  
  .modal-content {
    margin: auto;
    display: block;
    height: auto;
    width: auto;
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 8px;
    background: transparent; /* 👈 Make sure this is added */
  }
  
  
  
  .close {
    position: absolute;
    top: 20px;
    right: 40px;
    color: white;
    font-size: 40px;
    cursor: pointer;
  }
  