/* basic reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "garamond-premier-pro-display", serif;
    font-weight: 400;
    font-style: normal;
    cursor: crosshair;
  }
  
  body {
    overflow-x: hidden;
    position: relative;
    overscroll-behavior: none;
    scroll-behavior: smooth;
  }
  
  /* canvas for p5.js background (if any) */
  canvas {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;
  }
  
  /* layout */
  .container {
    display: flex;
    width: 100%;
    align-items: flex-start;
  }
  
  .sidebar, .content {
    border: none;
  }
  
  /* sidebar */
  .sidebar {
    position: sticky;
    top: 0;
    width: 375px;
    height: 100vh;
    padding: 2rem;
    background: #ffffff;
    overflow: hidden;
    flex-shrink: 0;
  }
  
  .sidebar nav ul {
    list-style: none;
    padding-left: 0;
  }
  
  .sidebar nav a,
  .sidebar p a {
    color: #000000;
    text-decoration: none;
    font-style: normal;
  }
  
  .sidebar nav a:hover,
  .sidebar p a:hover {
    color: #ff0000;
    font-style: italic;
  }
  
  /* sidebar contact */
  .contact {
    position: absolute;
    bottom: 2rem;
    left: 2rem;
  }
  
  /* sidebar icon */
  .icon {
    width: 25px;
    height: auto;
    display: inline-block;
  }
  
  .icon:hover {
    transform: rotate(10deg);
  }
  
  /* main content */
  .content {
    flex: 1;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
  }
  
  /* stacked project images */
  .project img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border: none;
  }
  
  /* hover preview image */
  #hover-preview {
    position: fixed;
    height: 75px;
    pointer-events: none;
    display: none;
    z-index: 9999;
    transition: opacity 0.1s ease;
  }
  
  .video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 ratio */
    height: 0;
    overflow: hidden;
  }
  
  .video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
  }  
  
  .slide {
    display: none;
  }
  
  .slide.active {
    display: block;
  }
  
  .slide img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border: none;
  }
  
  /* image grid */
  .image-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
  }
  
  .image-grid img {
    width: calc(20% - 0.8rem); /* 5 images per row */
    height: auto;
    object-fit: cover;
  }
  
  /* lightbox */
  #lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 9999;
  }
  
  #lightbox.active {
    opacity: 1;
    pointer-events: all;
  }
  
  #lightbox img {
    max-width: 90%;
    max-height: 90%;
  }
  
  #lightbox-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    font-size: 2rem;
  }
  
  /* bottom buttons */
  .bottom-buttons {
    display: flex;
    gap: 2rem;
    margin-top: 1rem;
  }
  
  .bottom-buttons .button {
    color: #000000;
    text-decoration: none;
    border-radius: 4px;
  }
  
  .bottom-buttons .button:hover {
    font-style: italic;
    color: #ff0000;
  }
  