@import url(https://fonts.googleapis.com/css?family=Playfair+Display:400,700);img,legend {
    border: 0
}

body,figure {
    margin: 0
}

a,a:active,a:hover {
    outline: 0
}

article,aside,details,figcaption,figure,footer,header,hgroup,main,nav,section,summary {
    display: block
}

audio,canvas,video {
    display: inline-block
}

audio:not([controls]) {
    display: none;
    height: 0
}

[hidden] {
    display: none
}

html {
    font-family: sans-serif;
    -ms-text-size-adjust: 100%;
    -webkit-text-size-adjust: 100%
}

h1 {
    font-size: 2em;
    margin: .67em 0
}

abbr[title] {
    border-bottom: 1px dotted
}

b,strong {
    font-weight: 700
}

dfn {
    font-style: italic
}

hr {
    -moz-box-sizing: content-box;
    box-sizing: content-box;
    height: 0
}

mark {
    background: #ff0;
    color: #000
}

code,kbd,pre,samp {
    font-family: monospace,serif;
    font-size: 1em
}

pre {
    white-space: pre-wrap
}

q {
    quotes: "\201C" "\201D" "\2018" "\2019"
}

small {
    font-size: 80%
}

sub,sup {
    font-size: 75%;
    line-height: 0;
    position: relative;
    vertical-align: baseline
}

.js .loading::after,.js .loading::before {
    content: '';
    position: fixed;
    z-index: 100000
}

sup {
    top: -.5em
}

sub {
    bottom: -.25em
}

svg:not(:root) {
    overflow: hidden
}

fieldset {
    border: 1px solid silver;
    margin: 0 2px;
    padding: .35em .625em .75em
}

legend {
    padding: 0
}

button,input,select,textarea {
    font-family: inherit;
    font-size: 100%;
    margin: 0
}

button,input {
    line-height: normal
}

button,select {
    text-transform: none
}

button,html input[type=button],input[type=reset],input[type=submit] {
    -webkit-appearance: button;
    cursor: pointer
}

button[disabled],html input[disabled] {
    cursor: default
}

input[type=checkbox],input[type=radio] {
    box-sizing: border-box;
    padding: 0
}

input[type=search] {
    -webkit-appearance: textfield;
    -moz-box-sizing: content-box;
    -webkit-box-sizing: content-box;
    box-sizing: content-box
}

input[type=search]::-webkit-search-cancel-button,input[type=search]::-webkit-search-decoration {
    -webkit-appearance: none
}

button::-moz-focus-inner,input::-moz-focus-inner {
    border: 0;
    padding: 0
}

textarea {
    overflow: auto;
    vertical-align: top
}

table {
    border-collapse: collapse;
    border-spacing: 0
}

*,::after,::before {
    box-sizing: border-box
}

body {
    --color-text: #2a272f;
    --color-bg: #fff;
    --color-link: #000;
    --color-link-hover: #444;
    --color-revealer: rgb(119, 119, 119);
    --color-side-text: #ddd;
    --color-toggle-bg: #333;
    --color-toggle: #fff;
    --color-title-full: #aaa;
    --color-description-full: #929292;
    --color-lines: #f3f3f3;
    font-family: 'Playfair Display',serif;
    min-height: 100vh;
    color: #57585c;
    color: var(--color-text);
    background-color: #fff;
    background-color: var(--color-bg)
}

.js .loading::before {
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color-bg)
}

.js .loading::after {
    top: 50%;
    left: 50%;
    width: 60px;
    height: 60px;
    margin: -30px 0 0 -30px;
    pointer-events: none;
    border-radius: 50%;
    opacity: .4;
    background: var(--color-link);
    animation: loaderAnim .7s linear infinite alternate forwards
}

@keyframes loaderAnim {
    to {
        opacity: 1;
        transform: scale3d(.5,.5,1)
    }
}

a {
    text-decoration: none;
    color: var(--color-link)
}

a:focus,a:hover {
    color: var(--color-link-hover);
    outline: 0
}

.hidden {
    position: absolute;
    overflow: hidden;
    width: 0;
    height: 0;
    pointer-events: none
}

.message,main {
    position: relative
}

.message {
    z-index: 100;
    padding: 1rem;
    font-size: .75rem;
    text-align: center;
    color: var(--color-bg);
    background: var(--color-text)
}

.icon {
    display: block;
    width: 1.5em;
    height: 1.5em;
    margin: 0 auto;
    fill: currentColor
}

.grid--thumbs {
    display: none
}

.codrops-header,.codrops-links {
    position: relative;
    display: flex
}

.grid--outer {
    padding: 1.5rem
}

.codrops-header {
    flex-direction: row;
    align-items: center
}

.codrops-header__title {
    font-size: 1em;
    font-weight: 400;
    margin: 0
}

.codrops-links {
    justify-content: center;
    margin: 0 1em 0 0;
    text-align: center;
    white-space: nowrap
}

.codrops-icon {
    display: inline-block;
    margin: .15em;
    padding: .25em
}

.subtitle,.title {
    margin: 0
}

.github {
    display: inline-block;
    text-transform: lowercase;
    text-align: left
}

.title-wrap {
    padding: 2rem 0
}

.side {
    font-size: .85rem;
    color: var(--color-side-text)
}

.side__content {
    display: block;
    padding: 0 1rem 0 0
}

.grid__item-title {
    font-weight: 400
}

.title {
    font-size: 2rem;
    line-height: 1.2
}

.subtitle,.year {
    font-size: 1.25rem
}

.year {
    display: block
}

.year::before {
    content: '―';
    margin-right: .5rem
}

.fullview__item {
    background-size: cover;
    background-position: 50% 50%;
    padding: 80vh 1.5rem 1.5rem;
    margin: 0 0 2rem
}

.fullview__item-titlewrap {
    padding: 1.5rem;
    background: #d0d0d0
}

.fullview__title {
    display: none;
    color: var(--color-title-full);
    font-weight: 400;
    font-size: 1rem
}

.fullview__item-number {
    font-size: 1.5rem;
    padding: 1.5rem 1.5rem 0;
    background: #d0d0d0;
    display: block
}

.fullview__item-number::before {
    content: '―';
    margin-right: .5rem
}

.fullview__item-title {
    font-weight: 400;
    font-size: 1.75rem;
    margin: 0
}

.fullview__item-description {
    font-size: 15px;
    color: #242424
}

.fullview__item-more {
    font-weight: 700
}

@media screen and (min-width: 55em) {
    .grid,.js main {
        height:100vh;
        overflow: hidden
    }

    .grid,.grid__item::after {
        position: absolute;
        left: 0
    }

    .grid,.js main {
        overflow: hidden
    }

    .grid__item:not(.grid__item--more),.grid__toggle {
        cursor: pointer
    }

    .message {
        display: none
    }

    .codrops-header {
        padding: 1.5rem
    }

    .title {
        font-size: 2.75vw
    }

    .side {
        display: flex
    }

    .side__content {
        padding: 1rem
    }

    .grid {
        top: 0;
        width: 100%;
        display: grid;
        grid-template-columns: 16vw 16vw 16vw 16vw 16vw 12vw;
        grid-column-gap: 2vw;
        pointer-events: none
    }

    .codrops-header,.github,.grid__item,.grid__toggle {
        pointer-events: auto
    }

    .grid--outer {
        padding: 0;
        grid-template-rows: 8rem auto;
        align-items: start
    }

    .grid__box:not(:first-child),.grid__box:not(:last-child) {
        border: 1px solid var(--color-lines);
        border-width: 0 1px
    }

    .grid--thumbs {
        z-index: 100
    }

    .grid__item {
        align-self: end;
        transform: translate3d(0,30px,0)
    }

    .grid__item::after {
        content: '';
        width: calc(100% + 2rem);
        height: calc(100% + 3rem);
        bottom: 0
    }

    .grid__item-imgwrap {
        position: relative;
        overflow: hidden
    }

    .grid__item-img {
        width: 100%
    }

    .grid__item-bg {
        width: 120%;
        height: 120%;
        position: absolute;
        left: -10%;
        background-size: cover
    }

    .codrops-header {
        grid-area: 1/1/1/5
    }

    .title-wrap {
        padding: 0;
        grid-area: 2/2/2/6
    }

    .github {
        margin: 1.5rem 1.5rem 0 0;
        grid-area: 1/5/1/6;
        justify-self: start
    }

    .side {
        -webkit-writing-mode: vertical-rl;
        writing-mode: vertical-rl;
        grid-area: 2/5/2/6
    }

    .grid__toggle {
        background: var(--color-toggle-bg);
        color: var(--color-toggle);
        border: 0;
        margin: 0;
        padding: 0;
        height: calc(12vw + 30px);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        font-size: 1.15rem;
        position: relative;
        width: 100%
    }

    .grid__toggle:focus {
        outline: 0
    }

    .grid__toggle-inner {
        display: flex;
        align-items: flex-end
    }

    .grid__toggle-more {
        display: inline-block;
        margin-top: -30px
    }

    .grid__toggle-back {
        opacity: 0;
        position: absolute;
        height: 50%;
        bottom: 0;
        display: flex;
        align-items: center
    }

    .grid__toggle-icon {
        width: .75rem;
        height: 1.05rem;
        margin: .15rem 0 0 .5rem;
        display: inline-block;
        fill: currentColor;
        stroke-width: 1px;
        stroke: #fff
    }

    .grid__toggle-icon--more {
        height: .75rem;
        stroke-width: 2px
    }

    .fullview,.fullview__item,.revealer {
        position: absolute;
        left: 0;
        width: 100%;
        height: 100vh
    }

    .grid__item-number,.grid__item-title {
        z-index: 100;
        -webkit-writing-mode: vertical-rl;
        writing-mode: vertical-rl
    }

    .grid__item-number span,.grid__item-title span {
        display: block
    }

    .grid__item-title {
        position: absolute;
        top: 0;
        right: -1.75rem;
        white-space: nowrap;
        margin: 0
    }

    .grid__item-number {
        top: -2rem;
        right: 0;
        line-height: 1;
        position: absolute;
        font-size: 1.5rem
    }

    .fullview {
        top: 0;
        pointer-events: none
    }

    .fullview__title {
        display: block;
        position: absolute;
        margin: 2rem;
        line-height: 1;
        bottom: 0;
        top: auto;
        left: 0;
        -webkit-writing-mode: vertical-rl;
        writing-mode: vertical-rl;
        transform: scale(-1)
    }

    .fullview__item {
        top: 0;
        display: grid;
        grid-template-columns: 50% 50%;
        padding: 2rem;
        margin: 0
    }

    .fullview__item-number {
        align-self: start;
        background: 0 0;
        padding: 0
    }

    .fullview__item-titlewrap {
        align-self: end;
        text-align: right;
        background: 0 0;
        padding: 0
    }

    .fullview__item-title {
        font-size: 2.25rem;
        margin-bottom: 5px
    }

    .fullview__item-description {
        max-width: 100%;
        margin-left: auto
    }

    .fullview,.fullview__item {
        opacity: 0
    }

    .revealer {
        top: 100vh;
        background: var(--color-revealer)
    }
}
