.project-section{
    width: 80%;
    margin: auto auto;
}
.project-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    /* width: 50%; */
    margin: 0 auto;
}

.project-item {
    border: 1px solid rgb(201, 199, 199);
    padding: 0.5rem;
    background-color: #ffffffbf;
    position: relative; /* allows top movement on hover */
    transition: all 0.3s ease; /* smooth animation for hover */
}

.project-item:hover{
    /* top: -3px; */
    background-color: #ffffffbf;
    box-shadow: 0px 5px 7px -2px rgba(92, 91, 91, 0.3);
}

.design-project-container {
  width: 80%;
  margin: auto auto;
  display: flex;
  justify-content: center; /* spreads them out */
  align-items: flex-start; /* align items at the top (optional) */
  flex-wrap: wrap; /* allows wrapping on smaller screens */
  gap: 1rem; /* optional spacing between items */
}

.design-project-item {
  /* padding: 0; */
  width: 45%; /* each item takes up 40% of the container width */
  /* box-sizing: border-box; */
}

.design-item-gif {
  width: 93%;
  margin: 0 auto;
}


.thumbnail-wrapper {
  position: relative;
  width: 100%;
  padding-top: 100%; /* creates a 1:1 aspect ratio */
  overflow: hidden;
}

.thumbnail {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}


.item-title {
    font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    margin: 5% 0 0 0;
}

.item-description {
    font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
    font-size: 0.8rem;
    font-weight: 400;
    margin: 2% 0 0 0;
    color: #000000;
}

.toolkit{
  display: inline-block;
  padding: 0.2rem 0.3rem;
  border-radius: 8px;
  font-size: 0.68rem;
  color: white;
  font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
  margin: 4% 0 1% 0;
}

.video-design-toolkit-container {
  display: flex;
  justify-content: center;
  margin-top: 1rem;
}

.video-design-toolkit{
  display: inline-block;
  padding: 0.2rem 0.3rem;
  border-radius: 9px;
  font-size: 0.8rem;
  color: white;
  font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
  margin: 0 2% 2% 0;
}

.tool-datawrapper{
  background-color: #1D81B2;
}

.tool-spreadsheet{
  background-color: #0F9D58;
}

.tool-leaflet{
  background-color: #199900;
}

/* .tool-html-css{
  background-color: #E34F26;
} */

.tool-javascript{
  background-color: #e4cd1f
}

.tool-illustrator{
  background-color: #FF9A00;
}

.tool-fresco{
  background-color: #00A7E1;
}

.tool-after-effect{
  background-color: #9999FF;
}

.tool-premiere{
  background-color: #7777c8;
}

.tool-ipynb {
  background-color: #ff7f00;
}

.tool-qgis {
  background-color: #4CAF50;
}

.tool-r {
  background-color: #276DC3;
}

/* Tablet adjustments (iPad 16 reference, around 768px) */
@media (max-width: 768px) {
  .project-section {
    width: 90%;
  }

  .design-project-container {
    width: 90%;
    gap: 0.8rem;
  }

  .design-project-item {
    width: 45%;
  }

  .design-item-gif {
    width: 95%;
  }

  .item-title {
    font-size: 0.85rem;
  }

  .item-description {
    font-size: 0.75rem;
  }

  .toolkit {
    font-size: 0.65rem;
  }

  .video-design-toolkit {
    font-size: 0.75rem;
  }
}

/* Mobile adjustments (iPhone 17 reference, around 480px) */
@media (max-width: 480px) {
  .project-section {
    width: 95%;
  }

  .project-grid {
    grid-template-columns: 1fr;
    gap: 0.6rem;
  }

  .project-item {
    padding: 0.4rem;
  }

  .design-project-container {
    width: 95%;
    gap: 0.6rem;
  }

  .design-project-item {
    width: 100%;
  }

  .design-item-gif {
    width: 97%;
  }

  .thumbnail-wrapper {
    padding-top: 90%; /* slightly adjust aspect ratio if needed */
  }

  .item-title {
    font-size: 0.8rem;
    margin: 3% 0 0 0;
  }

  .item-description {
    font-size: 0.7rem;
    margin: 1.5% 0 0 0;
  }

  .toolkit {
    font-size: 0.6rem;
    margin: 3% 0 0.5% 0;
  }

  .video-design-toolkit-container {
    margin-top: 0.8rem;
  }

  .video-design-toolkit {
    font-size: 0.7rem;
    margin: 0 1.5% 1.5% 0;
  }
}



/* #video {
    font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    margin: 2% auto;
    text-align: center;
    color: #006676;
}

#motion-graphics-design {
    font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    margin: 2% auto;
    text-align: center;
    color: #006676;
} */
