:root {
    --mark: 1rem;
    --fs-main: 1rem;

    --fullvh: calc(var(--vh, 1vh) * 100);
    --header-height: 6rem;

    --color-light: #f9f9f9;
    --color-dark: #111;

    --color-main: #111;
    --color-blend: #fff;
    --color-bg: #f9f9f9;
    --color-darkgrey: #999;
    --color-lightgrey: lightgrey;
    --color-hl: blue;
    --border: 1px solid var(--color-darkgrey);
}


html {
    font-size: 1.0vw;
}
@media only screen and (max-width: 1300px) {
    html {
      font-size: 13px;
    }
}
@media screen and (min-width:2400px) {
    html {
        font-size: 24px;
    }
}
  
* {
    scrollbar-width: none; /* hide scrollbar in firefox */
    scroll-behavior: smooth;
  }
  
*::-webkit-scrollbar {
    display: none; /* hide scrollbar in edge and opera */
    scroll-behavior: smooth;
}

body {
    width: 100vw;
    height: auto;
    margin: 0;
    font-family: 'Roboto', Arial, Helvetica, sans-serif;
    letter-spacing: 0.03em;
    line-height: 1.2;
    background-color: var(--color-bg);
    color: var(--color-main);
    /* color: var(--color-blend); */
}
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

main {
    display: flex;
    flex-direction: column;
    padding: 0 1rem 3rem 1rem;
}

ul {
    padding: 0;
    list-style: none;
    margin: 0;
}

a {
    text-decoration: none;
    color: inherit;
}
a:hover {
    text-decoration: underline dotted;
}
p a {
    text-decoration: underline;
}

.link-arrow::before {
    content: "\2197";
    font-family: -apple-system, BlinkMacSystemFont, "helvetica neue", helvetica,
    arial, sans-serif;
}

h1, h2, h3, h4, h5, h6, p {
    margin-top: 0;
    font-weight: normal;
    /* color: var(--color-blend);
    mix-blend-mode: difference;
    filter: grayscale(); */
    color: inherit;
}

h1, h2, h3 {
    font-size: 1.2rem;
    margin: 0;
}

figure {
    margin: 0;
}

img.lazy {
    width: 100%;
    height: auto;
    opacity: 0;
    transition: opacity 0.3s ease;
}

img.loaded {
    opacity: 1;
}

figcaption {
    font-size: 0.8rem;
    color: var(--color-darkgrey);
}

iframe {
    border: none;
    height: 100%;
}


.scroll-hor {
    overflow-x: scroll;
    white-space: nowrap;
    scroll-behavior: auto;
}

.hidden {
    display: none;
}

/* HEADER */
.header {
    position: sticky;
    width: 100%;
    top: 0;
    margin: 0;
    padding-top: 1rem;
    padding-bottom: 2rem;
    display: flex;
    flex-direction: row;
    column-gap: 1rem;
    z-index: 999;
    mix-blend-mode: difference;
    color: var(--color-blend);
}
.header__link {
}
.header__link:hover, 
.header__link:active {
    text-decoration: underline;
}
.header__nav {
    text-align: right;
    flex: 1;
}
/* --- */

/* HOME */
.home__button {
    width: 1rem;
    height: 1rem;
    text-align: center;
    position: absolute;
    cursor: pointer;
    transform: translate(-50%);
    z-index: 999;
	background-color: var(--color-blend);
    mix-blend-mode: difference;
	/* border-radius: 50%; */
    border: 1.2px solid var(--color-blend);
	box-shadow: 0 0 0 0 rgb(255, 255, 255);
	transform: scale(1);
	animation: pulse-black 1s infinite;
}

@keyframes pulse-black {
	0% {
		transform: scale(0.90);
		box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.25);
        /* transform: translateX(1rem); */
	}

	25%, 75% { 
        /* transform: translateY(-15px); */
    }
    50% { 
        /* transform: translateY(-20px); */
    }
	70% {
		transform: scale(1);
		box-shadow: 0 0 0 1rem rgba(255, 255, 255, 0);
	}
	
	100% {
		transform: scale(0.50);
		box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
        /* transform: translateX(0px); */
	}
}
.home__button:hover {
    background: none; 
}
.home__button--active {
    animation: none;
    transform: none;
    background: none; 
}

.home__background {
    width: 100vw;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    z-index: -999;
    object-fit: cover;
    mask: url(/assets/img/cuts_01.svg);
    background-color: var(--color-lightgrey);
    mask-type: alpha;   
    mask-size: cover; 
}
.home__cover {
    width: 100vw;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 0;
    display: none;
}
.home__cover--mask {
    object-fit: cover;
    mask: url(/assets/img/cuts_01.svg);
    background-color: var(--color-lightgrey);
    mask-type: alpha;   
    mask-size: cover;
    display: block;
    z-index: 99;
}
.home__cover--active {
    display: block;
}
.home__img {
    object-fit: cover;
    height: 100%;
    width: 100%;
}
.home__video {
    object-fit: cover;
    height: 100%;
    width: 100%;
}
.home__description {
    position: fixed;
    bottom: 1rem;
    left: 1rem;
    color: var(--color-blend);
    mix-blend-mode: difference;
    filter: grayscale();
    z-index: 999;
}


.home__mute {
    mix-blend-mode: difference;
    position: fixed;
    bottom: 1rem;
    right: 1rem;
    z-index: 999;
}
@media only screen and (max-width: 600px) {
    .home__mute {
        padding-left: 2rem;
        padding-top: 2rem;
    }

}
.home__mute--active {
    text-decoration: underline;
}
.home__mute--inactive {
    text-decoration: none;
}
.toggle-switch {
    display: inline-block;
    /* width: 2rem; */
    /* height: 1rem; */
    position: relative;
    cursor: pointer;
}
.toggle-switch input {
    display: none;
}
.slider {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: lightgrey;
    transition: 0.4s;
    border-radius: 34px;
}
.slider:before {
    position: absolute;
    content: "";
    height: calc(1rem - 2px);
    width: calc(1rem - 2px);
    left: 1px;
    bottom: 1px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
}
input:checked + .slider {
    background-color: grey;
}
input:checked + .slider:before {
    transform: translateX(1rem);
}


/* WORKS */
.works {
    display: flex;
    flex-direction: column;
    row-gap: 2rem;
    margin-top: 6rem;
}
.works__link-wrapper:hover {
    text-decoration: none;
}
.works__link-wrapper:hover .works__title{
    text-decoration: underline;
}
.works__container {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    column-gap: 1rem;
}

.works__info {
    grid-column: span 4;
    display: flex;
    flex-direction: column;
    row-gap: 0.5rem;
}
.works__item {
    margin-bottom: 5rem;
}
.works__item:nth-child(even) .works__info{
    order: 2;
}
.works__title {
    /* flex: 1; */
    /* text-transform: uppercase; */
    margin: 0;
}
/* .works__title--larger h2 {
    font-size: 2rem;
} */
.works__title p {
    margin: 0;
}
.works__meta {
    color: var(--color-darkgrey);
    text-decoration: none;
    display: flex;
    flex-direction: column;
    /* row-gap: 0.25rem; */
    font-size: 0.8rem;
    line-height: 1.25em;
}
.works__figure {
    grid-column: span 6;
    width: 100%;  
}
.works__figure--portrait {
    grid-column: span 4;
    grid-column-end: 13;
    /* aspect-ratio: 2 / 3; */
}
.works__item:nth-child(even) .works__figure--portrait{
    grid-column-start: 1;
    grid-column: span 4;
}
.works__figure--landscape {
    /* aspect-ratio: 3 / 2; */
}
.works__figure--square {
    grid-column: span 6;
    grid-column-end: 13;
    aspect-ratio: 1 / 1;
}
.works__item:nth-child(even) .works__figure--square{
    grid-column-start: 1;
    grid-column: span 6;
}
.works__img {
    max-width: 100%;
    width: 100%;
    object-fit: contain;
    background-color: var(--color-lightgrey);
}

.works__position {
    position: fixed;
}

@media only screen and (max-width: 600px) {
.works__position--mblist {
    position: static;
}
}

@media only screen and (max-width: 600px) {
    .works__container {
        display: flex;
        flex-direction: column;
        row-gap: 1rem;
    }
    .works__figure {
        order: 2;
    }

}

/* --- */

/* PROJECT */
.project {
    display: flex;
    flex-direction: column;
    row-gap: 1rem;
}
.project-header {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    column-gap: 1rem;
    align-items: end;
}
.project-info {
    grid-column: span 8;
    display: flex;
    flex-direction: column;
    row-gap: 0.5rem;
}
.project-title {
    /* text-transform: uppercase; */
    margin: 0;
    color: var(--color-blend);
    mix-blend-mode: difference;
}
.project-meta {
    color: var(--color-darkgrey);
    display: grid;
    grid-template-columns: 1fr;
    column-gap: 1rem;
    font-size: 0.8rem;
    line-height: 1.25em;
}
.project-nav {
    grid-column-end: 13;
    text-align: right;
    color: var(--color-blend);
    mix-blend-mode: difference;
    align-items: end;
}
.project-arrow {
    width: auto;
    text-align: right;
    font-family: arial;
    cursor: pointer;
    font-size: 1.5rem;
    
}
.project-arrow:hover {
    text-decoration: none;
}
.project-arrow--right::before{
    content: "\2192";
}
.project-arrow--left::before{
    content: "\2190";
}
.project-arrow--down::before{
    content: "\2193";
}
.project-gallery {
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    align-items: flex-start;
    gap: 1rem;
    /* white-space: nowrap; */
    scroll-snap-type: x proximity;

}

.project-gallery__item {
    flex: 0 0 auto;
    white-space: normal;
    scroll-snap-align: start;
    scroll-margin-top: 15rem;
    /* scroll-margin-left: 1rem; */
    /* scroll-margin-right: 1rem; */
}

/* .project-gallery__item figure {
    height: 75dvh;
    max-width: calc(100vw - 2rem);
} */

/* .project-gallery__item video,
.project-gallery__item img,
.project-gallery__item iframe {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  aspect-ratio: inherit;
} */

/* .project-img,
.media__video,
.media__poster {
    display: block;
    aspect-ratio: var(--ratio);
    width: auto;
    max-width: calc(100vw - 2rem);
    max-height: calc(100vh - var(--header-height) - 10rem);
    max-height: calc(calc(var(--vh, 1vh) * 100) - var(--header-height) - 10rem);
    object-fit: cover;
    object-position: top;
} */


#scroll-end {
    scroll-margin-top: 15rem;
}
.project-description {
    width: 100%;
    max-width: 35rem;
    /* background-color: var(--color-bg); */
    /* color: var(--color-blend);
    mix-blend-mode: difference; */
}
.project-description figure {
    max-width: 100%;
    width: 100%;
}
.project-description img {
    width: 100%;
}

@media only screen and (max-width: 600px) {
    .project-container--fullvh {
        /* height: 32rem; */
    }
    .project-block {
        scroll-snap-align: center;
    }
    .project-img {
        /* object-fit: contain; */

    }
    .project-info {
        grid-column: span 11;
    }
    .project-meta {
        grid-template-columns: 1fr;
    }
    

}
/* --- */


/* LIGHTBOX */
.lightbox {
    display: none;
    position: fixed;
    z-index: 999;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 1);
}

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

.lightbox__content img,
.lightbox__content video,
.lightbox__content audio {
    width: auto;
    max-width: calc(100vw - 2rem);
    max-height: 80%;
}

.lightbox__close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1rem;
    color: #fff;
    cursor: pointer;
}

.lightbox__prev,
.lightbox__next {
    font-family: arial;
    position: absolute;
    bottom: 1rem;
    font-size: 1.5rem;
    color: #fff;
    background-color: transparent;
    border: none;
    cursor: pointer;
    transform: translateY(-50%);
}

.lightbox__prev {
    left: 1rem;
}

.lightbox__next {
    right: 1rem;
}
/* --- */


/* ABOUT */
.about {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-column-gap: 1rem;
    grid-row-gap: 1rem;
}
@media only screen and (max-width: 768px) {
    .about {
        display: block;
    }
}
.about__container {
    display: flex;
    flex-direction: column;
    row-gap: 1rem;
}
.about__bio {
    max-width: 35rem;
}
.about__title {
    margin-bottom: 0.5rem;
    font-size: 0.8rem;
    color: var(--color-darkgrey);
    mix-blend-mode: normal;
}
/* --- */


.project__figure {
  display: flex;
  flex-direction: column;
  flex: 0 0 auto;
  width: auto;
}

/* =========================
   MEDIA CONTAINER
   ========================= */

.media {
  position: relative;
  display: flex;
  flex-direction: column;
  /* height: 60vh;  */
  background-color: var(--color-bg);
}

.media__content {
    height: 65dvh;
}
@media only screen and (max-width: 600px) {
    .media__content {
    height: 55dvh;
}
}
.media__content--resize {
    max-width: calc(100vw - 2rem);
    height: unset;
}

.media__content iframe,
.media__content video,
.media__content img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* =========================
   CONTROLS (UNDER VIDEO)
   ========================= */

.media__controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  box-sizing: border-box;
  padding-top: 0.5rem;
  font-size: 0.8rem;
  color: var(--color-blend);
  mix-blend-mode: difference;
}

/* play button */
.media__play-pause {
  width: 1rem;
  height: 1rem;
  background: transparent;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
  position: relative;
}

/* play icon */
.media__play-pause::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-40%, -50%);
  border-style: solid;
  border-width: 0.375rem 0 0.375rem 0.625rem;
  border-color: transparent transparent transparent currentColor;
}

/* pause icon */
.media__play-pause.is-playing::before {
  transform: translate(-50%, -50%);
  border: none;
  width: 0.25rem;
  height: 0.75rem;
  border-left: 0.1875rem solid currentColor;
  border-right: 0.1875rem solid currentColor;
}

/* progress bar */
.media__progress-container {
  flex: 1;
  height: 0.25rem;
  min-width: 8rem;
  border: var(--border);
  border-radius: 0.5rem;
  cursor: pointer;
}

.media__progress-bar {
  height: 100%;
  width: 0%;
  background: var(--color-blend);
  border-radius: 0.5rem;
}

/* time */
.media__time {
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}

/* volume */
.media__volume {
  width: 3rem;
  height: 0.25rem;
  appearance: none;
  -webkit-appearance: none;
  border: var(--border);
  border-radius: 0.5rem;
  cursor: pointer;
  flex-shrink: 0;
}

.media__volume::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 0.75rem;
  height: 0.75rem;
  background: var(--color-bg);
  border: var(--border);
  border-radius: 50%;
  cursor: pointer;
}

/* =========================
   FIGURE CAPTION
   ========================= */

figcaption {
  padding-top: 0.5rem;
  font-size: 0.8rem;
}

/* =========================
   EMBED FALLBACK
   ========================= */

.project__figure iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  border: 0;
}

