body {
    margin: 0 1em;
}
header {
	padding: 1.5em 0 1em 0;
}
header img {
    max-height: 90px;
    max-width: auto;
}
body.portpage header img {
    max-height: 70px;
    max-width: auto;
}
h1 {
    font-size: 1.5em;
    margin-bottom: 0.5em;
}
.portfolio div.portitem {
    width: 99%;
    margin: 0 auto 2.5em auto;
}
.portfolio div.last {
    margin-bottom: 1em;
}
.portfolio div.portitem a {
    text-decoration: none;
}
.portfolio div.portoverlay {
    clear: both;
    margin: 0.2em 0;
}
.portfolio div.portoverlay h2 {
    font-size: 1.4em;
    font-weight: normal;
    color: #698511;
    padding: 0 1em 0 1em;
    line-height: 1em;
    margin: 0 0 0.3em 0;
    text-align: center;
}
.portfolio div.portoverlay p {
    padding: 0 1em;
    margin: 0;
    color: #444;
    font-size: 1em;
    line-height: 1em;
    text-align: center;
}
#mainimg {
    height: 300px;
    height: calc(100vw / 2);
}
footer {
    padding: 0.5em 0;
}