/* Reset CSS */


@font-face {
  font-family:"Archive-Mono";
  src: url("/assets/fonts/ArchiveGrotesk-Mono400.otf");
  font-display: swap;
}

html, body {
  background: white;
  z-index: 1;

  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;

  font-family:"Archive-Mono";
}

a, button, input, label {
  cursor: pointer
}

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

ul, li {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Your CSS */


.container {
  display: flex;
  width: 100%;
  overflow-x: auto; 
  transition: all 0.5s ease-in-out;
}

.section {
  flex: 1; 
  height: 100vh; 
  overflow-y: auto; 
  scroll-behavior: smooth; 
  transition: flex 0.5s ease-in-out;
  position: relative;
}

.section.expanded {
  flex: 9; /* Expand to 90% of the container width */
}

.section.collapsed {
  flex: 0.5; /* Shrink to 5% of the container width */
}

.section {
  scrollbar-width: none; 
  -ms-overflow-style: none; 
}

.section::-webkit-scrollbar {
  display: none; 
}

.text, .überschrift, .pictures, .artworks {
  transform: translateY(100vh); /* Start completely off-screen at the bottom */
  transition: transform 1s ease; /* Smooth slide-up animation */
}

/* Final state after animation */
.intro-animated .text,
.intro-animated .überschrift,
.intro-animated .artworks,
.intro-animated .pictures {
  transform: translateY(0); /* Slide to their final position */
}

.text {
  transition-delay: 0.2s;
}
.überschrift {
  transition-delay: 0.4s;
}
.artworks {
  transition-delay: 0.8s;
}

.artworks button:hover {
  transition-delay: 0.8s;
}

.artworks a, .blocktop a{
  color: white;
  text-decoration: none;
}

.pictures {
  transition-delay: 0.6s;
}

.section h1 {
  position: sticky;
  top: 2vw; 
  left: 50%; 
  transform: translateX(0%) rotate(0deg); 
  font-size: 1.3vw; 
  font-weight: normal;
  margin: 0;
  padding: 0px 0;
  z-index: 10; 
  transition: transform 0.5s ease-in-out, opacity 0.5s ease-in-out, top 0.5s ease-in-out; 
  opacity: 1;
}

.section.interacted.collapsed h1 {
  transform: translate(-50%, -50%) rotate(-90deg); 
  margin-left: 1.5vw;
  top: 50%; 
  left: 50%; 
  transform-origin: center center; 
}

.section.collapsed .text {
  display: none;
}

.section.expanded .text {
  display: block;
}

.section.collapsed .überschrift {
  display: none;
}

.section.expanded .überschrift{
  display: inline-block;
}

.section.collapsed .pictures {
  display: none;
}

.section.expanded .pictures {
  display: block;
}

.section.collapsed .artworks {
  display: none;
}

.section.expanded .artworks {
  display: block;
}

#works {
  background: linear-gradient(to right, #ff90b5, transparent);
  z-index: 2;
}

#about {
  background: linear-gradient(to right, #05e7c9, transparent);
  z-index: 2;
}

#impressum {
  background: linear-gradient(to right, #fff46c, transparent);
  z-index: 2;
}

.content {
  height: 200%; /* Content larger than the viewport height to enable scrolling */
}

h1 {
  text-align: center;
  margin-top: 1.5vw;
} 

.text {
  position: relative;
  font-size: 1.3vw;
  color: white;
  padding-left: 0vw; /* Adds space inside the text */
  line-height: 1.1;
}

p {
  padding-left: 0.5vw;
}

.text::before {
  content: ''; /* Required for a pseudo-element */
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: black;
  z-index: -1; /* Put the background behind the text */
}

.überschrift {
  position: relative; 
  margin-top: 2.5vw;
  font-size: 1.3vw;
  color: black;
  background-color: white;
  border-radius: 1.5vw;
  padding-right: 1vw;
  padding-left: 1vw;
  padding-top: 0.5vw;
  padding-bottom: 0.5vw;
  display: inline-block;
  line-height: 1.1;
}

.überschrift::before {
  content: ''; /* Required for a pseudo-element */
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -1; /* Put the background behind the text */
}

.artworks-container {
  margin-top: 2.5vw;
}

.artworks {
  position: relative; 
  font-size: 1.3vw;
  font-family:"Archive-Mono";
  color: white;
  background-color: black;
  border-radius: 1.5vw;
  padding-right: 1vw;
  padding-left: 1vw;
  padding-top: 0.5vw;
  padding-bottom: 0.5vw;
  display: block;
  border: none;
}

.pictures {
  position: relative;
  width: 100%;
  margin-bottom: 0;
}

.blocktop {
  display: flex; 
  position: fixed; 
  top: 0;
  left: 0;
  z-index: 3;
  align-items: center; 
  height: 2vw;
  font-size: 1.3;
  width: 100%;
  justify-content: space-between;
  text-align: left; 
  background-color: black;
  color: white;
}


.blocktop-buttons {
  display: flex;
  justify-content: flex-end; 
  gap: 3vw; 
  margin-right: 0.5vw;
}

.btn {
  color: white;
  border: none;
  font-size: 1.3vw;
  cursor: pointer;
  background-color: black;
  font-family:"Archive-Mono";
}

.btnleft {
  color: white;
  border: none;
  font-size: 1.3vw;
  cursor: pointer;
  background-color: black;
  font-family:"Archive-Mono";
  margin-left: 0.5vw;
}

.block.block-type-gallery ul {
  display: flex !important;
  width: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
}

.block.block-type-gallery img {
  scroll-snap-align: start;
  width: auto;
  height: 30vw;
  object-fit: cover;
  object-position: 50% 50%;
  min-width: 50vw;
  max-width: 100vw;
}

.block.block-type-video .video {
  position: relative;
  height: auto;
  width: 100%; 
  margin: 0 ;
  padding: 0; 
  background: transparent;
  display: flex; 
  align-items: center;
  justify-content: center;
}

.block.block-type-video .video iframe {
  height: auto;
  width: 100%; 
  aspect-ratio: 16/9;
  border: none; 
  background: transparent; 
  display: block; 
}


.section.expanded .block-type-gallery img {
  height: 50vw;
}

.block.block-type-gallery ul {
  scrollbar-width: none; 
  -ms-overflow-style: none; 
}

.block.block-type-gallery ul::-webkit-scrollbar {
  display: none; 
}



/* Media Queries */


@media screen and (max-width: 768px) {
  .section h1 {
    font-size: 3vw; /* Make headers larger on mobile */
    transition: transform 0.5s ease-in-out;
    text-align: center;
    position: sticky;
    top: 5vw;
  }

  .section.collapsed h1 {
    transform: rotate(-90deg);
    transform-origin: left center; /* Rotate around the left edge */
    position: absolute;
    top: 50%;
    margin-left: 1.5%; /* Push the title slightly from the left edge */
    white-space: nowrap;
    overflow: hidden;
  }

  .section {
    flex: 0.05; /* Default state: collapsed */
    transition: flex 0.5s ease-in-out;
  }

  .text {
    position: relative;
    font-size: 3vw;
    color: white;
    padding-left: 0vw; /* Adds space inside the text */
    line-height: 1.1;
  }



  .btn {
    color: white;
    border: none;
    font-size: 3vw;
    cursor: pointer;
    background-color: black;
    font-family:"Archive-Mono";
  }

  .artworks {
    position: relative; 
    font-size: 3vw;
    font-family:"Archive-Mono";
    color: white;
    background-color: black;
    border-radius: 3vw;
    padding-right: 1.5vw;
    padding-left: 1.5vw;
    padding-top: 1vw;
    padding-bottom: 1vw;
    display: block;
    border: none;
  }

  .btnleft {
    color: white;
    border: none;
    font-size: 3vw;
    cursor: pointer;
    background-color: black;
    font-family:"Archive-Mono";
    margin-left: 0.5vw;
  }

  .blocktop {
    display: flex; 
    position: fixed; 
    top: 0;
    left: 0;
    z-index: 3;
    align-items: center; 
    height: 5vw;
    font-size: 1.3;
    width: 100%;
    justify-content: space-between;
    text-align: left; 
    background-color: black;
    color: white;
  }

  .überschrift {
    position: relative; 
    margin-top: 5vw;
    font-size: 3vw;
    color: black;
    background-color: white;
    border-radius: 3vw;
    padding-right: 1.5vw;
    padding-left: 1.5vw;
    padding-top: 1vw;
    padding-bottom: 1vw;
    display: inline-block;
    line-height: 1.1;
  }

  #works {
    flex: 0.9; /* Works section expanded */
  }

  .section.expanded {
    flex: 0.8 !important; /* Ensures expanded section stays large */
  }

  .section.collapsed {
    flex: 0.1 !important; /* Collapsed sections stay small */
  }
}


