
.posts-container.hide {
    display: none;
    visibility: hidden;
}

.posts-list {
    background: #FFF;
    box-shadow: 0px 9px 18px rgba(0,0,0,0.30);
}

/* portrait */
@media (max-width: 500px), (orientation:portrait) {
    .post-container {
        position: fixed;
        width: 100%;
        top: 50%;
        height: 50%;
        background: #FFF;
    }
    .post-container.expend {
        position: fixed;
        width: 100%;
        top: 24px;
        bottom: 0;
        height: 100%;
    }
    .posts-list-container {
        position: absolute;
        top: 0;
        width: 100%;
        bottom: 59px;
    }
    .post-container.expend .posts-list-container {
        bottom: 84px;
    }
    .posts-list-expend {
        right: 50%;
        transform: translate(50%, 0px);
        margin-top: -19px;
        width: 39px;
        top: 0;
        background: #FFF;
        z-index: 1;
        position: absolute;
        height: 19px;
        border-radius: 5px 5px 0 0;
        line-height: 19px;
        padding-top: 1px;
        text-align: center;
        cursor: pointer;
    }
    .posts-list-expend .glyphicon-triangle-right {
        display: none;
    }
    .posts-list {
        position: absolute;
        width: 100%;
        max-height: 100%;
        bottom: 0px;
    }
    .post-form-container {
        position: fixed;
        bottom: 0;
        width: 100%;
        z-index: 3;   
    }
    #addPost-cts {
        border-radius: 0px !important;
    }
}

/* landscape */
@media (min-width: 500px) and (orientation:landscape) {
    .post-container {
        position: fixed;
        top: 3px;
        width: 50%;
        left: 0px;
        margin-left: 3px;
        bottom: 3px;
        background: #FFF;
    }
    .post-container.expend {
        width: auto;
        right: 43px;
    }
    .posts-list-container {
        position: absolute;
        top: 0;
        width: 100%;
        height: 100%;
    }
    .posts-list-expend {
        right: 0px;
        margin-right: -19px;
        margin-top: -39px;
        width: 19px;
        top: 50%;
        transform: translate(0px, 50%);
        background: #FFF;
        z-index: 1;
        position: absolute;
        height: 39px;
        border-radius: 0 5px 5px 0;
        line-height: 40px;
        padding-left: 3px;
        cursor: pointer;
    }
    .posts-list-expend .glyphicon-triangle-top {
        display: none;
    }
    .posts-list {
        width: 100%;
        position: absolute;
        bottom: 64px;
        top: 0px;
    }
    .post-form-container {
        position: absolute;
        bottom: 0;
        width: 100%;   
        z-index: 3;
    }
    #addPost {
        width: 100%;
    }
    #addPost-cts {
        border-radius: 0px !important;
    }
    .map-container .gps-status {
        width: 50%;
        right: 0;
        padding-left: 5px;
    }
}

.posts-list .timeline_block {
    cursor: pointer;
}