.sgd-masonry-grid {
    margin: 0 auto;
}

.sgd-grid-item {
    width: 320px;
    margin-bottom: 20px;
    background: #ffffff;
    border: 1px solid #ccc;
    border-radius: 6px;
    display: flex;
    flex-direction: row;
    overflow: hidden;
}

/* Reddit-style sidebar for voting */
.sgd-vote-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #f8f9fa;
    padding: 10px;
    width: 40px;
    border-right: 1px solid #ebedf0;
}

.sgd-vote {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    color: #878a8c;
    font-weight: bold;
    padding: 5px 0;
}

.sgd-vote.upvote:hover, .sgd-vote.upvote.active { color: #ff4500; }
.sgd-vote.downvote:hover, .sgd-vote.downvote.active { color: #7193ff; }

/* Content Area */
.sgd-content {
    flex-grow: 1;
    padding: 12px;
}

.sgd-content h3 {
    font-size: 16px;
    margin: 0 0 10px 0;
}

.sgd-embed iframe, 
.sgd-embed blockquote, 
.sgd-embed .twitter-tweet {
    max-width: 100% !important;
    border-radius: 4px;
}

.sgd-comments-link {
    display: inline-block;
    margin-top: 12px;
    font-size: 12px;
    color: #878a8c;
    text-decoration: none;
    font-weight: bold;
    padding: 4px 6px;
    border-radius: 4px;
}

.sgd-comments-link:hover {
    background: #e2e2e2;
}