/* NEW POST FORM*/

form.mpc-new-post-form {
    margin: auto;
    background: white;
    padding: 2em 6em;
    padding-top: 1em;
    margin-bottom: 2em;
    box-shadow: 2px 2px 15px rgb(0 0 0 / 6%);
    border-radius: 5px;
}

form.mpc-new-post-form #ajaxInputWrapper {
    display: none;
}

form.mpc-new-post-form textarea.form-control, form.mpc-new-post-form #areaCopy {
    height: auto;
    background: transparent;
    padding: 0;
    overflow: hidden;
    font-size: 18px;
    display: block;
    resize: none;
    box-shadow: none !important;
    border: none;
    position: relative;
    z-index: 2;
}

form.mpc-new-post-form #areaCopy {
    position: relative;
    z-index: 1;
    white-space: pre-wrap;
}

form.mpc-new-post-form #areaCopy mark {
    background: #ffcb8c;
    padding: 0 !important;
}



form.mpc-new-post-form #areaCopy a {
    color: transparent;
    text-decoration: underline;
    text-decoration-color: #ffcb8c;
}


form.mpc-new-post-form textarea.form-control:focus {
    border-color: transparent;
    outline: 0;
    -webkit-box-shadow: none;    ;
    box-shadow: none;
}

form.mpc-new-post-form input.post-title {
    border: none;
    padding: 1em 0;
    font-weight: normal;
    font-size: 30px;
    box-shadow: none;
    border-bottom: 1px dashed gainsboro;
    border-radius: 0;
}

form.mpc-new-post-form .body-description {
    font-style: italic;
    font-size: 0.91em;
    opacity: 0.5;
    margin-bottom: 1.2em;
}

form.mpc-new-post-form #images {
   line-height: 1.1em;
}

form.mpc-new-post-form .image-preview {
    width: 100%;
    padding-top: 100%;
    background-size: cover;
    border-radius: 4px;
    border: 1px solid gainsboro;
    margin-bottom: 1em;
    background-size: cover;
    background-position: center;
}

form.mpc-new-post-form .image-preview.multiple {
    width: 49.58%;
    padding-top: 49.58%;
    margin: 0;
    display: inline-block;
}

.mp-submit {
    width: 100%;
    font-weight: bold !important;
    /*letter-spacing: 0.1em !important;*/
    color: white !important;
    background-color: #FF8A00 !important;
    border: none !important;
    padding: 0.5em !important;
    font-size: 1.3em !important;
    outline-offset: 0em !important;
}

/* FILE INPUT */

#dragFiles {
display: none;
background: rgba(0,0,0,0.1);
color: white;
text-align: center;
font-size: 20px;
z-index: 1;
position: relative;
}

#addFiles {
    padding: 0.45em 0.6em;
    background: gainsboro;
    background: #f3f1ef;
    margin: 1em 0;
    text-align: center;
    font-weight: bold;
    color: grey;
    cursor: pointer;
}

#addFiles:hover {
    background: #e2e2e2;
}

.form-managed-file button, .form-managed-file .form-item {
    display: none;
}

.form-managed-file input[type="file"] {
    border: none;
    box-shadow: none;
    color: transparent;
    opacity: 0.5;
    display: none;
    position: relative;
    z-index: 3;
}

/* PREVIEW BLOCK */

.preview-block {
    display: block;
    width: 100%;
    /*max-width: 500px; */
    margin: 2em 0;
    background: #f2f2f2;
    overflow: hidden;
    border: 1px solid gainsboro;
    text-decoration: none !important;
    color: inherit !important;
}

.preview-block .pb-content {
    font-family: Arial, Tahoma, Verdana, sans-serif;
    padding: 1em 1.5em 1.5em 1.5em;
}

.preview-block .pb-image {
    width: 100%; 
    height: 220px;
    background-size: cover;
    background-color: rgba(0,0,0,0.1);
    background-position: center center;
}

.preview-block .pb-content .pb-content-domain {
    text-transform: uppercase; 
    color: silver;
}

.preview-block .pb-content .pb-content-title {
    font-size: 25px;
    margin-top: 0.2em; 
    margin-bottom: 0em;
    font-weight: bold;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.preview-block .pb-content .pb-content-description {
    margin: 0em;
    margin-top: 1em;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.preview-block .iframeContainer {
  width: 100%;
  padding-top: 56.25%;
  position: relative;
}

.preview-block .iframeContainer iframe {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 100%;
}

@media screen and (max-width: 450px) {
    .preview-block.withdescription {
        display: flex;
        margin: 1em 0;
    }

    .preview-block .pb-content {
        padding: 0.8em 1em 0.5em 1.5em;
    }

    .preview-block.withdescription .pb-image {
        min-width: 120px;
        max-width: 120px;
        min-height: 120px;
        max-height: 120px;
    }
   .preview-block .pb-content .pb-content-title {
        font-size: 20px;
        -webkit-line-clamp: 2;
    }
    .preview-block .pb-content .pb-content-description {
        -webkit-line-clamp: 1;
    }
}

.post-pinned {
    background: #0072DB;
    color: rgba(255,255,255,0.7);
    padding: 5px 10px;
    margin-top: 5px;
    font-weight: bold;
    box-shadow: 2px 2px 6px rgb(0 0 0 / 10%);
    display: inline-block;
    border-radius: 3px;
}

/* LAST POSTS */
.last-post-block {
    width: 300px;
    background: white;
    padding: 2em;
    height: 600px;
    overflow: hidden;
    float: left;
    margin-right: 2em;
}