.project-carousel-viewport {
  background: transparent;
}

.project-dialog.is-multiline-title h2 {
  font-size: clamp(2.5rem, 4.8vw, 4.9rem);
  line-height: 1;
}

.project-dialog.is-single-image .project-carousel-controls {
  display: none;
}

.project-gallery-image {
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.project-dialog.is-contain-gallery .project-gallery-image {
  object-fit: contain;
}

.project-carousel-slide figcaption {
  position: static;
  display: block;
  padding: .6rem 0 0;
  background: transparent;
  text-align: right;
}

.project-dialog.is-video .project-carousel-slide figcaption {
  display: none;
}

.project-video-link {
  position: relative;
  display: block;
  color: var(--paper);
}

.project-video-player {
  display: block;
  width: 100%;
  max-height: 70svh;
  background: var(--ink);
}

.project-video-link .project-art {
  height: auto;
  min-height: 0;
  aspect-ratio: 16 / 9;
}

.project-video-label {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  padding: .65rem .8rem;
  background: var(--paper);
  color: var(--ink);
  font-size: .72rem;
  font-weight: 700;
  transition: background-color .25s ease, color .25s ease;
}

.project-video-link:hover .project-video-label,
.project-video-link:focus-visible .project-video-label {
  background: var(--acid);
}

.project-video-thumb {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.art-film:has(.project-video-thumb) {
  position: relative;
  overflow: hidden;
}

.art-film:has(.project-video-thumb)::before {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  background: linear-gradient(120deg, rgba(15, 15, 15, .1), rgba(15, 15, 15, .5));
}

.art-film:has(.project-video-thumb) i {
  position: relative;
  z-index: 2;
}

@media (max-width:700px) {
  .project-gallery-image {
    height: auto;
  }
}
