*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    /* Font Reset */
    font-size: 62.5%;

    /* Custom Variables */
    --clr-brown: #582413;
    --clr-black: black;
    --clr-grey: #696969;
    --clr-white: #F0F0F0;

    /* Font Sizes */
    --font-size-menu: 1.3rem;
    --font-size-1: 2.35rem; /* Fließtext */
    --font-size-2: clamp(1rem, 2.7cqi + 1rem, 4.5rem); /* Collaborator Names */
    --font-size-3: clamp(2rem, 2cqi, 3rem); /* Wortmarke und Projekt Title */
    --font-size-4: clamp(1.5rem, 5cqi + 1.5rem, 6rem); /* Future/Present/Past + Collaborators Headline */
    --font-size-5: clamp(1rem, 2.4cqi + 1rem, 3rem); /* Grid Item Bottom */
    --font-size-6: clamp(0.8rem, 2cqi + 1rem, 2rem); /* Grid Item Top */

    /* Line Height */
    --line-height-1: 1.23; /* Fließtext */
    --line-height-2: 2.5rem;
    --line-height-3: 3.5rem;
    --line-height-4: clamp(2.3rem, 12cqi, 4.5rem); /* Future/Present/Past + Collaborators Headline */
    --line-height-5: 4.5rem;

    /* Padding & Margins */
    --spacing-tight: 0.5rem;
    --padding-1: 1rem;
    --gap: var(--spacing-tight);

    /* Width & Height */
    --width: clamp(500px, 40vw, 1000px);
    --inset: calc((100vw - var(--width)) / 2);
    --headerHeight: 7rem;
}

@media screen and (width < 451px) {
    :root {
        /* Font Sizes */
        --font-size-1: 2.1rem; /* Fließtext */
         /* Width & Height */
        --width: calc(100vw - var(var(--spacing-tight)));
    }
}

h1, h2, h3, h4 {
    text-wrap: balance;
}

p, li, figcaption {
    text-wrap: pretty;
}

ul {
    list-style: "";
}

input, button, textarea, select {
    font-family: inherit;
    font-size: inherit;
}

button {
    border: none;
    background-color: none;
    background: none;
}

img, image, picture {
    min-width: 100%;
    display: block;
}

/* CSS STYLES
             _|\ _/|_,
           ,((\\``-\\\\_
         ,(())      `))\
       ,(()))       ,_ \
      ((())'   |        \
      )))))     >.__     \
      ((('     /    `-. .c|
              /        `-`'   
*/


html {
    text-size-adjust: none;
    -moz-text-size-adjust: none;
    -webkit-text-size-adjust: none;
}

body {
    font-family: "Helvetica Neue";
    background-color: var(--clr-white);
    color: var(--clr-brown);
}

/* ----------------------

Utility Classes

---------------------- */

.flex-center {
    display: flex;
    justify-content: center;
    align-items: center;
}

.flex-align {
    display: flex;
    align-items: center;
}

.flex-justify {
    display: flex;
    justify-content: center;
}

.flex-between {
    display: flex;
    justify-content: space-between;
}

.grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    column-gap: var(--gap);
    padding-inline: var(--spacing-tight);
}

.sticky-top {
    position: sticky;
    top:0;
}

.header-bg {
    background: rgba(243, 243, 243, 0.6);
    /* background: rgb(132 132 132 / 60%);; */
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(7px);
    -webkit-backdrop-filter: blur(7px);
}

/* Font Sizes & Line Heights */

p {
    font-size: var(--font-size-1);
    line-height: var(--line-height-1);
    letter-spacing: -.02em;
}

p:not(:first-child) {
    margin-top: 2rem;
}

h2 {
    grid-column: 1 / -1;
    font-weight: inherit;
    font-size: var(--font-size-4);
    /* line-height: var(--line-height-4); */
}

.main-left-container h2 {
    /* background-color: var(--clr-brown);
    position: sticky;
    top: 0; */
    padding-bottom: 2rem;
    position: sticky;
    top: 0;
    background: rgb(108,108,108);
    background: linear-gradient(0deg, rgba(108,108,108,0) 0%, rgba(88,36,19,1) 14%);
    /* height: 13vw; */
}

.main-right-container h2 {
    background-color: var(--clr-white);
    margin-bottom: var(--padding-1);
    position: sticky;
    top: 0;
}

.main-right-container h2:last-of-type {
    margin-top: 3rem;
}

a {
    text-decoration: none;
    color: inherit;
}

a:hover {
    text-decoration: solid;
    cursor: pointer;
}

/* ----------------------

Header & Footer

---------------------- */

.header {
    position: fixed;
    width: var(--width);
    bottom: 0;
    inset-inline: var(--inset);
    z-index: 25;
    transition: bottom 0.3s ease-in-out;
    display: flex;
    padding-inline: 1rem;
    height: var(--headerHeight);
    font-size: var(--font-size-menu);
}

.header > div {
    display: flex;
    flex-direction: column;
    gap: 1.3rem;
    flex: 1;
    padding-top: 1rem;
}


.header > div input {
    width: 98%;
}

.work-button,
.collab-button {
    text-align: center;
}

.work-button:hover {
    cursor: w-resize;
}
.collab-button:hover {
    cursor: e-resize;
}

.header > div:last-child input {
    direction: rtl;
    align-self: end;
}

.header > div:last-child {
    color: var(--clr-grey);
}

input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
}

input[type="range"]::-webkit-slider-runnable-track {
    background: var(--clr-brown);
    height: 0.1rem;
}
  
input[type="range"]::-moz-range-track {
    height: 0.1rem;
}

.header > div:first-child input[type="range"]::-webkit-slider-runnable-track {
    background-color: var(--clr-brown);
}

.header > div:first-child input[type="range"]::-moz-range-track {
    background-color: var(--clr-brown);
}

.header > div:last-child input[type="range"]::-webkit-slider-runnable-track {
    background-color: var(--clr-grey);
}

.header > div:last-child input[type="range"]::-moz-range-track {
    background-color: var(--clr-grey);
}

/* Slider Indicator */

.header > div:first-child input[type="range"]::-webkit-slider-thumb {
    background-color: var(--clr-brown);
}

.header > div:first-child input[type="range"]::-moz-range-thumb {
    background-color: var(--clr-brown);
}

.header > div:last-child input[type="range"]::-webkit-slider-thumb {
    background-color: var(--clr-grey);
}

.header > div:last-child input[type="range"]::-moz-range-thumb {
    background-color: var(--clr-grey);
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none; /* Override default look */
    appearance: none;
    border-radius: 50%;
    height: 3rem;
    width: 3rem;   
    margin-top: -1.35rem; 
    transition: all 0.2s ease;
    -webkit-filter: blur(1.5px);
    filter: blur(1.5px);
    will-change: filter;
}

input[type="range"]::-moz-range-thumb {
    border: none; /*Removes extra border that FF applies*/
    border-radius: 50%; /*Removes default border-radius that FF applies*/
    height: 2rem;
    width: 2rem;
    filter: blur(1.5px);
    -webkit-filter: blur(1.5px);
    will-change: filter;
}

@media screen and (width < 600px) {
    .header {
        /* width: calc(100vw - calc(2 * var(--spacing-tight))); */
        width: 100vw;
        inset-inline: 0;
    }
}

.footer {
    padding-block: var(--spacing-tight);
    margin-top: 5rem;
    /* border-top: 1px solid var(--clr-black); */
    font-size: var(--font-size-6);
}

/* ----------------------

Main Container 

---------------------- */

.main {
    min-height: 100dvh;
}

.main-left,
.main-right {
    position: fixed;
    width: 0;
    height: 100dvh;
    top: 0;
    overflow-y: scroll;
    overscroll-behavior: contain;
    container-type: inline-size;
    transition: width 0.15s ease-in-out;
}

.main-left {
    left: 0;
    background-color: var(--clr-brown);
    color: var(--clr-white);
    -webkit-box-shadow: 4px 1px 18px -4px rgba(0,0,0,0.85); 
    box-shadow: 4px 1px 18px -4px rgba(0,0,0,0.85);
}

.main-right {
    right: 0;
    background-color: var(--clr-white);
    -webkit-box-shadow: -6px 1px 18px -4px rgba(0,0,0,0.85); 
    box-shadow: -6px 1px 18px -4px rgba(0,0,0,0.85);
}

.main-left.expanded,
.main-right.expanded {
    width: 50%;
}

.main-left.expanded .collab-button:hover {
    cursor: w-resize;
}
.main-right.expanded .work-button:hover {
    cursor: e-resize;
}

@media screen and (width < 600px) {
    /* .main-left {
        -webkit-box-shadow: 4px 1px 18px -4px rgba(0,0,0,0.85); 
        box-shadow: 4px 1px 18px -4px rgba(0,0,0,0.85);
    }
    .main-right {
        -webkit-box-shadow: -6px 1px 18px -4px rgba(0,0,0,0.85); 
        box-shadow: -6px 1px 18px -4px rgba(0,0,0,0.85);
    } */

    .main-left.expanded,
    .main-right.expanded {
        width: 100%;
    }
}

.main-center {
    width: var(--width);
    margin-inline: var(--inset);
    margin-bottom: calc(var(--headerHeight) + 1rem);
    min-height: 100vh;
    padding-block: 1rem;
}

.main-center > div {
    font-size: var(--font-size-1);
}

.back-button {
    /* border-top: 1px solid var(--clr-brown); */
    margin-top: 2rem;
}

.main-center img {
    width: 100%;
    margin-bottom: var(--padding-1);
}

.main-left-container,
.main-right-container {
    /* margin-bottom: calc(var(--headerHeight) * 2); */
    margin-bottom: calc(var(--headerHeight) + 1rem);
}

@media screen and (width < 600px) {
    .main-center {
        width: calc(100vw - calc(2 * var(--spacing-tight)));
        margin-inline: var(--spacing-tight);
    }
}

/*--------------------- 

ABOUT 

---------------------*/

.logo,
.project-title {
    padding-block: 0.2rem 1rem;
    font-size: var(--font-size-3);
}

.logo {
    display: grid;
    grid-template-columns: max-content 1fr max-content;
    padding-inline: 0.5rem;
}

.logo span {
    grid-column: 2;
    justify-self: center;
    align-self: center;
}

.lang-switch {
    grid-column: 3;
    justify-self: end;
    align-content: end;
    font-size: var(--font-size-menu);
    text-transform: uppercase;
}

.language {
    display: flex;
    align-items: center;
    gap: 0.2rem;
    color: var(--clr-brown);
}

.language:hover {
    cursor: pointer;
}

/*--------------------- 

Projekt Seite 

---------------------*/

.project-title > div:first-child {
    text-align: start;
}

.project-title > div:last-child {
    text-align: end;
}

.project-content {
    margin-block: 4rem 2rem;
}

.project-images figcaption {
    text-align: end;
    padding-block: 0.5rem;
    font-size: var(--font-size-6);
}

.project-links {
    padding-block: var(--spacing-tight);
}

.prevNext {
    padding-block: 2rem;
    text-align: end;
    font-size: var(--font-size-1);
}

/*--------------------- 

Work Overview 

---------------------*/

.grid-item {
    grid-column: 1 / -1;
    margin-bottom: var(--spacing-tight);
}
.grid-item:hover {
    opacity: 0.8;
}
@container (min-width: 375px) {
    .grid-item {
        grid-column: span 6;
    }
}
.grid-item img {
    width: 100%;
    aspect-ratio: 1 / 1.414;
    object-fit: cover;
}

.grid-item > a div:first-child {
    font-size: var(--font-size-6);
    letter-spacing: -0.04rem;
}

.grid-item > a div:last-child {
    font-size: var(--font-size-5);
}

.grid-item:hover {
    cursor: pointer;
}

/*--------------------- 

Collaborators 

---------------------*/

.collabo-list {
    grid-column: 1 / -1;
}

.collabo-list p {
    font-size: clamp(1.4rem, 3.2cqi + 1rem, 4.6rem);
}

.main-left-container ul {
    grid-column: 1 / -1;
    /* Columns */
    columns: 2;
    -webkit-columns: 2;
    -moz-columns: 2;
    column-gap: var(--spacing-tight);
    /* Font */
    font-size: var(--font-size-2);
    padding-bottom: 0.5rem;
}

.main-left-container figure {
    grid-column: 1 / -1;
    width: 100%;
    padding-block: 0.5rem;
}

.main-left-container figcaption {
    text-align: start;
    padding-block: 0.5rem;
    font-size: 1.3rem;
}

.main-left-container figure img {
    width: 100%;
    object-fit: cover;
    aspect-ratio: 4 / 3;
}

@container (min-width: 450px) {
    .main-left-container ul {
        columns: 1;
        -webkit-columns: 1;
        -moz-columns: 1;
        grid-column: span 6;
        padding-bottom: 0;
    }
    .main-left-container figure {
        grid-column: span 6;
        width: 100%;
    }
    .main-left-container figure img {
        width: 100%;
        object-fit: cover;
    }
}

