@import url(https://kryshen.net/fonts/pt_sans.css);

/* @import url(https://fonts.googleapis.com/css?family=PT+Sans:400,700,400italic&subset=latin,cyrillic); */
/* @import url(https://fonts.googleapis.com/css?family=PT+Sans+Caption&subset=latin,cyrillic); */
/* @import url(https://fonts.googleapis.com/css?family=PT+Mono); */

/* @import url(https://ipfs.io/ipfs/QmYZhwTvPoXPPzs9moBqjPGWdkXh79RRn4oYKH89yBYkHD/PTSansWeb/stylesheet.css); */
/* @import url(https://ipfs.io/ipfs/QmYZhwTvPoXPPzs9moBqjPGWdkXh79RRn4oYKH89yBYkHD/PTMonoWeb/stylesheet.css); */

body {
    margin: 0;
    background: #444;
    color: #eee;
    font-family: "PT Sans", "helvetica", sans-serif;
    font-size: 14pt;
}

a:link,
a:visited,
a:hover,
a:active {
    color: #ddf;
}

#header {
    background: #eee;
    color: #000;
    overflow: hidden;
    box-shadow: 2px 2px 3px black;
}

#header h1 {
    font-size: 16pt;
    font-weight: normal;
    margin: 0;
}

#header a:link,
#header a:visited,
#header a:hover,
#header a:active {
    color: #000;
}

#header h2 {
    font-size: 16pt;
    font-weight: normal;
    color: #000;
    margin: 0;
}

#header-bottom {
    clear: both;
}

#site-name {
    float: left;
    padding: 0.7em 2em 0.7em 3em;
    margin: 0 0 0 -2em;
    background: #ccc;
    border-bottom-right-radius: 2em 100%;
    transform: skewX(-30deg);
}

#site-name h1 {
    transform: skewX(30deg);
}

#section-title {
    float: left;
    padding: 0.7em 1em;
}

#content {
    padding: 0 1em 1em 1em;
}

#content h2 {
    margin-top: 1.5em;
}

#content h2:first-child {
    margin-top: 1em;
}

#content h2.photo-title {
    font-size: 16pt;
    font-weight: bold;
}

#content p,
#content ul,
#content dl {
    max-width: 700pt;
}

dd {
    margin: 0 0 1em 2em;
}

div.page-section {
    margin-left: 1.5em;
}

.comment {
    color: #aaa;
}

.gallery::after {
    content: "";
    display: block;
    clear: both;
}

.thumbnail {
    text-align: center;
    float: left;
    margin: 5px 15px;
    min-height: 220px;
}

.thumbnail img {
    border: solid 1px #888;
    vertical-align: bottom;
    height: auto;
    width: auto;
    max-width: 240px;
    max-height: 180px;
}

.thumbnail .title {
    margin-top: 0.2em;
}

.thumbnail .untitled-date {
    margin-top: 0.2em;
    color: #AAA;
}

.thumbnail:target .title,
.thumbnail:target .untitled-date {
    border-left: solid 5px #eee;
    border-right: solid 5px #eee;
    border-bottom: solid 2px #eee;
}

#preview {
    background: #111;
    padding: 25px;
    text-align: center;
}

img.teaser {
    width: 500px;
    max-width: 99%;
}

img.normal-photo {
    vertical-align: bottom;
    height: auto;
    width: auto;
    max-width: 99%;
    max-height: calc(100vh - 11em);
}

.photo-nav {
    margin-left: 1em;
}

#content p.tag-cloud {
    text-align: center;
}

.tag-rank1 {
    font-size: 150%;
}

.tag-rank2 {
    font-size: 180%;
}

.license img {
    border: none;
}

@media screen and (max-height: 480px) {
    img.normal-photo {
        max-height: calc(100vh - 5em);
    }
    
    #site-name {
        padding-top: 0.3em;
        padding-bottom: 0.3em;
    }

    #section-title {
        padding-top: 0.3em;
        padding-bottom: 0.3em;
    }
}

#footer {
    margin: 0.5em;
    padding: 0.5em;
    
    border-top: solid 4px #888;
    border-left: solid 0 #888;
    border-right: solid 0 #888;
    border-top-left-radius: 1em;
    border-top-right-radius: 75% 50%;
}

.with-side-ads {
    margin-right: 176px;
}

#ads-side {
    float: right;
    margin: 1em 16px 8px 0;
    width: 160px;
}

@media (max-width:799px) {
    #ads-side,
    #ads-side .adsbygoogle {
        display: none;
    }

    .with-side-ads {
        margin-right: 0;
    }
}
