/* Added to each product site copied into the portfolio. Page transitions and the way back. */
@view-transition {
  navigation: auto;
}
::view-transition-group(*) {
  animation-duration: 520ms;
  animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
}
::view-transition-old(root) {
  animation: 160ms ease both pf-out;
}
::view-transition-new(root) {
  animation: 320ms cubic-bezier(0.22, 1, 0.36, 1) 60ms both pf-in;
}
@keyframes pf-out {
  to { opacity: 0; }
}
@keyframes pf-in {
  from { opacity: 0; transform: translateY(10px); }
}
@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(*),
  ::view-transition-old(*),
  ::view-transition-new(*) {
    animation-duration: 1ms !important;
  }
}

.pf-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: none;
  height: 30px;
  margin-right: -6px;
  padding: 0 10px 0 6px;
  border-radius: 8px;
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  color: inherit;
  text-decoration: none;
  white-space: nowrap;
  opacity: 0.6;
  transition: opacity 160ms ease, background-color 160ms ease;
}
.pf-back:hover {
  opacity: 1;
  background: color-mix(in srgb, currentColor 8%, transparent);
}
.pf-back:focus-visible {
  opacity: 1;
  outline: 2px solid currentColor;
  outline-offset: 2px;
}
.pf-back svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.pf-back::after {
  content: '';
  width: 1px;
  height: 16px;
  margin-left: 10px;
  background: currentColor;
  opacity: 0.25;
}
.pf-back--float {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 2147483000;
  opacity: 0.85;
  background: color-mix(in srgb, Canvas 86%, transparent);
}
.pf-back--float::after {
  display: none;
}
@media (max-width: 640px) {
  .pf-back span {
    display: none;
  }
  .pf-back {
    padding-right: 4px;
  }
}
