html, body {
  overflow-x: hidden;
  max-width: 100%;
  margin: 0;
  background-color: #050505;
}

#workPinWrap {
  height: auto;
  min-height: auto;
  overflow: visible;
  display: flex;
  align-items: center;
}

#workTrack {
  will-change: transform;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  width: 100%;
  padding: 1rem 1.25rem;
}

.work-card {
  width: 100%;
  max-width: 100%;
  height: 380px; 
  display: flex;
  flex-direction: column;
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background-color: #0c0c0b;
  border: 1px solid rgba(237,234,226,0.08);
}

.work-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
  transform: scale(1.05);
}

.card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(5,5,5,0.95),
    rgba(5,5,5,0.4),
    transparent
  );
}

.card-info {
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: 20px;
  color: white;
  z-index: 10;
}

/* DESKTOP VIEW: Restore horizontal pinning and custom sizing ONLY on large screens */
@media (min-width: 1024px) {
  #workPinWrap {
    height: 100vh;
    overflow: hidden;
  }

  #workTrack {
    flex-direction: row;
    align-items: center;
    gap: 4vw;
    height: 75vh;
    padding: 0 12vw;
    width: auto;
  }

  .work-card {
    flex-shrink: 0;
    width: 28vw; 
    max-width: 420px;
    height: 68vh;
  }
}