.hero-animated:has(+ .our-work) {
  .container>div>p {
    margin-bottom: var(--baseline);
  }
}

.case-studies-section {
  margin-top: var(--space-xxl);
  margin-bottom: var(--space-xxl);

  >h2 {
    margin-bottom: var(--space-md);
  }
}

.case-card {
  column-gap: var(--gutter);
  display: grid;
  row-gap: 0px;
  border-radius: var(--border-radius);
  border: 1px solid var(--color-iron-400);
  margin-bottom: var(--space-xl);

  @media (min-width: 0) {
    grid-template-columns: repeat(1, 1fr);
  }

  @media (min-width: 64rem) {
    grid-template-columns: repeat(12, 1fr);
  }
}

.case-image {
  aspect-ratio: 16 / 9;
  position: relative;
  padding-left: 0px;

  >img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}

@media (min-width: 0) {
  .case-image {
    grid-column: span 1;
    align-self: center;
  }
}

@media (min-width: 64rem) {
  .case-image {
    grid-column: span 6;
  }
}

.case-content {
  padding: var(--gutter);

  >* {
    margin-bottom: var(--space-md);
  }
}

@media (min-width: 0) {
  .case-content {
    grid-column: span 1;
  }
}

@media (min-width: 64rem) {
  .case-content {
    grid-column: span 6;
  }
}

.case-description {
  text-align: justify;
}

.case-header {
  gap: 0px;
  display: flex;
  height: auto;

  >img {
    max-height: 3rem;
    height: auto;
    max-width: 100%;
  }
}

@media (min-width: 0) {
  .case-header {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (min-width: 64rem) {
  .case-header {
    justify-content: space-between;
    align-items: center;
    flex-direction: row;
  }
}