/*
 * Webasyst Default 3.0 theme family
 *
 * Blog app CSS
 * (requires linking base default.css file from the Site app)
 *
 * @link http://www.webasyst.com/
 * @author Webasyst LLC
 * @copyright 2015 Webasyst LLC
 * @package Webasyst
 *
 * ... extends base Site app's default.css
 */

.sidebar .search { margin: 16px 26px 16px 16px; }
.sidebar .search .search-wrapper { background: #fff; }
.sidebar .search input { margin-bottom: 0; }

.subscribe { padding: 6px 16px; margin-bottom: 20px; }
.subscribe ul { list-style: none; padding-left: 0; margin-bottom: 0; margin-top: 0; }
.subscribe ul li { margin: 12px 0; }
.subscribe ul li a { text-decoration: none; }
.subscribe ul li i.icon16 { margin-top: 0.1em; margin-right: 0.5em; }
.subscribe #twitter-follow-code { overflow: hidden; }

.post h3 { font-size: 2em; margin-right: 5px; margin-bottom: 8px; }
.post h3 a { text-decoration: none; }
.post img { max-width: 100%; height: auto !important; }
.post iframe { max-width: 100%; }
.post .text { margin-top: 5px; margin-right: 10px; }
.post textarea { width: 100%; min-height: 300px; margin-top: 10px; height: 250px; }
.post.search-match { margin-top: 20px; margin-bottom: 50px; }
.post.search-match h3 { font-size: 1.5em; margin-bottom: 5px; }
.post.search-match p { margin-top: 5px; }

.credentials { overflow: hidden; line-height: 1.3em; }
.credentials a,
.credentials span { display: inline-block; vertical-align: middle; padding-left: 0; }
.credentials .userpic { min-width: 20px; display: block; float: left; margin-right: 2px; border-radius: 50%; }
.credentials .username { margin: 0; }
.credentials .username, .credentials .username a { color: #777; padding: 0; display: inline; }
.credentials a.username:hover { color: red; }
.credentials .date,
.credentials .icon16 { margin: 0 3px; }
.credentials img.userpic { width: 20px; }
.post .credentials { margin-bottom: 20px;}

.photo-album-attachment ul.thumbs { padding-left: 0; }
.photo-album-attachment ul.thumbs li { list-style: none; display: inline-block; margin: 0 20px 20px 0; }
.photo-album-attachment .photo { margin-bottom: 20px; }
.photo-album-attachment .photo img { margin-top: -10px; }
.post .photo-album-attachment { padding-top: 10px; }

.comments { margin: 30px 50px 10px 0; }
.comments h3 { margin: 0 0 20px; }
.comments h4 { margin: 0 0 10px; }
.comments .credentials .date { margin: 0 5px; padding-top: 1px; }
.comments .credentials .userpic { margin-right: 5px; }
.comments .credentials .userpic.icon16 { min-width: 0; width: 16px; height: 16px; margin: 7px 4px 0; }
.comments textarea { height: 100px; min-height: 100px; width: 75%; margin-top: 0; } 
.comments ul,
.comments ul li { padding: 0; margin: 0 0 20px 0; list-style: none;}
.comments ul li ul { margin:20px 0 0 0; }
.comments ul li span.hint a { color: #aaa; text-decoration: underline; }
.comments .text { margin: 5px 0 5px 28px; }
.comments .actions { margin: 0 0 5px 28px; font-size: 0.9em; }
.comments ul li a.comment-delete { margin: 0 0 0 5px; padding: 0; color: #d99; text-decoration: underline; }
.comments ul li a.comment-delete:hover { background: red; color: white; }
.comments ul li ul { padding-left: 25px; }
.comments ul li .comment-form { padding: 10px 30px; margin-top: 0; }
.comments ul li .comment-form textarea { min-height: 100px; }
.comment.in-reply-to { background: #eee; margin: -8px -8px -13px; padding: 8px 35px 8px 8px; position: relative; }
.comment.new { background: #ffc; margin: -8px -8px -13px; padding: 8px 35px 8px 8px; }

ul.auth-type { padding: 0 0 10px !important; list-style: none; }
ul.auth-type li { padding-right: 10px; display: inline-block; float: left\9; display: inline\9; }
ul.auth-type li a { padding: 5px 6px; }
ul.auth-type li a img { margin-right: 5px; top: 4px; position: relative; }

.comment-form { padding: 0; margin-top: 30px; }
.comment-form h4 { margin: 0 0 20px; font-weight: normal; }
.comment-form-fields p { margin: 0 0 10px; }
.comment-form-fields p a { display: inline !important; }
.comment-form-fields label { width: 160px; display: block; clear: left; float: left; margin: 0 10px 0 0; color: #aaa; padding-top: 3px; }
.comment-form-fields input { width: 20em; }
.comment-form textarea { min-width: 70%; min-height: 160px; }
.comment-form .comment-submit { padding:0 0 0 170px;}
.comment-form .userpic { width: 20px; height: 20px; float: left; margin-right: 5px; border-radius: 50%; }
.comment-form ul.menu-h.auth-type li a img { float: left; margin-right: 3px; position: relative; top: 2px; }
.comment-form ul.menu-h.auth-type { padding-bottom: 20px; }

.pageless-wrapper { font-style: italic; }

html.realtime-preview,
html.realtime-preview body { background: #fff; }
html.realtime-preview .globalheader,
html.realtime-preview .globalfooter { display: none; }
html.realtime-preview .content { margin-right: 0; }
html.realtime-preview .page { top: 0; margin: 10px 0; }

/* Plugins
---------- */

ul.menu-v.categories { margin-bottom: 20px; }
ul.menu-v.categories li { border: none; }
ul.menu-v.categories li a { padding: 5px 16px; }
ul.menu-v.categories li.selected a { color: #000; text-decoration: none; font-weight: bold; }

.tags.cloud { text-align: center; }


/* TABLET
========= */

@media screen and (min-width: 760px) and (max-width: 1024px) {

    .sidebar { width: 180px; }
    .content.with-sidebar { margin-right: 180px; overflow-x: visible; }
    
    .comment-form-fields input,
    .comment-form textarea { width: auto; min-width: 0; }
    
    .subscribe { padding-left: 10px; padding-right: 10px; }
   
}


/* MOBILE
========= */

@media screen and (max-width: 760px) {
 
    .search,
    .category-plugin,
    .tag-plugin,
    .nav-sidebar hr,
    .timeline { /*display: none;*/}
    
    .subscribe ul li { display: inline-block; }
    .subscribe ul li a span { display: none; }
    .subscribe:after { clear: both; }
    .subscribe #twitter-follow-code { display: none; }
    
    .sidebar { padding: 0 15px !important; }
     
    .post { margin-right: 0 !important; }
    .post h3 { font-size: 1.6em; }
    .post img { max-width: 100%; height: auto !important; }
    
    .comment-form-fields label { width: auto; float: none; }
    .comment-form-fields input { width: 80%; }
    .comment-form textarea { width: 90%; }
    .comment-form .comment-submit { padding-left: 0; }
    .comment-form .wa-captcha img { margin-bottom: 10px; }
    
    html.realtime-preview body { padding-top: 0; }
    html.realtime-preview .container { margin: 0 10px; }
    html.realtime-preview .post h1 { font-size: 2.6em; }

}

.errormsg { color: red; }

/* Posts Section */

a[name^=page_], .pageless-wrapper{
    display: none !important;
}

#post-stream{
    display: grid;
    grid-template-columns: repeat(4, 1fr);
             grid-column-gap: 20px;
             grid-row-gap: 20px;
}

@media screen and (max-width: 1200px){
    #post-stream{
        grid-template-columns: repeat(3, 1fr);
    }
}

 @media screen and (max-width: 1023px){
    #post-stream{
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 760px){
    #post-stream{
        grid-template-columns: repeat(1, 1fr);
    }
} 


.posts__item{
    display: flex;
    flex-direction: column;

    box-shadow: 0px 4px 8px 7px rgba(222, 222, 222, 0.3);
}

.posts__item--image{
    display: flex;
    flex-direction: column;
    justify-content: flex-end;

    width: 100%;
    height: 200px;

    padding: 0 0 15px 26px;

    position: relative;
    background-size: cover;
    text-decoration: none;
}

.posts__item--gradient{
    width: 100%;
    height: 100%;

    position: absolute;
    bottom: 0;
    left: 0;
    z-index: 1;

    background: linear-gradient(180deg, rgba(0, 0, 0, 0.45) 0%, rgba(0, 0, 0, 0) 100%);
    transform: rotate(180deg);
}

.posts__item--datetime{
    line-height: 24px;
    color: var(--white-1);
    font-size: 13px;
    text-decoration: none;
    position: relative;
    z-index: 2;
}

.posts__item--description{
    padding: 23px;

    
}



.posts__item--name{
    display: block;
    text-decoration: none;
    line-height: 28px;
    height: 56px;
    overflow: hidden;
    font-size: 22px;
    font-weight: 700;
    color: var(--black-1);
}

.posts__item--name:hover{
    color: var(--blue-1);
    text-decoration: underline;
}

.posts__item--text{
    line-height: 24px;
}

.posts__item--more{
    display: flex;
    justify-content: flex-end;

    padding: 0 23px 23px 0;
    margin-top: auto;
}

.posts__item--more > a{
    font-size: 15px;
    font-weight: 400;
    line-height: 24px;
    color: var(--black-1);
    text-decoration: none;
}

.posts__item--more > a:hover{
    color: var(--blue-1);
    text-decoration: underline;
}






/* Post */

.post_page .credentials{
    display: flex;
    align-items: center;
}

.post_page .username{
    color: var(--black-1);
    font-weight: bold;
    text-decoration: none;
}

/* Comment */

@media screen and (max-width: 850px){
    .comments{
        margin: 0;
    }
}

.comment, .comment.new{
    background-color: var(--white-1);
    border-radius: 10px;
    box-shadow: 0px 4px 8px 7px rgba(222, 222, 222, 0.3);
    padding: 30px 20px;
}

.comment.new{
    background-color: #ffc;
}

.comment .username{
    font-weight: bold;
}

.comment .text{
    margin: 20px 0 0 0;
}



/* Create Comment Form */

h4.add-comment{
    font-weight: bold;
    font-size: 22px;
}

textarea#comment_text{
    width: 100%; 
    resize: none;

    margin-top: 15px;

    border-radius: 6px;
    outline: 0;
    border: 1px solid #dbd1d1;
}

.comment-submit{
    padding: 0 !important;
}

.send-comment{
    border-radius: 3px;
    /* background-color: #D62828;
    color: var(--white-1);
    font-weight: bold;
    padding: 17px 47px;
    font-size: 15px; */

    transition: background-color .3s;
}

.send-comment:hover{
    background-color: var(--orange-5);
}

/* Comment for non-register user */

#user-auth-provider input, .wa-captcha-input{
    border-radius: 6px;
    outline: 0;
    border: 1px solid #dbd1d1;
}

.wa-captcha-input{
    margin-top: 15px;
}

.wa-captcha-refresh{
    color: var(--black-1);
    text-decoration: none;
}

.wa-captcha-refresh:hover{
    color: red;
}
