
#home-contenido {
    height: auto;
    border-radius: 10px;
    background-color: white !important;
    padding: 2rem;
    height: auto;
}

#contenido {
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.card-body-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 10px;
}

    .card-body-wrapper img {
        width: 100%;
        height: 180px; /* alto fijo */
        object-fit: cover; /* mantiene proporción recortando lo que sobra */
        border-radius: 6px;
    }


/* Modal pantalla completa */
#modalImagen {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
    justify-content: center;
    align-items: center;
}

    #modalImagen img {
        max-width: 90%;
        max-height: 90%;
    }

    #modalImagen span {
        position: absolute;
        top: 20px;
        right: 40px;
        color: white;
        font-size: 40px;
        cursor: pointer;
    }

.card-body-wrapper img {
    cursor: pointer; /* Indica que es clickeable */
}
/* === From Galeria/Index.cshtml === */
.galeria-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    padding: 15px 0;
}
        .galeria-grid img {
            width: 100% !important;
            height: 150px !important;
            object-fit: cover !important;
            border-radius: 8px;
            cursor: pointer;
            box-shadow: 0 4px 6px rgba(0,0,0,0.1);
            transition: transform 0.3s ease, box-shadow 0.3s ease;
        }
        .galeria-grid img:hover {
            transform: scale(1.05);
            box-shadow: 0 8px 15px rgba(0,0,0,0.2);
        }
        #modalImagen {
            display: none;
            position: fixed;
            z-index: 99999;
            padding-top: 60px;
            left: 0; top: 0;
            width: 100%; height: 100%;
            background-color: rgba(0,0,0,0.9);
            backdrop-filter: blur(5px);
        }
        #imgModal {
            margin: auto;
            display: block;
            max-width: 90%;
            max-height: 85vh;
            border-radius: 10px;
            box-shadow: 0 10px 30px rgba(0,0,0,0.6);
            object-fit: contain;
        }
        #cerrarModal {
            position: absolute;
            top: 15px; right: 35px;
            color: #ffffff;
            font-size: 50px;
            font-weight: bold;
            cursor: pointer;
            transition: color 0.3s;
        }
        #cerrarModal:hover { color: #d1612e; }