/* Base reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #f9f9f9;
    color: #222;
    line-height: 1.6;
    padding: 1rem;
    max-width: 960px; /* previous value was 800px*/
    margin: 0 auto;
  }
  
  h1, h2, h3 {
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    color: #111;
  }

  p {
    margin-top: 0;
    margin-bottom: 1rem;
  }

  a {
    color: #222;
    text-decoration: none;
    transition: color 0.15s ease;
  }

  a:hover,
  a:focus {
    color: #555;
    outline: none;
  }

  ul {
    list-style: none; /* Remove default bullets */
    padding-left: 1.2rem;
    margin: 1rem 0;
  }

  ul li {
    position: relative;
    padding-left: 1rem;
    margin-bottom: 0.5rem;
    color: #333;
    line-height: 1.5;
    display: flex;
    align-items: center;
  }
  
  ul li::before { /* Custom bullet using ::before */
    content: '■';
    margin-right: 0.5rem;
    color: #666;
    font-size: 0.6rem;
    line-height: 1;
  }


  /* Menu */
  nav {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
    font-size: 1rem;
  }
  
  nav a {
    text-decoration: none;
    color: #111;
    transition: color 0.3s ease;
  }
  
  nav a:hover,
  nav a.active {
    color: #888;
  }
  
  /* Grid */
  .grid-container {
    display: grid;
    /* grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); */
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    max-width: 800px; /* narrower to keep squares manageable */
    margin-left: 1rem;
    margin-right: 1rem;
    margin-top: 6rem;
  }
  
  .grid-item {
    padding: 1rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    text-align: center;

    color: #333;
    font-weight: 600;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 1.1rem;
    transition: color 0.2s ease;
    user-select: none;
  }
  
  /* Works list styling */
  .works-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: 2rem 0;
  }
  
  .work-preview-container {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
  }

  .work-thumbnail-small{ /* even smaller picture used in pages with more text and different content types (ex: research.html)*/
    width: 200px;
    height: auto;
    border-radius: 6px;
  }

  .work-thumbnail { /* small picture used in works.html*/
    width: 400px;
    height: auto;
    border-radius: 4px;
  }

  .work-picture { /* full-size pitcure on /works/work-example.html... */
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    margin: 2rem 0;
  }
  
  .work-details {
    flex: 1;
  }
  
  .work-title {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
  }

  .work-title-small { /* for smaller content (ex: research.html)*/
    font-size: 0.9rem;
    font-weight: bold;
    margin-bottom: 0.3rem;
  }
  
  .work-description {
    font-size: 1rem;
    color: #444;
  }
  
  @media screen and (max-width: 768px) {
    .work-preview-container {
      flex-direction: column;
    }
  
    .work-thumbnail {
      width: 100%;
    }
  }
  
  /* FCT sponsorship */
  .fct-logo { /* full-size pitcure on /works/work-example.html... */
    width: 50%;
    height: auto;
    display: block;
    margin: 1rem 0;
  } 

  /* Bandcamp iframe container */
  .bandcamp-embed {
    margin: 2rem 0;
    text-align: center;
  }

  /* YouTube & Vimeo iframe container */
  .video-embed {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    margin: 2rem 0;
    border-radius: 6px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  }
  
  .video-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
  }
   
  
  /* SLIDESHOW CONTAINER */
  .slideshow {
    position: relative;
    max-width: 960px;
    margin: 2rem auto;
    overflow: hidden;
  }

  .slide {
    display: none;
    position: relative;
  }

  .slide img {
    width: 100%;
    height: auto;
    border-radius: 4px;
  }

  .caption {
    position: absolute;
    bottom: 10px;
    left: 15px;
    color: white;
    background: rgba(0, 0, 0, 0.4);
    padding: 0.4rem 0.6rem;
    border-radius: 4px;
    font-size: 0.9rem;
  }

  /* Navigation buttons */
  .prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2rem;
    background: rgba(255, 255, 255, 0.3);
    color: #111;
    border: none;
    cursor: pointer;
    padding: 0.5rem 0.8rem;
    border-radius: 4px;
    opacity: 0;
    transition: opacity 0.3s;
  }

  .slideshow:hover .prev,
  .slideshow:hover .next {
    opacity: 1;
  }

  .prev:hover,
  .next:hover {
    background: rgba(255, 255, 255, 0.7);
  }

  .prev {
    left: 10px;
  }

  .next {
    right: 10px;
  }

  /* Dots */
  .dots-container {
    text-align: center;
    margin-top: 1rem;
  }

  .dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    margin: 0 5px;
    background-color: #aaa;
    border-radius: 50%;
    opacity: 0.6;
    cursor: pointer;
  }

  .dot.active,
  .dot:hover {
    opacity: 1;
  }

  