/*-----------------------------------------------------------------------------------
	
	Theme Name: Gridone
	Theme URI: http://www.tomatolabs.com
	Description: A big, bold, beautiful, portfolio theme for creatives.
	Author: Tomatolabs
	Author URI: http://www.tomatolabs.com
	License: GNU General Public License version 3.0
	License URI: http://www.gnu.org/licenses/gpl-3.0.html
	Version: 1.0
	
	Designed & Handcrafted by Nicola Pagani and Emanuele Zenoni for tomatolabs.com
	All files, unless otherwise stated, are released under the GNU General Public License
	
	version 3.0 (http://www.gnu.org/licenses/gpl-3.0.html)

-----------------------------------------------------------------------------------*/
* {
	border: 0px;
	margin: 0px;
	padding: 0px;
}

html {
	height:100%;
}

body {
	height:100%;
	font-size: 11px;
        background-image:none;
        background-color:#eaeae5;
        line-height: 1.5;
}

/* Horizontal rules should be nice */
hr{
  border-bottom: 1px solid #999999;
  margin-bottom: 10px;
}


.sidebar-left, .sidebar-right {
    width: 172px;
    padding: 120px 0 0 30px;
    font-size: 1em;
    position: absolute;
}

.sidebar-left {
	padding-top: 0px;
background-image:none;
	left: 0px;
}

#fixed .sidebar-left {
	height: 100%;
	position: fixed;
}

.sidebar-right {
	height: auto !important;
    height: 200px;
    min-height: 200px;
	position: static;
	display: inline-block;
    zoom: 1;
    *display: inline;
    vertical-align: top;
    padding: 30px 0 0 13px;
}

.page .sidebar-right {
	padding: 300px 0 0 13px;
}

.sidebar-left .widget, .sidebar-right .widget, .sidebar-menu, #filters {
	margin: 0 0 40px;
	padding: 0 0 30px;
}

#main {
	margin: 0 0 0 202px;
	padding: 0 0 147px;
	display: block;
	vertical-align: top;
}

#loading {
	width: 16px;
	margin: 0px auto;
	padding: 50px 0;
}

.box {
	display: none;
}

.single #main, #inner-header {
	width: 1010px;
}

#inner {
	width: 795px;
	display: inline-block;
    zoom: 1;
    *display: inline;
    vertical-align: top;
    padding: 30px 0 0 13px;
}

.page #inner, .error404 #inner, .search #inner {
	padding: 74px 0 0 13px;
}

.page #inner #entry-sidebar {
	width: 378px;
	padding: 0 13px 0 0;
}

#entry-content, #entry-sidebar, .page #inner-content {
	width: 176px;
	height: auto !important;
    height: 200px;
    min-height: 200px;
    padding: 0 13px 0 0;
    display: inline-block;
    zoom: 1;
    *display: inline;
    vertical-align: top;
    line-height: 1.5;
}

.single-post #entry-content, .page #inner-content {
	width: 378px;
	padding: 0 13px 0 0;
}

#entry-sidebar {
	width: 580px;
	padding: 0 13px;
}

.single-post #entry-sidebar {
	width: 378px;
}

.type-post, .type-portfolio, .search-results .type-page {
	padding: 0px 13px 13px;
}

.type-post, .search-results .type-page {
	width: 176px;
	height: 428px;
    display: inline-block;
    zoom: 1;
    *display: inline;
    vertical-align: top;
}

.type-portfolio.size0 {
	width: 176px;
	height: 281px;
}

.type-portfolio.size1 {
	width: 176px;
	height: 428px;
}

.type-portfolio.size2 {
	width: 378px;
	height: 428px;
}

.type-portfolio.size3 {
	width: 378px;
	height: 575px;
}

.comment-content {
	padding: 13px 0 0;
}

#respond {
	padding: 20px 0 13px;
}

.footer {
	display: none;
}

.sidebar-left .footer {
	display: block;
}

.single-format-quote #entry-content {
	font-size: 21px;
	line-height: 1.2;
}

#entry-sidebar #comments, #entry-sidebar #respond {
	display: none;
}

/***
FORMS
***/

#contactForm {
	margin: 54px 0 0;
}

#comments {
	margin-top: 60px;
}

label {
	width: 70px;
	display: inline-block;
    zoom: 1;
    *display: inline;
    vertical-align: middle;
}

label.error {
	width: auto;
	padding: 0 0 0 85px;
	color: red;
}

input, textarea, .short-button {
	margin: 8px 0;
	-moz-border-radius:0px;
	-webkit-border-radius:0px;
	border-radius:0px;
	box-shadow: 0 0px 0px rgba(0, 0, 0, 0.1) inset;
    padding: 8px 12px;
    width: 352px;
    font-weight: bold;
}

input, .short-button {
    width: auto;
}

input[type=submit], .short-button {
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25), 0 1px 0 rgba(255, 255, 255, 0.4) inset;
	cursor: pointer;
}

/***
LINKS
***/

a {
	text-decoration: none;
	transition: color 0.1s linear;
	-moz-transition: color 0.1s linear;
	-webkit-transition: color 0.1s linear;
	-o-transition: color 0.1s linear;}

#logo-link {
	font-size: 28px;
	display: block;
}

h1.entry-title a:hover {
	border-bottom: 1px solid;
}

ul#navigation li a {
	height: 22px;
	display: block;
	line-height: 22px;
}

ul#navigation li#next a, ul#navigation li#prev a {
	padding: 0 0 0 27px;
	vertical-align: middle;
}

.more {
	border-bottom: 1px dotted;
	font-size: 10px;
}

.more:hover {
	border-bottom: 1px solid;
}

ul#social li a {
	width: 22px;
	height: 22px;
	display: block;
}

#slides a.prev {
	margin: 0 10px 0 0;
}

a.short-button {
	display: inline-block;
}

a.short-button:hover {
	color: #fff;
}

.sidebar-menu-icon, .sidebar-skills-icon {
	display: none;
}

/***
LISTS
***/

ul, ol {
	list-style-type: none;
}

ul#navigation {
	margin: 0 0 80px;
	height:50px;
}

ul#navigation li#prev, ul#navigation li#next {
	padding: 0 0 5px;
}

ul#social {
	margin: 0 0 40px;
    padding: 0 0 30px;
}

ul#social li {
	margin: 0 0 7px;	
}

ul.tweet_list li {
	padding: 0 0 15px 20px;
}

ol.commentlist li {
	margin: 0 0 26px;
	padding: 20px 13px 13px;
}

/***
TYPO
***/

.type-post h1, .type-portfolio h1, h1.entry-title {
	height: 86px;
	font-size: 14px;
	font-weight: 200;
	line-height: 1.13;
	color: #000000;
}

h1.entry-quote {
	height: auto;
}

.type-post p, .type-page p {
	padding: 26px 0 0;
	line-height: 1.5;
}

.sidebar-left h2, sidebar-right h2 {
	font-size: 1em;
	font-weight: 400;
	margin: 0 0 60px 0;
}

.sidebar-left h4, .sidebar-right h4 {
	font-size: 1em;
	font-weight: 200;
	color: #000000;
	margin: 0 0 10px;
}

#comments h1 {
	font-size: 1em;
	padding: 26px 0;
}

h3#reply-title {
	margin: 0 0 12px;
}

#entry-content p, #entry-sidebar p, #inner-content p {
	margin: 0 0 10px;
}

/***
WIDGET
***/

.widget h4 {
	color: #000000;
}

.widget ul, .widget ol {
	list-style-type: none;
}

.widget li {
	padding: 4px 0;
}

.widget li:first-child {
	padding-top: 0;
}

.widget li:last-child {
	padding-bottom: 0;
}

.widget label {
	display: block;
}

.widget.widget_calendar table {
	width: 100%;
	text-align: center;
}

/***
STUFF
***/

span.date {
	width: 100%;
	height: 17px;
	padding: 28px 0 0;
	display: block;
	font-size: 11px;
}

.type-portfolio .categories, .type-post .categories, #inner .categories, #inner .entry-meta {
	width: 100%;
	height: 44px;
	display: block;
}

.type-portfolio .categories {
	padding: 28px 0 0;
}

.type-post .categories {
	height: 27px;
}

#inner .entry-meta {
	width: 580px;
}

#logo-link img {
	width: 172px;
	height: auto;
}

#entry-content img, #inner-content img {
	width: 100%;
	height: auto;
	margin: 0 0 10px;
	display: block;
}

#entry-sidebar img {
	margin: 0 0 10px;
	display: block;
}

.type-post .thumb, .size0 .thumb, .size1 .thumb, .size2 .thumb, .size3 .thumb {
	width: 176px;
	height: 120px;
	display: block;
	position: relative;
}

.type-post .thumb {
	height: 121px;
}

.size1 .thumb {
	height: 268px;
}

.size2 .thumb, .size3 .thumb {
	width: 378px;
}

.size2 .thumb {
	height: 268px;
}

.size3 .thumb {
	height: 415px;
}

.type-post .thumb img, .size0 .thumb img, .size1 .thumb img, .size2 .thumb img, .size3 .thumb img {
	position: absolute;
}

.entry-meta time {
	float: right;
	font-size: 12px;
}

span.author {
	font-size: 13px;
}

.tweet_time {
	padding: 5px 0 0;
	display: block;
}

.slides_container {
	margin: 0 0 10px;
}

#slides {
	position: relative;
}

.single-format-gallery #entry-sidebar img {
	display: none;
}

.single-format-gallery #entry-sidebar #slides img {
	display: block;
}

#toTop {
	display:none;
	text-decoration:none;
	position:fixed;
	bottom:0px;
	right:20px;
	overflow:hidden;
	width:50px;
	height:40px;
	border:none;
	text-indent:100%;
	z-index: 3;
}

#toTopHover {
	width:50px;
	height:40px;
	display:block;
	overflow:hidden;
	float:left;
	opacity: 0;
	-moz-opacity: 0;
	filter:alpha(opacity=0);
}

#toTop:active, #toTop:focus {
	outline:none;
}

/***
MOBILE
***/

/* Smartphones (portrait and landscape) ----------- */
@media screen and (max-device-width: 480px) {
	
	body {
		padding: 20px 0 0;
		text-align: center;
		-webkit-text-size-adjust: none;
	}
	
	#main, .single #main {
		width: 100%;
		margin: 0px;
	}
	
	#main .box {
		width: 203px;
		margin: 0px auto;
	}
	
	.sidebar-left, .sidebar-right {
		width: 100%;
		padding: 0px;
		position: static;
	}
	
	#entry-content, #entry-sidebar, .single-post #entry-content, .page #inner-content, .single-post #entry-

sidebar, #inner .entry-meta, .page #inner, .error404 #inner, .search #inner, .page .sidebar-right {
		width: 100%;
		padding: 0px;
	}
	
	#entry-content #comments, #entry-content #respond {
		display: none;
	}
	
	#entry-sidebar #comments, #entry-sidebar #respond {
		display: block;
	}
	
	#inner .entry-meta {
		width: auto;
		padding: 0 30px;
		text-align: left;
	}
	
	.page .sidebar-right {
		padding: 40px 0 0;
	}
	
	#inner {
		width: 100%;
		padding: 0px;
	}
	
	.type-portfolio.size0, .type-portfolio.size1, .type-portfolio.size2, .type-portfolio.size3 {
		width: 176px;
		height: auto !important;
		height: 281px;
		min-height: 281px;
	}
	
	.size1 .thumb, .size2 .thumb, .size3 .thumb {
		width: 176px;
		height: 120px;
		overflow: hidden;
	}
	
	.size1 .thumb img, .size2 .thumb img, .size3 .thumb img {
		width: 176px;
		height: auto;
	}
	
	.sidebar-menu-icon, .sidebar-skills-icon {
		width: 100%;
		height: 28px;
		margin: 0px auto;
		display: block;
	}
	
	.sidebar-skills-icon {
		margin: 2px auto 0;
	}
	
	#menu-sidebar li a, #filters li a  {
		width: 100%;
		padding: 10px 0 10px;
		display: block;
	}
	
	.sidebar-menu, #filters {
		display: none;
	}
	
	#slides {
		display: none;
	}
	
	.footer {
		padding: 0 0 40px;
		display: block;
	}
	
	.sidebar-left .footer {
		display: none;
	}
	
	#twitter_div {
		width: 150px;
		margin: 0px auto 40px;
	}
	
	.widget {
		background-position: center bottom !important;
	}
	
	/***
	FORMS
	***/
	
	form {
		padding: 0 30px;
		text-align: left;
	}
	
	label {
		display: block;
	}
	
	textarea {
		width: 200px;
	}
	
	/***
	LINKS
	***/
	
	ul#navigation li#next a, ul#navigation li#prev a {
		background: none !important;
		padding: 0px;
		text-align: center;
		display: block;
	}
	
	/***
	LISTS
	***/
	
	.sidebar-menu, #filters {
		margin: 0px;
		padding: 0px;
	}
	
	ul#social {
		margin: 20px 0 0;
		clear: both;
	}
	
	ul#social li {
		width: 22px;
		display: inline-block;
		margin: 0 5px 0 0;
	}
	
	ul#navigation {
		margin: 50px 0;
	}
	
	/***
	TYPO
	***/
	
	.sidebar-left h2 {
		margin: 0 0 30px;
	}
	
	.sidebar-left h4 {
		display: none;
	}
	
	.type-post h1, .type-portfolio h1 {
		height: auto !important;
		height: 20px;
		min-height: 20px;
		margin: 0 0 20px;
	}
	
	#inner #entry-content p, #inner #inner-content p {
		padding: 0 30px;
		text-align: justify;
	}
	
	#inner #entry-content #respond p.comment-form-comment, #inner #entry-content #respond p.form-submit {
		padding: 0px;
	}
	
	/***
	STUFF
	***/
	
	.single-format-standard #entry-sidebar img {
		width: 100%;
		height: auto;
	}
	
	.single-format-gallery #entry-sidebar img {
		width: 100%;
		height: auto;
		display: block;
	}
	
	.single-format-gallery #entry-sidebar #slides img {
		display: none;
	}
	
	iframe {
		width: 100%;
	}

	#fixed .sidebar-left{
		position: relative;

	}	
}

@media screen and (max-device-width: 480px) and (orientation:landscape) {
	#main .box {
		width: 407px;
	}
}

@media screen and (min-device-width: 481px) and (max-device-width: 1024px) and (orientation:portrait) {
	
	#inner {
		width: 553px !important;
	}
	
	#main {
		width: 566px !important;
	}
	
	#entry-content, .page #inner-content, #inner .entry-meta {
		width: 540px;
	}
	
	#entry-content #comments, #entry-content #respond {
		display: none;
	}
	
	#entry-sidebar #comments, #entry-sidebar #respond {
		display: block;
	}
	
	#entry-sidebar {
		width: 540px;
		display: block;
		padding: 0px;
	}

	.single-format-standard #entry-sidebar img {
		max-width: 540px;
		height: auto;
	}
	
	.sidebar-right, .page .sidebar-right {
		width: 553px;
		padding: 0 0 0 13px;
		display: block;
	}
	
	.sidebar-right ul#navigation {
		width: 160px;
		display: inline-block;
		vertical-align: top;
		margin: 20px 20px 20px 0;
	}
	
	.sidebar-right .widget {
		width: 160px;
		display: inline-block;
		vertical-align: top;
		margin: 20px 20px 20px 0;
	}
}

@media screen and (min-device-width: 481px) and (max-device-width: 1024px) and (orientation:landscape) {
	
	#main {
		width: 808px !important;
	}
	
	.sidebar-right {
		width: 100%;
		display: block;
	}
	
	.sidebar-right ul#navigation {
		display: inline-block;
		vertical-align: top;
		margin: 0 20px 20px 0;
	}
	
	.sidebar-right .widget {
		display: inline-block;
		vertical-align: top;
		margin: 0 20px 20px 0;
	}
}

/* Changes to remove categories from */
.page-template-portfolio-page-php .categories{
    display:none;
    /*border:1px solid red;*/
}

/* Change the color and size of category tags */
type-portfolio .categories, .type-post .categories, #inner .categories, #inner .entry-meta{
    font-size:10px;
    font-weight: normal;
    text-decoration: none;
}
type-portfolio .categories a, .type-post .categories a, #inner .categories a, #inner .entry-meta a{
    color:#666666;
}

/* change height of Title and add horizontal rule back in */
.page-template-portfolio-page-php h1.entry-title{
    /*border:1px solid green;*/
    padding-top: 5px;
    height: 56px;
    border-top: 12px solid #dcdcd2;
    
}

/* Styling headings on project pages */
#entry-content h3{ 
    color:#666666;
    font-weight:bold;
    font-size: 1em;
}
#entry-content h4{
    color:#666666;
    font-weight: normal;
    font-size: 1em;
margin-bottom: 1em;
}
#entry-content h5{
    font-size: 1em;
}

/* padding / margin of pictures on project page */
#entry-sidebar img{
  margin-bottom: 20px;
}

/* stuff for socail share icons */
.social-share{
        /*border: 1px red solid;*/
        list-style:none;
	padding-top:15px;
}
.social-share li{ float:left; }

.social-icon {
  display: inline-block;
  *display: inline;
  zoom: 1;
  vertical-align: middle;
  *margin-right: 5px;
}
.icon-sprite, .icon-facebook, .icon-googleplus, .icon-share, .icon-twitter {
  background: url('/wp-content/uploads/2013/04/share-facebook-twitter.png') no-repeat;
}
.icon-facebook {
    background-position: 0 0;
    height: 22px;
    width: 22px;
}
.icon-facebook:hover { background-position: 0 -26px; }
.icon-twitter {
    background-position: -26px 0;
    height: 22px;
    width: 22px;
}
.icon-twitter:hover { background-position: -26px -26px; }
.social-share span.text{ display:none; }

