* {
    margin: 0;
    padding: 0;
    border: 0;
}

body {
    background: #000;

    font-family: Times;

    color: #fff;
}

#container {
    background-color: #fff;

    width: 90%;
    margin: auto;

    min-width: 980px;
    max-width: 1200px;
}

#background-left {
    background: url("images/background_left.jpg") repeat-y left top;
}

#background-right {
    background: url("images/background_right.jpg") repeat-y right top;
}

#center {
    margin-left: 150px;
    margin-right: 150px;

    background-color: #020517;

    border-style: solid;
    border-color: #000;
    border-left-width: 2px;
    border-right-width: 2px;
}

#banner {
    background-image: url("images/banner.jpg");
    height: 270px;
    background-position: center; 
}

#main-nav {
    position: relative;

    color: #fff;
    font-size: 1.3em;

    list-style: none;
    margin: auto;
    text-align: center;

    font-family: Helvetica;
}

h1, h2, h3, h4, h5, h6 {
    font-family: Helvetica;

}

.gap {
    height: 40px;
}

.sgap {
    height: 20px;
}

p {
    margin-bottom: 10px;
}

#footer {
    font-size: 12px;
    padding-bottom: 8px;

    text-align: center;
    margin-top: 40px;
}

.aboveline {
    padding-top: 4px;
    margin-left: 20px;
    margin-right: 20px;

    border-style: solid;
    border-color: #eee;
    border-top-width: 1px;
}

#main-nav li {
    display: inline;
    padding-left: 10px;
    padding-right: 10px;
}

#main-nav a {
    color: #fff;
}

#content {
    position: relative;
    min-height: 600px;
    background-position: center; 
    float: left;
    width: 76%;
    margin-left: 16px;

    text-align: justify;

}

.post_text {
    margin-left: 3%;
    margin-right: 3%;
}

#sidebar {
    float: right;
    width: 18%;

    margin-right: 8px; 
    margin-top: 75px; 
    padding-left: 5px;

    font-size: 14px;
    color: #fff;

    border-style: solid;
    border-color: #eee;
    border-left-width: 1px;

    text-align: left;
}

#sidebar .subnav {
    position: relative;
    left: 10px;
    margin-bottom: 10px;
}

#sidebar ul {
    list-style: none;
}

.currentimg img {
    width: 100%;
    margin-bottom: 5px;
}

#sidebar h4 {
    margin-top: 10px;
    margin-bottom: 4px;
}

/* general links */
a {
    text-decoration: none;
    color: #e86200;

    font-family: Helvetica;
}

/* prev/next links */
.prev_ent {
    float: left;
    padding-right: 20px;
}

.more-link {
    display: block;
    margin-top: 10px;
}

.post_head {
    position: relative;

    padding-bottom: 10px;
    padding-top: 30px;
}

.post_head h2 {
    display: inline;
    font-size: 21px;
}

.post_brief {
    width: 90%;
    margin: auto;
    margin-top: 20px;
}

.post_brief img {
    width: 100%;
}

.post_body {
    margin-top: 20px;
}

.portfolio_box {
    padding-left: 10%;
    padding-right: 10%;
}

.cntimg {
    display: table-cell;
    text-align: center;
    vertical-align: middle;
    width: 210px;
    height: 190px;

    background-color: #fff;
    margin: 1px;
    //float: left;
}

.imgwrap {
    display: inline;
}

.cntimg * {
    display: inline;
    vertical-align: middle;
}

.post_foot ul {
    list-style: none;
}

.post_foot li {
    display: inline;
    margin-right: 10px;
}

.post-date {
    position: relative;
    display: inline;
    left: 20px;
    width: inherit;
}

#commentlist {
    list-style: none;
}

.commenthead {
    display: table;
    border-style: solid;
    border-color: #eee;
    border-bottom-width: 1px;
}

.commenthead a {
    color: #fff;
}

.commentauth {
    font-size: 1.1em;
    font-family: Helvetica;
}

#player {
    margin: 0 auto;
}


/* Image gallery */
.img-gallery {
    text-align: center;
}

.thumbwrap {
	margin: 0;
    margin: auto;
}

.thumbwrap li {
	display: -moz-inline-box;
	display: inline-block;
	/*\*/ vertical-align: top; /**/
	margin: 3px;
	padding: 0;
}

.thumbwrap li>div {
	/*\*/ display: table; table-layout: fixed; /**/
	width: 199px;
}

.thumbwrap a {
	display: block;
	text-decoration: none;
	color: #000;
	cursor: pointer;
}

/*\*/
.thumbwrap>li .wrimg {
	display: table-cell;
	vertical-align: middle;
	width: 199px;
	height: 199px;
}
/**/

.thumbwrap li .wrimg {
}

.thumbwrap img {
	border: solid 1px #eee;
	vertical-align: middle;
}

/*\*//*/
* html .thumbwrap li .wrimg {
	display: block;
	font-size: 1px;
}

* html .thumbwrap .wrimg span {
	display: inline-block;
	vertical-align: middle;
	height: 199px;
	width: 1px;
}
/* */
@media all and (min-width: 0px) {
	html:first-child .thumbwrap li div {
		display: block;
	}

	html:first-child .thumbwrap a {
		display: inline-block;
		vertical-align: top;
	}

	html:first-child .thumbwrap {
		border-collapse: collapse;
		display: inline-block; /* non deve avere margin */
	}
}

