#slider-container {
    padding: 30px 0 0;
    margin: 10px 0 0;
}

#slider {
    max-width: 1024px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

#slider-left-contents {
    transform: translateX(0%);
    transition: transform 1s;
}

#slider-left {
    display: inline-block;
    height: 325px;
    margin: 0 14px 0 0;
    width: 600px;
    vertical-align: middle;
    overflow: hidden;
    position: relative;
    border-radius: 2px;
    background-color: white;
}

.slider-post-navigation {
    background-color: rgba(248, 248, 248, 0.6);
    color: black;
    padding: 10px;
    position: absolute;
    z-index: 10001;
    cursor: pointer;
}

#slider-prev-post {
    top: 50%;
    transform: translateY(-50%);
    left: 20px;
}

#slider-next-post {
    top: 50%;
    transform: translateY(-50%);
    right: 20px;
}

.slider-left-post {
    width: 600px;
    height: 325px;
    display: inline-block;
    vertical-align: middle;
    position: relative;
}

.slider-left-post img {
    width: 100%;
    display: inline-block;
    vertical-align: middle;
}

.slider-post-title {
    position: absolute;
    bottom: 8px;
    left: 0;
    width: 100%;
    background-color: rgba(248, 248, 248, 0.6);
    color: #333333;
    line-height: 1.5;
    padding: 10px 20px;
    box-sizing: border-box;
    font-size: 18px;
    font-weight: 700;
}

.slider-post-title:hover {
    text-decoration: underline;
}

#slider-right {
    display: inline-block;
    height: 325px;
    vertical-align: middle;
    width: 370px;
}

#slider-right .slider-post-title { 
    padding: 5px 10px;
    font-size: 15px;
    border-radius: 0 0 2px 2px;
}

#slider-right-top {
    height: 158px;
    margin: 0 0 9px;
    width: 100%;
    border-radius: 2px;
    background-size: cover;
    background-color: white;
}

#slider-right-bottom {
    height: 158px;
    width: 100%;
    border-radius: 2px;
    background-size: cover;
    background-color: white;
}

.slider-right-post {
    position: relative;
    height: 158px;
    display: block;
}

#main-container {
    padding: 0 18px;
}

#latest-posts-outer-container {
    overflow: hidden;
    margin: 10px 0 0 0;
    padding: 30px 0 0;
}

#latest-posts-inner-container {
    overflow: hidden;
    padding: 2px;
}

#latest-posts-container h3 {
    margin: 0 0 35px 0;
}

.latest-post {
    height: 362px;
    width: 31%;
    float: left;
    margin: 0 3.5% 35px 0;
    box-sizing: border-box;
    border-radius: 2px;
    box-shadow: 0 0 3px 0 rgba(0, 0, 0, 0.15);
    background-color: #fefefe;
    padding: 9px;
}

.latest-post:nth-child(3n) {
    margin-right: 0 !important;
}

.latest-post-ad {
    position: relative;
}

.latest-post-ad-title {
    background-color: rgba(248, 248, 248, 0.5);
    color: #999999;
    font-size: 12px;
    height: 50px;
    line-height: 50px;
    margin: 0 0 9px 0;;
    text-align: center;
}

.post-ad-unit {
    position: absolute;
    top: 90px;
    left: 0;
    right: 0;
    margin: 0 auto;
}

.post-ad-unit a {

}

.post-ad-unit img {
    width: 100%;
}

.latest-post-create {
    display: table;
}

.latest-post-create a {
    display: table-cell;
    vertical-align: middle;
    text-align: center;
    line-height: 1.5;
    padding: 20px;
    text-decoration: none;
    color: #999999;
    font-weight: 700;
}

.latest-post-title {
    margin: 0 0 9px 0;
    padding: 4px;
    line-height: 1.3;
    text-decoration: none;
    display: block;
    color: #555555;
    font-size: inherit;
    font-weight: 700;
    background-color: rgba(248, 248, 248, 0.5);
    border-radius: 2px;
    height: 36px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.latest-post-title:hover {
    text-decoration: underline;
}

.latest-post-image {
   height: 165px;
   margin: 0 0 9px 0;
   border-radius: 2px;
   display: block;
}

.latest-post-text {
    height: 116px;
    overflow: hidden;
    border-top: none;
    position: relative;
    border-radius: 0 0 2px 2px;
    background-color: rgba(248, 248, 248, 0.5);
    border-radius: 2px;
}

.latest-post-description {
    font-size: 13px;
    color: #777777;
    line-height: 1.5;
    padding: 7px 7px 0 7px;
}

.latest-post-mics {
    font-size: 11px;
    color: #999999;
    margin: 7px 0 0 0;
    font-weight: 300;
    position: absolute;
    bottom: 0px;
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
    padding: 0 7px 7px 7px;
}

.latest-post-by {
    display: inline-block;
}

.latest-post-user {
    color: #999999;
    text-decoration: none;
    font-size: 13px;
    margin: 0 0 0 5px;
    display: inline-block;
}

.latest-post-user:hover {
    text-decoration: underline;
}

.latest-post-time {
    position: absolute;
    right: 7px;
}

#posts-loader {
    margin: 50px auto 50px auto;
    text-align: center;
    display: none;
}

#posts-loader i {
    font-size: 30px;
}

#more-posts-container {
    margin: 15px auto;
    text-align: center;
    display: none;
}

#more-posts-button {
    padding: 10px;
    min-width: 200px;
}


/* RTL */
.rtl-language #slider-left {
    margin: 0 0 0 14px;
}

.rtl-language #slider-prev-post {
    left: auto;
    right: 20px;
}

.rtl-language #slider-next-post {
    right: auto;
    left: 20px;
}

.rtl-language .latest-post {
    float: right;
    margin: 0 0 35px 3.5%;
}

.rtl-language .latest-post:nth-child(3n) {
    margin-left: 0 !important;
}

.rtl-language .latest-post-time { 
    right: auto;
    left: 7px;
}

.rtl-language .latest-post-user {
    margin: 0 5px 0 0;
}


/* Responsiveness */
@media screen and (min-width:320px) and (max-width:639px) {
    #slider {
        padding: 0;
        text-align: center;
    }

    #slider-left {
        margin: 0 auto;
        height: auto;
        border-radius: 0px;
    }

    .rtl-language #slider-left {
        margin: 0;
    }

    .slider-left-post {
        height: auto;
    }

    .slider-post-title {
        bottom: 4px;
        padding: 5px 10px;
        line-height: 1.2;
    }

    #slider-right {
        display: none;
    }

    #slider-prev-post {
        left: 10px;
    }

    #slider-next-post {
        right: 10px;
    }

    #latest-posts-inner-container {
        padding: 2px 0;
    }

    .latest-post {
        height: auto;
        width: 99%;
        margin: 0 auto 30px auto !important;
        float: none !important;
        padding: 5px 0;
        border-radius: 0px;
        max-width: 370px;
    }

    .latest-post:nth-child(3n) {
        margin-right: auto !important;
    }

    .latest-post-title {
        height: auto;
        margin: 0;
        padding: 10px;
        -webkit-line-clamp: initial;
        border-radius: 0px;
    }

    .latest-post-image {
        height: 150px;
        margin: 0;
        border-radius: 0px;
    }

    .latest-post-text {
        display: none;
    }

    .latest-post-ad {
        min-height: 300px;
    }

    .post-ad-unit {
        top: 40px;
    }

    .latest-post-ad-title {
        height: 30px;
        line-height: 30px;
    }

    .latest-post-create {
        min-height: 100px;
    }

    .rtl-language .latest-post:nth-child(3n) {
        margin-left: auto !important;
    }
}

@media screen and (min-width:320px) and (max-width:374px) {
    #slider {
        max-width: 320px;
    }

    #slider-left {
        width: 320px;
    }

    .slider-left-post {
        width: 320px;
    }

    .slider-post-title {
        font-size: 13px;
    }

    #main-container {
        padding: 0;
    }
}

/* iPhone 6S */
@media screen and (min-width:375px) and (max-width:413px) {
    #slider {
        max-width: 375px;
    }

    #slider-left {
        width: 375px;
    }

    .slider-left-post {
        width: 375px;
    }
}

/* iPhone 6 Plus */
@media screen and (min-width:414px) and (max-width:479px) {
    #slider {
        max-width: 414px;
    }

    #slider-left {
        width: 414px;
    }

    .slider-left-post {
        width: 414px;
    }

    .slider-post-title {
        font-size: 14px;
    }
}

@media screen and (min-width:480px) and (max-width:567px) {
    #slider {
        max-width: 480px;
    }

    #slider-left {
        width: 480px;
    }

    .slider-left-post {
        width: 480px;
    }
}

/* iPhone 5 */
@media screen and (min-width:568px) and (max-width:639px) {
    #slider {
        max-width: 568px;
    }

    #slider-left {
        width: 568px;
    }

    .slider-left-post {
        width: 568px;
    }

    .slider-post-title {
        font-size: 15px;
    }
}

@media screen and (min-width:640px) and (max-width:1023px) {
    #slider {
        text-align: center;
        padding: 0 10px;
    }

    #slider-left {
        margin: 0 auto;
        width: 640px;
        height: auto;
    }

    .slider-left-post {
        width: 640px;
        height: auto;
    }

    .slider-left-post img {
        image-rendering: pixelated;
    }

    #slider-right {
        display: none;
    }

    #main-container {
        max-width: 640px;
        padding: 0;
    }

    .latest-post {
        width: 48%;
        margin: 0 4% 35px 0;
        padding: 5px;
    }

    .latest-post:nth-child(3n) {
        margin-right: 4% !important;
    }

    .latest-post:nth-child(2n) {
        margin-right: 0 !important;
    }

    .rtl-language .latest-post {
        margin: 0 0 35px 4% !important;
    }

    .rtl-language .latest-post:nth-child(2n) {
        margin-left: 0 !important;
    }
}