/*  Reset */

*{
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}
ul, li{
    list-style-type: none;
}
iframe{
    border: 0;
}
input {
    border-radius: 0;
    -webkit-appearance: none;
}
:focus{
    border: 0px;
    outline: none;
}
:root{
    --font-size-1: 2rem;
    --font-size-2: 0.8rem;
    --font-size-3: 5vw;
    --color: #121212;
    --color2: rgb(249, 249, 249);
}

/*  Typography */

@font-face {
    font-family: 'tempo';
    src: url('fonts/tempo-regular-webfont.woff2') format('woff2'),
         url('fonts/tempo-regular-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;
  	font-display: fallback; 
}
@font-face {
    font-family: 'tempo';
    src: url('fonts/tempo-italic.woff2') format('woff2'),
         url('fonts/tempo-italic.woff') format('woff');
    font-weight: normal;
    font-style: italic;
  	font-display: fallback; 
}
body, html, h1, h2, h3, h4, ::placeholder, input, button, small{
    font-family: 'tempo', 'Times New Roman', Times, serif;
    letter-spacing: 0.03em;
    font-size: 20px;
    line-height: 1.3em;
    font-weight: normal;
    font-style: normal;
}
body, html{
    background: var(--color2);
}
a{
	color: inherit;
	text-decoration: none;
}
p a:hover{
	color: inherit;
    border-bottom: 2px black solid;
}

/*  Header */
nav{
    position: fixed;
    top: 0;
    left: 0;
    padding: 1em;
    width: 100%;
    z-index: 10;
/*     mix-blend-mode: difference;
 */    text-transform: uppercase;
    letter-spacing: 0.1em;
    background: linear-gradient(white, transparent);
}
.cart nav, .checkout nav{
    background: transparent;
}
nav ul{
    display: flex;    
    justify-content: space-around;
    gap: 2em;
    align-items: center;
    justify-content: center;    
}
nav a{
/*     color: var(--color2);
 */}
nav a:hover, nav a.active{
    color: var(--color);
    border-bottom: 2px var(--color) solid;
}
h1{
    display: none;
}
.logo{
    border: 0.075em var(--color2) solid;
    border-bottom: 0px;
    position: fixed;
    height: calc(100% - 2rem);
    width: calc(100% - 2rem);
    margin: 1rem;
    font-size: 12vw;
    line-height: 0.5em;
    display: flex;
    flex-wrap: wrap;
    align-content: space-between;
    padding: 0.5em;
    animation: fade-out 0.5s ease-in-out;
    animation-fill-mode: forwards;
    animation-delay: 3s;
    pointer-events: none;
    z-index: 10;
    mix-blend-mode: difference;
    color: var(--color2)
}
.logo::after, .logo::before{
    content: '';
    width: calc(50% - 6rem);
    position: absolute;
    bottom: 0;
    border-bottom: 0.075em var(--color2) solid;
}
.logo::after{
    right: 0;
}
.logo::before{
    left: 0;
}
.logo span{
    display: inline-block;
    align-items: middle;
    width: 100%;
    text-align: left;
    opacity: 0;
    animation: appear 0.5s ease-in;
}
.logo span:nth-child(1){
    animation-fill-mode: forwards;
    animation-delay: 0.25s;
    padding-left: 50%;
}
.logo span:nth-child(2){
    animation-fill-mode: forwards;
    animation-delay: 0.5s;
}
.logo span:nth-child(3){
    animation-fill-mode: forwards;
    animation-delay: 0.75s;
    text-align: right;
}
.logo span:nth-child(4){
    animation-fill-mode: forwards;
    animation-delay: 1s;
    padding-left: 25%;
}
.logo span:nth-child(5){
    animation-fill-mode: forwards;
    animation-delay: 1.5s;
    text-align: right;
    padding-right: 25%;
}
p{
    padding: 0;
    margin: 0;
}
h2, h3{
    text-align: center;
    font-size: var(--font-size-1);
    padding: 3em 1em 0.5em 1em;
    letter-spacing: 0;
}
.home .card-title, .home nav{
    opacity: 0;
    animation: appear 1s ease-in-out;
    animation-delay: 3.5s;
    animation-fill-mode: forwards;
}
@keyframes fade-out{
    0% {
      opacity: 100%;
    }
    100% {
        opacity: 0;
    }
}
@keyframes appear{
    0%{
        opacity: 0;
    }
    100%{
        opacity: 1;
    }
}
    /*

/*  Blocks */
.paragraph, .columns, .table{
    max-width: 32em;
    margin: auto;
    padding: 1em;
}
.columns{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1em;
}
.images{
    display: grid;
    gap: 1em;
    width: calc(100% - 2em);
    max-width: 45em;
    margin: auto;
}
.images[data-images="2"]{
    grid-template-columns: 1fr 1fr;
}
.images img{
    width: 100%;
}
figcaption{
    font-size: var(--font-size-2);
    line-height: 1.3em;
}
.block{
    margin-bottom: 3em;
}
.table-row{
    border-bottom: 1px black solid;
    padding: 0.75em 0;
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    font-size: var(--font-size-2);
    line-height: 1.2em;
}
.table-row:last-child{
    border: 0;
}

/*  Artits */
.artists-list{
    text-align: center;
    font-size: var(--font-size-3);
    padding: 6rem 1rem 1rem 1rem;
    letter-spacing: 0; 
    line-height: 1.2em;
}

/*  Grids */
.grid-works{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    padding: 1em;
    gap: 1em;
}
.grid-exhibitions{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    padding: 1em;
    gap: 1em;
}
.grid-item{
    margin-bottom: 4em;
}
.grid-item img{
    width: 100%;
    object-fit: cover;
}
.grid-works img{
    aspect-ratio: 4/5;
}
.grid-exhibitions img{
    aspect-ratio: 3/2;   
}
.grid-item a{
    border-bottom: 0;
}
.caption{
    padding-top: 0.25em;
    font-size: var(--font-size-2);
    line-height: 1.25em;
    max-width: 25em;
}

/*  Exhibtion */
.card{
    width: 100%;
    height: 100vh;
    position: relative;
    margin-bottom: 3em;
}
.card-image{
    height: 100%;
}
.card-image img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.card-title{
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color2);
    mix-blend-mode: difference;
    font-size: var(--font-size-3);
    line-height: 1.1em;
    text-align: center;
}

/* Cart */
.cart-menu{
    position: absolute;
    top: 1em;
    right: 1em;
}
body.cart .cart-widget, body.checkout .cart-widget{
    display: none;
}
.work-add-to-cart{
    padding: 0 1em 2em 1em;
    text-align: center;
}
.work-button{
    display: flex;
    align-items: center;
    justify-content: center;
}
.button{
    display: inline-flex;
    padding: 0.5em 1em;
    border-radius: 2em;
    border: 1px black solid;
    color: black;
    font-size: var(--font-size-2);    
    margin: 1em;
}
body.cart, body.checkout{
    background: var(--color);
    min-height: 100vh;
    --cart-stroke: 1px !important;
    --cart-color: var(--color2);
    color: var(--color2);
}
body.cart nav ul, 
body.checkout nav ul{
    display: none;
}
.cart .button, .checkout .button{
    border-color: var(--color2);
    color: var(--color2);
    margin: 1em 0;
}
.cart-page{
    padding-top: 1em;
}
.cart-page h3{
    font-size: 1rem;
    letter-spacing: 1px;
    position: fixed;
    top: 1em;
    left: 1em;
    padding: 0;
}
.cart-page h4, ul.cart-items li:first-child,
.shipping-disclaimer h3{
    font-size: var(--font-size-2);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.5em;
    text-align: left;
    padding: 0;
}
section.cart-page, .shipping-disclaimer{
    width: calc(100% - 2em);
    max-width: 40em;
    margin: auto;
}
div.checkout-container{
    grid-template-columns: 1fr;
}
.cart-page .summary, .checkout-container, .cart-empty{
    border-top: 0;
    padding-top: 5em;
}
.cart-page.checkout-page .summary{
    padding-top: 1em;
}
ul.cart-items li:first-child{
    display: grid;
    padding-bottom: 1em;
}
.cart-items li:first-child span:nth-child(2)::before{
    content: '';
}
ul.cart-items li, ul.cart-items li:last-child, 
.cart-costs li:last-child{
    padding-bottom: 2em;
}
.cart-costs li:first-child{
    display: none;
}
ul.cart-items li{
    border-bottom: 1px var(--color2) solid;
    margin-bottom: 0.5em;
    grid-template-columns: 1.5fr 1fr 0.5fr 0.5fr;
}
div.summary{
    margin-top: 0;
}
.cart-items button{
    color: var(--color2);
    opacity: 0.25;
}
div.payment-method{
    padding-bottom: 4em;
}
.shipping-disclaimer{
    margin-top: 4em;
    border-top: 1px white solid;
    padding-top: 1em;
}
.order-message{
    padding-top: 5em;
}
div.message{
    background: var(--color) !important;
}


/*  Media Query */
@media only screen and (max-width: 768px) {
    body, html, ::placeholder, input, button, small{
        font-size: 18px;
        --font-size-1: 1.5rem;
        --font-size-2: 0.75rem;
        --font-size-3: 1.5rem;
    }
    .logo{
        font-size: 25vw;
        line-height: 0.5em;
    }
    .logo span:nth-child(4){
        padding-left: 0;
    }
    .images[data-images="2"]{
        grid-template-columns: 1fr;
    }
    .grid-works {
        grid-template-columns: repeat(2, 1fr);
    }
    .grid-exhibitions {
        grid-template-columns: repeat(1, 1fr);
    }
    .block{
        margin-bottom: 2em;
    }
    nav{
        display: flex;
        justify-content: center;
        align-items: center;
    }
    .menu-open nav{
        height: 100vh;
        background: rgba(255, 255, 255, 0.85);
    }
    nav ul{
        width: 100%;
        text-transform: none;
        font-size: var(--font-size-1);
        flex-wrap: wrap;
        gap: 0.7em;
        font-size: 7vh;
        letter-spacing: 0;
        display: none;
    }
    .menu-open nav ul{
        display: flex;
    }
    nav a.active{
        border-bottom: 0;
    }
    nav li{
        width: 100%;
        text-align: center;
    } 
    .menu-switch{
        position: fixed;
        top: 1em;
        left: 1em;
        cursor: pointer;
    }
    .menu-switch::after{
        content: 'Menu';
        cursor: pointer;
    }
    .menu-open .menu-switch::after{
        content: 'Close'
    }
    .cart-page h3{
        display: none;
    }
    div.checkout-field--half {
        width: 100%;
    }
 }
