/*ROOT*/
:root {
    background-color: black;
    color: var(--white);
    font-family: 'Times New Roman', Times, serif;
    font-size: 15px;
    font-weight: 400;
    --padding: 5px;
    --white: rgb(230, 230, 230);
    interpolate-size: allow-keywords;
}

* {
    box-sizing: border-box;
    margin: 0;
}

::selection {
    background-color: var(--white);
    color: black;
}

html {
    scroll-behavior: smooth;
    line-height: 1.2;
    vertical-align: baseline;
}

header, .project-title {
    mix-blend-mode: exclusion;
}

body {
    padding: 0;
    margin: 20px calc(var(--padding)*2);
    overflow-x: hidden;
    scroll-behavior: smooth;
    letter-spacing: .2px;
    align-content: baseline;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    padding: 10px;
    width: 100%;
}

nav {
    width: 100%;
    display: grid;
    grid-template-columns: 6.23fr 3.1fr;
    gap: var(--padding);
}

nav span a:not(:last-child)::after {
    content: ",";
}

.project:first-child {
    margin-top: calc(var(--padding)*15);
}

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

main {
    min-height: calc(100vh - 185px);
}

details {
    cursor: pointer;
    overflow: hidden;
}

details::details-content {
    block-size: 0;
    transition:
        block-size 600ms ease,
        content-visibility 600ms ease;
    transition-behavior: allow-discrete;
}

details[open]::details-content {
    block-size: auto;
}

details p {
    padding-block: 1rem;
}

summary {
    position: relative;
}

summary:hover {
    color: grey;
}

summary::marker {
    content: none;
}

summary {
  list-style: none;
  display: list-item;
}

summary::before,
[open] summary::after {
    height: 0;
    position: absolute;
    left: 30px;
}

summary::before {
    content: '+';
    margin-top: 1px;
}

[open] summary::after {
    content: '–';
}

[open] summary::before {
    content:''
}

.filter {
    display: flex;
    flex-direction: column;
    list-style: none;
    margin-bottom: 0;
    padding-left: 0;
}

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

.slide figcaption a {
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 0.7px;
}

img, video {
    width: 100%;
    height: auto;
}

.project {
    gap: var(--padding);
    margin-top: calc(var(--padding)*10);
}

.info-project {
    display: grid;
    grid-template-columns: 2fr 4fr 3fr;
    gap: var(--padding);
}

.pictures {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    padding-top: var(--padding);
    gap: var(--padding);
}

footer {
    margin-top: calc(var(--padding)*10);
    position: relative;
    width: 100%;
}

#scrollTop {
    opacity: 0;
    pointer-events: none; /* Prevents interaction when hidden */
    position: fixed;
    bottom: var(--padding);
    right: calc(var(--padding)*2);
    padding: 10px var(--padding);
    font-size: 24px;
    mix-blend-mode: exclusion;
    transition: opacity 0.3s ease-in-out;
}

#scrollTop.visible {
    opacity: 1;
    pointer-events: auto;
}

.title {
    padding-top: calc(var(--padding)*2);
}

th {
    text-align: left;
    font-weight: 200;
}

.bio {
    font-size: 24px;
    max-width: 850px;
    grid-column: span 8;
}

.bio p:not(:first-child),
.content p:not(:first-child) {
    text-indent: 50px;
}

ol {
    padding-inline-start: 70px;
}

.about {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    column-gap: 2px;
    margin-top: calc(var(--padding) * 15);
}

.cv {
    grid-column: span 4;
}

#list td,
#list th {
    padding-block: var(--padding);
    border-bottom: 1px solid grey;
}

table thead {
    color: grey;
}

#list td:not(:last-child) {
    padding-right: var(--padding);
}

#list th:not(:last-child) {
    padding-right: var(--padding);
}

#list tbody tr:hover {
    color: grey;
}

a:hover {
    color: grey;
}

#list {
    border-spacing: 0;
    width: 100%;
    display: grid;
    border-collapse: collapse;
    min-width: 100%;
    grid-template-columns: 2fr 4fr 2.5fr 0.5fr;
}

#list thead, #list tbody, #list tr {
    display: contents;
}

#list td:last-child,
#list th:last-child {
    text-align: right;
}

.image img {
    height: 100vh;
    object-fit: contain;
    margin-left: auto;
    margin-right: auto;
    width: 70%;
    display: block;
    padding-block: 60px;
}

.info-single {
    display: grid;
    grid-template-columns: 1fr 2fr 2fr;
    column-gap: 1vw;
    font-size: 18px;
}

.info-details {
    margin-left: 5.9vw;
    font-size: 15px;
}

table tr {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
}

table th {
    grid-column: span 2;
    padding-right: calc(var(--padding)*2);
}

table td {
    grid-column: span 6;
}

thead, tbody {
    vertical-align: top;
    align-content: baseline;
}

tr, th, td {
    padding: 0;
}

.slide {
  height: 100vh;
  display: flex;
  align-items: center;     
  justify-content: center;  
  flex-direction: column;   
}

.slide figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-height: 100%;
  width: 100%;
  margin: 0;
}

.slide img,
.slide video {
  height: 85vh;
  width: auto;
  max-width: 100%;    
  object-fit: contain;
}

.slide figcaption {
  margin-top: var(--padding);
  padding: 0;
  text-align: center;
  max-width: 750px;
}

.related {
    margin-top: calc(var(--padding)*10);
}

.related p {
    font-size: 18px;
    padding-bottom: var(--padding);
}

.related-projects {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    column-gap: var(--padding);
}

.close {
    position: fixed;
    top: 0;
    right: var(--padding);
    padding: 10px;
    mix-blend-mode: exclusion;
}

.active {
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* Overlay hidden by default */
.mobile-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #000000;
  color: var(--white);
  z-index: 9999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  box-sizing: border-box;
}

.mobile-overlay__message h2 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.mobile-overlay__message p {
  font-size: 1.2rem;
  line-height: 1.5;
}

@media (max-width: 1024px) {
  .mobile-overlay {
    display: flex;
  }

  body > *:not(.mobile-overlay) {
    display: none !important;
  }
}

@media (min-width: 1025px) {
  .mobile-overlay {
    display: none !important;
  }
}