/* CONTENEDOR PRINCIPAL (CENTRADO) */
.byvg-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;

    max-width: 1100px;   /* 🔥 controla tamaño total */
    margin: 0 auto;      /* 🔥 centra el grid */
    padding: 20px;
}

/* CARD */
.byvg-item {
    background: #000;
    /* border-radius: 8px; */
    overflow: hidden;
    transition: all .25s ease;
}

.byvg-item:hover {
    transform: translateY(-6px);
}

/* IMAGEN CUADRADA CONTROLADA */
.byvg-image-wrapper {
    width: 100%;
    aspect-ratio: 1/1;
    overflow: hidden;
}

.byvg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* CONTENIDO */
.byvg-content {
    padding: 18px 12px;
    text-align: center;
}

/* CATEGORIA (TIEMPO) */
.byvg-time {
    display: block;
    font-size: 13px; /* 🔥 más grande */
    color: #cfcfcf;
    margin-bottom: 8px;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-family: 'Montserrat', sans-serif;
}

/* TITULO */
.byvg-title {
    font-size: 16px; /* 🔥 más grande */
    color: #5B8183;
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    line-height: 1.3;

    /* CORTE LIMPIO */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* RESPONSIVE TABLET */
@media (max-width: 1024px) {
    .byvg-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 700px;
    }
}

/* RESPONSIVE MOBILE */
@media (max-width: 600px) {
    .byvg-grid {
        grid-template-columns: 1fr;
        max-width: 90%;
        gap: 18px;
    }

    .byvg-title {
        font-size: 15px;
    }

    .byvg-time {
        font-size: 12px;
    }
}