/* @group Elements */

* {
    margin: 0;
    padding: 0;
    text-decoration: none;
    text-transform: none;
    font-weight: normal;
    font-style: normal;
}
html {
    background-color: #222;
    -webkit-text-size-adjust: 100%;
}
body {
    font-family: "Helvetica Neue",Arial,Helvetica,sans-serif;
    background-color: #222;
    color: #ccc;
    padding: 0;
    margin: 0;
    padding-top: 53px;
}
img, video, object, iframe {
    max-width: 100%;
}
a, button, input, select, textarea, label, summary {
  touch-action: manipulation;
}
a, a * {
    text-decoration: underline;
}
a:link,
a:visited {
    color: #fff;
}
a:hover,
a:focus,
a:active {
    color: #999;
}

em {
    font-style: italic;
}
strong {
    font-weight: bold;
}
ul,ol {
    margin: 0 1em;
    padding: 0 1em;
}
li {
    list-style-type: none;
}

img {
    border: 0;
    vertical-align: text-bottom;
}

blockquote {
    margin: 1em 4em;
}

p,h1,h2,h3,h4,h5,h6 {
    margin: 1em 0;
}

h1 {
    font-size: 150%;
    font-weight: bold;
}
h2 {
    font-size: 125%;
    font-weight: bold;
}
h3 {
    font-size: 112.5%;
    font-weight: bold;
}
h4 {
    font-size: 112.5%;
    font-weight: normal;
}
h1 a, h1 a *,
h2 a, h2 a *,
h3 a, h3 a * {
    text-decoration: none;
    font-weight: bold;
}

input,textarea,select,option {
    background-color: #ccc;
    color: #333;
}
pre {
    word-wrap: break-word;
}

/* @end Elements */

/* @group Classes */
.meta {
    font-family: Verdana,Arial,Helvetica,sans-serif;
    font-size: 80%;
    text-align: right;
}
.box {
    color: #999;
    background: #444 url(/skins/tatemodern/images/box_gradient.gif) top repeat-x;
    border: 1px solid #666;
    padding: 5px 10px;
    margin: 10px;
}

.spotless {
     background: #ccc;
}
.gleaming {
     background: #bbb;
}
.shiny {
     background: #aaa;
}
.bright {
     background: #999;
}
.faded {
     background: #888;
}
.dull {
     background: #777;
}
.dirty {
     background: #666;
}

.embed {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    margin-bottom: 1em;
}
.embed iframe,
.embed video,
.embed object,
.embed embed {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
}

.activity {
  display: table;
  margin: 1em 0;
}
.activity-item {
  display: table-row;
}
.activity-name,
.activity-total,
.activity-sparkline {
  display: table-cell;
}
.activity-total {
  padding: 0.5em 1em;
}
.activity-name {
    font-weight: bold;
    text-decoration: none;
}
.activity-sparkline {
    max-width: 100%;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}
.gallery img{
    width: 100%;
    height: auto;
}

/* @end Classes */

/* @group Structure */

#logo {
    position: absolute;
    top: 0;
    right: 10px;
    text-align: right;
    width: 240px;
    height: 53px;
    background-image: url(/skins/tatemodern/images/logo.gif);
    background-repeat: no-repeat;
    background-position: top right;
    background-size: contain;
}
@media screen and (-webkit-min-device-pixel-ratio: 2) {
    #logo {
        background-image: url(/skins/tatemodern/images/logox2.gif);
    }
}
#logo a {
    border: none;
    display: block;
    float: right;
    width: 240px;
    height: 53px;
}
#logo span {
    display: none;
    width: 0;
    height: 0;
    overflow: hidden;
}
nav {
    font-size: 80%;
}
nav ul {
    list-style: none;
    padding: 0;
    margin: 0 8px 8px;
    border: none;
}
nav ul li {
    padding: 2px 10px;
    margin: 2px;
    border: 1px solid #666;
    background-color: #444;
    color: #999;
}

nav a {
    font-weight: bold;
    text-decoration: none;
}

nav a.here:link,
nav a.here:visited {
    color: #ccc;
}

main {
    font-size: 81.25%;
    line-height: 1.5;
    border: 1px solid #666;
    background-color: #555;
    margin-left: 10px;
    margin-right: 10px;
    padding: 1em;
}
main * {
    max-width: 60em;
}
main .meta {
    max-width: none;
}
main p {
    overflow: hidden;
}
main img,
main video,
main iframe,
main object {
    max-width: 99%;
}
main img {
    border: 1px solid #999;
}
body > aside {
    font-size: 75%;
    line-height: 1.5;
}
body > footer {
    font-family: Arial,Verdana,Helvetica,sans-serif;
    font-size: 68.75%;
}

/* @end Structure*/

@media screen and (min-width: 50em) {

    html {
        background-image: url(/skins/tatemodern/images/background.gif);
        background-repeat: repeat-y;
        height: 100%;
    }
    body {
        background-image: url(/skins/tatemodern/images/background.gif);
        background-repeat: repeat-y;
    }

    [role="presentation"] {
        position: absolute;
        top: 0;
        left: 0;
    }
    [role="presentation"] div {
        width: 300px;
        height: 150px;
        background-repeat: no-repeat;
    }
    .home,
    .offline,
    .archive,
    .tags {
        background-image: url(/skins/tatemodern/images/table.jpg);
    }
    .journal {
        background-image: url(/skins/tatemodern/images/mainhall.jpg);
    }
    .links {
        background-image: url(/skins/tatemodern/images/lightbox.jpg);
    }
    .articles {
        background-image: url(/skins/tatemodern/images/interior.jpg);
    }
    .notes {
        background-image: url(/skins/tatemodern/images/window.jpg);
    }
    .about {
        background-image: url(/skins/tatemodern/images/entrance.jpg);
    }
    .search {
        background-image: url(/skins/tatemodern/images/table.jpg);
    }
    .extras {
        background-image: url(/skins/tatemodern/images/table.jpg);
    }
    .contact {
        background-image: url(/skins/tatemodern/images/table.jpg);
    }
    #logo {
        right: 30px;
    }
    nav {
        position: absolute;
        top: 15em;
        left: 0;
        width: 300px;
    }
    body > aside {
        position: absolute;
        top: 28em;
        left: 0;
        width: 300px;
    }
    body > aside h2 {
        display: none;
    }
    main {
        margin-left: 330px;
        margin-right: 30px;
    }
    body > footer {
        margin-left: 330px;
    }

}
