.work-page {
  display: grid;
  grid-template-columns: 1fr 2fr; /* 2/6 : 4/6 */
  height: calc(100vh - var(--navbar-height, 80px));
  overflow: hidden;
  padding: 0;
  margin: 2rem;
  align-items: start;
}

@media (min-width: 1440px) {
  .work-page {
    grid-template-columns: 1fr 1fr;
  }
}

.work-page__visual {
  position: sticky;
  top: var(--navbar-height, 80px); /* stick below your navbar */
  align-self: start;
  height: calc(100vh - var(--navbar-height, 80px));
  display: flex;
  align-items: flex-start;
  justify-content: center;
  overflow: hidden;
  padding: 0;
  margin-top: 1rem;
}

.work-page__image,
.work-page__video {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  width: 100%;
  height: auto;
  max-height: 100%;
  object-fit: contain;
  object-position: top center;
  transition: opacity 0.3s ease;
}

.work-page__video {
  transition: opacity 200ms ease;
}

.work-page__visual video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: top center;
  opacity: 0;
  transition: opacity 200ms ease;
}

.work-page__image.is-active {
  opacity: 1;
}

.work-page__video.is-active {
  opacity: 1;
}

@media (hover: hover) {

.work-page__list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 1rem 0 2rem 0;
  margin: 0;
  max-height: calc(100vh - var(--navbar-height, 80px));
  box-sizing: border-box;
  overflow-y: auto;
}

.work-page__item {
  border: 1px solid #000;
  margin-top: -1px;
  padding: 0;
  overflow: hidden;
  min-height: 80px;
  display: flex;
  flex-direction: column;
  position: relative;
}

.work-page__link {
    display: flex;
    flex-direction: column;
    color: inherit;
    text-decoration: none;
}

.work-page__meta {
    font-family: 'Inclusive Sans', sans-serif;
    letter-spacing: -0.025em;
    font-weight: 200;
    display: flex;
    gap: 2.5rem;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    position: static;
    margin-left: 1rem;
    margin-top: 0.25rem;
}

.work-page__title {
    font-family: 'Inclusive Sans', sans-serif;
    letter-spacing: -0.025em;
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
    overflow: visible;
    margin: 0;
    position: relative;
    left: 1rem;
    margin-bottom: 0.25rem;
}

.work-page__marquee {
    display: inline-flex;
    gap: 2rem;
    transform: translateX(0);
    --scroll-distance: 0;
}

.work-page__item:hover .work-page__marquee.is-overflowing {
    animation: marquee 2s ease-in-out infinite;
}


}

@media (hover: none) {
.work-page__list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 1rem 0 2rem 0;
  margin: 0;
  max-height: calc(100vh - var(--navbar-height, 80px));
  box-sizing: border-box;
  overflow-y: auto;
}

.work-page__item {
  border: 1px solid #000;
  margin-top: -1px;
  padding: 0;
  overflow: hidden;
  min-height: 80px;
  display: flex;
  flex-direction: column;
  position: relative;
}

.work-page__link {
    display: flex;
    flex-direction: column;
    color: inherit;
    text-decoration: none;
}

.work-page__meta {
    font-family: 'Inclusive Sans', sans-serif;
    letter-spacing: -0.025em;
    font-weight: 200;
    display: flex;
    gap: 2.5rem;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    position: static;
    margin-left: 1rem;
    margin-top: 0.25rem;
}

.work-page__title {
    font-family: 'Inclusive Sans', sans-serif;
    letter-spacing: -0.025em;
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
    overflow: visible;
    margin: 0;
    position: relative;
    left: 1rem;
    bottom: 1rem;
    margin-bottom: 0.25rem !important;
}

.work-page__marquee {
    display: inline-flex;
    gap: 2rem;
    transform: translateX(0);
    --scroll-distance: 0;
}

.work-page__item:focus .work-page__marquee.is-overflowing {
    animation: marquee 2s ease-in-out infinite;
}}


@keyframes marquee {
  0% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(var(--scroll-distance));
  }
  100% {
    transform: translateX(0);
  }
}

.work-page__list,
.work-page__item {
  min-width: 0;
}


@media (max-width: 720px) {
    .work-page {
        grid-template-columns: 1fr;
    }
    
    .work-page__visual {
        display: none;
    }
    .work-page__title {
        margin-bottom: 0rem;
    }
}

