/* Portfolio Years (/portfolio): product title + corner scrim inside banner on hover. */

@media screen and (min-width: 1024px) and (pointer: fine) {
  /* Portfolio hover: no thumbnail overlay/scrim labels; only the real title turns red. */
  body.page-template-page-archive-work-chronological .works-chronology .work__thumbnail-over,
  body.page-template-page-archive-work-chronological .works-chronology .vl-portfolio-banner-hover-scrim,
  body.page-template-page-archive-work-chronological .works-chronology .vl-portfolio-banner-hover-label {
    display: none !important;
    opacity: 0 !important;
  }

  body.page-template-page-archive-work-chronological .works-chronology .work__link:hover .work__title,
  body.page-template-page-archive-work-chronological .works-chronology .work__link:focus-visible .work__title,
  body.page-template-page-archive-work-chronological .works-chronology .work:focus-within .work__title {
    color: var(--color-accent, #ff2b2b) !important;
    -webkit-text-fill-color: currentColor !important;
    background: none !important;
    -webkit-background-clip: border-box !important;
    background-clip: border-box !important;
  }

  body.page-template-page-archive-work-chronological .works-chronology .work__thumbnail {
    position: relative;
    overflow: hidden;
  }

  /* Light corner tint only - no large dark block */
  body.page-template-page-archive-work-chronological
    .works-chronology
    .vl-portfolio-banner-hover-scrim {
    position: absolute;
    left: 0;
    bottom: 0;
    z-index: 3;
    width: min(42%, 9rem);
    height: 22%;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.22s ease;
    background: linear-gradient(
      to top right,
      rgba(0, 0, 0, 0.28) 0%,
      transparent 85%
    );
  }

  body.page-template-page-archive-work-chronological
    .works-chronology
    .vl-portfolio-banner-hover-label {
    position: absolute;
    left: clamp(0.55rem, 1.6vw, 0.85rem);
    bottom: clamp(0.45rem, 1.2vw, 0.65rem);
    z-index: 4;
    max-width: calc(100% - 1rem);
    margin: 0;
    padding: 0;
    font-size: clamp(0.72rem, 1.1vw, 0.875rem);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #fff;
    text-shadow:
      0 1px 2px rgba(0, 0, 0, 0.65),
      0 0 12px rgba(0, 0, 0, 0.35);
    pointer-events: none;
    opacity: 0;
    transform: translateY(0.35rem);
    transition:
      opacity 0.28s ease,
      transform 0.28s ease;
  }

  body.page-template-page-archive-work-chronological
    .works-chronology
    .work:hover
    .vl-portfolio-banner-hover-label,
  body.page-template-page-archive-work-chronological
    .works-chronology
    .work:focus-within
    .vl-portfolio-banner-hover-label {
    opacity: 1;
    transform: translateY(0);
  }

  body.page-template-page-archive-work-chronological
    .works-chronology
    .work:hover
    .vl-portfolio-banner-hover-scrim,
  body.page-template-page-archive-work-chronological
    .works-chronology
    .work:focus-within
    .vl-portfolio-banner-hover-scrim {
    opacity: 0.85;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.page-template-page-archive-work-chronological
    .works-chronology
    .vl-portfolio-banner-hover-scrim,
  body.page-template-page-archive-work-chronological
    .works-chronology
    .vl-portfolio-banner-hover-label {
    transition: none;
  }
}
