
   html, body {
      margin: 0;
      padding: 0;
      font-family: 'EB Garamond', serif;
      font-feature-settings: 'liga' off;
      font-variant-ligatures: none;
      background: black;
      color: rgba(255, 255, 255, 0.795);
      height: 97%;
      font-size: 1.05em;
    }

    /* 🔝 Top Bar Styles */
    .topbar {
      display: flex;
      justify-content: flex-start;
      align-items: center;
      background-color: rgba(0, 0, 0, 0.7);
      padding: 20px 30px;
      position: sticky;
      top: 0;
      z-index: 1000;
    }

    #top-bar {
  position: sticky;
  top: 0;
  background-color: white;
  z-index: 1000;
  transition: transform 0.3s ease;
}

    #top-bar.hidden {
  transform: translateY(-100%);
  transition: transform 0.3s ease;
}

    .nav-item {
      position: relative;
      flex-wrap: wrap; /* allows items to wrap on mobile */
      margin-right: 20px;
      color: rgba(255, 255, 255, 0.795);
      text-decoration: none;
      font-size: .8em;
      opacity: 0.8;
      transition: opacity 0.3s, font-weight 0.3s;
    }

    .nav-item:hover {
      opacity: 1;
    }

    .dropdown {
      position: relative;
      display: inline-block;
    }

    .dropdown:hover .dropdown-content,
    .dropdown:focus-within .dropdown-content {
      display: block;
    }

    .dropdown-content {
      display: none;
      position: absolute;
      top: 30px;
      left: 0;
      background-color: rgba(0, 0, 0, 0.9);
      padding: 10px 0;
      min-width: 120px;
      z-index: 1001;
    }

    .dropdown-content a {
      display: block;
      padding: 10px 20px;
      color: rgba(255, 255, 255, 0.795);
      text-decoration: none;
      opacity: 0.8;
    }

    .dropdown-content a:hover {
      font-weight: bold;
      opacity: 1;
    }

    /* Fix hover drop issue */
    .dropdown:hover .dropdown-content,
    .dropdown:focus-within .dropdown-content {
      display: block;
    }

    .dropbtn {
      padding: 10px 20px;
      background-color: transparent;
      color: rgba(255, 255, 255, 0.795);
      border: none;
      cursor: pointer;
      font-size: 16px;
      white-space: nowrap;
      position: relative;
      z-index: 2;
    }

    .dropdown-content {
      display: none;
      position: absolute;
      top: 100%; /* <– attach right below the button */
      left: 0;
      background-color: rgba(0, 0, 0, 0.9);
      padding: 10px 0;
      min-width: 120px;
      z-index: 1;
    }

    .dropdown:hover .dropdown-content {
      display: block;
    }

    /* 🔄 Scroll + Image Layout */
    .content-container {
      display: flex;
      height: calc(100vh - 80px); /* subtract topbar height */
      font-size: 1em; /* adjust value as needed */
    }

    .left {
      width: 50%;
      overflow-y: scroll;
      padding: 40px;
      box-sizing: border-box;
    }

    .section {
      margin-bottom: 120px;
    }

    .section h2 {
      font-size: 1.4em;
      margin-bottom: 10px;
      color: rgba(255, 255, 255, 0.795);;
    }

    .section p {
      color: rgba(255, 255, 255, 0.85);
      line-height: 1.5;
    }

    .right {
      width: 50%;
      position: sticky;
      top: 80px; /* below topbar */
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 20px;
    }

    .right img {
      max-width: 100%;
      max-height: 75vh;
      object-fit: contain;
      transition: opacity 0.5s ease-in-out;
      opacity: 1;
    }

    .image-wrapper {
      display: flex;
      flex-direction: column;
      align-items: left;
    }

    #image-display {
      max-width: 100%;
      height: auto;
    }

    #image-caption {
      margin-top: 1em;
      padding: 30px;
      font-size: .8em;
      color: rgba(255, 255, 255, 0.795);;
      font-family: 'EB Garamond', serif;
      text-align: right;
    }

    .topbar:hover .nav-item:not(:hover):not(.language) {
    opacity: 0.2;
    }

    .footer-credit {
      position: fixed;
      bottom: 10px;
      width: 100%;
      text-align: center;
      font-size: 14px;
      color: rgba(255, 255, 255, 0.6);
      opacity: 0;
      transition: opacity 0.8s ease;
      z-index: 9999;
      pointer-events: none;
    }

    .footer-credit.visible {
     opacity: 1;
    }

    .footer-credit a {
      color: rgba(255, 255, 255, 0.6);
      text-decoration: none;
      pointer-events: auto;
    }

    .footer-credit a:hover {
      text-decoration: underline;
    }

    a.clean-link {
    color: rgba(255, 255, 255, 0.795); /* match your text color */
    text-decoration: underline
    }

    a.clean-link:hover {
    color: white; /* match your text color */
    }

#backToTopBtn {
  position: fixed;
  bottom: 100px;
  left: 50%;
  transform: translate(-50%, 20px); /* start slightly lower */
  background-color: black;
  color: white;
  border: 1px solid white;
  border-radius: 6px;
  padding: 10px 14px;
  font-size: 0.9em;
  z-index: 9999;
  cursor: pointer;

  opacity: 0;
  pointer-events: none;

  transition: opacity 0.6s ease, transform 0.6s ease;
}

#backToTopBtn.visible {
  opacity: 0.9;
  transform: translate(-50%, 0);
  pointer-events: auto;
}

/* Default: show only on desktop */
.desktop-only {
  display: block;
}

    @media screen and (max-width: 768px) {

      .topbar {
        flex-direction: column;
        align-items: center;
        padding: 1rem;
        text-align: center;
        background-color: black
      }

      .topbar:hover .nav-item:not(:hover):not(.language) {
    opacity: 0.2;
  }

      .nav-item {
        font-size: 1.1em;
        margin: 0.5rem 0;
        text-align: center;
    display: block;    /* force full width */
    max-width: 90%;    /* prevent overflow */
    white-space: normal; /* allow line wrapping */
      }
      
  .content-container {
    flex-direction: column;
    overflow-y: auto;
    height: auto;
    font-size: 1.1em;
  }

  .left, .right {
    width: 100%;
    padding: 1rem;
  }

  .right {
    margin-top: 2rem;
    display: block;
  }

  .right {
  display: none;
}

  .right img {
        display: block;
        margin: 20px auto;
        width: 90%;
        height: auto;
      }

      .topbar > div[style*="margin-left: auto"] {
    margin-top: 1.5rem;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 1rem;
  }


  .topbar .nav-item {
    margin: 0.25rem 0;
    color: white !important; /* force white */
    opacity: 1 !important;   /* override fading */
  }

  .nav-item.language {
  padding-top: 10px;
  font-size: 1.3em;
  color: white !important;
  opacity: 1 !important;
}

.image-wrapper {
  margin-bottom: 2rem;
}

.image-wrapper img {
  width: 90%;
  height: auto;
  display: block;
  margin: 0 auto;
}

.image-wrapper .caption {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.9em;
  text-align: center;
  padding-top: 0.5rem;
  font-family: 'EB Garamond', serif;
}
}

@media screen and (min-width: 769px) {
  #backToTopBtn {
    display: none !important;
  }
}