/* ExpertiseCards — was ExpertiseCards.module.css. The bundler's hashed class names are
   replaced by a plain c-ExpertiseCards_ prefix so the stylesheet stands alone. */

.c-ExpertiseCards_stickyCards {
  position: relative;
  width: 100%;
  background-color: var(--base-1000);
}

.c-ExpertiseCards_card {
  position: sticky;
  width: 100%;
  height: 125svh;
  transform-style: preserve-3d;
  perspective: 1000px;
}

.c-ExpertiseCards_cardInner {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  transform-origin: 50% 100%;
  will-change: transform;
  text-align: center;
  color: var(--base-1000);
}

.c-ExpertiseCards_cardInfo {
  width: 15%;
  padding: 2.25rem;
  text-align: left;
}

.c-ExpertiseCards_cardTitle h2 {
  padding: 2rem 0;
}

.c-ExpertiseCards_cardDescription {
  width: 60%;
  margin: 0 auto 2em;
}

.c-ExpertiseCards_cardImg {
  width: 100%;
  height: 100%;
  margin-top: 4em;
  overflow: hidden;
}

.c-ExpertiseCards_cardInner::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  background-color: var(--base-1000);
  opacity: var(--after-opacity, 0);
  will-change: opacity;
  pointer-events: none;
}

@media (max-width: 1000px) {
  .c-ExpertiseCards_cardTitle h2 {
    font-size: 3rem;
  }

  .c-ExpertiseCards_cardInfo {
    width: 75%;
    margin: 0 auto;
    padding: 4em 2em;
    text-align: center;
  }

  .c-ExpertiseCards_cardDescription {
    width: calc(100% - 4rem);
    margin: 0 auto;
  }
}
