::view-transition-old(root) {
  animation: slide-out-up var(--slide) ease-in-out both;
}
::view-transition-new(root) {
  animation: slide-in-up var(--slide) ease-in-out both;
}

::-webkit-scrollbar {
  display: none;
}

.back {
  position: fixed;
  top: var(--edge);
  left: var(--edge);
  z-index: 10;
  display: block;
  opacity: 0.6;
}
.back:hover,
.back:focus-visible {
  opacity: 1;
}
.back img {
  display: block;
  width: 28px;
  height: 28px;
  transform: rotate(-135deg);
}

main {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-sizing: border-box;
  min-height: 100vh;
  padding: calc(var(--edge) * 2) var(--edge) var(--edge);
}

.work {
  margin: 3.5em 0 0;
  width: min(86vw, 880px);
  overflow: hidden;
}
.work-media {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.work-poster {
  z-index: 2;
  opacity: 1;
  transition: opacity 1s ease;
}
.work-poster.is-hidden {
  opacity: 0;
}
.work-video {
  z-index: 1;
  inset: -2.5%;
  width: 105%;
  height: 105%;
  opacity: 0;
  transition: opacity 0.7s ease;
}
.work-video.is-visible {
  opacity: 1;
}

.content {
  max-width: min(86vw, 34em);
  margin: 4.5em 0 0;
}
.label {
  margin: 0 0 1.8em;
  font-size: 0.7rem;
  font-weight: 300;
  letter-spacing: 0.4em;
  text-indent: 0.4em;
  opacity: 0.4;
}
.label::after {
  content: "";
  display: block;
  width: 100%;
  height: 1px;
  margin-top: 1.4em;
  background: #fff;
}
.content p {
  margin: 0;
  font-size: clamp(0.8rem, 2vw, 0.95rem);
  font-weight: 300;
  letter-spacing: 0.14em;
  line-height: 2.4;
  text-align: justify;
  opacity: 0.8;
}
.content p + p {
  margin-top: 2em;
}

.copyright {
  margin: auto 0 0;
  padding-top: calc(var(--edge) * 2);
}
