.case-study-preview-bounding-box {
  display: inline-grid;
  grid-template-areas:
    "card "
  grid-template-columns: 1fr;
}

.case-study-preview-bounding-box.with-button {
  display: inline-grid;
  grid-template-areas:
    "card "
    "button ";
  grid-template-rows: 5fr 1fr;
  grid-template-columns: 1fr;
}

.case-study-card {
  /* width: 22em; */
  grid-area: card;
  display: inline-grid;

  /* Examnple of template area:
  grid-template-areas:
    "image      image      image"
    "solutions  solutions  solutions "
    "excerpt    excerpt    ."
    "footer     footer     footer";
  */

  grid-template-areas:
    "image "
    "contexts "
    "excerpt "
    "footer ";

}

.case-study-preview-bounding-box .button {
  grid-area: button;
  justify-self: center;
  width: fit-content;
  margin: 10px;
  margin-top: 30px;
}


.case-study-card .case-study-text-area {
  background-color: white;
  height: 165.6px;
  padding-top: 10px;
  padding-bottom: 28px;
  padding-left: 28px;
  padding-right: 28px;
}

.case-study-card .case-study-title {
  grid-area: contexts;
}

.case-study-card .case-study-context,
.case-study-card .case-study-contexts {
  grid-area: contexts;
  color: var(--encore-darkgrey);
  font-size: 14px;
  font-size: 0.875rem;
  line-height: 1.4;
  height: 52px;
  display: flex;
  padding-inline-start: 0;
  padding-left: 0;
  list-style: none;
}

/*
.case-study-card .case-study-context {
  display: inline;
}
*/

.case-study-card .case-study-context li,
.case-study-card .case-study-contexts li,
.case-study-card .case-study-context ul,
.case-study-card .case-study-contexts ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
}

.case-study-card .case-study-context ul li,
.case-study-card .case-study-contexts ul li{
  font-size: 14px;
  font-size: 0.875rem;
  line-height: 1.4;
}

.case-study-card .case-study-context ul li::before,
.case-study-card .case-study-context ul li::after,
.case-study-card .case-study-contexts ul li::before,
.case-study-card .case-study-contexts ul li::after {
  all: unset; /* Back, foul octopus! */
              /* (See /solutions/microsoft-dynamics-gp/#case_study) */
  /* font-size: inherit; */ /* Can't use this because of `.entry-content ul li` */
  font-size: 14px;
  font-size: 0.875rem;
}

.case-study-card .case-study-context-label,
.case-study-card .case-study-contexts-label {
  font-weight: 500;
}
.case-study-card .case-study-context-label {
  width: 60px;
}
.case-study-card .case-study-contexts-label {
  width: 75px;
}

/* Joins the contexts with a comma between them if there are multiple
.case-study-context ~ .case-study-context::before {
  content: ', ';
}
*/

.case-study-card .case-study-excerpt {
  /* font-size: // Uses body rules, the same as the Events card */
  grid-area: excerpt;
  height: 43px;
}

.case-study-excerpt p {
  color: var(--encore-darkgrey);
}






/* For the temporary hex trickery */
/*
.hex-overlay {
  background-color: white;
  clip-path: polygon(53% 34%, 88% 34%, 100% 56%, 100% 100%, 46% 100%, 33% 70%);
  height: 100%;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: end;
}
*/

.case-study-card .client-image-area {
  /* height: 324px; */
  /* background-color: var(--encore-purple); */
  background-image: linear-gradient(var(--encore-purple), var(--encore-pink));
  grid-area: image;
  /*  display: inline-grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rowss: repeat(3, 1fr);
  grid-template-areas:
    "gradient  gradient  gradient"
    "gradient  gradient  gradient"
    "gradient  gradient  logo";
  display: flex;
  align-items: center;
  justify-content: center;
*/

}

.case-study-card .client-image-area img {
  width: 100%;
  min-height: 324px;
  height: auto;
}

.case-study-card .client-image-area-hex-overlay img {
  mix-blend-mode: multiply;
  align-self: flex-end;
  width: 220px;
  padding-top: 152px;
  padding-bottom: 10px;
  padding-right: 20px;
}

/* .case-study-preview-area is for the home pages, or other places where the cards are viewed.
   Copies the (now old) "Blog & Event" spacing by BurnKit */

.case-study-preview-area {
  display: grid;
  grid-template-columns: 435.7px 435.7px;
  column-gap: 112.833px;
  justify-content: center;
}


@media only screen and (max-width: 1000px) {
  .case-study-preview-area {
    grid-template-columns: 435.7px;
    row-gap: 40px;
  }
}

@media only screen and (max-width: 800px) {
  .case-study-preview-area {
    display: grid;
    grid-template-columns: 390px;
    justify-content: center;
  }
}
