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

.c-FeaturedWork_stickyCards {
  position: relative;
  width: 100%;
  height: 100svh;
  overflow: hidden;
  background-color: var(--base-1000);
  perspective: 1000px;
  color: var(--base-100);
}

.c-FeaturedWork_sectionNav,
.c-FeaturedWork_sectionFooter {
  position: absolute;
  left: 0;
  z-index: 10;
  width: 100%;
  pointer-events: none;
}

.c-FeaturedWork_sectionNav {
  top: 0;
}

.c-FeaturedWork_sectionFooter {
  bottom: 0;
}

.c-FeaturedWork_card {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 65%;
  height: 60%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  padding: 2.25rem;
  border-radius: 0.4rem;
  transform-origin: center bottom;
  will-change: transform;
}

.c-FeaturedWork_card:nth-child(1) {
  z-index: 5;
}

.c-FeaturedWork_card:nth-child(2) {
  z-index: 4;
}

.c-FeaturedWork_card:nth-child(3) {
  z-index: 3;
}

.c-FeaturedWork_card:nth-child(4) {
  z-index: 2;
}

.c-FeaturedWork_col {
  flex: 1;
  height: 100%;
  min-width: 0;
}

.c-FeaturedWork_col:first-child {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 0.5rem;
}

.c-FeaturedWork_colTop {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.c-FeaturedWork_colTop h3 {
  font-size: clamp(1.5rem, 4vw, 4rem);
  color: var(--base-100);
}

.c-FeaturedWork_description {
  max-width: 28ch;
}

.c-FeaturedWork_colMedia {
  border-radius: 0.35rem;
  overflow: hidden;
  background-color: var(--base-1000);
}

.c-FeaturedWork_colMedia img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 1000px) {
  .c-FeaturedWork_card {
    width: calc(100% - 2.5rem);
    height: 68%;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 1rem;
    padding: 1.25rem;
    overflow: hidden;
  }

  .c-FeaturedWork_card h3 {
    font-size: 2rem;
  }

  .c-FeaturedWork_col {
    width: 100%;
    height: auto;
    min-height: 0;
  }

  .c-FeaturedWork_col:first-child {
    flex: 1 1 auto;
    justify-content: flex-start;
    gap: 1rem;
  }

  .c-FeaturedWork_colTop {
    gap: 3arem;
  }

  .c-FeaturedWork_description {
    max-width: none;
  }

  .c-FeaturedWork_colMedia {
    flex: 0 0 auto;
    width: 100%;
    height: 42%;
    min-height: 10rem;
  }
}
