.kanit-extrabold {
    font-family: "Kanit", sans-serif;
    font-weight: 800;
    font-style: normal;
  }
  
:root {
  --banner-width: 60px;
}
  
html {
    scroll-behavior: smooth;
  }

body {
    font-family: "Kanit", sans-serif;
    margin: 0;
    padding: 0;
    background-color: rgb(255, 243, 231);
  }

.page-container {
  box-sizing: border-box;
  padding-left: var(--banner-width);
}

.banner {
  width: 4.5%;
  box-sizing: border-box;
  background-color: rgb(191, 168, 226);
  display: flex;
  flex-direction: column;
  padding: 1rem;
  justify-content: space-between;
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  font-weight: 600;
  z-index: 999;
  justify-content: center;
  }

  .home a, .contact a, .work a{
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 9rem;
    margin-top: 10rem;
    transform: rotate(-90deg);
    white-space: nowrap;
    font-size: 3rem;
    color: rgb(52, 61, 65);
    letter-spacing: 0.3rem;
    margin-bottom: 15rem;
    text-decoration: none;
    margin-left: -0.3rem;
  }
  
  .home a:hover, .contact a:hover, .work a:hover {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 9rem;
    margin-top: 10rem;
    transform: rotate(-90deg);
    white-space: nowrap;
    font-size: 3rem;
    color: rgb(138, 157, 167);
    letter-spacing: 0.3rem;
    margin-bottom: 15rem;
    text-decoration: none;
  }
  
  .piece-details {
    /* center content horizontally and vertically, with space for left banner */
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    min-height: 100vh;
    margin: 0;
    padding: 0 1rem;
    box-sizing: border-box;
    position: relative;
    z-index: 1;
    /* leave space so the fixed left banner doesn't overlap content */
    margin-left: 60px;
  }

  .piece {
    /* fluid video sizing that caps at a reasonable maximum */
    width: min(60vw, 750px);
    max-width: 100%;
    height: auto;
    border: 8px solid rgb(59, 51, 69);
    border-radius: 20px;
    box-sizing: border-box;
    display: block;
  }

  .piece1 {
    display: none;
  }

  .title {
    color: rgb(52, 61, 65);
    font-size: 5rem;
    margin: 0 0 0 0;
  }

  .piece-description {
    color: rgb(52, 61, 65);
    font-size: 2rem;
    margin: 0;
    line-height: 1.4;
  }

  #background-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(40px) hue-rotate(40deg) brightness(70%);
    z-index: 0;
    overflow: hidden;
  }

  @media screen and (max-width: 480px) {
    .title {
      font-size: 3rem;
      top: auto;
    }
  
    .piece-description {
      font-size: 1.5rem;
      top: auto;
      left: auto;
    }

    .piece {
      width: 95vw;
      max-width: 100%;
      height: auto;
    }
  }

/* Small screens: remove left margin (banner may convert to top nav elsewhere) and stack content */
@media screen and (max-width: 1000px) {
  .piece-details {
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    margin-left: 0;
    padding-top: 10rem;
    min-height: calc(100vh - 56px);
  }

  .banner {
    width: 12%;
  }

  .home a, .contact a, .work a{
    font-size: 2rem;
    margin-top: 8.5rem;
    margin-bottom: 12rem;
  }

  .title { font-size: 3rem; text-align: center; }
  .piece-description { font-size: 1.5rem; text-align: center; }
}