/*Main page*/

.cs-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.cs-cols-3 .cs-card {
  flex: 1 1 calc(33.333% - 24px);
  max-width: calc(33.333% - 24px);
}

@media (max-width: 1024px) {
  .cs-cols-3 .cs-card {
    flex: 1 1 calc(50% - 24px);
    max-width: calc(50% - 24px);
  }
}

@media (max-width: 640px) {
  .cs-cols-3 .cs-card {
    flex: 1 1 100%;
    max-width: 100%;
  }
}

.cs-card {
  background: #fff;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.cs-thumb img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  display: block;
}

.cs-body {
  padding: 16px 18px 20px;
}

/*Make sure to style the pagination as well - it starts on the 7th post*/

/*Single page*/

h2{
	scroll-margin-top: -60px;
}

.case-hero-overlay h1 {
  margin: 0 0 10px;
}

.case-hero-overlay .case-excerpt {
  font-size: 1rem;
}

.case-content {
  display: flex;
  gap: 40px;
  margin-bottom: 60px;
}

.case-main{
	flex:4;
}

.case-sidebar{
	flex:2;
}

/* Related Posts */
.related-cases {
  margin-top: 60px;
}

.related-cases h2 {
  margin-bottom: 30px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.related-item img {
  width: 100%;
  border-radius: 10px;
}

.related-meta {
  margin-top: 15px;
}

.related-title {
  margin: 10px 0 5px;
  font-size: 1.1rem;
}

/*add media queries for tablet and mobile*/