/* ========== Reset ========== */
* {
    box-sizing: border-box;
  }
  
  body {
    margin: 20px;
    font-family: Helvetica, Arial, sans-serif;
    font-size: 13px;
    font-weight: 500;
    background: white;
    overflow-x: hidden;
    display: flex;
  }
  
  /* ========== Menu (Left Panel) ========== */


  #menu {
    position: fixed;
    top: 155px;
    left: 30px;
    max-width: 25vw;
    height: 0;
    padding: 0;
    color: white;
    margin: 0 auto;
    mix-blend-mode: difference;
    user-select: none;
    
  }
  
  .menu-inner {
    display: flex;
    flex-direction: column;
  }
  
  #menu button {
    all: unset;
    cursor: pointer;
    width: 100%;
    text-decoration: none;
    text-underline-offset: 2px;
  }
  
  #menu button:hover {
    text-decoration: underline;
  }
  
  #menu button.active {
    text-decoration: underline;

  }
  
  /* ========== Description (Bottom of Menu) ========== */
  .description {
    font-size: 13px;
    
  }
  
  /* ========== Artwork Display (Right Panel) ========== */
  
  .artwork-display {
    position: fixed;
    top: 0;
    right: 25px;
    bottom: 0;
    left: 32vw; /* reserves space for the menu on the left */
    user-select: none;
    z-index: 15;
    display: flex;
    justify-content: flex-end;   /* aligns image to the right */
    align-items: center;         /* vertically centers image */
    padding: 25px 0;             /* optional: vertical spacing from top/bottom */
  }
  
  .artwork-display img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    user-select: none;
  }
  
  .artwork-description {
    position: fixed;
    bottom: 10px;
    left:30px; /* moved right */
    max-width: 30vw;
    color: black;
    line-height: 1.4;
    z-index: 20;
    background-color: white;
    border-radius: 0px;
    box-sizing: border-box;
  }

  #artwork-description a {
    text-decoration: underline;
    text-underline-offset: 2px;
    color: inherit; /* keeps link color same as surrounding text */
    transition: text-decoration 0.3s ease;
  }
  
  #artwork-description a:hover {
    text-decoration: none;
  }
  
  
  
  /* ========== Toggles (Top Left & Index) ========== */
  .top-left,
  .index {
    position: fixed;
    left: 10px;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 2px;
    z-index: 10;
    color: white;
    mix-blend-mode: difference;
    user-select: none;
  }
  
  #toggle-description {
    top: 10px;
    
  }
  
  .index {
    top: 130px;
    
  }
  
  .top-left:hover,
  .index:hover {
    text-decoration: none;
  }
  


@media (max-width: 600px) {
  body {
    font-size: 16px;
    line-height: 1.6;
    flex-direction: column;
    margin: 10px;
  }

  #menu {
    max-width: 95vw;
    left: 2.5vw;
    top: 100px;
    padding-bottom: 40px;
    max-height: calc(100dvh - 160px);
    overflow-y: auto;
    position: relative;
    mix-blend-mode: normal;
    color: black;
  }

  .menu-inner {
    gap: 12px;
  }

  #menu button {
    font-size: 18px;
    padding: 10px 0;
  }

  .description {
    font-size: 15px;
  }

  .artwork-display {
    position: static;
    padding: 10px 0;
    margin-top: 20px;
    flex-direction: column;
  }

  .artwork-display img {
    max-width: 100%;
    max-height: 50vh;
    object-fit: contain;
    margin-bottom: 10px;
  }

  .artwork-description {
    position: static;
    max-width: 100%;
    font-size: 16px;
    padding: 12px;
    line-height: 1.6;
    background-color: white;
    color: black;
  }

  .top-left,
  .index {
    font-size: 14px;
    mix-blend-mode: normal;
    color: black;
  }
}


