h1{
    text-align: center;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(250px, 1fr));
    margin: auto;
    grid-gap: 10px;
    padding: 40px;
    width: 95%;
    overflow: hidden;
}

.gallery > a{
    display: block;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 6px rgba(0, 0, 0, 0.5);
}

.gallery img{
    vertical-align: top;
    width: 100%;
    height: 300px;
    object-fit: cover;
    object-position: 100% 90%;
    border-radius: 10px;
    transition:  transform 0.5s;
    
} 

.gallery a:hover img{
    filter: blur(2px);
    transform: rotate(10deg) scale(1.3);
}

.light-box{
    position: fixed;
    top: 0;
    left: 0;
    background: rgba(0, 0, 0, .9);
    transform: .3s ease-in-out;
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: flex; 
    justify-content: center;
    align-items: center;
    transform: scale(0);
    overflow: auto; 
}

.light-box img{
    width: auto;
    height: auto;
    max-width: 100%;
    /* max-height: 70vh; */
}

.light-box:target{
    transform: scale(1);
}

.close-picture{
    position: absolute;
    display: block;
    background: #3a3835;
    top: 5%;
    right: 5%;
    color: #fff;
    height: 50px;
    width: 50px;
    line-height: 50px;
    text-decoration: none;
    text-align: center;
    border-radius: 20%;
    font-size: x-large;
    box-shadow: 0 0 6px rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.next{
    position: absolute;
    display: block;
    background: #3a3835;
    right: 5%;
    color: #fff;
    height: 50px;
    width: 50px;
    line-height: 50px;
    text-decoration: none;
    text-align: center;
    font-size: x-large;
    border-radius: 20%;
    z-index: 1000;
    } 

.prev{
    position: absolute;
    display: block;
    background: #3a3835;
    left: 5%;
    color: #fff;
    height: 50px;
    width: 50px;
    line-height: 50px;
    text-decoration: none;
    text-align: center;
    font-size: x-large;
    border-radius: 20%;
    z-index: 1000;
    }    

.close-out-element {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1; /* Asegurar que esté por encima del contenido */
    opacity: 0; /* Ocultar el enlace */
    pointer-events: auto; /* Permitir que el clic se propague al enlace */
    z-index: -2;
}

