/** Hide attachments in list entries, we will show them using javascript as needed **/
.ec-card-container .attachments{
    display: none;
}


/*** css styling for list entries and single entries***/
.ec-card-container.single .attachments {
    display: flex;
    margin-top: 20px;
}

.attachments img {
    max-height: 200px;
    width: auto; 
    margin: 0 20px 0 0;
    cursor: pointer;
}

.addtemplate .mod-data-default-template{
    border-collapse: initial;
    border-spacing: 15px;
}

.ec-card-container {
    padding: 20px;
}

.ec-card {
    box-shadow: 1px 3px 5px 0px rgba(0, 0, 0, 0.4);
    background-color: white;
    padding: 0;
    overflow: hidden;
}

.ec-card-content {
    border: none !important;
    height: auto;
    max-height: inherit;
    position: relative;
    margin: 0;
    border: solid 1px rgb(217, 217, 217);
    overflow: hidden;
    color: rgb(59, 56, 56);
}

.ec-card-editmenu {
    position: relative;
    transform: translateY(70%);
    cursor: pointer;
    color: #912338;
    width: 15px;
    text-align: center;
    z-index: 1;
}

.editmenu-content {
    display: none;
    position: absolute;
    top: 0;
    right: 0;
    padding: 5px !important;
    text-align: left;
    width: 140px;
}

.editmenu-content a {
    display: block;
    font-family: "Open Sans", sans-serif;
    margin: 3px !important;
}

.editmenu-content i {
    color: rgb(var(--primary));
}

.ec-card-header {
    margin: 0;
    padding: 15px;
}

.ec-card-content article {
    height: 100%;
    overflow: hidden;
    justify-content: center;
}

.content-av {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    height: 200px;
    text-align: center;
    padding: 0;
}

.ec-card-container:not(.single) .content-av a {
    flex-shrink: 0;
    min-width: 100%;
    min-height: 100%;
}

.content-text {
    position: relative;
    text-align: left;
    padding: 5px;
    height: 110px;
    overflow: hidden;
}

.content-text-fade::before {
    content: "";
    width: 100%;
    height: 100% !important;
    position: absolute;
    left: 0;
    top: 0;
    background: linear-gradient(transparent,white);
    pointer-events: none;
}

.ec-card-content img {
    min-height: 100%;
    max-width: 100%;
}

.ec-more {
    position: relative;
    background-color: #912338;
    border: none;
    outline: none;
    color: #fff;
}

.ec-more a {
    display: none;
}

.ec-card-header a:nth-child(2),
    {
    color: rgb(59, 56, 56) !important;
}

.read_more {
    cursor: pointer;
    color: rgb(254, 121, 52);
    font-size: 0.9em;
    transform: translateY(6px);
}

/****SINGLE ENTRIES ***/
.single .ec-card-content {
    display: flex;
    border: none;
    max-height: inherit;
    height: auto;
}

.single .ec-card-editmenu {
    transform: translateY(19%);
}
.timestamps{
     margin-top: 10px;
}
.timestamps p {
    display: inline-block;
    font-size: 0.95rem;
    color: #9E9E9E;
    padding: 0 5px;
}

@media screen and (min-width: 768px) {
    .single .ec-card {
        box-shadow: none;
    }

    .single .fa-ellipsis-v:before {
        content: none;
    }

    .single .editmenu-content *:not(:first-child) {
        margin: 0 5px;
        border-left: 1px solid #9e9e9e;
    }

    .single .editmenu-content {
        display: flex !important;
        text-align: right;
        width: 350px;
        justify-content: flex-end;
    }

    .timestamps p:not(:last-child) {
        border-right: 1px solid #9e9e9e;
    }
}

/***overrides***/

.content-text::before {
    height: 95px;
    background: linear-gradient(transparent, white);
}


.ec-card-content article {
    height: inherit !important;
}

.single .content-text {
    height: auto;
    width: 60%;
}

.single .content-av {
    max-width: 40%;
    margin-right: 20px;
    overflow: initial;
    height: auto;
    justify-content: initial;
}

.single .ec-card-content img {
    max-height: 280px;
}
.ec-card-header h2:before{
display: none !important;
}

.ec-card-header h2 {
    display: inline-block !important;
    font-size: .92rem;
}

.ec-card-header h2 a {
    color: #912338 !important;
}

.ec-card-header .userpicture {
    border: 2px solid #912338 !important;
}

.ec-card-content .content-text p {
    margin: 0 !important;
    line-height: 130%;
}

.ec-card-content .content-text strong {
    color: #912338;
}


/*** styling for peershare modals / enlarged view ****/
.peershare-modal {
    display: flex;
    flex-flow: column;
    justify-content: center;
    position: fixed;
    transition: all 0.5s ease;
    top: 0;
    left: 0;
    height: 100vh;
    width: 100vw;
    padding: 40px;
    z-index: 999999;
    background-color: black;
    display: flex;
    flex-direction: column;
}

.peershare-modal img {
    display: block;
    margin: 0 auto;
    max-height: 80vh;
    max-width: 80vw;
    transition: transform 0.5s ease-in-out;
}

.peershare-modal #rotation_buttons {
    position:absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    margin: 0 auto;
    padding: 20px;
    z-index: 9999;
}

.peershare-modal #rotation_buttons button {
    border: 0;
    background: white;
    color: #912338;
    margin: 2px;
    width: 30px;
    height: 30px;
    font-size: 1.3rem;
    cursor: pointer;
}

.peershare-modal #rotation_buttons button:focus {
    outline: 2px dotted #2b8282;
}

.peershare-modal .modal-close {
    position: fixed;
    height: 30px;
    width: 30px;
    top: 30px;
    right: 30px;
    border: none;
    font-weight: bold;
    color: white;
    outline: none;
    background-color: rgb(var(--primary));
    border-radius: 50%;
    cursor: pointer;
}

.modal-hide {
    transform: translateY(100%);
    opacity: 0;
}

body.modal-show {
    overflow: hidden;
    padding-right: 7px;
    /*prevent content reflow*/
}