body {
    font-family: "Newsreader", serif;
    line-height: 1.4;
    margin: 0;
    padding: 0;
    background-color: white;
    overflow-x: auto;
    overflow-y: auto;
}

html {
    scroll-behavior: smooth;
  }

#everything-container {
    display: flex;
    height: 100vh; /* Full height of the viewport */
    width: 100vw;
}
#show-info-button {
  display: none;
}

.newsreader-font {
    font-family: "Newsreader", serif;
    font-optical-sizing: auto;
    font-weight: 300;
    font-style: normal;
}

#left {
    width: 50vw; /* Left side takes up 50% of the viewport width */
    height: 100vh; /* Full height of the viewport */
    overflow-y: auto; /* Enables vertical scrolling for left side */
    flex-grow: 1;
    scrollbar-width: none;
    z-index: 800;
}

#doodle-container {
 position:fixed;
 pointer-events: none;
 z-index: 999;
}

svg {
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    z-index: 998;
  }

  line {
    stroke: #000000;
    stroke-width: 1;
    z-index: 999;
  }

#text-container {
    height: auto;
    width: 50vw;
    position: relative;
    scrollbar-width: none;
    font-size: 120%;
    overflow-y: auto;
}


p {
    width: fit-content;
}

h1 {
    font-weight: 350;
    font-size: 130%;
    padding-top: 0;
    margin-top: 1.5rem;
    line-height: 50%;
}
/* 
h1:hover {
    cursor: pointer;
} */


h2 {
    font-weight: 400;
    font-size: 100%;
    text-decoration: underline;
    line-height: 50%;
    margin-top: 1.5rem;

}

a {
    color: black;
}

a:hover {
    /* background-color: black; */
    color: black;
  }



.about-container {
    display: block;
    padding-left: 1rem;
    padding-right: 1rem;
    position: static;
}

.about-text {
    display: block;
    padding-left: 1rem;
    padding-right: 1rem;
}

.exhibition {
    display: block;
    break-inside: avoid;
}

.exhibition-container-past {
    display: block;
    padding-left: 1rem;
    padding-right: 1rem;
    padding-top: 1rem;
}

.exhibition-container-soon {
    display: block;
    padding-left: 1rem;
    padding-right: 1rem;
    padding-top: 1rem;
}

.exhibition-text-container {
    column-count: 2;
    break-inside: avoid; /* Prevent text in .exhibition-text-container from breaking into another column */
}

.exhibition-text-soon-container {
    column-count: 1;
}


.exhibition-text {
    display: block;
    padding-left: 1rem;
    padding-right: 1rem;
    padding-bottom: 1rem ;
    
}

.exhibition-text-soon {
    display: block;
    padding-left: 1rem;
    padding-right: 1rem;
}

.exhibition-text-year {
    padding: 0;
    margin: 0;
    line-height: 70%;
}

.price-text-year {
    padding: 0;
    margin: 0;
    line-height: 70%;
}

.price-container {
    display: block;
    padding-top: 1rem;
    padding-left: 1rem;
    padding-right: 1rem;
}

.price-text {
    display: block;
    padding-left: 1rem;
    padding-right: 1rem;
}


#right {
    width: 50vw; /* Right side takes up 50% of the viewport width */
    height: 100vh; /* Full height of the viewport */
    overflow-y: auto; /* Enables vertical scrolling for right side */
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    scrollbar-width: none;
    z-index: 700;
}

#content-container {
    width: 100%;
    min-height: 200vh; /* Enough height for scrolling (double the viewport height) */
    display: flex;
    flex-direction: column;
    align-items: center;
}

.artwork-container {
    display: block;
    max-width: 100%;
    margin: 0;
    padding: 0;
    line-height: 0;
    z-index: 699;
}

.artwork {
    position: relative;
    display: block;
    max-width: 100%;
    margin: 0;
    padding: 0;
    line-height: 0;
    height: auto;
    overflow-y: scroll;
}

.artwork-series {
    position: relative;
    display: block;
    max-width: 100%;
    margin: 0;
    padding: 0;
    line-height: 0;
    height: auto;
    overflow-y: scroll;
}

.artwork img {
    max-width: 100%;
    height: auto;
    display: block; /* Ensures proper spacing */
}

.artwork-series img {
    max-width: 100%;
    height: auto;
    display: block; /* Ensures proper spacing */
}


.artwork:hover .image-overlay{
    opacity: 1;
    transition: .4s ease-in;
    cursor:pointer;
}


.artwork-series:hover .image-overlay{
    opacity: 1;
    transition: .4s ease-in;
    cursor:pointer;
}

.artwork.active .image-overlay {
    opacity: 1;
}

.artwork.locked .image-overlay {
    opacity: 1;
}

.artwork-series.locked .image-overlay {
    opacity: 1;
}

.image-overlay{
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100%;
    width: 100%;
    opacity: 0;
    transition: .5s ease;
    background-color: white;
    overflow-y: hidden;
}

.artwork-text {
    color: black;
    font-size: 1.2rem; /*font-size: 1.3vw; */
    position: absolute;
    padding: 56px 50px 50px 50px;
    text-align: left;
    line-height: 1.4;
}



#artwork-viewer {
    position: fixed;
    left: 0;
    top: 0;
    width: 50vw;
    z-index: 800;  /* hier ist der fehler */
    overflow-y: auto;
    height: 100%;
    min-height: 100vh;
    background-color: white;
    opacity: 0;
    transition: 0.3 ease;
    scrollbar-width: none;
    pointer-events: none;
}

#closeButton {
    position: fixed;
    top: 10px;
    left: 10px;
    font-size: 24px;
    color: black;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 10;
    transition: opacity 0.3s ease;
}

#artwork-viewer::-webkit-scrollbar {
    display: none; /* Hide scrollbar for webkit browsers */
}

#artwork-viewer.open {
    opacity: 1;
    transition: 0.3 ease;
    pointer-events: auto; 
    }


#artwork-viewer img {
    width: 100%;
    height: auto;
    margin: 0;
    padding: 0;
    display: block;
}

#artwork-viewer img:only-of-type {
    height: 100vh;
    object-fit: contain;
}

#left .close-btn:hover {
    text-decoration: underline;  /* Visual cue on hover */
}

#close-info-button {
  display: none;
}

/* Mobile only */
@media screen and (max-width: 768px) {

  #everything-container {
    flex-direction: column;
    height: auto;
  }

  #left {
    display: none;
    position: fixed;
    background: white;
    width: 100vw;
    height: 100vh;
    z-index: 1000;
    overflow-y: auto;
    top: 0;
    left: 0;
  }

  #left.open {
    display: block;
  }

  #right {
    width: 100vw;
    height: auto;
  }

  #text-container {
    width: 100%;
  }


  #show-info-button {
    position: fixed;
    padding-top: 0;
    top: 8px;
    left: 6px;
    color: black;
    background-color: white;
    padding: 5px 10px;
    font-weight: 350;
    font-size: 156%;
    z-index: 1100;
    cursor: pointer;
    font-family: "Newsreader", serif;
    display: block; /* Jetzt wird es nur auf Mobile sichtbar */
    touch-action: manipulation;

}

/* 

    font-weight: 350;
    font-size: 130%;
    padding-top: 0;
    margin-top: 1.5rem;
    line-height: 50%;
} */

#close-info-button {
  position: absolute;
  top: 5px;
  right: 5px;
  font-size: 50px;
  font-weight: normal;
  color: black;
  background: transparent;
  border: none;
  cursor: pointer;
  user-select: none;
  text-decoration: none;
  line-height: 1;
  z-index: 1200;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}
#close-info-button:hover {
  color: #555;
}

   #doodle-container,
  #doodle-container svg {
    display: none !important;
  }

  .image-overlay {
    opacity: 1 !important;
    background-color: transparent !important;
    pointer-events: none; /* optional: verhindert Klickblockade */
  }

  .artwork-text {
    bottom: 10px !important;
    left: 6px !important;
    background-color: white !important;
    padding: 5px 10px;

  }

    #artwork-viewer {
    width: 100vw !important;
    height: 100vh !important;
    left: 0 !important;
    top: 0 !important;
    z-index: 1200 !important;
  }
  
    #closeButton {
    top: 10px !important;
    right: 10px !important;
    left: auto !important;
    color: black;
    z-index: 1300;

}
}