
.drive-posts-gallery {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: Arial, sans-serif;
}

.drive-posts-gallery h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #333;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

.post-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.card-header {
    padding: 10px 15px;
    background: #f5f5f5;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eee;
}

.post-checkbox {
    margin: 0;
}

.post-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.no-image {
    width: 100%;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f0f0;
    color: #666;
    text-align: center;
    padding: 10px;
}

.card-content {
    padding: 15px;
}

.card-content h3 {
    margin: 0 0 10px 0;
    font-size: 1.2rem;
    color: #333;
}

.price {
    font-size: 1.3rem;
    font-weight: bold;
    color: #2e7d32;
    margin: 10px 0;
}

.description {
    color: #666;
    line-height: 1.4;
    margin-bottom: 15px;
}

.meta {
    font-size: 0.9rem;
    color: #999;
    border-top: 1px solid #eee;
    padding-top: 10px;
}

.controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    padding: 20px;
    background: #f5f5f5;
    border-radius: 8px;
    flex-wrap: wrap;
}

.controls button {
    background: #333;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
}

.controls button:hover {
    background: #555;
}

.no-posts {
    text-align: center;
    padding: 50px;
    color: #999;
    font-size: 1.2rem;
}

.debug-info {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 5px;
    padding: 15px;
    margin: 20px 0;
    font-family: monospace;
    font-size: 14px;
    color: #495057;
    overflow-x: auto;
}

@media (max-width: 768px) {
    .posts-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 15px;
    }
    
    .controls {
        flex-direction: column;
        align-items: center;
    }
    
    .controls button {
        width: 100%;
        max-width: 200px;
    }
}
