﻿.portfolio-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px; /* separación entre tarjetas */
    justify-content: center;
    padding: 5px;
}

/* Cada tarjeta individual */
.portfolio-entry {
    width: calc(25% - 10px); /* 4 por fila */
    height: auto;
    background: #000;
    border-radius: 5px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Imagen ajustada */
.portfolio-image img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    display: block;
}

/* Contenedor del título */
.grid-content {
    background: #1a1a1a;
    padding: 6px 10px;
    text-align: center;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Título */
.grid-entry-title {
    font: 12px / 1.4em "HelveticaNeue", "Helvetica Neue", Helvetica, Arial, sans-serif;
    text-align: center;
    margin: 0;
}
    /* Título */
    .grid-entry-title p {
        font: "HelveticaNeue", "Helvetica Neue", Helvetica, Arial, sans-serif;
        text-align: center;
        margin: 0;
    }
    /* Enlace del título */
    .grid-entry-title a {
        color: #fff;
        text-decoration: none;
    }

        .grid-entry-title a:hover {
            text-decoration: underline;
        }

/* RESPONSIVE */
@media (max-width: 1024px) {
    .portfolio-entry {
        width: calc(33.33% - 10px); /* 3 por fila en tablets grandes */
    }
}

@media (max-width: 768px) {
    .portfolio-entry {
        width: calc(50% - 10px); /* 2 por fila en tablets pequeñas */
    }
}

@media (max-width: 480px) {
    .portfolio-entry {
        width: 100%; /* 1 por fila en móviles */
    }
}
