#projects {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding: 24px 0 48px 0;
  width: 100%;
}

#projects h2 {
  color: #1a1a1a;
  cursor: default;
  font-family: Roboto, sans-serif;
  font-size: 32px;
  font-weight: 600;
  line-height: 32px;
  margin: 16px 0 16px 0;
  padding: 0;
  text-rendering: optimizeLegibility;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;          
}

#projects kh-carousel {
  max-width: 900px;
  width: 80%;
}

#projects kh-carousel div {
  align-items: flex-start;
  display: flex;
  flex-direction: column;
}

#projects kh-carousel div[hidden] {
  display: none;
}  

#projects kh-carousel footer {
  align-items: center;
  display: flex;
  flex-direction: row;
  margin: 8px 0 0 0;
  width: 100%;
}

#projects kh-carousel footer a {
  background: #3B82F6;
  border: none;
  box-sizing: border-box;
  color: #ffffff;
  cursor: pointer;
  font-family: Roboto, sans-serif;
  font-size: 12px;
  font-weight: 500;
  line-height: 24px;
  margin: 0;
  padding: 8px 16px 8px 16px;
  text-decoration: none;
  text-rendering: optimizeLegibility;
  -moz-osx-font-smoothing: grayscale;  
  -webkit-font-smoothing: antialiased;                 
}

#projects kh-carousel footer a:hover {
  background: #2563EB;
}

#projects kh-carousel footer p {
  color: #94A3B8; 
  flex-basis: 0;
  flex-grow: 1;
  font-family: Roboto, sans-serif;
  font-size: 14px;
  margin: 0;
  padding: 0 0 0 16px;
}

#projects kh-carousel h3 {
  color: #1a1a1a;
  cursor: default;
  font-family: Roboto, sans-serif;
  font-size: 18px;
  font-weight: 600;
  line-height: 24px;
  margin: 16px 0 8px 0;
  padding: 0 16px 0 16px;
  text-rendering: optimizeLegibility;
  -moz-osx-font-smoothing: grayscale;  
  -webkit-font-smoothing: antialiased;               
}

#projects kh-carousel img {
  height: 450px;
  object-fit: cover;
  width: 100%;
}

#projects kh-carousel div > p {
  color: #1a1a1a;
  cursor: default;
  font-family: Roboto, sans-serif;
  font-size: 16px;
  line-height: 24px;
  margin: 0 0 4px 0;
  padding: 0 16px 0 16px;
  text-rendering: optimizeLegibility;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;    
  
  display: -webkit-box;  
  line-clamp: 5;
  overflow: hidden;
  text-overflow: ellipsis;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 5;    
} 

@media only screen and ( max-width: 800px ) {    
  #projects kh-carousel {
    width: 90%;
  }
}

@media only screen and ( max-width: 480px ) {    
  #projects h2 {
    margin: 16px 0 0 0;
  }

  #projects kh-carousel img {
    height: 320px;
  }
}

@media only screen and ( max-width: 430px ) {    
  #projects kh-carousel img {
    height: 240px;
  }  
}
