/* =========================================
   GALERÍA ESTILO INSTAGRAM
========================================= */

html, body {
    overflow-x: hidden;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;

    max-width: 900px;
    margin: 40px auto;
    padding: 10px;

    box-sizing: border-box;
}

.gallery-grid img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: transform .3s ease;
}

.gallery-grid img:hover {
    transform: scale(1.05);
}



/* =========================================
   MODAL PARA FOTO GRANDE
========================================= */

.modal {
    display: none;                 /* 🔥 EL MODAL ARRANCA OCULTO */
    position: fixed;
    z-index: 999;
    inset: 0;
    background: rgba(0,0,0,0.85);
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal-content {
    max-width: 90%;
    max-height: 90%;
    border-radius: 6px;
}

.close:hover {
    color: #bbb;
}


/* RESPONSIVE */
@media (max-width: 600px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
