.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
    padding: 20px;
    max-width: 80%;
    margin: auto;
  }
  .gallery img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 10px;
    transition: transform 0.3s ease-in-out;
    cursor: pointer;
  }
  .gallery img:hover {
    transform: scale(1.1);
  }
  .modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(236, 231, 231, 0.8);
    justify-content: center;
    align-items: center;
    flex-direction: column;
  }
  .modal img {
    max-width: 80%;
    max-height: 80vh;
    border-radius: 10px;
  }
  .modal .description {
    margin-top: 10px;
  }
  .close, .prev, .next {
    position: absolute;
    color: white;
    font-size: 30px;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    padding: 10px;
    border-radius: 40%;
    width: 50px;
  }

  .close{
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 25px;
    font-weight: bold;
    color: #fff;
    cursor: pointer;
    background: red;
    border: none;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.close:hover {
    background: rgb(170, 5, 5);
}
  .close { top: 10px; right: 20px; }
  .prev { left: 20px; }
  .next { right: 20px; }
  