@media (prefers-reduced-motion: no-preference) {
  @view-transition {
    navigation: auto;
    types: portfolio-section;
  }
}

html:active-view-transition-type(portfolio-section) :is(.home-header, .v4-play > .v3-site-header) {
  view-transition-name: portfolio-header;
}

html:active-view-transition-type(portfolio-section) .project-cover {
  view-transition-name: none !important;
}

html:active-view-transition-type(portfolio-section)::view-transition-group(root),
html:active-view-transition-type(portfolio-section)::view-transition-group(portfolio-header),
html:active-view-transition-type(portfolio-section)::view-transition-old(root),
html:active-view-transition-type(portfolio-section)::view-transition-new(portfolio-header) {
  animation: none;
}

html:active-view-transition-type(portfolio-section)::view-transition-old(portfolio-header) {
  display: none;
}

html:active-view-transition-type(portfolio-section)::view-transition-new(root) {
  animation: portfolio-content-in 150ms ease-out both;
  mix-blend-mode: normal;
}

@keyframes portfolio-content-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
