body {
    margin: 0;
    font-family: 'Clarendon', serif;
    background-color: white;
    color: black;
  }
  
  .container {
    display: flex;
    height: 100vh;
    overflow: hidden;
  }
  
  .sidebar {
    width: 15rem;
    padding: 1.5rem;
    flex: 0 0 15rem;
    box-sizing: border-box;
    /* border-right: 1px solid #ccc; */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: fixed;
    height: 100vh;
    background-color: white;
    font-size: 1.2rem;
  }
  
  .nav-title {
    margin-bottom: 2rem;
  }

  .nav-title a {
    text-decoration: none;
    color: black;
  }

  .nav-title a.inactive {
    color: rgba(0, 0, 0, 0.55);
  }
  
  .nav-links {
    list-style: none;
    padding: 0;
    margin: 0;
    flex-grow: 1;
  }
  
  .nav-links li {
    margin: 8px 0;
  }

  /* Add spacing before the Info link */
  .nav-links li:last-child {
    margin-top: 6rem;
  }
  
  .nav-links a {
    text-decoration: none;
    color: black;
  }
  
  .nav-links a.active {
    color: black;
  }

  .nav-links a.inactive {
    color: rgba(0, 0, 0, 0.55);
  }
  
  footer {
    font-size: 0.8em;
  }
  
  .content {
    flex: 1;
    padding: 2rem;
    box-sizing: border-box;
    overflow-y: auto;
    margin-left: 15rem;
  }
  
  .scrollable {
    overflow-y: scroll;
    scrollbar-width: none; /* Firefox */
  }

  .scrollable::-webkit-scrollbar {
    display: none; /* Safari and Chrome */
  }
  
  .content img {
    max-width: 100%;
    display: block;
    margin: 0 auto 0;
  }

  /* Image container and description styling */
  .image-container {
    max-width: 80%;
    margin: 0 auto 0;
  }
  .image-container img {
    width: 100%;
    display: block;
  }
  .image-container .image-description {
    text-align: right;
    font-style: italic;
    font-size: 0.875rem;
    line-height: 1.2;
    margin-bottom: 1rem;
  }
  .image-container .image-description p {
    margin: 0 0 -0.25rem;
  }
  .image-container .image-description p:last-child {
    margin-bottom: 0;
  }

  .content-text {
    max-width: 80%;
    margin: 0 auto;
  }

  .content-text h1 {
    font-size: 2.5rem;
    font-weight: normal;
    margin-bottom: 0.5rem;
  }

  .content-text p {
    margin-top: 0;
    font-size: 0.875rem;
  }

  .content-description {
    max-width: 80%;
    margin: 0 auto;
  }

  .content-description p {
    margin-top: 0;
    font-size: 1.1rem;
  }

/* Hide mobile header and work list on larger screens */
.mobile-header,
.mobile-works {
  display: none;
}

.info-section {
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}

.info-section .info-title {
  margin-bottom: 0.25rem;
  text-decoration: underline;
}

.info-section p {
  margin: 0.25rem 0;
}

.info-section p:last-child {
  margin-bottom: 2.5rem;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .container {
    flex-direction: column;
    height: auto;
  }
  .sidebar {
    position: relative;
    width: 100%;
    height: auto;
    border-right: none;
    border-bottom: 1px solid #ccc;
    flex-direction: row;
  }
  .nav-links {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
  }
  .content {
    margin-left: 0;
    width: 100%;
    padding: 10px;
  }
  .scrollable {
    max-height: none;
  }

}

/* Mobile header for small screens */
@media (max-width: 768px) {
  .sidebar {
    display: none;
  }
  .mobile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    background-color: white;
    padding: 1rem 1.2rem;
    box-sizing: border-box;
    z-index: 1000;
  }
  .mobile-header a {
    text-decoration: none;
    color: black;
    font-weight: lighter;
    font-size: 1.1rem;
  }

  .mobile-header a.active {
    color: black;
  }

  .mobile-header a.inactive {
    color: rgba(0, 0, 0, 0.55);
  }

  .info-section {
    font-size: 1rem;
  }

  .info-section p:last-child {
    margin-bottom: 1rem;
  }

  .content {
    margin-top: 3rem; /* clear header + vertical list */
  }

  .content-description p {
    font-size: 0.875rem;
  }

  .mobile-works {
    list-style: none;
    display: flex;
    flex-direction: column;
    width: 100%;
    margin: 0;
    padding: 0;
    position: fixed;
    top: 4rem;
    left: 0;
    background-color: white;
    box-sizing: border-box;
    z-index: 999;
  }
  .mobile-works li {
    margin: 0.2rem 0;
  }
  .mobile-works li a {
    text-decoration: none;
    color: black;
    font-weight: lighter;
    font-size: 1.1rem;
    display: block;
    padding: 0.1rem 1.2rem;
  }
  .mobile-works li:last-child a {
    margin-top: 4rem;
  }
}