* {
    background: transparent !important;
    color: black !important;
    text-shadow: none !important;
    filter:none !important;
    -ms-filter: none !important;
}

body {
    margin: 50px!Important;
}

a, a:visited {
    color: #444 !important;
    text-decoration: underline;
}

a[href]:after {
    content: " (" attr(href) ")";
}

.element-holder a[href]:after,
.align-left a[href]:after,
.align-right a[href]:after,
.align-center a[href]:after {
    display: block;
    width: 100%;
}

abbr[title]:after {
    content: " (" attr(title) ")";
}

.ir a:after,
#header-logo a:after,
a[href^="javascript:"]:after,
a[href^="#"]:after {
    content: "";
}

pre, blockquote {
    border: 1px solid #999;
    page-break-inside: avoid;
}

thead {
    display: table-header-group;
}

tr, img {
    page-break-inside: avoid;
}

@page {
    margin: 0.5cm;
}

p, h2, h3 {
    orphans: 3;
    widows: 3;
}

h2, h3{
    page-break-after: avoid;
}

hr {
    margin: 20px 0;
    clear: both;
}

/* Grid system
----------------------------------------------------------------------------- */
.layout-1-2,
.layout-1-3,
.layout-2-3,
.layout-1-4,
.layout-2-4,
.layout-3-4,
.layout-1-5,
.layout-2-5,
.layout-3-5,
.layout-4-5,
.layout-1-6,
.layout-2-6,
.layout-3-6,
.layout-4-6,
.layout-5-6 {
    float: left;
    margin: 0 20px 20px 0;
    padding: 0;
    display: inline-block;
}

/* Clear right margin to last grid elements --------------------------------- */
.layout-last,
.layout-1-1,
.last-element {
    margin-right: 0!Important;
}

/* Column widths ------------------------------------------------------------ */
.layout-1-1,
.layout-2-2,
.layout-3-3,
.layout-4-4,
.layout-5-5,
.layout-6-6 {
    clear: both;
    margin-bottom: 20px;
    width: 100%;
}

/* x/2 */
.layout-1-2 {
    margin: 0 3% 20px 0;
    width: 48.5%;
}

/* x/3 */
.layout-1-3 {
    margin: 0 3% 20px 0;
    width: 31.33%;
}

.layout-2-3 {
    margin: 0 3% 20px 0;
    width: 65.66%;
}

/* x/4 */
.layout-1-4 {
    margin: 0 3% 20px 0;
    width: 22.75%;
}

.layout-2-4 {
    margin: 0 3% 20px 0;
    width: 48.5%;
}

.layout-3-4 {
    margin: 0 3% 20px 0;
    width: 74.25%;
}

/* x/5 */
.layout-1-5 {
    margin: 0 3% 20px 0;
    width: 17.6%;
}

.layout-2-5 {
    margin: 0 3% 20px 0;
    width: 38.2%;
}

.layout-3-5 {
    margin: 0 3% 20px 0;
    width: 58.8%;
}

.layout-4-5 {
    margin: 0 3% 20px 0;
    width: 79.4%;
}

/* x/6 */
.layout-1-6 {
    margin: 0 3% 20px 0;
    width: 14.16%;
}

.layout-2-6 {
    margin: 0 3% 20px 0;
    width: 31.32%;
}

.layout-3-6 {
    margin: 0 3% 20px 0;
    width: 48.48%;
}

.layout-4-6 {
    margin: 0 3% 20px 0;
    width: 65.64%;
}

.layout-5-6 {
    margin: 0 3% 20px 0;
    width: 82.8%;
}

/* Align elements
----------------------------------------------------------------------------- */
.align-left{
    clear: left;
    float: left;
    margin: 0 20px 20px 0;
    overflow: hidden;
}

.align-right{
    clear: right;
    float: right;
    margin: 0 0 20px 20px;
    overflow: hidden;
}

.align-center {
    display: block;
    margin: 20px auto;
    float: none;
    clear: both;
    text-align: center;
}

    .align-center * {
        margin: 0 auto;
        text-align: center;
    }


/* Hide unnecessary elements */
#jsnotice,
#header-navigation,
#floated-header,
form,
.page-sidebar,
#bottom-widgets,
#pager,
.post-related,
.comment-avatar,
#page-slider {
    display: none!Important;
}

/* Logo styling */
#header-logo  {
    margin: 0 auto;
    text-align: right;
}

/* Page title */
#page-title {
    border-bottom: 1px solid #000;
}

/* Page footer */
#page-footer {
    border-top: 1px solid #000;
    padding-top: 20px;
    margin-top: 50px;
    clear: both;
}

/* Elements margins */
.postlist-item,
.post-content,
.post-author,
.comment-item {
    margin-bottom: 30px;
    padding-bottom: 10px;
    border-bottom: 1px dotted #ccc;
}

/* Portfolio images */
.portfolio-thumb img {
    width: 100%;
    height: auto;
}
