/* "Our work": the pinned title card that the project cards (work-cards.css) scroll over. */

.work-scroll-block {
  flex-flow: column;
  width: 100%;
  display: flex;
  position: relative;
}

.work-section {
  width: 100%;
  height: 100vh;
  padding: 60px var(--section-pad);
  position: sticky;
  top: 0;
  overflow: hidden;
}

.work-container {
  height: 100%;
  position: relative;
}

.work-block {
  flex-flow: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  display: flex;
  position: relative;
}

.work-text-1 {
  font-size: var(--h2);
  text-align: center;
  text-transform: uppercase;
  color: var(--color-teal);
  line-height: 1em;
}

.work-inner-block {
  justify-content: space-between;
  align-items: flex-start;
  width: 100%;
  display: flex;
  position: absolute;
  inset: 0% auto auto 0%;
}

.work-text-2 {
  max-width: 216px;
  font-family: var(--font-body);
  color: var(--color-text);
  font-size: var(--b2);
  text-transform: uppercase;
  line-height: 1.4em;
}
.work-text-2._2nd { text-align: right; }

@media screen and (max-width: 991px) {
  .work-text-1 { font-size: var(--h3); }
  .work-text-2 { max-width: 196px; font-size: var(--b3); }
}

@media screen and (max-width: 479px) {
  .work-block { gap: 44px; }
  .work-text-1 { font-size: var(--h4); }
  .work-inner-block {
    gap: 16px;
    flex-flow: column;
    justify-content: flex-start;
    align-items: center;
    position: static;
  }
  .work-text-2,
  .work-text-2._2nd { font-size: var(--b4); text-align: center; }
}
