body {
    background: #fff;
    color: #333;
    padding: 0px 15px;
    margin: 0px;
    font-family: system-ui, sans-serif;
    font-size: 16px;
    line-height: 1.25;
    font-weight: 200;
    letter-spacing: 0.125em;
}

body.pricelist,
body.labels {
    font-size: 12px;
    font-weight: 400;
}

p {
    margin: 1rem 0;
}

h1, h2, h3, h4, h5, h6, b {
    font-weight: 200;
    letter-spacing: 0.25em;
}

nav {
    letter-spacing: 0;
}

@media screen and (min-width: 480px) {
    nav {
        letter-spacing: 0.25em;
    }
}

code {
    letter-spacing: 0;
    font-family: monospace;
    font-size: 0.875em;
}

@media print {
    body {
        font-size: 12px;
    }
}

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

a:link, a:visited {
    text-decoration: underline;
    text-underline-offset: 0.25em;
    text-decoration-color: #ccc;
}

nav a:link, nav a:visited,
a.image,
a:hover, a:active {
    text-decoration: none;
}

a.is-active {
    position: relative;
}

a.is-active::after {
    content: "";
    position: absolute;
    bottom: calc(50% - 2px);
    left: -0.75em;
    width: 4px;
    height: 4px;
    background: #333;
    border-radius: 50%;
}

.wrapper {
    max-width: 1920px;
    margin: 0 auto;
}

.text,
.text--wide,
.image {
    height: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.text {
    justify-content: start;
    align-items: start;
    max-width: 40em;
}

.text--wide {
    justify-content: start;
    align-items: start;
    max-width: 100%;
}

.dib {
    display: inline-block;
}

img {
    max-width: 100%;
    width: auto;
    height: auto;
    max-height: calc(90% - 100px);
    margin: 1rem 0;
    opacity: 1;
    transition: opacity 0.75s cubic-bezier(.17, .67, .83, .67);
}
img.lazy { opacity: 0; }

.image-wrapper {
    position: relative;
    height: 100vw;
    max-height: 100vh;
}

.image-wrapper__half {
    position: relative;
    height: 100vw;
    max-height: 50vh;
}

.text-wrapper__row {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    margin: 0 -.5em;
    align-items: stretch;
    justify-content: center;
    margin: 4rem auto;
}

.image-wrapper__row {
    position: relative;
    min-height: min(100vw, 100vh);
    display: flex;
    flex-wrap: wrap;
    margin: 0 -.5em;
    align-items: stretch;
    justify-content: center;
    margin: 4rem auto;
}

.text-wrapper__row .text,
.image-wrapper__row .text,
.text-wrapper__row .text--wide {
    flex: 0 1 auto;
    padding: 0 .5em;
}

.image-wrapper__row .text--wide {
    flex: 0 1 100%;
    padding: 0 .5em;
}

.image-wrapper__row .image {
    flex: 0 1 auto;
    padding: 0 .5em;
}

.image-wrapper__row .image--half {
    flex: 0 1 auto;
    align-self: center;
    max-width: 50%;
    min-width: 320px;
    padding: 0 .5em;
    box-sizing: border-box;
}

.image-wrapper__row .image--third {
    flex: 0 1 auto;
    align-self: center;
    max-width: 33.33%;
    min-width: 320px;
    padding: 0 .5em;
    box-sizing: border-box;
}

.image-wrapper__row img {
    max-height: 80vh;
}

.image-wrapper__series {
    margin: 4rem auto;
    max-width: 640px;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) 0.6s;
}

@media (hover: hover) {
    .image-wrapper__series:hover {
        transform: scale(1.1);
        transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) 0s;
    }
}

.image-wrapper__series .image {
    position: relative;
    padding: 5rem 2rem;    
}

.image-wrapper__series .image img {
    position: absolute;
    width: 100%;
    height: 100%;
    max-height: 100%;
    object-fit: cover;
    margin: 0;
}

.image-wrapper__series .image div {
    position: relative;
    z-index: 1;
    color: white;
}

@media print {
    .page {
        page-break-after: always;
        height: 100vh;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .image-wrapper,
    .image-wrapper__half:nth-child(odd) {
        page-break-before: always;
    }

    .image-wrapper {
        height: 100vh;
        align-items: center;
        display: flex;
    }

    .image-wrapper__row {
        height: 100vh;
        align-items: center;
    }

    .image-wrapper__half {
        height: 50vh;
        align-items: center;
    }

    .image-wrapper__row img {
        max-height: none;
    }

    .image-wrapper__row .image--half,
    .image-wrapper__row .image--third {
        min-width: 0;
        margin-top: auto;
    }

    .image-wrapper__row .text--wide {
        /*margin-bottom: auto;*/
    }
}

.pricelist .image-wrapper,
.pricelist .image-wrapper__half,
.pricelist .image-wrapper__half:nth-child(odd) {
    height: auto;
}

.pricelist .image {
    flex-direction: row;
    justify-content: start;
    margin-bottom: 1em;
}

.pricelist .label {
    margin-bottom: 0;
}

.pricelist .image div {
    margin-right: .5em;
}

.pricelist .image div:last-child {
    margin-left: auto;
    margin-right: 0;
    margin-top: 0;
}

.pricelist .image div.price {
    margin-left: auto;
    margin-right: 0;
    margin-top: 0;
}

.pricelist .image span.size {
    display: inline-block;
    min-width: 6em;
    text-align: right;
}

.pricelist .image span.price {
    display: inline-block;
    min-width: 4em;
    text-align: right;
}

.pricelist .image img {
    display: none;
}

.pricelist .text {
    margin-top: 4em;
    margin-bottom: 4em;
    max-width: 96px;
}

.labels .image-wrapper,
.labels .image-wrapper__half,
.labels .image-wrapper__half:nth-child(odd) {
    height: auto;
    float: left;
    width: 33.333333%;
    height: 6em;
}

.labels .label {
    padding: 0.5em 1em;
}

.labels .wrapper {
    border-top: 1px solid #ddd;
    border-left: 1px solid #ddd;
    /*display: flex;*/
    /*flex-wrap: wrap;*/
}

.labels .wrapper:after {
    content: "";
    display: table;
    clear: both;
}

.labels .page {
    page-break-before: auto;
    /*flex: 0 0 33.333333%;*/
}

.labels .image {
    border-bottom: 1px solid #ddd;
    border-right: 1px solid #ddd;
}

.labels img,
.labels .year,
.labels .size,
.labels .price {
    display: none;
}

.label {
    text-align: center;
    margin-bottom: .5rem;
}

.year, .size, .price {
    font-size: 0.75em;
}

.justify-content-space-around {
    justify-content: space-around;
}

.justify-content-end {
    justify-content: flex-end;
}

.align-start {
    align-self: start;
}

@media screen and (min-width: 570px) {
    .align-start {
        max-width: 540px;
        align-self: center;
    }
}

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

.text-right {
    text-align: right;
}

.text-left {
    text-align: left;
}

@media screen {
    .if-print {
        display: none;
    }
    .image-wrapper__screen--20 {
        height: 20vh;
    }
    .image-wrapper__screen--20 .image div {
        display: none;
    }
}

@media print {
    .if-screen {
        display: none;
    }
}

.hidden,
body:not(.pricelist) .if-pricelist,
body:not(.labels) .if-labels,
body.pricelist .if-not-pricelist,
body.labels .if-not-labels {
    display: none;
}

@media print {
    .wrapper {
        counter-reset: page;
    }

    .page {
        position: relative;
    }

    .page:nth-child(odd):after {
        counter-increment: page;
        content: counter(page);
        position: absolute;
        bottom: 0;
        right: 0;
    }

    .page:nth-child(even):after {
        counter-increment: page;
        content: counter(page);
        position: absolute;
        bottom: 0;
        left: 0;
    }

    .page:nth-child(-n + 6):after {
        visibility: hidden;
    }

    .page:after {
        visibility: hidden;
    }
}

header,
header.wrapper {
    margin-top: 7rem;
}

.labels header {
    display: none;
}

.pricelist header {
    margin-top: 0;
}

.footernavfixed {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: white;
    z-index: 1000;
    padding: 0.75rem 0;
    box-sizing: border-box;
    border-bottom: 1px solid #f1f2f3;
}

.pricelist .footernavfixed,
.labels .footernavfixed {
    display: none;
}

.footernavfixed__ul {
    list-style: none;
    padding: 0;
    margin: 0 auto;
    max-width: 640px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
}

@media screen and (min-width: 768px) {
    .footernavfixed__ul {
        justify-content: space-between;
    }
}

.footernavfixed__ul li {
    margin: 0.25rem 1rem;
}

@media print {
    .footernavfixed {
        display: none;
    }
}
