.social-media-feed {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    margin-left: calc(15px / -2);
    margin-right: calc(15px / -2);
}

.social-media-feed::after {
    content: '';
    flex-grow: 9999; /* Make sure that if the last row is not full, the other items don't grow super big */
}

.social-media-post {
    border-radius: 10px;
    box-shadow: rgba(0, 0, 0, .2) 1px 2px 3px;
    flex-grow: 1;
    overflow: hidden;
    position: relative;
    margin-right: calc(15px / 2);
    margin-left: calc(15px / 2);
    margin-bottom: 15px;
    width: calc((100% - (15px * 1)) / 1);
}
@media only screen and (min-width: 600px) {
    .social-media-post {
        width: calc((100% - (15px * 2)) / 2);
    }
}
@media screen and (min-width: 768px) {
    .social-media-post {
        width: calc((100% - (15px * 3)) / 3);
    }
}

/* Make a block that's always square */
.social-media-post::before {
    content: '';
    display: block;
    padding-top: 100%;
}

/* Make sure both image and content always exactly fit the square block */
.social-media-post__image, .social-media-post__content {
    bottom: 0;
    height: 100%;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
    width: 100%;
}

.social-media-post__content {
    background: #ffffff;
    opacity: .75;
    overflow: hidden;
    padding: 15px;
    pointer-events: none;
    text-overflow: ellipsis;
    transition: opacity .2s;
    text-decoration: none;
    width: calc(100% - 30px);
    word-wrap: break-word;
    color: #000000;
}

@media screen and (min-width: 1024px) {
    .social-media-post__content {
        opacity: 0;
        color: #8c7256;
    }
    .social-media-post:hover .social-media-post__content {
        opacity: .75;
        pointer-events: all;
    }
    .social-media-post__content:hover {
        text-decoration: none;
    }
}

a.social-media-post-publish-action{
    background: #afafafbf;
    left: 0;
    margin: 0;
    padding-right: 0;
    right: auto;
    top: 0;
    z-index: 1;
}

.social-media-post-publish-action .x-btn-wrap-default-toolbar-medium.x-btn-split-right > .x-btn-button:after,
.social-media-post-publish-action .x-btn-wrap-default-toolbar-medium.x-btn-split-right:after{
    content:none
}

#pimcore_editable_pageContent_1_maxposts,
#pimcore_editable_pageContent_1_hashtags {
    outline: 1px dashed #bababa;
}

.social-media-post-list-container .e003-form-label{
    padding-top: 0;
}

.publish-post-button {
    width: 100px;
}

.publish-status-button {
    color: #ffffff;
    padding-left: 5px;
}

.social-media-post .x-btn-default-toolbar-medium,
.social-media-post-unpublish-action {
    background: #afafafbf;
}

.load-more-posts {
    background-color: #f23b2d;
    border-radius: 4px;
    color: #ffffff;
    cursor: pointer;
    font-size: 18px;
    margin: 20px auto;
    max-width: 300px;
    padding: 15px;
    position: relative;
    text-align: center;
    z-index: 999;
}

.post-type-icon {
    font-size: 30px;
    z-index: 999999;
    height: 0;
    text-align: right;
    top: 15px;
    right: 15px;
    color: #ffffff;
    position: absolute;
}

.post-type-icon svg {
    height: 30px;
    width: 30px;
}

.twitter-actions {
    font-size: 25px;
    z-index: 999999;
    height: 0;
    text-align: right;
    bottom: 30px;
    left: 5px;
    position: absolute;
}

.twitter-action-button {
    color: #000000;
    padding-right: 15px;
}
@media screen and (min-width: 1024px) {
    .twitter-action-button {
        color: #ffffff;
    }
}

.post-date {
    position: absolute;
    bottom: 35px;
    right: 15px;
}

.author-data-field {
    position: absolute;
    top: 10px;
    width: calc(100% - 20px);
}

.author-avatar {
    width: 20%;
    float: left;
}
.author-avatar img {
    border-radius: 50%;
}

.author-names {
    float: left;
    width: 80%;
}

.post-text-content {
    position: absolute;
    top: 70px;
}
