/* === Hard Lock on Viewport === */
html, body {
    margin: 0;
    padding: 0;
    width: 100vw;
    max-width: 100vw;
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
    font-size: 16px;
    position: relative;
  }

a {
  color: black;
  text-decoration-color: #a2a2a2;
}

  .top-text a {
    text-decoration: none;
    color: rgb(38,38,38);
    line-height: 1.1
  }

  g {
    color: #a2a2a2;
    text-decoration-color: #a2a2a2;
  }

  h3 {
    font-size: 16px;
  }
  
  /* === Global Element Defaults === */
  * {
    background: #ffffff;
    text-decoration-color: rgb(21, 21, 22);
    box-sizing: border-box;
    font-family: 'Gambetta-Regular', serif;
    max-width: 100vw !important;
  }
  
  /*img, video, iframe {
    display: block;
    max-width: 100%;
    height: auto;
  }*/
  
  /* === Wrapper to Lock Layout Inside Viewport === */
  .viewport-fix {
    width: 100vw;
    max-width: 100vw;
    overflow-x: hidden;
    position: relative;
  }
  
  /* ========== Desktop layout (≥750px) ========== */
  .grid-container {
    display: grid;
    grid-template-columns:
      minmax(280px, 400px)     /* name/date */
      minmax(400px, 500px)     /* middle column */
      minmax(200px, 1fr);      /* image */
    height: 100vh;
    padding-left: 2rem;
    padding-right: 2rem;
    overflow: hidden;
  }
  
  .item {
    padding: 1rem;
    border-left: 1px solid #c2c2c2;
    height: 100%;
    overflow: hidden;
    width: 100%;
  }
  
  .item:first-child {
    border-left: none;
  }
  
  /* === Left Column Layout === */
  .left .container {
    display: flex;
    flex-direction: column;
    height: 100%;
  }
  
  .spacer {
    flex-grow: 1;
  }
  
  /* === Top Name === */
  .top-text {
    font-size: clamp(24px, 2vw, 64px);
    line-height: 1;
    white-space: normal;
  }
  
  /* === Nav Links === */
  .nav-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-width: 100%;
  }
  
  .nav-links a {
    font-size: clamp(16px, 1.2vw, 24px);
    text-decoration: none;
    color: black;
    border-bottom: 1px solid black;
    width: fit-content;
    transition: color 0.2s ease;
    box-sizing: border-box;
  }
  
  .nav-links a:hover {
    color: #888;
  }
  
  /* === Last Updated === */
  .bottom-text {
    font-size: 1vw;
    color: #a2a2a2;
    display: block;
  }
  
  /* === Middle Column === */
  .middle {
    height: 100%;
    overflow-y: auto;
    padding: 10 10 2rem 0; /* optional: controls top/bottom spacing */
    -webkit-overflow-scrolling: touch;
  }
  
  
  /*.bio {
  max-width: 60ch;
  margin: 0 auto;
  padding: 0 0 2rem 0; 
  font-size: clamp(14px, 1.5vw, 18px);
  line-height: 1.8;
}*/

  
  
  /*.bio p + p {
    margin-top: 1rem;
  }*/
  
  /* === Right Column === */
  .right {
    display: flex;
    flex-direction: column;  /* ✅ vertical stacking */
    align-items: center;     /* center images horizontally */
    justify-content: flex-start;  /* or center, or space-between */
    gap: 1rem;               /* optional: space between images */
    height: 100%;
    overflow-y: auto;        /* optional: scroll if too many */
    padding: 1rem 0;
  }
  
  
  .right img {
    width: 100%;         
    height: auto;        
    object-fit: contain;
    display: block;
    padding: 1rem;
  }
  
  

  
  .album {
    width: 100%;
    max-width: 350px;  
    margin: 1rem 0;
  }
  
  .album img {
    width: 300px;
    height: auto;
    display: block;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.10);
    border-radius: 4px;
  }
  
  
  
  /* === Hide Copyright Item on Desktop === */
  .item.copyright {
    display: none;
  }
  
  /* ========== Mobile layout (<750px) ========== */
  @media (max-width: 750px) {
    .grid-container {
      display: block;
      width: 100vw;
      max-width: 100vw;
      height: auto;
      padding: 0;
      overflow-x: hidden;
      box-sizing: border-box;
    }
  
    .item {
      border-left: none;
      border-top: 1px solid black;
      padding: 1rem;
      height: auto;
      width: 100%;
      box-sizing: border-box;
      overflow-x: hidden;
    }
  
    .item:first-child {
      border-top: none;
    }
  
    .container {
      display: flex;
      flex-direction: column;
      height: auto;
    }
  
    .spacer {
      display: none;
    }
  
    .nav-links {
      flex-direction: row;
      flex-wrap: wrap;
      gap: 1rem;
      margin-top: 1rem;
      margin-bottom: 1rem;
      max-width: 100%;
    }
  
    .nav-links a {
      font-size: clamp(18px, 2vw, 28px);
      max-width: 100%;
      box-sizing: border-box;
    }
  
    .bottom-text {
      display: none !important;
    }
  
    .middle {
      display: block;
    }
  
    /*.bio {
      font-size: clamp(14px, 1.8vw, 20px);
      line-height: 2;
      padding: 0;
    }*/
  
    .right img {
      width: 100%;
      height: auto;
      object-fit: contain;
      max-width: 100%;
    }
  
    .item.copyright {
      display: block;
      border-top: 1px solid black;
      padding: 1rem;
    }
  
    .copyright-text {
      font-size: 12px;
      color: #aaa;
      text-align: left;
    }
  }
  
  .portfolio {
    line-height: 1.1rem;
    word-spacing: .3rem;
  }
  

