body{
    width: 100%;
    margin: 0px;
    padding: 0px;
    background-color: #FAFCF7;
}
main{
    display: flex;                  
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
    height: 100vh;
    width: 100%;
}
hr{
    width: 100%;
    height: 2px;
    border: none;
    background-color: black;
    margin: 0;
    padding: 0;
  }
  /* Container */
  .nav-bar {
     width: 100%;
   }
   
   /* Flex layout for even spacing */
   .nav-list {
     display: flex;
     justify-content: space-between;
     justify-items: center;
     align-items: center;
     list-style: none;
     margin: 10px;
     padding: 0;
   }
   
   /* Links */
   .nav-list a {
     text-decoration: none;
     font-family: 'Helvetica Neue';
     font-size: 16px;
     font-weight: 400;
     color: black;
     text-transform: uppercase;
     letter-spacing: 1px;
   }
   .nav-list a:hover{
     color: #FF71DA;;
   }
   .nav-list a.active{
     font-weight: 700;
     color: black;
     pointer-events: none;
   }
   
  .title{
     display: flex;
     flex-direction: row;
     justify-content: space-between;
     align-items: center;   
     font-family: 'Helvetica Neue';
     padding: 0px;
     margin: 0px;
     width: 100%;
  }
  .nav-container{
   background-color: #FAFCF7;
   position: fixed;
   z-index: 2;
   width: 100%;
   padding: 16px;
   margin: 0;
   box-sizing: border-box;
  }
  footer{
    width: 100%;
    height: 370px;
    background-color: #232222;
    font-family: "Montserrat";
    color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
  }
  footer h3{
    font-size: 1.5rem;
    font-weight: 400;
    margin: 0;
    padding: 20px;
  }
  footer h4{
    font-size: 1.2rem;
    font-weight: 400;
    margin: 0;
    padding: 0 0 14px 0;
  }
  footer a{
    color: #D8D6D4;
    font-size: 1rem;
    font-weight: 400;
    padding: 0;
    margin: 0;
    text-decoration: none;
  }
  .footer-grid {
    width: 90%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
  }
  
  .footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
  }
  
  .footer-column ul li {
    margin-bottom:0;
  }
  .footer-column{
    display: flex;
    flex-direction: column;
  }
  .footer-column a:hover {
    color: #FF71DA;
  }
  #next-project-button{
    width: 100px;
    height: 72px;
    background-color: #3B78FF;
    border: none;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  .next-project{
    display: flex;
    flex-direction: row;
    font-family: "Helvetica";
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 80px;
    margin-bottom: 40px;
    font-size: 20px;
  }
  .sub-menu li{
    padding-left: 10px;
  }
  .container {
    display: flex;
    flex-direction: row;
    align-items: center;
    width: auto;
    gap: 100px;
  }
  .folder{
    width: 120px;
    height: auto;
    object-fit: contain;
    cursor: pointer;
  }
  .file{
    width: 150px;
    height: auto;
    object-fit: contain;
    cursor: pointer;
  }
  .grid-container{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 10px;
  }
  #img-overlay {
    position: fixed;
    top: 70px; /* leave navbar visible */
    left: 0;
    width: 100%;
    height: calc(100% - 70px);
    background-color: #FAFCF7;
    display: none; /* hidden by default */
    z-index: 9999; /* above all except navbar */
    padding-bottom: 20px;
    overflow-y: auto;
  }

  /* Close button */
  #close-overlay {
    position: absolute;
    top: 0;
    left: 20px;
    background: none;
    border: none;
    cursor: pointer;
    overflow-y: auto;
  }

  
  #close-overlay:hover .my-svg {
    stroke: red;
    transition: stroke 0.2s; /* optional smooth transition */
  }

  @media (max-width: 1024px) {
    .nav-list {
      justify-content: space-around;
      flex-wrap: wrap;
      gap: 10px;
    }
  
    .container {
      flex-direction: column;
      gap: 40px;
    }
  
    .grid-container {
      grid-template-columns: 1fr; /* stack images/files vertically */
    }
  
    .footer-grid {
      grid-template-columns: 1fr 1fr; /* two columns instead of three */
    }
  }
  
  @media (max-width: 768px) {
    main {
      height: auto; /* allow scrolling instead of forcing 100vh */
      padding: 20px;
    }
  
    .title {
      flex-direction: column;
      gap: 10px;
      text-align: center;
    }
  
    .nav-list {
      flex-direction: column;
      align-items: center;
      gap: 12px;
    }
  
    .container {
      flex-direction: column;
      gap: 20px;
    }
  
    .folder, .file {
      width: 80px;
    }
  
    .footer-grid {
      grid-template-columns: 1fr; /* single column */
      gap: 20px;
    }
  
    .next-project {
      flex-direction: column;
      text-align: center;
      gap: 10px;
    }
  }
  
  @media (max-width: 480px) {
    .nav-list a {
      font-size: 14px;
    }
  
    footer h3 {
      font-size: 1.2rem;
    }
  
    footer h4 {
      font-size: 1rem;
    }
  
    footer a {
      font-size: 0.9rem;
    }
  
    #next-project-button {
      width: 80px;
      height: 56px;
      font-size: 14px;
    }
  }