/* ------------------------------------------------------------- */
/* -------------------- CONTENT VIEWERS ------------------------ */
/* ------------------------------------------------------------- */

.viewer {
    width: 100vw;
    height: var(--vh);
    position:absolute;
    top: 0px;
    left: 0px;
    opacity: 0%;
    pointer-events: none;
    transition: opacity 0.5s;
    will-change: opacity;
    z-index: 10;
    display:flex;
    flex-grow: 1;
    flex-direction: column;
    transform: translateY(-200%);
}
.viewer.active {
    opacity: 100%;
    pointer-events: auto;
    transform: translateY(0%);
}

.viewer .bg {
    width:100%;
    height:100%;
    background-color: rgba(10,10,10,0.95);
    position:absolute;
    top: 0px;
    left: 0px;
    z-index: -1;
}


/* --------- VIEWER CONTROLS ---------- */

.gallery-controls {
    height: var(--top_bar_height);
    border-bottom: solid 1px;
    border-color: var(--theme_color); 
    padding: 0px;
}

.gallery-controls button {
    width: var(--top_bar_height);
    padding: 10px;
    font-size: 24px;
    margin: 0px;
    /* border: solid 1px var(--ui_color); */
    background-color: rgba(255, 255, 255, 0);
    color: white;
}
body.hasHover .gallery-controls button:hover {
    background-color: rgba(255, 255, 255, 0.1);
}
.gallery-controls button:active {
    background-color: rgba(255, 255, 255, 0.2) !important;
}

.gallery-controls .arrows {
    display: flex;
    flex-direction:row;
    flex-grow: 1;
    opacity: 0%;
    display: none;
}
.gallery-controls .arrows.active {
    opacity: 100%;
    display: block;
}

.viewer.active .gallery-controls .left {
    animation:fade-in 0.7s var(--ease_out_quint);
    animation-fill-mode: both;
    animation-delay: 0.7s;
}

.viewer.active .gallery-controls .right {
    animation:fade-in 0.7s var(--ease_out_quint);
    animation-fill-mode: both;
    animation-delay: 0.7s;
}

.gallery-controls .number {
    font-family: "Courier New", Courier, "Lucida Sans Typewriter", "Lucida Typewriter", monospace;
    position:absolute;
    left: 50%;
    top: 4px;
    transform: translateX(-50%);
    padding: 10px;
    font-size: 18px;
}
.viewer.active .gallery-controls .number {
    animation:fade-in 0.7s var(--ease_out_quint);
    animation-fill-mode: both;
    animation-delay: 0.5s;
}

.gallery-controls .exit {
    position:absolute;
    right: 0px;
    top: 0px;
}
.viewer.active .gallery-controls .exit {
    animation:fade-in 0.7s var(--ease_out_quint);
    animation-fill-mode: both;
    animation-delay: 0.3s;
}

#viewer-img.active .container {
    animation:scale-in 0.5s var(--ease_out_quint);
    animation-fill-mode: both;
    animation-delay: 0.1s;
}


/* --------- IMG VIEWER ---------- */

#viewer-img > .container {
    width: 100%;
    height: calc(var(--vh) - var(--top_bar_height));
    padding:0px;
    opacity: 0%;
    display: none;
    pointer-events: none;
    position: relative;
}

#viewer-img > .container.active {
    opacity: 100%;
    display: block;
}

#viewer-img > .container > video, #viewer-img > .container > img {
    max-width: calc(100% - 10px);
    max-height: calc(100% - 10px);
    position: relative;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: all;
    /* border: solid 2px; */
    /* border-color: var(--theme_color); */
}

.body-arrows {
    display: flex;
    flex-direction:row;
    flex-grow: 1;
    justify-content: space-between;
}

.body-arrows > * {
    width: var(--top_bar_height);
    padding: 10px;
    font-size: 24px;
    margin: 0px;
    /* border: solid 1px var(--ui_color); */
    background-color: rgba(255, 255, 255, 0);
    color: white;
    pointer-events: auto;
}

.body-arrows.expanded .left {
    transform: translateX(-75px);
}

.body-arrows.expanded .right {
    transform: translateX(75px);
}

body.hasHover .arrows button:hover {
    background-color: rgba(255, 255, 255, 0.1);
}
.arrows button:active {
    background-color: rgba(255, 255, 255, 0.2) !important;
}

@media (min-width:600px) and (min-height:600px) {
    #viewer-img > .container > video, #viewer-img > .container > img {
        max-width: calc(100% - 100px);
        max-height: calc(100% - 100px);
    }
}


/* --------- HTML VIEWER ---------- */

#viewer-content {
    max-height: 100%;
    overflow-y: scroll;
    padding: 30px calc(max(0px, calc(100vw - 1000px)) /2 + 30px);
}

#viewer-content > * {
    z-index: 1;
}












/* ------------------------------------------------------------- */
/* ---------------------- INTRO CONTENT ------------------------ */
/* ------------------------------------------------------------- */

#section-0 {
    pointer-events: none;
}
#section-0 > *:not(.about-container) {
    pointer-events: all;
}

.terminal {
    z-index: 1;
    opacity: 100%;
    transition: opacity 0.5s;
    will-change: opacity;
    /* transition-delay: 1s; */
}



.terminal-text {
    /* text-align: center; */
    /* font-family: var(--font_display); */
    font-weight: 400;
    margin: 0px;
    font-family: var(--font_mono);
    font-size: var(--footer_size);
    line-height:160%;
}

#intro-1 {
    font-size: 18px;
    padding-bottom: 8px;
}

.project-link {
    font-size: 16px;
    line-height:28px;
    padding-left: 10px;
    padding-right: 10px;
}

body.hasHover .project-link:hover {
    background-color: rgba(10, 10, 10, 0.6);
}


#terminal-info {
    position:absolute;
    flex-basis: 100%;
    /* padding: 30px; */
    margin: 0px;
    left: 0px;
    /* top: var(--top_bar_height); */
    z-index: 1;
    color: var(--theme_color);
    text-shadow: 0px 0px 6px var(--theme_color);
}

#terminal-nav {
    /* left: 30px; */
    /* top: calc(var(--top_bar_height) + 30px); */
    width:320px;
    white-space: nowrap;
    /* height: 200px; */
    display: flex;
    flex-direction: row;
    position: relative;
    top: calc(50% + var(--top_bar_height) / 2);
    /* left: 50vw; */
    transform: translateY(-50%);
    padding: 30px;
    margin:auto;
}

#nav-starter {
    padding-right: 10px;
    /* text-shadow: 0px 0px 6px white; */
    margin:0px;
}

#nav-text > h2 {
    margin: 0px;
    /* color: var(--theme_color); */
    transition: color, 0.2s;
}

#nav-text span {
    color: white !important;
    text-shadow: 0px 0px 6px white;
}

#terminal-about {
    position:absolute;
    flex-basis: 100%;
    left: 0px;
    bottom: 0px;
    padding: 30px;
    z-index: 1;
    color: var(--theme_color);
    text-shadow: 0px 0px 6px var(--theme_color);
}

#terminal-about h5 {
    margin: 0px;
}

.terminal > .terminal-text {
    font-size: 15px;
    line-height:26px;
}

@media (max-width: 600px) or (max-height: 600px) {
    #intro-1 {
        font-size: 18px;
        padding-bottom: 8px;
    }
    .project-link {
        font-size: 15px;
        line-height:26px;
    }
    .terminal > .terminal-text {
        font-size: 14px;
        line-height:24px;
    }
}


@media (max-width: 400px) or (max-height: 400px) {
    #intro-1 {
        font-size: 18px;
        padding-bottom: 8px;
    }
    .project-link {
        font-size: 14px;
        line-height:21.5px;
    }
    .terminal > .terminal-text {
        font-size: 13px;
        line-height:20px;
    }
}


.box-cursor::after {
    content: '';
    width: 12px;
    height: 4px;
    bottom: 0px;
    background-color: var(--theme_color);
    overflow: hidden;
    position: relative;
    transform: translate(0px, 1px);
    background: #ffffff;
    display: inline-block;
    animation: cursor-blink 1.3s steps(2) infinite;
    animation-timing-function: var(--ease_in_out_expo);
    margin-left:5px;
}

@keyframes cover-bg-out {
    0% {opacity: 100%;}
    100% {opacity: 0%;}
}

@keyframes cover-bg-in {
    0% {opacity: 0%;}
    100% {opacity: 100%;}
}

#home-cover-wrap {
    position:fixed;
    top: 1px;
    left: 1px;
    width: calc(100% - 2px);
    height: calc(100% - 2px);
    opacity: 0%;
    z-index: -1;
}

#home-cover-wrap::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0px;
    left: 0px;
    background: radial-gradient(transparent 10%, rgba(10,10,10,1) 80%, rgba(10,10,10,1)) 10%, transparent;
    opacity: 100%;
    transition: opacity 1s;
}

@keyframes project-vid-out {
    0% {
        position: fixed;
        opacity: 100%;
    }
    99.9% {
        position: fixed;
        opacity: 0%;
    }
    100% {
        position: fixed;
        opacity: 0%;
    }
}

.project-vid-out {
    top: 1px;
    left: 1px;
    width: calc(100%-2px);
    height: calc(var(--vh)-2px);
    animation: project-vid-out 0.5s both;
}

@keyframes project-vid-in {
    0% {
        position: fixed;
        opacity: 0%;
    }
    99.9% {
        position: fixed;
        opacity: 100%;
    }
    100% {
        position: fixed;
        opacity: 100%;
    }
}

.project-vid-in {
    top: 1px;
    left: 1px;
    width: calc(100%-2px);
    height: calc(var(--vh)-2px);
    animation: project-vid-in 1s both;
}


/* --------- ABOUT ME ---------- */


#about-container-covers {
    position: absolute;
    width: calc(100% - 60px);
    height: calc(100% - 140px - var(--top_bar_height));
    margin: calc(30px + var(--top_bar_height)) 30px 110px 30px;
    top: 0px;
    left: 0px;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0% 100%);
    transition: clip-path 0.5s;
    transition-timing-function: var(--ease_out_quint);
    z-index: 1;
    transition-delay: 0s;
}

#about-container-covers.active {
    clip-path: polygon(100% 0, 100% 0, 100% 100%, 100% 100%);
    transition-delay: 0.5s;
}

.about-container {
    position: absolute;
    width: calc(100% - 60px);
    height: calc(100% - 140px - var(--top_bar_height));
    margin: calc(30px + var(--top_bar_height)) 30px 110px 30px;
    top: 0px;
    left: 0px;
    z-index: 1;
    pointer-events: none;
}

.about-container.active {
    pointer-events:auto;
}

.about-box {
    transform: translateX(-200%);
    opacity: 0%;
    width: 0%;
    height: 0%;
    border: solid 1px;
    position: absolute;
    bottom: 0px;
    left: 0px;
    transition: width 0.5s,
        height 0.5s 0.5s,
        transform 0s 1s,
        opacity 0s 1s;
    transition-timing-function: var(--ease_out_quint);
    overflow: hidden;
}

.about-container.active .about-box {
    opacity: 100%;
    transform: translateX(0%);
    transition: width 0.5s 0.5s,
        height 0.5s,
        opacity 0s;
    transition-timing-function: var(--ease_out_quint);
    height: 100%;
    width: 100%;
}

.about-contents {
    width: calc(100vw - 60px - 2px);
    /* height: calc(100vh - 140px - var(--top_bar_height) - 10px - 2px); */
    height: 100%;
    position: absolute;
    bottom: 0px;
    left: 0px;
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
}



.about-text {
    width: 70%;
    /* height: 100%; */
    flex: 0 1 70%;
    display: flex;
    flex-direction: row;
    padding: 50px;
    position: absolute;
    bottom: 0px;
    left: 0px;
}

.about-para {
    font-family: var(--font_mono);
    padding: 30px;
}

.about-para > h4 {
    font-size: 18px !important;
    font-size: var(--header_size_small);
    margin: 0px;
    padding: 0px;
    margin-bottom: 4px;
    text-shadow: 0px 0px 6px var(--theme_color);
}
.about-para > h4::after {
    border: none;
    height: 0px;
    width: 0px;
    display: none;
}

.about-para > p {
    margin: 0px;
    padding: 0px;
    font-family: var(--font_mono);
    font-size: 14px !important;
    margin: 0px;
}

.about-photo {
    width: 100%;
    height: 100%;
    flex: 0 1 50%;
    /* padding: 20px; */
}

.about-photo > * {
    -webkit-mask-image: radial-gradient(circle at 50% 60%, black 50%, rgba(0, 0, 0, 0.6) 50%);
    -webkit-mask-image: radial-gradient(ellipse 90% 80% at 48% 78%, black 40%, transparent 50%);
    -webkit-mask-image: linear-gradient(to right, transparent 25%, black 75%);
}

@media (max-width: 1000px) {
    .about-contents {
        /* flex-direction: column; */
        /* flex-flow: column-reverse; */
    }
    .about-photo > * {
        /* -webkit-mask-image: radial-gradient(circle at 50% 60%, black 50%, rgba(0, 0, 0, 0.6) 50%);
        -webkit-mask-image: radial-gradient(ellipse 90% 80% at 48% 78%, black 40%, transparent 50%);
        -webkit-mask-image: linear-gradient(to bottom, transparent 25%, black 75%);
        background-position: center 50px; */
    }
    .about-text {
        flex-direction: column;
        width: 90%;
        padding: 15px;
    }
    .about-para {
        padding: 6px;
    }
    .about-para > p {
        max-width:80%;
        min-width: 186px;
        font-size: 12px !important;
    }
}




/* --------------------------------------------------------- */
/* -------------------- BACK TO TOP ------------------------ */
/* --------------------------------------------------------- */

@keyframes arrow-anim-up {
    0% {transform: translateY(0px) rotate(0deg) scale(100%);}
    25% {transform: translateY(-15px) rotate(0deg) scale(0%);}
    25.001% {transform: translateY(15px) rotate(0deg) scale(0%);}
    50% {transform: translateY(0px) rotate(0deg) scale(100%);}
    100% {transform: translateY(0px) rotate(0deg) scale(100%);}
}

.back-to-top {
    position:fixed;
    bottom: 10px;
    right: 10px;
    z-index: 1;
    opacity: 0%;
    width: 50px;
    height: 50px;
    pointer-events: none;
    transition: opacity 0.5s, border-color 0.5s;
    transition-timing-function: var(--ease_out_quint);
    will-change: opacity;
    /* background-color: var(--theme_color); */
    border-radius: 50px;
    overflow: hidden;
    border: solid 3px;
    border-color: var(--theme_color);
}

.back-to-top > * {
    width: 100%;
    height: 100%;
    font-size: 20px;
    color: var(--theme_color);
    transition: color 0.5s;
}

.back-to-top.active {
    opacity: 100%;
    pointer-events: all;
}
.back-to-top > *:active > *,
body.hasHover .back-to-top > *:hover > * {
    animation: arrow-anim-up 1s;
}

@media (max-width: 600px) {
    .back-to-top {
        width: 40px;
        height: 40px;
        border-width: 2px;
    }
    .back-to-top > * {
        font-size: 16px;
    }
}






/* ------------------------------------------------------------- */
/* -------------------- PROJECT SECTION ------------------------ */
/* ------------------------------------------------------------- */

@keyframes project-bg2-in {
    0% {transform: translateY(-100%);}
    100% {transform: translateY(0%)}
}

@keyframes project-bg2-out {
    0% {transform: translateY(0%)}
    100% {transform: translateY(-100%)}
}

.project {
    color: white;
    height: 100vh;
    overflow: clip;
    width: 100%;
    border-top: solid 2px;
    border-bottom: solid 10px;
    border-color: inherit;
    position:relative;
    scrollbar-width: none;
    -ms-overflow-style: none;
    overflow-y: clip;
}
.project.active {
    height: var(--vh);
    /* overflow-y: scroll; */
}







/* --------------------------------------------------- */
/* -------------------- COVER ------------------------ */
/* --------------------------------------------------- */

@keyframes cover-out {
    0% {height: 100%; padding: ''}
    100% {height: 80px; padding: 10px; top: var(--top_bar_height);}
}

@keyframes cover-in {
    0% {height: 80px; padding: 10px; top: var(--top_bar_height);}
    100% {height: 100%; padding: ''}
}

@keyframes cover-out {
    0% {height: 100%; top: 0px;}
    100% {height: 60px; top: var(--top_bar_height);}
}

@keyframes cover-in {
    0% {height: 60px; top: var(--top_bar_height);}
    100% {height: 100%; top: 0px;}
}



.cover {
    width: 100%;
    height: 100vh;
    background-position: center;
    background-size: cover;
    margin: 0px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    justify-content: flex-end;
    position:absolute;
    z-index: 2;
    animation: cover-in 1s var(--ease_out_quint) both;
    /* animation-delay: 0.4s; */
    /* animation: cover_anim 1s linear both; */
    /* animation-direction: reverse; */
}

.project.active .cover {
    height: var(--vh);
}

.cover.active {
    animation: cover-out 1s var(--ease_out_quint) forwards;
    pointer-events: none;
}
/* .cover.active {
    animation: cover_anim_rev 1s linear both;
} */

/* .cover > * {
    animation: cover_contents_anim 1s linear both;
} */

/* .cover.active > * {
    animation: cover_contents_anim_rev 1s linear both;
} */


/* .cover_anim {
    animation: cover_anim 1s linear both; 
}

.cover_anim_rev {
    animation: cover_anim_rev 1s linear both;
}

.cover_contents_anim {
    animation: cover_contents_anim 1s linear both; 
}

.cover_contents_anim_rev {
    animation: cover_contents_anim_rev 1s linear both;
}

.anim_done {
    animation-duration: 0s;
} */

/* ---------- COVER VID ----------- */

.cover > .cover-vid {
    position: absolute;
    top: 0;
    left: 1px;
    bottom: 0;
    width: calc(100% - 2px);
    height: calc(100% + 10px); 
    overflow: hidden;
}

.cover > .cover-vid::after {
    z-index: 1;
}

.cover > .cover-vid::before {
    content:'';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0px;
    left: 0px;
    opacity: 0%;
    background-color: inherit;
    transition: opacity 1s;
    z-index:1;
}

.cover:active > .cover-vid::before {
    transition: opacity 0s;
    opacity: 40%;
}

.cover.active > .cover-vid::before {
    transition: opacity 1s;
    opacity: 50%;
}

.project-loader {
    position:sticky;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100%;
    background-color: rgb(10,10,10);
    animation: project-bg2-in 1s var(--ease_out_quint) both;
    z-index:1;
}
.project-loader.active {
    animation: project-bg2-out 1s var(--ease_out_quint) both;
    /* animation-delay: 0.4s; */
}


/* ---------- COVER ELEMENTS ----------- */

@keyframes header-fade-in {
    0% {opacity: 0%;}
    100% {opacity: 100%;}
}

@keyframes header-fade-out {
    0% {opacity: 100%;}
    100% {opacity: 0%;}
}

@keyframes arrow-anim {
    0% {transform: translateY(0px) rotate(0deg) scale(100%);}
    25% {transform: translateY(15px) rotate(0deg) scale(0%);}
    25.001% {transform: translateY(-15px) rotate(0deg) scale(0%);}
    50% {transform: translateY(0px) rotate(0deg) scale(100%);}
    100% {transform: translateY(0px) rotate(0deg) scale(100%);}
}

.cover :not(.cover-hover) {
    pointer-events: none;
}

.cover .title {
    width: 90%;
    z-index: 1;
    opacity: 100%;
    transition: opacity 0.4s;
    padding: min(30vw, 20vh)  min(10vw, 10vh);
}

.cover .title h1 {
    text-align: left;
    font-family: "Courier New", Courier, "Lucida Sans Typewriter", "Lucida Typewriter", monospace;
    font-family: var(--font_mono);
    text-shadow: 0px 0px 10px black;
    font-size: var(--cover_size);
    font-weight: 400;
    color: white;
    width: fit-content;
    margin: 0px;
    align-self: flex-end;
    line-height: calc(30px + 1vw);
    z-index: 0;
}
.project.active .cover h1 {
    animation: header-fade-out 0.4s var(--ease_out_quint) forwards;
}

.cover .title h3 {
    text-align: left;
    font-family: "Courier New", Courier, "Lucida Sans Typewriter", "Lucida Typewriter", monospace;
    font-family: var(--font_mono);
    font-size: var(--footer_size);
    margin: 14px;
    margin-left: 20px;
    padding-left: 20px;
    border-left: solid 18px;
    text-shadow: 2px 2px 5px black;
    transition: border 0.7s, padding-left 0.7s, color 0.7s;
    /* animation: header-fade-in 0.4s var(--ease_out_quint) forwards; */
}
.project.active .cover .title {
    /* border: none;
    padding-left: 0px;
    color: white; */
    opacity: 0%;
    transition-delay: 0s;
}
.no-display {
    display: none;
}


.cover .expand {
    text-align: center;
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    bottom: 40px;
    left: 0px;
    opacity: 100%;
    transition: opacity 1s;
}

.cover.active .expand {
    opacity: 0%;
}

.cover .expand .arrow-down {
    vertical-align: center;
    height: 18px;
    font-size: 18px;
    text-align: center; 
}

.cover .expand .arrow-down > i {
    position: relative;
    top:-1px;
    width: 18px;
    animation: arrow-anim 2s ease infinite;
    animation-fill-mode: loop;
}








/* ---------------------------------------------------------- */
/* -------------------- PROJECT BODY ------------------------ */
/* ---------------------------------------------------------- */




section {
    min-height: 400px;
}

section h4 {
    font-family: var(--font_header);
    font-size: var(--header_size_small);
    white-space: nowrap;
    font-weight: 400;
    width: 100%;
    margin: 0;
    display: flex;
    align-items: center;
    margin-left: 10px;
    margin-right: 20px;
}
section h4::after {
    content: '';
    width: 100%;
    height: min(calc(30px + 1vw), 25px);
    display: inline-block;
    border-bottom: solid 1px;
    margin:10px;
    margin-left: 20px;
    margin-right: 20px;
}

section p {
    /* border-top: dashed 1px ; */
    font-family: var(--font_text);
    font-size: var(--body_size);
    line-height: 140%;
    font-weight: 400;
    margin: 30px;
    margin-top: 0px;
    padding:5px;
    padding-top:20px;
    color: lightgray;
}

.project-body {
    padding: 10px;
    margin: auto;
    color: white;
    margin-top: calc(var(--top_bar_height) + 60px);
    /* padding-bottom: 200px; */
    position: absolute;
    top: 0px;
    width: 100%;
    min-height: 100%;
    display: flex;
    flex-direction: row;
    gap:40px;
}

.project-left-panel {
    /* height: 100%; */
    min-width: 280px;
    max-width: 320px;
    width: 100%;
    padding: 20px;
    padding-top: 20px;
}

@media (max-width: 1000px) {
    .project-body {
        flex-direction: column;
    }
    .project-left-panel {
        max-width: 800px;
    }
}



.project-left-panel > .sticky {
    top: calc(var(--top_bar_height) + 70px);
    margin-top: 75px;
}

.project-left-panel h4 {
    font-family: var(--font_header);
    font-size: var(--header_size_small);
    font-weight: 400;
    width: 100%;
    margin: 0;
    display: flex;
    align-items: center;
}

.project-left-panel h4::after {
    content: '';
    width: 100%;
    height: 30px;
    display: inline-block;
    border-bottom: none;
    margin:10px;
    margin-left: 30px;
    margin-right: 0px;
}

.project-left-panel p {
    font-family: var(--font_text);
    font-size: var(--body_size);
    font-weight: 200;
    line-height: 160%;
    max-width: 700px;
    margin: 0; 
    /* margin-left: 20px; */
}

.back-to-browse {
    z-index: 1;
    /* top: calc(var(--header_size) + 80px); */
    /* right: 30px; */
    font-family: var(--font_mono);
    font-size: var(--body_size);
}

.back-to-browse:nth-child(1){
    position: absolute;
    top: 10px;
    right: 28px;
}

.back-to-browse:nth-child(2){
    position: absolute;
    bottom: 10px;
    right: 64px;
}



.project-right-panel {
    padding-top: 40px;
    
}

.project-main-panel {
    padding-top: 100px;
    flex-basis: 100%;
    padding-left: 20px;
    padding-right: 20px;
    padding-bottom: 100px;
}

@media (max-width: 1000px) {
    .project-main-panel {
        width: 100%;
        padding-top:20px;
    }
}

.project-main-panel > * {
    margin-left: auto;
    margin-right: auto;
    margin-bottom:min(max(20vw, 100px), 200px);
    margin-bottom: 30px;
}







/* -------------------------------------------------------------- */
/* -------------------- PROJECT CONTENTS ------------------------ */
/* -------------------------------------------------------------- */

.project-body > * {
    margin-left: auto;
    margin-right: auto;
}


/* -------- ABSTRACT --------*/

.abstract {
    margin-left: max(calc((100vw - 1300px)/2), 20px);
    margin-right: max(calc((100vw - 1300px)/2), 20px);
    max-width: 700px;
}

.abstract h4 {
    font-family: var(--font_header);
    font-size: var(--header_size);
    width: 100%;
    margin: 0;
    display: flex;
    align-items: center;
}

.abstract h4::after {
    content: '';
    width: 100%;
    height: 30px;
    display: inline-block;
    border-bottom: solid 1px;
    margin:10px;
    margin-left: 30px;
    margin-right: 0px;
}

.abstract p {
    font-family: var(--font_text);
    max-width: 700px;
    margin: 0; 
    text-align: justify;
    text-justify: inter-word;
    font-size: var(--body_size);
    margin-left: 20px;
}

@media (max-width: 600px) {
    .abstract p {
        text-align: left;
        text-justify: inter-word;
    }
}


/* --------- SIDE TEXT ---------*/

.side-text {
    overflow: hidden;
    max-width: 500px;
    color: lightgray;
    margin-bottom: 50px;
}
@media (min-width: 1000px) {
    .side-text {
        margin-top: 50px;
    }
}

.side-text .bg {
    position:absolute;
    width: 100%;
    height: 100%;
    transform: translate(0px, 0px);
    z-index: -1;
    overflow: hidden;
    border: solid 0px;
}


/* --------- TEXT AREA ---------*/

.text-area {
    max-width: 1300px;
    color: lightgray;
}

.text-area .bg {
    position:absolute;
    width: 100%;
    height: 100%;
    transform: translate(0px, 0px);
    z-index: -1;
    overflow: hidden;
    border: solid 0px;
}



/* ----- IMG CAPTION GALLERY -----*/

.img-caption-gallery {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
}

.img-with-caption {
    height: 100%;
    max-width:500px;
    margin:auto;
    position:relative;
    overflow: hidden;
}
.img-caption-gallery .img-with-caption {
    flex: 1 0 100%;
    padding: 10px;
    padding-bottom: 50px
}
@media (min-width: 850px) {
    .img-caption-gallery .img-with-caption {
        flex: 1 0 0px;
        margin: 10px;
    }
}

.img-with-caption h5 {
    font-family: var(--font_header);
    font-size: var(--header_size);
    font-weight: 800;
    line-height: 1.4;
    margin: 0px;
    margin-top: 0px;
    padding: 10px;
    padding-top: 20px;
    text-shadow: 2px 2px 8px black;
    transform: translate(0px, -78px);
    pointer-events: none;
    position: absolute;
    width: calc(100%);
    background-image: linear-gradient(rgba(0,0,0,0), rgba(0,0,0,0.5));
}

.img-with-caption p {
    overflow: hidden;
    font-family: var(--font_text);
    font-size: var(--body_size);
    font-weight: 400;
    margin: 0px;
    margin-top: 0px;
    padding:5px;
    padding-top: 20px;
    color: lightgray;
    max-width:500px;
}



/* -------- GRID GALLERY --------*/

.grid-gallery {
    overflow: hidden;
    display:grid;
    grid-template-columns:[col1] calc(50% - 2px) [col2] calc(50% - 2px);
    margin:none;
    column-gap: 3px;
    row-gap: 3px;
    justify-items: center;
    justify-content: center;
    border-top: solid 1px;
    border-bottom: solid 1px;
    padding-top:20px;
    padding-bottom:20px;
}

.grid-gallery > .span2:nth-child(1) {
    grid-column: 1 / span 2; 
    grid-row: 1 / span 2;
}

.grid-gallery > .span2:nth-child(2) {
    grid-column: 1 / span 2; 
    grid-row: 3 / span 2;
}

@media (min-width: 750px) {
    .grid-gallery {
        grid-template-columns:[col1] calc(33.3333% - 2px) [col2] calc(33.3333% - 2px) [col3] calc(33.3333% - 2px);
    }
    .grid-gallery > .span2:nth-child(1) {
        grid-column: 1 / span 2; 
        grid-row: 1 / span 2;
    }
    
    .grid-gallery > .span2:nth-child(2) {
        grid-column: 2 / span 2; 
        grid-row: 3 / span 2;
    }
}

@media (min-width: 1300px) {
    .grid-gallery {
        grid-template-columns: [col1] calc(25% - 2px) [col2] calc(25% - 2px) [col3] calc(25% - 2px) [col4] calc(25% - 2px);
    }
    .grid-gallery > .span2:nth-child(1) {
        grid-column: 1 / span 2; 
        grid-row: 1 / span 2;
    }
    
    .grid-gallery > .span2:nth-child(2) {
        grid-column: 3 / span 2; 
        grid-row: 1 / span 2;
    }
}

.grid-gallery > .img-container {
    border: none;
}


/* -------- CREDITS --------*/

.press {
    font-family: var(--font_text);
}

.credits {
    font-family: var(--font_text);

}





/* --------------------------------------------------------------------- */
/* -------------------- SECTION SPECIFIC STYLES ------------------------ */
/* --------------------------------------------------------------------- */

#section-0.active .terminal {
    opacity: 0%;
    transition-delay: 0s;
}

#section-0.active #home-cover-wrap::after {
    opacity: 0% !important;
    transition-delay: 0s;
}

.section-0-colors {
    color: rgb(253, 93, 0); 
    border-color: rgb(253, 93, 0);
}

.section-surreal-colors {
    color: rgb(253, 93, 0); 
    border-color: rgb(253, 93, 0);
}

.section-surreal-bg {
    background-color: rgba(253, 93, 0, 1);
}

.section-milan-colors {
    color: rgb(255, 217, 135); 
    border-color: rgb(255, 217, 135);
}

.section-milan-bg {
    background-color: rgba(255, 217, 135, 1);
}

.section-copycat-killer-colors {
    color: rgb(0, 255, 231); 
    border-color: rgb(0, 255, 231);
}

.section-copycat-killer-bg {
    background-color: rgba(0, 255, 231, 1);
}

.section-jewel-colors {
    color: rgb(255, 114, 231);
    border-color: rgb(255, 114, 231);
}

.section-jewel-bg {
    background-color: rgba(255, 114, 231, 1);
}

.section-acey-deucey-colors {
    color: rgb(255, 91, 91); 
    border-color: rgb(255, 91, 91);
}

.section-acey-deucey-bg {
    background-color: rgba(255, 91, 91, 1);
}

.section-personal-colors {
    color: rgb(180, 180, 180); 
    border-color: rgb(180, 180, 180);
}

.section-personal-bg {
    background-color: rgba(180, 180, 180, 1);
}