:root {
  --cat-socialdesign: #fe4a49;
  --cat-illustration: #340068;
  --cat-poems: #248232;
  --cat-typography: #b1ede8;
  --cat-photography: #d87cac;
  --cat-miscellaneous: #ffbc45;
  --padding-desktop: 35px;
  --padding-mobile: 20px;
  --tab-size: 16px;
}

@font-face {
  font-family: "Karla";
  src: url(fonts/Karla-VariableFont_wght.ttf) format("truetype");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "SpaceMono";
  src: url(fonts/SpaceMono-Regular.ttf) format("truetype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

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

  cursor: default;
}

html, body {
  height: 100%;
  overflow: hidden;
}

body {
  background-color: white;
}

h2 {
  display: inline;
  font-size: 14px;
  font-weight: 300;
  color: white;
  background-color: black;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

a {
  color: black;
}

a:hover {
  cursor: pointer;
}

br {
  content: "";
  display: block;
  margin-bottom: 0.3em;
}

.layout {
  display: grid;
  grid-template-columns: 1fr 1fr 2fr;
  gap: 20px;
  height: 100vh;
  padding: var(--padding-desktop);
}

.main-info,
.project-info,
.project-img-panel {
  min-width: 0;


  display: flex;
  overflow: hidden;
  min-height: 0;
  
  font-family: "SpaceMono", sans-serif;
  font-weight: 300;
  font-size: 14px;
}

.tab-switch {
  display: none;
}

.panel-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow-y: scroll;
  scrollbar-width: none;
  -ms-overflow-style: none;

  gap: 16px;
}

/* SCROLLBAR */

.panel-content::-webkit-scrollbar {
  display: none; /* Chrome, Safari, neueres Edge */
}

.custom-scrollbar-container {
  display: flex;
  justify-content: flex-end;
  width: 35px;
}

.custom-scrollbar {
  width: 10px;
  flex-shrink: 0;
  position: relative;
  background-color: white;
  border: 1px solid black;
  border-radius: 10px;
}

.custom-scrollbar-thumb {
  position: absolute;
  left: 1px;
  width: calc(100% - 2px);

  background-color: black;
  border-radius: 10px;
}

.image-description {
  display: none;
}

.image-description.visible{
  display: flex;
}

ul {
  list-style: none;
}

ul li::before {
  content: "> ";
}

.project-list li > span:not(.category-dot),
.image-nav-list li span,
.project-img-panel .img-arrow {
  cursor: pointer;
}

/* Unterstreichung nur für Texte */
.project-list li > span:not(.category-dot):hover,
.image-nav-list li span:hover,
.project-img-panel .img-arrow:hover,
.project-img-panel .img-fullscreen-toggle:hover {
  text-decoration: underline;
  text-decoration-thickness: 1px;
}

.project-list li.active-project > span:not(.category-dot),
.image-nav-list li.active-image span {
  text-decoration: underline;
  text-decoration-thickness: 1px;
}

/* Kategoriepunkte */
.project-list .category-dot {
  cursor: default;
}

.category-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--dot-color);
}

.category-list {
  list-style: none;
  padding-left: 0;
}

.category-list li {
  padding-left: 16px;
  text-indent: -16px;
}

.category-list li::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--dot-color);
  margin-right: 8px;
  vertical-align: middle;
}

.project-img-panel {
  height: 100%;
  min-height: 0;
  display: flex;
  align-items: flex-start;
}

.project-img-panel .img-fullscreen-info {
  display: none;
  }

.img-panel-content {
  height: 100%;
  max-height: 100%;
  min-height: 0;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.img-panel-content img,
.img-panel-content video {
  width: 600px; 
  max-width: 100%; 
  height: 100%;
  max-height: 100%;
  object-fit: contain; 
  display: block;
  flex-shrink: 1; 
  min-width: 0;
  object-position: left;
}

.img-nav-container {
  flex-shrink: 0; 
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-self: flex-end;
}

.img-arrows {
  display: flex;
  flex-direction: column;
}

.img-arrow {
  cursor: pointer;
}

.img-fullscreen-toggle {
  display: none;
}





@media (max-width: 600px) {

  .img-panel-content {
    width: 100%;
  }

  .img-panel-content img,
  .img-panel-content video {
    flex: 1 1 0;
    height: auto;
    max-width: 100%;
    object-fit: contain;
  }

  .layout {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 1fr 1fr; 
  height: 100vh;
  padding: 0px;
  gap: 0px;
  }

  .main-info,
  .project-info {
    grid-row: 1;
    display: none;

    padding: var(--padding-mobile);
    padding-top: calc(2 * var(--padding-mobile) + var(--tab-size));
    border-bottom: 1px solid black;
  }

  .main-info.active-tab,
  .project-info.active-tab {
    display: flex;
  }

  .project-img-panel {
    grid-row: 2;
    padding: var(--padding-mobile);
  }

  /* TABS */
  .tab-switch {
    position: absolute;
    display: flex;
    gap: 12px;

    top: var(--padding-mobile);
    left: var(--padding-mobile);
    z-index: 10;
  }

  .tab-button {
    width: var(--tab-size);
    height: var(--tab-size);
    border: 1px solid black;
    background-color: white;
    cursor: pointer;
  }

  .tab-button-square {
    border-radius: 0;
  }

  .tab-button-round {
    border-radius: 25%;
  }

  .tab-button.active-tab-button {
    background-color: black;
  }

  /* Fullscreen */

  .img-fullscreen-toggle {
    display: block;
    cursor: pointer;
  }

  .project-img-panel.fullscreen-active {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 4; 
  background-color: white; 
  padding: var(--padding-mobile);
  }

  .project-img-panel.fullscreen-active .img-panel-content {
    padding-top: 25px;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  max-width: 100%;
  }

 .project-img-panel.fullscreen-active .img-panel-content img,
  .project-img-panel.fullscreen-active .img-panel-content video {
  display: block;
  flex: 1;
  min-height: 0;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  }
  .project-img-panel.fullscreen-active .img-fullscreen-info {
  align-self: flex-start;
  display: block;
  flex-shrink: 0;
  }
  .project-img-panel.fullscreen-active .img-fullscreen-info .img-fullscreen-number{
  text-decoration: underline;
  text-decoration-thickness: 1px;
  }

  .project-img-panel.fullscreen-active .img-nav-container {
  align-self: flex-end; 
  align-items: flex-end; 
  flex-shrink: 0;
  }
}

