.gallery-new {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 1000px;
    margin: 20px auto;
  }
  
  .image-galery {
    position: relative;
    margin: 10px;
    overflow: hidden;
    max-width: 300px;
  }
  
  .image-galery img {
    width: 305px;
    height: 290px;
    display: block;
    transition: transform 0.3s ease;
  }
  
  

  .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  .image-galery:hover .overlay {
    opacity: 1;
  }
  
  .text {
    text-align: center;
    padding: 10px;
  }
  
  /* Estilos para la expansión */
  .expanded-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  .expanded-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .expanded-image img {
    max-width: 40vw;
    max-height: 80vh;
    display: block;
    margin-bottom: 20px;
  }
  
  .expanded-text {
    color: white;
    padding: 20px;
  }
  
  /* Estilos para los botones de navegación */
  .nav-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.5);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 24px;
    color: black;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    transition: background-color 0.3s ease;
  }
  
  .nav-button:hover {
    background-color: rgba(255, 255, 255, 0.7);
  }
  
  .close-button {
    top: 10px;
    right: 10px;
  }
  
  .prev-button {
    left: 320px;
  }
  
  .next-button {
    right: 320px;
  }
  
  @media (max-width: 768px) {
    .prev-button {
      left: 20px;
    }
  
    .next-button {
      right: 20px;
    }
    .image-galery img {
      width: 305px;
      height: 400px;
      display: block;
      transition: transform 0.3s ease;
    }

    .expanded-image img {
      max-width: 70vw;
      max-height: 80vh;
      display: block;
      margin-bottom: 20px;
    }
  }
  /* Estilos para el botón de cerrar */
  .close-button {
    position: absolute;
    top: 50px;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.5);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    color: black;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    transition: background-color 0.3s ease;
  }
  
  .close-button:hover {
    background-color: rgba(255, 255, 255, 0.7);
  }
  