/*
Theme Name: PhotoGrid Free Responsive Theme
Theme URI: http://www.dessign.net/photogridtheme/
Description: Responsive Free PhotoGrid 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: 3 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: 15px; font-family: "Times New Roman", serif; color: #000; line-height: 24px;  }
h1,h2,h3,h4,h5 { margin: 10px 0; }
p { margin: 10px 0; }
img { border: none; }
p { line-height: 22px; }
.left { float: left; }
.right { float: right; }
.clear { clear: both; }
a {color: #333; text-decoration: underline; }
a:hover { color: #666; }
#main_container { width: 1240px; margin: 0 auto; }
/* clearfix */
.group:before,
.group:after { content: ""; display: table; } 
.group:after { clear: both; }
.group { zoom: 1; /* For IE 6/7 (trigger hasLayout) */ }

/* Header */
#header { padding: 4px 0 35px 0; 
	text-align: center;
}

.head_social_cont { float: right; }
.head_social_cont img { float: right; margin-left: 3px; }
.logo { float: none; margin-top: 10px; }

.head_menu_cont { margin: auto; left: 0; right: 0; text-align: center; }
.head_menu_cont ul { list-style-type: none; margin: 0; padding: 0; }
.head_menu_cont ul li { float: none; margin-left: 10px; font-size: 14px; position: relative; display: inline-block;}
.head_menu_cont ul li a { display: block; padding: 2px 15px; 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: #fff; color: #666; }

.head_menu_cont ul li ul { display: none; position: absolute; top: 25px; left: 0; z-index: 100; border-top: 1px solid #ccc; background-color: #fff; }
.head_menu_cont ul li ul li { width: 165px; float: none; margin: 0; }

/* Content */

.home_post_box { width: 385px; height: 385px; 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: 385px; height: 385px; }
.home_post_box_last { margin-right: 0; }
.home_post_text_back { position: absolute; top: 0; left: 0; width: 385px; height: 385px; background-color: rgba(0,0,0,0.7); z-index: 5; display: none;  }
.home_post_text { width: 320px; position: absolute; bottom: 0; left: 0; padding: 5px 30px; color: #fff; z-index: 10; display: block; visibility: hidden; text-decoration: none; }
.home_post_text h3 { text-transform: uppercase; font-size: 18px; font-weight: normal; text-align: center; padding-bottom: 170px;  }
.home_post_text p { margin-top: 5px; }
.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: 5px 10px; border-top: 1px solid #eee; border-bottom: 1px solid #eee; margin: 20px 0 35px; font-size: 16px; font-weight: normal; text-align:center; }

#single_cont { padding: 0 0 25px 0; }
.single_content { width: 855px; margin: 0 auto; }

.single_social_buttons { margin: 1.5em 0; }
.single_social_buttons div,
.single_social_buttons iframe { 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: 20px; font-weight: normal; font-size: 16px; text-align: center; }
#commentform input[type=submit] { background-color: #161616; color: #fff; border: 1px solid #6E6E6E; padding: 3px 5px; }

/* Sidebar */
#sidebar { width: 250px; float: right; }

.side_box { margin-bottom: 25px; }
.side_box h3.side_title { margin-top: 0; font-size: 16px; font-weight: normal; }
.side_box ul, .footer_box ul { list-style-type: none; margin: 0; padding: 0; }
.side_box ul li, .footer_box ul li { margin-bottom: 8px; }

.t1_search_cont { position: relative; width: 200px; }
.t1_search_cont input[type=text] { width: 190px; height: 17px; border: 1px solid #E5E5E5; padding: 3px 15px 3px 5px;  }
.t1_search_icon { position: absolute; top: 6px; right: 3px; }

/* Footer */
#footer { padding-top: 25px; }

.footer_box_cont { float: left; width: 385px; margin-right: 40px; }

.footer_box_cont_last { margin-right: 0; }

.footer_box { margin-bottom: 25px; }
.footer_box h3.footer_box_title { text-transform: uppercase; font-size: 15px; font-weight: normal; margin-top: 0; padding-bottom: 8px; border-bottom: 1px solid;}
.footer_box p, .footer_box .textwidget { line-height: 1.4em; }

.footer_text { margin-top: 10px; padding: 30px 0; background: url('images/footer-text-line.jpg') repeat-x; background-position: top left; text-align: center; font-size:10px; }
.footer_text a { text-decoration: none; }


/* for tablet */

@media only screen and (min-width: 768px) and (max-width: 959px) {

    #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: 230px; height: 230px; margin-right: 5px; margin-bottom: 24px; }
    .home_post_box img { width: 230px; height: 230px; }  
    .home_post_text_back { width: 230px; height: 230px; }  
    .home_post_box_last { margin-right: 0; }
  
    .home_post_text { width: 200px; padding: 5px 10px; }

    .single_content { width: 500px;  }
	
	
    .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; }
  
    #slideshow_cont { display: none; }
  
    .home_post_box { width: 300px; height: 300px; margin: 0 auto 25px; }
    .home_post_box img { width: 300px; height: 300px; }  
    .home_post_text_back { width: 300px; height: 300px; }  
    .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; }

}


.metaslider.allwell .caption-wrap {
    background: white;
    bottom: 0;
    color: black;
    display: block;
    left: 0;
    line-height: 1.4em;
    margin: 0;
    opacity: 1;
    position: absolute;
    width: 100%;
}