:root {
    --main-bg-color: #fff;
    --main-hd-bg-color: #ffffffee;
    --main-fg-color: #444;
    --main-hd-color: #444;
    --main-accent-color: #2f4858;
    --secondary-accent-color: #bd5942;
    --tertiary-accent-color: #00d6b4;
    --light-accent-color: #fcf9f0;
    --gallery-bg-color: #fff;
    --footer-bg-color: #444;
    --link-color: var(--secondary-accent-color);
    --sans: 'Helvetica Neue', 'Helvetica', 'Arial', sas-serif;
    --title: 'Helvetica Neue', 'Helvetica', 'Arial', sas-serif;
    --body: 'Helvetica Neue', 'Helvetica', 'Arial', sas-serif;

    --img-shadow: #c2fcf455;
    --strong-bg: rgb(255, 255, 255);
    --alpha-bg: rgba(0, 0, 0, .2);
}

* {
    box-sizing: border-box;
}

body {
    background: var(--main-bg-color) url() top left repeat-x;
    background-attachment: fixed;
    color: var(--main-fg-color);
    font-family: var(--body);
    font-size: 18px;
    font-weight: 400;
    letter-spacing: .05em;
    line-height: 1.5;
    margin: 0;
    min-height: 100vh;
    padding: 80px 0 0 0;
}

body {
    display: grid;
    grid-template-rows: auto 1fr auto;
    min-height: 100vh;
}

h1, h2, h3, h4 {
    font-family: var(--title);
    font-weight: 900;
    letter-spacing: -0.08rem;
    line-height: .9;
    margin: 0;
}

h2 {
    font-size: 20px;
    margin-bottom: 20px;
}

h3 {
    font-size: 16px;
}

a {
    color: var(--link-color);
}

p {
    font-size: 16px;
    margin: 0 0  40px 0;
}

ul {
    font-size: 16px;
    margin: 0 0  40px 0;
}

ul:last-child,
p:last-child {
    margin-bottom: 0;
}

.header {
    background-color: var(--main-hd-bg-color);
    height: 60px;
    left: 0;
    position: fixed;
    right: 0;
    top: 0;
    width: auto;
    z-index: 10;
}

.header h1 {
    color: var(--main-hd-color);
    font-size: 20px;
    line-height: 60px;
    padding: 0 20px;
    text-align: left;
}

.header h1 a {
    color: var(--main-hd-color);
    text-decoration: none;
}

.nav {
    display: none;
}

.container {
    display: block;
    margin: 40px 20px;
    width: auto;
}

.related,
.meta,
.posts,
.description,
.gallery,
.about,
.collections,
.latest {
    display: block;
    height: auto;
    margin-bottom: 40px;
    overflow: hidden;
    width: 100%;
}

.latest .inner {
    background: var(--main-bg-color);
    display: flex;
    flex-wrap: nowrap;
    height: calc(60vh + 20px);
    overflow: auto;
    width: 100%;
}

.meta h2 {
    margin: 0;
}

.latest .inner .item {
    display: block;
    flex: 0 0 70vw;
    height: 60vh;
    position: relative;
}

.latest .inner .item a {
    background: transparent center center no-repeat;
    background-size: cover;
    bottom: 0;
    display: block;
    filter: grayscale(0.95);
    height: auto;
    left: 0;
    mix-blend-mode: multiply;
    position: absolute;
    right: 0;
    top: 0;
    width: auto;
    z-index: 1;
}

.latest .inner .item a:hover,
.latest .inner .item a:active,
.latest .inner .item a:focus {
    filter: grayscale(0);
    mix-blend-mode: normal;
}

.latest .inner .item h3 {
    display: none;
}

.collections .groups {
    display: block;
    height: auto;
    overflow: hidden;
    width: 100%;
}

.related, 
.collections .groups .group {
    display: flex;
    flex-wrap: nowrap;
    height: 80px;
    margin-bottom: 20px;
}

.related .title,
.collections .groups .title {
    align-items: flex-end;
    display: flex;
    flex: 0 0 120px;
    height: 80px;
    justify-items: flex-end;
    padding-right: 20px;
}

.related .title h3,
.collections .groups h3 {
    display: block;
    padding-bottom: 10px;
    position: relative;
}

.related .title h3::after,
.collections .groups h3::after {
    background: var(--main-fg-color);
    bottom: 0;
    content: '';
    height: 5px;
    left: 0;
    position: absolute;
    width: 80px;
}

.related .items {
    display: flex;
    flex-wrap: nowrap;
}

.related .item {
    background: transparent center center no-repeat;
    background-size: cover;
    display: block;
    flex: 0 0 80px;
    height: 80px;
    margin-right: 10px;
}

.related .item h4 {
    display: none;
}

.collections .groups a {
    background: var(--neutral-color);
    border-radius: 40px 0 0 0;
    color: var(--main-fg-color);
    filter: grayscale(.95);
    /* mix-blend-mode: multiply; */
    text-decoration: none;
}

.collections .groups a:hover,
.collections .groups a:active,
.collections .groups a:focus {
    background: var(--gallery-bg-color);
    filter: grayscale(0);
    mix-blend-mode: normal;
}

.collections .groups .previews {
    display: flex;
    flex: 1 1 auto;
    flex-wrap: nowrap;
    height: 80px;
}

.collections .groups img {
    flex: 0 0 80px;
    height: 80px;
    width: 80px;
}

.collections .groups img:first-child {
    border-radius: 40px 0 0 0;
}

.footer {
    background: var(--footer-bg-color);
    color: var(--main-bg-color);
    font-size: 12px;
    padding: 20px;
}

.footer p {
    font-size: 14px;
}

.post-header h2 {
    font-size: 24px;
}

.gallery {
    background: var(--gallery-bg-color);
    box-shadow: -200px 0 0 0 var(--gallery-bg-color), 200px 0 0 0 var(--gallery-bg-color);
    display: flex;
    flex-direction: column-reverse;
    flex-wrap: nowrap;
    height: 60vh;
    overflow: hidden;
    padding: 20px 0;
    width: 100%;
}

.gallery .thumbnails {
    align-items: flex-start;
    display: flex;
    flex: 0 0 auto;
    flex-wrap: wrap;
    justify-content: center;
    justify-items: flex-start;
    overflow: hidden;
}

.gallery button {
    background: transparent;
    border: none;
    display: inline-block;
    filter: grayscale(90) opacity(.5);
    height: 60px;
    padding: 0;
    width: 60px;
}

.gallery button img {
    display: block;
    height: 60px;
    object-fit: cover;
    width: 60px;
}

.gallery button.active {
    filter: grayscale(0) opacity(1);
}

.gallery .images {
    display: block;
    flex: 1 1 auto;
    position: relative;
}

.gallery .images img {
    bottom: 0;
    display: none;
    height: 100%;
    left: 0;
    object-fit: contain;
    position: absolute;
    right: 0;
    top: 0;
    width: 100%;
}

.gallery .images img.active {
    display: block;
}

.description h2 {
    margin-bottom: 0;
}

.description p {
    max-width: 960px;
}

.PageNavigation {
    align-items: flex-end;
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
}

.PageNavigation .next,
.PageNavigation .previous {
    flex: 0 0 120px;
    font-family: var(--title);
    font-weight: 700;
    letter-spacing: -.05rem;
    line-height: .9;
    max-width: 120px;
    order: 1;
}

.PageNavigation .next {
    flex: 0 0 140px;
    order: 2;
    text-align: right;
}

.PageNavigation .next:only-child {
    flex: 0 0 100%;
    max-width: none;
}

.PageNavigation a {
    color: var(--main-fg-color);
    text-decoration: none;
}

.list .posts {
    display: flex;
    flex-wrap: wrap;
}

.list .item {
    flex: 0 0 50%;
    height: 200px;
    overflow: hidden;
    position: relative;
}

.list img {
    bottom: 0;
    height: 200px;
    left: 0;
    object-fit: cover;
    overflow: hidden;
    position: absolute;
    right: 0;
    top: 0;
}

.list .title h2 {
    padding-bottom: 20px;
    position: relative;
}

.list .title h2::after {
    background: var(--main-fg-color);
    bottom: 0;
    content: '';
    height: 5px;
    left: 0;
    position: absolute;
    width: 80px;
}

.related {
    margin-bottom: 40px;
}

.related.loading {
    display: none;
}