/* josefin-sans-300 - latin */
@font-face {
    font-family: 'Josefin Sans';
    font-style: normal;
    font-weight: 300;
    src: local(''),
    url('../../fonts/josefin-sans-v25-latin-300.woff2') format('woff2'), /* Chrome 26+, Opera 23+, Firefox 39+ */
    url('../../fonts/josefin-sans-v25-latin-300.woff') format('woff'); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
}
/* josefin-sans-regular - latin */
@font-face {
    font-family: 'Josefin Sans';
    font-style: normal;
    font-weight: 400;
    src: local(''),
    url('../../fonts/josefin-sans-v25-latin-regular.woff2') format('woff2'), /* Chrome 26+, Opera 23+, Firefox 39+ */
    url('../../fonts/josefin-sans-v25-latin-regular.woff') format('woff'); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
}
/* josefin-sans-600 - latin */
@font-face {
    font-family: 'Josefin Sans';
    font-style: normal;
    font-weight: 600;
    src: local(''),
    url('../../fonts/josefin-sans-v25-latin-600.woff2') format('woff2'), /* Chrome 26+, Opera 23+, Firefox 39+ */
    url('../../fonts/josefin-sans-v25-latin-600.woff') format('woff'); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
}
/* josefin-sans-300italic - latin */
@font-face {
    font-family: 'Josefin Sans';
    font-style: italic;
    font-weight: 300;
    src: local(''),
    url('../../fonts/josefin-sans-v25-latin-300italic.woff2') format('woff2'), /* Chrome 26+, Opera 23+, Firefox 39+ */
    url('../../fonts/josefin-sans-v25-latin-300italic.woff') format('woff'); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
}

*,
*::after,
*::before {
    box-sizing: border-box;
}

:root {
    font-size: 16px;
}

body {
    margin: 0;
    --font-weight-title: 400;
    color: #000;
    background-color: #bad5ca;
    font-family: 'Josefin Sans', sans-serif;
    font-size: 2rem;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Page Loader */
.js .loading::before {
    content: '';
    position: fixed;
    z-index: 100000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #bad5ca;
}

.js .loading::after {
    content: '';
    position: fixed;
    z-index: 100000;
    top: 50%;
    left: 50%;
    width: 60px;
    height: 60px;
    margin: -30px 0 0 -30px;
    pointer-events: none;
    border-radius: 50%;
    opacity: 0.4;
    background: #bad5ca;
    animation: loaderAnim 0.7s linear infinite alternate forwards;
}

@keyframes loaderAnim {
    to {
        opacity: 1;
        transform: scale3d(0.5, 0.5, 1);
    }
}

a {
    text-decoration: none;
    color: #f73378;
    outline: none;
}

a:hover,
a:focus {
    color: #fff;
    outline: none;
}

.page {
    display: grid;
    padding: 5vw 5vw 5vw 2vw;
    margin: 0 auto;
    grid-template-columns: 100%;
    grid-template-areas: 'header' 'meta' 'intro' 'grid';
    will-change: transform;
}

.page__title {
    grid-area: header;
    margin: 0 0 1rem;
    font-size: 2.5rem;
    font-weight: 600;
}

.credits {
    text-align: center;
}

.credits--fixed {
    position: fixed;
    bottom: 5vw;
    margin: 0;
    left: 5vw;
    width: 90vw;
    text-align: right;
}

.credits--fixed::before {
    content: '';
    background: currentColor;
    position: absolute;
    left: 0;
    bottom: 0;
    height: 5rem;
    width: 1px;
}

.meta {
    grid-area: meta;
}

.meta--center {
    justify-self: center;
    padding-top: 20vh;
}

.meta__links {
    display: flex;
    flex-wrap: wrap;
    line-height: 1.5;
}

.meta__links--column {
    flex-direction: column;
}

.meta__links a {
    margin: 0 1.5rem 0 0;
}

.intro {
    grid-area: intro;
    font-size: 1.75rem;
    width: 85%;
}

.content {
    grid-area: grid;
    margin: 25vh 0 30vh;
}

.content--offset {
    display: grid;
    grid-template-columns: repeat(2, minmax(100px, 1fr));
    grid-gap: 30vh 10vw;
}

.content--full {
    width: 100vw;
    justify-self: center;
}

.content--padded {
    padding: 0 10vw;
}

.content__item {
    width: 100%;
    max-width: 100%;
    position: relative;
    will-change: transform;
    margin-bottom: 30vh;
    display: grid;
    grid-template-columns: 50% 50%;
}

.content__item--wide {
    grid-template-columns: 20% 80%;
}

.content__item--wide:nth-child(even) {
    grid-template-columns: 80% 20%;
}

.content--center .content__item {
    margin: 0 auto 60vh;
}

.content__item--expand {
    width: 100%;
    grid-template-columns: minmax(0, 100%) 1fr;
}

.content__item--expand:nth-child(even) {
    grid-template-columns: 1fr minmax(0, 100%);
}

.content--alternate .content__item {
    max-width: 90vw;
}

.content--offset .content__item {
    margin: 0 auto 15vh;
}

.content--offset .content__item:nth-child(even) {
    align-self: end;
    margin-bottom: -20vh;
}

.content--alternate .content__item:nth-child(even) {
    margin-left: auto;
}

.content__item-imgwrap {
    position: relative;
    margin: 0 auto;
    grid-area: 1 / 1 / 3 / 3;
    overflow: hidden;
    width: 100%;
    padding-bottom: 85vh;
    will-change: transform;
}

.content__item--expand .content__item-imgwrap {
    grid-area: 1 / 1 / 3 / 2;
}

.content__item--expand:nth-child(even) .content__item-imgwrap {
    grid-area: 1 / 2 / 3 / 3;
    justify-self: end;
}

.content__item-img {
    width: max(100%, 100vh);
    height: 85vh;
    position: absolute;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: 50% 0%;
    will-change: transform;
}

.content__item-img--t1 {
    --overflow: 60px;
}

.content__item-img--t2 {
    --overflow: 80px;
}

.content__item-img--t3 {
    --overflow: 120px;
}

.content__item-number {
    opacity: 0.03;
    font-size: 25vw;
    position: absolute;
    top: -7vw;
    right: -10vw;
    line-height: 1;
}

.content__item:nth-child(even) .content__item-number {
    right: auto;
    left: -10vw;
}

.content__item-title {
    position: relative;
    font-size: 4rem;
    color: #fff;
    padding: 0 3vw;
    margin: calc(22rem * -1 / 2) 0 0 0;
    align-self: start;
    line-height: 1;
    font-weight: 600;
    will-change: transform;
    text-shadow: 1px 1px 1px #000;
}

.content--center .content__item-title {
    grid-area: 1 / 1 / 3 / 3;
    margin: auto;
}

.content__item-title--layer {
    padding: 0;
    z-index: 10;
    grid-area: 1 / 1 / 2 / 3;
    width: 100%;
    text-align: center;
}

.content__item-description {
    grid-area: 3 / 1 / 3 / 3;
    width: 70%;
    position: relative;
    margin: 0;
    padding: 1rem 0 0 0;
    color: #000;
    font-style: italic;
}

.content--alternate .content__item-title {
    justify-self: start !important;
}

.content--alternate .content__item:nth-child(even) .content__item-title {
    justify-self: end !important;
}

.content--alternate .content__item-title,
.content__item--wide:nth-child(even) .content__item-description {
    grid-area: 3 / 1 / 4 / 2;
    justify-self: center;
}

.content--alternate .content__item:nth-child(even) .content__item-title,
.content__item--wide .content__item-description {
    grid-area: 3 / 2 / 4 / 3;
    justify-self: center;
    width: auto;
}

.content__item--expand .content__item-description {
    grid-area: 1 / 2 / 3 / 3;
    justify-self: start;
    align-self: start;
    padding: 0 2rem;
    width: 250px;
    font-size: 0.9rem;
}

.content__item--expand:nth-child(even) .content__item-description {
    grid-area: 1 / 1 / 3 / 2;
    justify-self: end;
    text-align: right;
}

.content__item-decobar {
    width: 140%;
    height: 25%;
    top: 20%;
    left: -20%;
    position: absolute;
    background: #dd525a;
    mix-blend-mode: color-burn;
}

@media screen and (min-width: 53em) {
    .page--layout-1 {
        grid-template-columns: 30% 70%;
        grid-template-areas: 'header header' '...  meta' 'grid grid';
    }

    .page--layout-2 {
        justify-content: flex-start;
        grid-template-columns: 1fr 1fr;
        grid-template-areas: 'header meta' 'intro intro' 'grid grid';
    }
}

@media screen and (max-width: 40em) {
    .content__item--expand .content__item-imgwrap,
    .content__item--expand:nth-child(even) .content__item-imgwrap {
        grid-area: 1 / 1 / 3 / 3;
    }

    .content__item--expand .content__item-description,
    .content__item--expand:nth-child(even) .content__item-description,
    .content__item--wide .content__item-description,
    .content__item--wide:nth-child(even) .content__item-description {
        grid-area: 3 / 1 / 4 / 3;
        padding: 1rem 0;
        width: 100%;
        text-align: left;
    }

    .content--alternate .content__item-title,
    .content--alternate .content__item:nth-child(even) .content__item-title {
        grid-area: 1 / 1 / 4 / 2;
    }

    .meta__links a {
        font-size: 1.25rem;
        margin: 0 1.25rem 0 0;
    }

    .content--alternate .content__item {
        max-width: 100vw;
    }

    .content__item-imgwrap {
        padding-bottom: 72%;
    }

    .content__item-img {
        width: 100vw;
        height: 0;
        padding: 66.67% 0 0;
    }

    .content__item-title {
        font-size: 2.5rem;
        top: 0 !important;
    }

    .content__item-description {
        padding: 1rem !important;
        font-size: 1.5rem;
    }

    .content__item-number {
        top: -20vw;
        right: 0;
    }
}
