.scrollable {
  overflow: auto;
}

.main-list {
  position: absolute;
  background-color: var(--base-background);
}

.main-list text {
  position: center;
}

.works-section {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.works-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  width: 90%;
  max-width: 1200px;
  justify-content: center;
  justify-items: center;
  margin: 0 auto;
}

.work-item {
  background: #222;
  color: #fff;
  padding: 2rem;
  border-radius: 12px;
  text-align: center;
  width: 100%;
  max-width: 600px;
  box-sizing: border-box;
  text-decoration: none;
}

.work-item img {
  width: 100%;
  max-width: 400px;
  aspect-ratio: 1/1;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 0.8em;
}

.work-item h2 {
  font-size: x-large;
  color: white;
  -webkit-text-stroke-width: 2px;
  -webkit-text-stroke-color: var(--stroke-color);
}

.work-item p {
  font-size: small;
  text-align: left;
}


.work-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 20px rgba(255, 255, 255, 0.15);
}


.info-box {
  max-width: 1200px;
  background: #222;
  color: #fff;
  backdrop-filter: blur(6px);
  border-radius: 12px;
  padding: 20px 25px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  line-height: 1.7;
  margin: 30px auto;
}

.info-box h2 {
  font-size: x-large;
  margin-bottom: 10px;
  border-bottom: 2px solid #ddd;
  padding-bottom: 5px;
}

.info-box h3 {
  font-size: large;
  margin-bottom: 8px;
}

.info-box p {
  font-size: medium;
}

@media (max-width: 500px) {
  
  .work-item h2 {
    -webkit-text-stroke-width: 0.5px;
    font-size: large;
  }
  
  .work-item p {
    font-size: x-small;
  }
  
  .info-box {
    padding: 10px 15px;
    margin: 10px auto;
  }
  
  .info-box h2 {
    -webkit-text-stroke-width: 0.5px;
    font-size: large;
    margin-bottom: 5px;
    border-bottom: 2px solid #ddd;
    padding-bottom: 2px;
  }
  
  .info-box h3 {
    font-size: medium;
    margin-bottom: 1px;
  }
  
  .info-box p {
    font-size: small;
  }
  
}