/*
Theme Name: GridPress Responsive Theme
Theme URI: http://www.dessign.net/gridpresstheme/
Description: Responsive GridPress Theme for WordPress is stylish, customizable, simple, and readable. Perfect for any illustrator or graphic designer.
Version: 2.0
Author: Marios Lublinski
Author URI: http://www.dessign.net
Tags: 2 column theme, clean, portfolio
*/
/* =WordPress Core
-------------------------------------------------------------- */
.alignnone {
    margin: 5px 20px 20px 0;
}
.aligncenter,
div.aligncenter {
    display: block;
    margin: 5px auto 5px auto;
}
.alignright {
    float:right;
    margin: 5px 0 20px 20px;
}
.alignleft {
    float: left;
    margin: 5px 20px 20px 0;
}
.aligncenter {
    display: block;
    margin: 5px auto 5px auto;
}
a img.alignright {
    float: right;
    margin: 5px 0 20px 20px;
}
a img.alignnone {
    margin: 5px 20px 20px 0;
}
a img.alignleft {
    float: left;
    margin: 5px 20px 20px 0;
}
a img.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto
}
.wp-caption {
    background: #fff;
    border: 1px solid #f0f0f0;
    max-width: 96%; /* Image does not overflow the content area */
    padding: 5px 3px 10px;
    text-align: center;
}
.wp-caption.alignnone {
    margin: 5px 20px 20px 0;
}
.wp-caption.alignleft {
    margin: 5px 20px 20px 0;
}
.wp-caption.alignright {
    margin: 5px 0 20px 20px;
}
.wp-caption img {
    border: 0 none;
    height: auto;
    margin: 0;
    max-width: 98.5%;
    padding: 0;
    width: auto;
}
.wp-caption p.wp-caption-text {
    margin: 0;
    padding: 0 4px 5px;
}


/* Global */
body, div { margin: 0; padding: 0; }
body { font-size: 12px; font-family: verdana; color: #333; line-height: 22px;}
h1,h2,h3,h4,h5,p { margin: 10px 0; }
img { border: none; }
p { line-height: 15px;  text-align: justify; }
.clear { clear: both; }
a {color: #333; text-decoration: none; }
a:hover { color: #666; }

table, th, td {
   height: 0px;
margin-top: 10px;
   width: 600px;
   padding: 0px;
   text-align: left;
   vertical-align: top;
   border-spacing: 0px;
   border: 0px;
   line-height: 15px;
}


#main_container { width: 1240px; margin: 0 auto;}


/* Header */
#header { padding: 0px 0 0px 0; }
.head_social_cont { float: right; }
.head_social_cont img { float: right; margin-left: 3px; }
.logo { float: left; margin-top: 0px; }
.head_menu_cont { float: right; margin-top: 40px; }
.head_menu_cont ul { list-style-type: none; margin: 0; padding: 0; }
.head_menu_cont ul li { float: left; margin-left: 10px; font-size: 14px; position: relative; }
.head_menu_cont ul li a { display: block; padding: 2px 25px; color: #000; text-decoration: none; }
.head_menu_cont ul li a:hover, .head_menu_cont ul li.current_page_item a, .head_menu_cont ul li.current-menu-item a { background-color: #333; color: #fff; }
.head_menu_cont ul li ul { display: none; position: absolute; top: 25px; left: 0; z-index: 100; border-top: 1px solid #000; background-color: #fff; }
.head_menu_cont ul li ul li { width: 200px; float: none; margin: 0; }


/* Content */
#slideshow_cont { width: 1240px; height: 550px; overflow: hidden; position: relative; margin-top:25px; margin-bottom: 10px; }
#slideshow img { width: 1240px; height: 550px; display: none; }
#slideshow img.first_img { display: block; }



.home_post_box { width: 600px; height: 340px; float: left; margin-right: 40px; margin-bottom: 40px; position: relative; }
.home_post_box a { color: #fff; }
.home_post_box a:hover { text-decoration: none;  }



.home_post_box img { width: 600px; height: 340px; }

.home_post_box_last { margin-right: 0; }
.home_post_text_back { position: absolute; top: 320px; left: 0; width: 600px; height: 0px; background-color: rgba(0,0,0,0.0); z-index: 5; display: hidden;  }
.home_post_text { width: 540px; position: absolute; bottom: -53px; left: 0; padding: 5px 30px; color: #fff; z-index: 10; display: block; visibility: hidden; text-decoration: none; }
.home_post_text h3 {  position: absolute; top: -60px; left: 30px; width: 580px; text-transform: uppercase; font-size: 13px; margin-left: -30px; margin-right: -30px; padding-left: 20px;
padding-bottom: 5px; padding-top: 5px; display: block; visibility: visible; text-decoration: none;
 display: block; visibility: visible; background-color: rgba(0,0,0,0.5);  }

.home_post_text p { margin-top: 0px; }     /* should put to - 50px (bottom -55px*/
.home_post_text a:hover { text-decoration: none;  }



.load_more_cont { padding-bottom: 20px; }
.load_more_cont a { display: block;  width: 151px; height: 30px; background: url('images/load-more.png') no-repeat; }

h3.top_title, h1.top_title { padding: 0px 0px; border-top: 1px solid #ccc; border-bottom: 1px solid #ccc; margin: 25px 0 10px; font-size: 14px; font-weight: normal; }
#single_cont { padding: 0 0 25px 0; }
.single_content { width: 1024px; float: left; }
.blog_box { margin-bottom: 25px; }
.blog_box_left { float: left; width: 140px; }
.blog_date { font-size: 22px; }
.blog_cat_comm { background-color: #000; padding: 2px 3px; color: #fff; margin-top: 5px; }
.blog_cat_comm a { color: #fff; text-decoration: none; }
.blog_box_right { float: left; width: 637px; font-size: 13px; }
.blog_box_right img { width: 637px; height: 395px; }
.blog_box_right h3 { margin-top: 0; font-size: 21px; font-weight: normal;}
.blog_nav { padding: 15px 0; }
.blog_nav .left a { display: block; width: 24px; height: 39px; background: url('images/blog-prev.jpg') no-repeat; }
.blog_nav .right a { display: block; width: 24px; height: 39px; background: url('images/blog-next.jpg') no-repeat; }
h1.single_title { margin-top: 0; margin-bottom: -7px; font-weight: normal; font-size: 14px; }
#commentform input[type=submit] { background-color: #161616; color: #fff; border: 1px solid #6E6E6E; padding: 3px 5px; }





/* Footer */
#footer { padding-top: 25px; }
.footer_box_cont { float: right; width: 125px; margin-right: 40px; }
.footer_box_cont_last { margin-right: 0; }
.footer_box { margin-bottom: -5px; }
.footer_box h3.footer_box_title { text-transform: uppercase; font-size: 15px; font-weight: normal; margin-top: 0; padding-bottom: 8px; background: url('images/footer-title-line.jpg') no-repeat; background-position: bottom left;  }
.footer_text { margin-top: 10px; padding: 30px 0; background: url('images/footer-title-line.jpg') repeat-x; background-position: top left; text-align: right; }
.footer_text a { text-decoration: none; }


/* for tablet landscape */
@media only screen and (max-width: 1280px) {
#main_container { width: 808px; }
    .logo { max-width: 200px; height: inherit; }

    .head_menu_cont ul li { font-size: 13px; }
    .head_menu_cont ul li a { padding: 5px 15px; }

    #slideshow_cont { width: 808px; height: 320px; }
    .slide_left { width: 354px; }
    .slide_right { width: 354px; }

    #slideshow img { width: 808px; height: 410px; display: none; }

    .home_post_box { width: 392px; height: 240px; margin-right: 24px; margin-bottom: 24px; }
    .home_post_box img { width: 392px; height: 240px; }
    .home_post_text_back { width: 392px; height: 240px; }
    .home_post_box_last { margin-right: 0; }

    .home_post_text { width: 320px; padding: 5px 10px; }

   .single_content { width: 600px;  }

.home_post_text h3 {width: 371px;}

    .single_inside_content img { max-width: 600px; height: inherit; }
    .blog_box_left { float: left; width: 120px; }
    .blog_cat_comm { font-size: 11px; }

    .blog_box_right { float: left; width: 360px; font-size: 15px; }
    .blog_box_right img { width: 360px; height: 223px; }

    #sidebar { width: 200px; }

    .t1_search_cont { width: 160px; }
    .t1_search_cont input[type=text] { width: 140px; }

    .footer_box_cont { float: left; width: 220px; margin-right: 24px; }
    .footer_box_cont_last { margin-right: 0; }
}


 /* for tablet Portrait */
@media only screen and (max-width: 1023px) {
    #main_container { width: 708px; }
    .logo { max-width: 200px; height: inherit; }

    .head_menu_cont ul li { font-size: 13px; }
    .head_menu_cont ul li a { padding: 5px 15px; }

    #slideshow_cont { width: 708px; height: 290px; }
    .slide_left { width: 354px; }
    .slide_right { width: 354px; }

    #slideshow img { width: 708px; height: 290px; display: none; }

    .home_post_box { width: 342px; height: 200px; margin-right: 24px; margin-bottom: 24px; }
    .home_post_box img { width: 342px; height: 200px; }
    .home_post_text_back { width: 342px; height: 200px; }
    .home_post_box_last { margin-right: 0; }

    .home_post_text { width: 320px; padding: 5px 10px; }

   .single_content { width: 500px;  }

.home_post_text h3 {width: 321px;}

    .single_inside_content img { max-width: 500px; height: inherit; }
    .blog_box_left { float: left; width: 120px; }
    .blog_cat_comm { font-size: 11px; }

    .blog_box_right { float: left; width: 360px; font-size: 15px; }
    .blog_box_right img { width: 360px; height: 223px; }

    #sidebar { width: 200px; }

    .t1_search_cont { width: 160px; }
    .t1_search_cont input[type=text] { width: 140px; }

    .footer_box_cont { float: left; width: 220px; margin-right: 24px; }
    .footer_box_cont_last { margin-right: 0; }
}
@media screen and (max-width: 480px) {
    #main_container { width: 300px; }

    .head_social_cont { display: none; }
    .logo { float: none; max-width: 300px; height: inherit; }

    .head_menu_cont ul li a { padding: 5px 10px; }

.home_post_text h3 {width: 280px;}

        #slideshow_cont { width: 300px; height: 140px; overflow: hidden; position: relative; margin-bottom: 37px; }
#slideshow img { width: 300px; height: 140px; display: none; }
#slideshow img.first_img { display: block; }

    .home_post_box { width: 300px; height: 170px; margin: 0 auto 25px; }
    .home_post_box img { width: 300px; height: 170px; }
    .home_post_text_back { width: 300px; height: 170px; }
    .home_post_text { width: 280px; padding: 5px 10px; }

    .single_content { width: 300px; float: none; }
    .single_inside_content img { max-width: 300px; height: inherit; }
    .blog_box_left { float: none; width: 180px; margin-bottom: 20px; }
    .blog_cat_comm { font-size: 12px; }

    .blog_box_right { float: right; width: 300px; font-size: 15px; }
    .blog_box_right img { width: 300px; height: 186px; }

    #commentform textarea { max-width: 280px; }
    #sidebar { display: none; }

    .footer_box_cont { width: 300px; margin-right: 0px; margin-bottom: 10px; }
    .nocomments { display: none; }
}



/* for mobile landscape */
@media screen and (max-width: 766px)

{
    #main_container { width: 300px; }

    .head_social_cont { display: none; }
    .logo { float: none; max-width: 300px; height: inherit; }

    .head_menu_cont ul li a { padding: 5px 10px; }

.home_post_text h3 {width: 280px;}

        #slideshow_cont { width: 300px; height: 140px; overflow: hidden; position: relative; margin-bottom: 37px; }
#slideshow img { width: 300px; height: 140px; display: none; }
#slideshow img.first_img { display: block; }

    .home_post_box { width: 300px; height: 170px; margin: 0 auto 25px; }
    .home_post_box img { width: 300px; height: 170px; }
    .home_post_text_back { width: 300px; height: 170px; }
    .home_post_text { width: 280px; padding: 5px 10px; }

    .single_content { width: 300px; float: none; }
    .single_inside_content img { max-width: 300px; height: inherit; }
    .blog_box_left { float: none; width: 180px; margin-bottom: 20px; }
    .blog_cat_comm { font-size: 12px; }

    .blog_box_right { float: right; width: 300px; font-size: 15px; }
    .blog_box_right img { width: 300px; height: 186px; }

    #commentform textarea { max-width: 280px; }
    #sidebar { display: none; }

    .footer_box_cont { width: 300px; margin-right: 0px; margin-bottom: 10px; }
}