@font-face {
  font-family: 'Binary ITC Std Bold';
  src: url('/public/fonts/binaryitcstd-bold.woff2') format('woff2');
  font-weight: bold;
  font-style: normal;
}
@font-face {
  font-family: 'Graphik';
  src: url('/public/fonts/graphik-regular-web.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "Adobe Caslon Pro";
  src: url("/public/fonts/TNYAdobeCaslonPro-Regular\ \(2\).woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scrollbar-width: thin;
  scrollbar-color: #1a1a1a black;
}

body {
  color: #111;
  background-color: #d9d8d5;
  margin: 0 auto;
  font-family: 'Adobe Caslon Pro', 'Times New Roman', serif;
  height: auto;
}


.black-bg {
  background-color: #000;
}

/* --- Important Page Styles --- */
:root {
  --grid-margin: 4rem;
  --height-offset: calc(100vh - 10rem);
}

@media (max-width: 1920px) {
  :root {
    --grid-margin: 1rem;
  }
}

.page-offset {
  width: 100%;
  max-width: 1600px;
  min-height: var(--height-offset);
  margin: 7rem auto 0 auto;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 2rem;
  padding: 0 var(--grid-margin);
  box-sizing: border-box;
  position: relative;
}

.gallery {
  max-width: 1100px;
  margin: 60px auto 40px auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px 24px;
  justify-items: center;
}

.gallery img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  background: #fff;
  transition: box-shadow 0.2s, transform 0.2s;
  cursor: pointer;
  display: block;
}

.gallery img:hover {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
  transform: scale(1.03);
}

.gallery-caption {
  text-align: center;
  color: #222;
  font-size: 1.1em;
  margin-top: 8px;
  font-family: 'Playfair Display', serif;
}

.project-image-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
  margin: 20px 0 0 0;
  align-items: center;
}

.projects-wrapper {
        grid-column: span 12;
        position: relative;
        height: var(--height-offset);
        display: flex;
        flex-direction: row;
        background: #000;
        width: 100%;
        max-width: 1920px;
        margin: 0 auto;
      }

      .project-content {
        flex: 1 1 50%;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        height: 100%;
        position: relative;
        background: #000;
        color: #fff;
        overflow-y: auto;
        overflow-x: hidden;
        padding: 20px;
        word-break: break-word;
        white-space: normal;
      }

      .project-content:first-child {
        border-right: 1.5px solid #222;
      }

      .project-content h1,
      .header-content h1,
      #project-content h1,
      #project-content h2,
      #project-content h3 {
        font-family: 'Binary ITC Std Bold', 'Playfair Display', serif;
        color: #ddd;
        font-weight: bold;
        line-height: 1.2;
        margin-bottom: 0.5em;
      }
      .project-content h1,
      .header-content h1,
      #project-content h1 {
        font-size: 2rem;
        text-transform: uppercase;
        letter-spacing: -1px;
        margin-bottom: 8px;
      }
      #project-content h2 {
        font-size: 1.5rem;
      }
      #project-content h3 {
        font-size: 1.2rem;
      }

      .header-images,
      .project-content .header-images {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        height: 100%;
        width: 100%;
        position: relative;
        background: #000;
        color: #fff;
        overflow-y: auto;
        padding: 20px;
        scrollbar-width: none;
      }

      .header-images img,
      .project-content .header-images img {
        width: 100%;
        height: auto;
      }

      #project-description {
        padding-bottom: 8pt;
        font-weight: 400;
        font-size: 21px;
        line-height: 1.33333em;
        font-style: italic;
      }
      .project-detail {
        padding: 8pt 0;
        border-top: 1px solid #333;
        width: 100%;
      }

      /* Markdown/content styling */
      #project-content {
        font-family: 'Playfair Display', serif;
        color: #ddd;
        font-size: 21px;
        border-radius: 10px;
        box-shadow: 0 2px 12px rgba(0,0,0,0.04);
        word-break: break-word;
        font-style: normal;
        letter-spacing: normal;
        line-break: auto;
        line-height: 1.5em;
        font-weight: 400;
        overflow-wrap: normal;
      }
      #project-content p {
        margin: 0 0 1em 0;
      }
      #project-content ul,
      #project-content ol {
        margin: 1em 0 1em 1.5em;
        padding-left: 1.2em;
      }
      #project-content li {
        margin-bottom: 0.4em;
      }
      #project-content blockquote {
        border-left: 4px solid #bbb;
        margin: 1em 0;
        padding: 0.5em 1em;
        color: #555;
        background: #f7f7f7;
        border-radius: 6px;
        font-style: italic;
      }
      #project-content code {
        background: #f3f3f3;
        color: #b80000;
        padding: 2px 6px;
        border-radius: 4px;
        font-size: 0.98em;
        font-family: "Fira Mono", "Consolas", monospace;
      }
      #project-content pre code {
        display: block;
        padding: 12px;
        background: #222;
        color: #fff;
        border-radius: 8px;
        overflow-x: auto;
        font-size: 0.98em;
      }
      #project-content img {
        max-width: 100%;
        border-radius: 8px;
        margin: 1em 0;
        display: block;
      }
      #project-content a {
        color: hsl(50, 80%, 72%);
        text-decoration: underline;
        word-break: break-all;
      }

      @media (max-width: 980px) {
        .projects-wrapper {
          flex-direction: column;
          height: auto;
          overflow: visible;
        }
        .project-content {
          overflow: visible;
          height: auto;
          max-height: none;
          padding-bottom: 24px;
        }
        .project-content:first-child {
          border-right: none;
          border-bottom: 1.5px solid #222;
        }
      }