/* Project cards: edge-to-edge full screen, each one sticks and the next stacks on top
   (grow/tilt in js/scroll-timelines.js). Loaded after work.css because it refines .work-section and .work-block. */

.work-section._2nd {
  padding: 0;
  position: relative;
  top: auto;
}

.work-section._2nd .work-container { max-width: none; }

.work-block._2nd {
  justify-content: flex-end;
  padding: 30px 30px 100px;
  overflow: hidden;
}

.work-collection-list-wrapper { width: 100%; }
.work-collection-list {
  flex-flow: column;
  width: 100%;
  display: flex;
}
.work-collection-item {
  width: 100%;
  position: sticky;
  top: 0;
}

.work-image {
  vertical-align: baseline;
  object-fit: cover;
  object-position: 50% 0%;
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0% auto auto 0%;
}

.work-shadow-1,
.work-shadow-2 {
  width: 100%;
  height: 40%;
  position: absolute;
}
.work-shadow-1 {
  opacity: .5;
  background-image: linear-gradient(#000, #fff0);
  inset: 0% auto auto 0%;
}
.work-shadow-2 {
  background-image: linear-gradient(0deg, #000, #fff0);
  inset: auto auto 0% 0%;
}

.work-flex-1 {
  gap: 24px;
  flex-flow: column;
  justify-content: flex-start;
  align-items: center;
  display: flex;
  position: relative;
}

.work-text-3 {
  color: var(--color-text);
  font-size: var(--h3);
  text-align: center;
  text-transform: uppercase;
  font-weight: 500;
  line-height: 1em;
}

@media screen and (max-width: 767px) {
  .work-flex-1 { gap: 20px; }
  .work-text-3 { font-size: var(--h4); }
}

@media screen and (max-width: 479px) {
  .work-text-3 { line-height: 1.1em; }
}
