body{
    background: #444;
    margin: 0;
    font-family: monospace;
}

h1 {
    color: #fff;
    text-align: center;
    font-size: 50px;
}

/* Estilo de la galería */
.galeria {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); /* Columnas responsivas */
    gap: 8px; /* Espacio entre las imágenes */
    padding: 10px;
    box-sizing: border-box;
    list-style: none;
    margin: 8px;
    background-color: #fff;
}

.galeria li {
    margin-bottom: 10px; /* Espacio entre las filas */
}

.galeria img {
    width: 100%; /* Las imágenes ocuparán el ancho completo de su contenedor */
    height: auto; /* Se ajusta automáticamente la altura para mantener la proporción */
    border-radius: 10px; /* Borde redondeado opcional */
}


/*Estilos del modal*/

.modal {
    display: none;
}

.modal:target {
    
    display: block;
    position: fixed;
    background: rgba(0, 0, 0, 0.8);
    top: 0;
    left: -4%;
    width: 108%;
    height: 100%;
}

/* Agregar borde a las imágenes dentro del modal */
.modal img {
    border: 10px; /* Puedes ajustar el ancho y el color del borde según tus preferencias */
    border-radius: 15px; /* Esto es opcional, para hacer que los bordes sean redondeados */
}

.modal h3 {
    color: #fff;
    font-size: 30px;
    text-align: center;
    margin: 25px 0;
}

.imagen {
    width: 100%;
    height: 58%;
    display: flex ;
    justify-content: center;
    align-items: center;
}

.imagen a {
    color: #fff;
    font-size: 40px;
    text-decoration: none;
    margin: 0 10px
}

.imagen a:nth-child(2){
    margin: 0;
    height: 100%;
    flex-shrink: 2;
}

.imagen img {
    width: 500px;
    height: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/*Boton para cerrar las imagenes*/

.cerrar {
   display: block;
   background: #fff;
   width: 25px;
   height: 25px;
   margin: 15px auto;
   text-align: center;
   text-decoration: none;
   font-size: 25px;
   color: #000;
   padding: 5px;
   border-radius: 50%;
   line-height: 25px;
}

/*Boton para inicio*/

.container {
   display: flex;
   justify-content: center;
   align-items: center;
   height: 100vh; /* Hace que el contenedor ocupe toda la altura de la pantalla */
}

.btn-1 {
   display: flex;
   padding: 11px 35px;
   background-color: darkgray;
   color: #f9fafc;
   text-transform: uppercase;
   margin: 0; /* Elimina el margen inferior */
   justify-content: center;
   font-size: 30px;
}

.btn-1:hover {
   background-color: #323337;
}

