
.gallery-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 10px;
    padding: 15px;
    max-width: 1200px;
    margin: 0 auto;
    margin-bottom: 80px;
}

.gallery-item img {
    width: 100%;
    height: auto;
    aspect-ratio: 1/1;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s ease-in-out;
}

.gallery-item img:hover {
    transform: scale(1.05);
}

.modal {
    display: none;
    position: fixed;
    z-index: 10;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 1);
    justify-content: center;
    align-items: center;
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 90%;
}

.close-button {
    position: absolute;
    top: 20px;
    right: 35px;
    width: 40px;
    height: 40px;
    cursor: pointer;
    z-index: 11; /* Asegurar que esté sobre la imagen */
}
.close-button img{
    width: 100%;
}


/* Estilos para los botones de navegación */
.prev-button,
.next-button {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -30px; /* Centrar verticalmente */
    color: white;
    font-weight: bold;
    font-size: 30px;
    transition: 0.3s ease;
    user-select: none; /* Evitar que se seleccione el texto */
    z-index: 1001;
}

.prev-button {
    left: 2%; /* Posición a la izquierda */
    border-radius: 3px 0 0 3px;
}

.next-button {
    right: 2%; /* Posición a la derecha */
    border-radius: 0 3px 3px 0;
}

.prev-button:hover,
.next-button:hover {
    background-color: rgba(100, 100, 100, 0.6);
}


@media screen and (max-width:730px) {
    .close-button{
        top: calc(100vh - 100px);
    }
}