 .galeria {
    padding: 50px 20px;
    background-color: #f2f2f2;
    text-align: center;
    font-family: 'Playfair Display', serif; 
  }

  .galeria h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 40px;
  }

  .grid-galeria {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
  }

  .grid-galeria img {
    width: 100%;
    border-radius: 5px;
    cursor: pointer;
    transition: transform 0.3s;
  }

  .grid-galeria img:hover {
    transform: scale(1.05);
  }

  .modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
  }

  .modal-contenido {
    max-width: 90%;
    max-height: 90%;
    border-radius: 5px;
  }

  .cerrar {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
  }

  @media screen and (max-width: 768px) {
    .grid-galeria {
      grid-template-columns: 1fr;
      width: 60%;
    }
  }