.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr));
    gap: 1rem;
  }
  
  .gallery-item {
    overflow: hidden;
    border-radius: 10px;
  }
  
  .gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover; /* You can change this */
    aspect-ratio: 4 / 3; /* Optional for consistent box sizes */
  }
  
  .gallery-thumb {
    width: 100%;
    cursor: pointer;
    border-radius: 4px;
  }
  
  .lightbox {
    position: fixed;
    top:0; left:0; right:0; bottom:0;
    background-color: rgba(0,0,0,0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
  }
  
  .lightbox img {
    max-width: 90%;
    max-height: 80vh;
    border-radius: 6px;
  }
  
  .close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    color: white;
    cursor: pointer;
  }
  
  .prev, .next {
    position: absolute;
    top: 50%;
    font-size: 50px;
    color: white;
    cursor: pointer;
    user-select: none;
    padding: 10px;
    border-radius: 50%;
    background-color: rgba(0,0,0,0.3);
    transform: translateY(-50%);
  }
  
  .prev {
    left: 20px;
  }
  
  .next {
    right: 20px;
  }