.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    padding: 20px;
    max-width: 1200px;
    margin: auto;
  }
  
  .gallery-item {
    position: relative;
    height: 200px;
    overflow: hidden;
    cursor: pointer;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  }
  
  .gallery-item .overlay h4{
    color: #fff;
  }

  .gallery-item img {
    width: 100%;
    height: 100%;
    display: block;
    transition: transform 0.3s ease;
    object-fit: cover;
    object-position: center;
  }
  
  .gallery-item:hover img {
    transform: scale(1.05);
  }
  
  .overlay {
    position: absolute;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    width: 100%;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    padding: 10px;
  }
  
  .gallery-item:hover .overlay {
    transform: translateY(0);
  }
  
  .modal {
    display: none;
    position: fixed;
    z-index: 999999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
    justify-content: center;
    align-items: center;
  }
  
  .modal-content {
    position: relative;
    max-width: 50%;
    /* max-height: 90%; */
  }
  
  .modal-content img {
    width: 100%;
    height: auto;
  }
  
  .close, .prev, .next {
    position: absolute;
    color: white;
    font-size: 30px;
    padding: 10px 20px;
    background: rgba(0,0,0,0.5);
    border: none;
    cursor: pointer;
    z-index: 10;
  }
  
  .close {
    top: 10px;
    right: 10px;
    font-size: 35px;
  }
  
  .prev {
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
  }
  
  .next {
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
  }
  
  