/* Import Typefaces */

@font-face {
  font-family: "Modern Gothic";
  src: url(../fonts/modern_gothic/ModernGothic-Regular.woff);
  font-weight: 400;
}

@font-face {
  font-family: "Society";
  src: url("../fonts/society/Society-Book.woff2");
  font-weight: 450;
}

/* Basic Styles */

:root {
  --dark-color: #2e2e2e;
  --medium-color: #c7c7c7;
  --light-color: #fcfcfc;

  --horizontal-padding-s: 0 5px;
  --media-max-height: 80vh;
  --video-max-height: calc( var( --media-max-height) - 60px );
}

* {
  font-family: "Modern Gothic";
  font-weight: 400;
  font-size: 14px;
  line-height: 15px;
  color: var(--dark-color);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.light,
.light * {
/*  color: var(--light-color);*/
  font-family: 'Society', serif;
  font-weight: 450;
}

.light * a:hover {
  color: var(--medium-color);
}

*::selection {
  color: var(--medium-color);
  background-color: var(--dark-color);
}

*::-webkit-scrollbar {
  display: none;
}

html {
  background-color: var(--light-color);
}

h1 {
  font-size: 2.4em;
  line-height: 1.12em;
}

#title {
  position: fixed;
  right: 10px;
  top: 6px;
  z-index: 1000;

  cursor: pointer;
}

article {
  display: flex;
  flex-direction: column;
  align-items: center;

  width: 100%;
  margin: auto;
}

.project-container {
  margin: 6px 0 6px 0;
  padding: var(--horizontal-padding-s);
}

article .project-wrapper {
  display: flex;
  flex-direction: column;
  justify-content: space-between;

  width: 100%;
}

.project-wrapper .project-header {
  display: flex;
  white-space: nowrap;
  overflow-x: scroll;
  overflow-y: hidden;

/*  pointer-events: none;*/
}

.project-header .project-title,
.project-header .project-media-thumb {
  padding: var(--horizontal-padding-s);
  width: auto;

  pointer-events: all;
  cursor: pointer;
}

article.active .project-content {
  height: var(--media-max-height);
  padding-top: 9px;
  padding-bottom: 9px;
  opacity: 1;

}

article .project-content {
  overflow: hidden;
  display: none;
  height: 0vh;
  padding-top: 0px;
  opacity: 0;

  transition: height 0.8s ease,
              padding-top 0.8s ease,
              opacity 0.6s ease;
}

article.clicked .project-content {
  display: flex;
}

article .project-meta {
  width: 16.667%;
  padding: var(--horizontal-padding-s);
}

.project-meta ul {
  margin-top: 14px;
}

article .project-paragraph {
  text-align: left;
  width: 25%;

  height: 100%;
}

article.active .project-paragraph,
article.active .project-meta {
  display: block;
  overflow-y: scroll;
  position: relative;

  height: 100%;
}

article.active .project-paragraph,
article.active .project-meta, 
.project-wrapper .project-header {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

article.active .project-paragraph::-webkit-scrollbar,
article.active .project-meta::-webkit-scrollbar,
.project-wrapper .project-header::-webkit-scrollbar {
  display: none;
}

article.active .project-paragraph:hover {
  cursor: ns-resize;
}

/*.project-paragraph::after,
.project-meta::after {
  content: "";
  width: 100%;
  height: 10px;
  position: sticky;
  bottom: 0;
  display: block;

  pointer-events: none;
  background-image: linear-gradient( rgba( 252, 252, 252, 0 ), rgba( 252, 252, 252, 255 ) );
}
*/
.flex-content {
  padding: var(--horizontal-padding-s);
  margin-bottom: 20px;
}

.flex-content_media + p {
  margin-top: 3px;
}

article .project-media-thumb {
  display: flex;
  align-items: center;
}

article .image-wrapper {
  display: block;
}

article.active .image-wrapper:hover {
  cursor: ew-resize;
}

article.active .image-wrapper:first-child:hover {
  cursor: e-resize;
}

article.active .image-wrapper:last-child:hover {
  cursor: w-resize;
}

article .image-wrapper img {
  height: 30px;
  width: auto;
  pointer-events: none;
}

article .project-media-body {
  width: 58.33%;
  padding: var(--horizontal-padding-s);

  transition: width 0.5s ease;
}

#about-container.visible + .project-container article .project-media-body {
  width: 25%;

  transition: width 0.5s ease;
}

.media {
  height: 100%;
}

.media:not(.active-media) {
  display: none;
} 

article .project-media-body .img-full {
  display: block;
  /*pointer-events: none;*/

  width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: top left;
}

article.active .project-media-body .media.active-media {
  display: block;
  height: 100%;
/*  height: fit-content;*/
  max-height: 100%;
  position: relative;
}

.flex-content .flex-content_media {
  max-height: 100%;
  position: relative;
}

.media-bild_caption {
  position: absolute;
  bottom: 2px;
  left: 4px;
  font-size: 10px;

  color: rgb( 255, 255, 255 );
  mix-blend-mode: difference;
} 

.media-bild_caption:not(:empty)::before {
  content: "© ";
}

video-wrap, .video-wrap {
  max-width: calc( var( --video-max-height, 100vh ) * var( --ratio ) );
  align-items: center;
}

.single-video__trigger {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: all;
  z-index: 100;
}

video-controls {
  flex-direction: column-reverse;
  margin-top: 9px;
  width: 100%;
}

video-controls video-buttons {
  display: block;
  margin-top: 5px; 
}

video-buttons * {
  display: inline-block;
  width: fit-content;
  margin-right: 10px;
}

video-display[data-info="currentTime"] {
  margin-right: 5px;
} 

video-display[data-info="remainingTime"] {
  margin-left: 5px;
}

video-progress-bar {
  height: 12px;
}

video-wrap[data-is-fullscreen="true"] * {
  color: var(--light-color);
}

video-wrap[data-is-fullscreen="true"] video-viewer {
  max-width: calc( 100vh * var( --ratio ) );
} 

#about-container {
  transform: translateX(100%);
  position: fixed;
  top: 0;
  right: 0;
  width: 33.3333%;
  height: 100%;
  padding: 55px 0 0 0;
  overflow-y: scroll;
  background-color: var(--light-color);

  transition: transform 0.5s ease;
}

#about-container.visible {
  transform: translateX(0%);

  transition: transform 0.5s ease;
}

#about-container .paragraphs-wrapper {
  display: flex;
  padding: var(--horizontal-padding-s);
}

#about-container .paragraphs-wrapper:not(:first-child) {
    margin-top: 26px;
}

#about-container .paragraphs-wrapper div,
#about-container .paragraphs-wrapper p,
#about-container .paragraphs-wrapper ul {
  min-width: 50%;
  display: inline;
  padding-right: 5px;
}

#about-container .paragraphs-wrapper p:not(:first-child) {
  padding-left: 5px;
}

.paragraphs-wrapper ul li.inline {
  display: inline-block;
  margin-right: 15px;
}

.paragraphs-wrapper span.light{ 
  margin-left: 5px;
}

.paragraphs-wrapper ul li.inline:not(:first-child)::before {
  content: "→ ";
} 

li a {
  text-decoration: none;
/*  white-space: nowrap;*/
}

li a:before {
  font-family: 'Modern Gothic';
  content: '↗ ';
}

li a:hover {
  color: var(--medium-color);
}

#imprint-container {
  padding: var(--horizontal-padding-s);
  margin-top: 55px;
  display: flex;
  width: 75%;
}

#imprint-container .paragraphs-wrapper {
  margin-top: 26px;
  width: 25%;
  padding: var(--horizontal-padding-s);
}

#imprint-container a {
  text-decoration: none;
}

#imprint-container a::before {
  font-family: 'Modern Gothic';
  content: '↗ ';
}

#imprint-container a:hover {
  color: var(--medium-color);
}

#title a {
  text-decoration: none;
}

@media(max-width: 800px) {

  :root {
    --media-max-height: auto;
  }

  html, body {
    position: relative;
    overflow-x: hidden;
    height: 100%;
  }

  h1 {
    font-size: 3.6em;
    line-height: 1.1em;
  }

  #title {
    position: absolute;

    right: unset;
    top: unset;
    left: 5px;
  }

  .project-wrapper .project-header {
    pointer-events: all;
  }

  .project-container {
    margin: 106px 0 10px 0;
    padding: unset;

    transition: margin 0.5s ease;
  }

  article .project-content {
    flex-direction: column;


    transition: height 1.6s ease,
                padding-top 0.8s ease,
                opacity 0.6s ease;
  }

  article.active .project-meta {
    width: 100%;
    order: 2;
    display: flex;
    margin-bottom: 25px;
  }

  article.active .project-meta :first-child {
    min-width: 15%;
  }

  article.active .project-meta :not(:first-child) {
    min-width: 42.5%;
  }

  article .project-media-body {
    width: 100%;
    margin-bottom: 25px;
    order: 1;
  }

  article .project-paragraph {
    width: 75%;
    order: 3;
  }

  #about-container {
    width: 100%;
    position: absolute;
    overflow-y: hidden;
    height: unset;
    padding: 106px 5px 20px 5px;
  }

  #about-container.visible + .project-container {
    margin-top: var( --about-height, 0px );

    transition: margin 0.5s ease-in-out;
  }
  
  #about-container.visible + .project-container article .project-media-body {
    width: 100%;
  }

  article .image-wrapper img {
    height: 47px;
  }

  video-buttons * {
    padding-bottom: 2px;
  }

  #imprint-container {
    width: 100%;
    flex-direction: column;
  }

  #imprint-container .paragraphs-wrapper {
    width: 100%;
  }

}

@media(max-width: 354px) {

  h1 {
    font-size: 3em;
    line-height: 1.1em;
  }

  article .image-wrapper img {
    height: 40px;
  }

} 