.work {
  width: 100%;
}

.work-carousel {
  --work-card: clamp(190px, 18vw, 310px);
  --work-gap: 20px;
  width: 100%;
  overflow: hidden;
  padding: 0 clamp(14px, 3.5vw, 72px);
  mask-image: linear-gradient(90deg, transparent 0, #000 5%, #000 95%, transparent 100%);
}

.work-track {
  display: flex;
  width: max-content;
  gap: var(--work-gap);
  animation: work-carousel 28s linear infinite;
  will-change: transform;
}

.work-carousel:hover .work-track {
  animation-play-state: paused;
}

.work-shot {
  flex: 0 0 var(--work-card);
  aspect-ratio: 1.15;
  overflow: hidden;
  border: 1px solid var(--stroke);
  border-radius: 8px;
  background: #070808;
}

.work-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.72) contrast(1.1);
  transform: scale(1.16);
}

.shot-one img {
  object-position: 86% 26%;
}

.shot-two img {
  object-position: 74% 38%;
  transform: scale(1.42);
}

.shot-three img {
  object-position: 34% 52%;
  transform: scale(1.26);
}

.shot-four img {
  object-position: 68% 34%;
  transform: scale(1.18);
}

.shot-five img {
  object-position: 92% 45%;
  transform: scale(1.38);
}

.shot-six img {
  object-position: 79% 28%;
}

@keyframes work-carousel {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(calc(-6 * (var(--work-card) + var(--work-gap))));
  }
}

.outline-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: min(220px, 100%);
  min-height: 42px;
  margin: 18px auto 0;
  gap: 10px;
  border: 1px solid var(--stroke-strong);
  border-radius: 8px;
  color: var(--silver);
  font-size: 0.8rem;
  font-weight: 900;
  text-transform: uppercase;
  transition: transform 160ms ease, border-color 160ms ease;
}

.work .outline-link {
  margin-left: clamp(14px, 3.5vw, 72px);
}

.outline-link:hover {
  transform: translateY(-2px);
  border-color: rgba(247, 248, 248, 0.72);
}

.outline-link svg {
  width: 17px;
  height: 17px;
}

@media (max-width: 760px) {
  .work-carousel {
    --work-card: clamp(150px, 42vw, 210px);
    --work-gap: 12px;
    padding: 0 10px;
  }
}

@media (max-width: 420px) {
  .work-carousel {
    --work-card: 154px;
    --work-gap: 10px;
  }
}
