/**
 * Pinterest Grid CSS - Simple CLS Solution
 * Responsive grid layout for mobile and desktop
 */

.pinterest-grid {
    display: grid;
    gap: 15px;
    grid-template-columns: repeat(1, 1fr); /* Móvil: 1 columna */
    padding: 20px 10px;
}

@media (min-width: 768px) {
    .pinterest-grid {
        grid-template-columns: repeat(4, 1fr); /* Desktop: 4 columnas */
        padding: 20px;
    }
}

.pinterest-item {
    background: #f5f5f5;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    transition: transform 0.2s ease;
}

.pinterest-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.pinterest-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.pinterest-item .scp-pint-new {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 2;
}

.pinterest-item .txtbase {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: white;
    padding: 20px 10px 10px;
    font-size: 14px;
}

/* Compatibilidad con sistema actual */
#containerpint.pinterest-grid {
    list-style: none;
    margin: 0;
    padding: 20px 10px;
}

#containerpint.pinterest-grid li {
    margin: 0;
    padding: 0;
}