.project-dialog {
  position: fixed;
  inset: 0;
  z-index: 10000;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: #090909;
  color: #fff;
  opacity: 0;
  visibility: hidden;
  transition: opacity .45s ease, visibility .45s;
}

.project-dialog.open { opacity: 1; visibility: visible; }

.project-dialog-close {
  position: fixed;
  z-index: 2;
  top: 56px;
  right: 68px;
  box-sizing: border-box;
  border: 1px solid rgba(255,255,255,.72);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  padding: 0;
  display: grid;
  place-items: center;
  background: transparent;
  color: #fff;
  font: inherit;
  cursor: pointer;
  transition: background .28s ease, color .28s ease, transform .28s ease;
}

.project-dialog-close:hover,
.project-dialog-close:focus-visible,
.video-sound:hover,
.video-sound:focus-visible { background: #fff; color: #090909; transform: scale(1.025); }

.project-dialog-close svg,
.video-sound svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.video-sound .sound-speaker { fill: currentColor; stroke: none; }

.project-dialog-content { position: relative; left: calc((100vw - 100%) / 2); width: 53.76vw; margin: 0 auto; }

.project-dialog-intro {
  margin-top: clamp(52px, 4vw, 78px);
  padding: 0 0 clamp(92px, 7vw, 132px);
  border-top: 1px solid rgba(255,255,255,.24);
  display: flex;
  flex-direction: column;
}

.project-dialog-meta {
  display: flex;
  justify-content: space-between;
  padding-top: 13px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .04em;
  color: rgba(255,255,255,.62);
}

.project-dialog-intro h2 {
  margin: clamp(110px, 9vw, 176px) 0 48px;
  font-size: clamp(4rem, 4vw, 5.5rem);
  line-height: .88;
  letter-spacing: -.07em;
}

.project-dialog-intro p {
  width: 85%;
  margin: 0;
  font-size: clamp(.9375rem, .8vw, 1rem);
  font-weight: 300;
  line-height: 1.55;
}

.project-dialog-intro p + p { margin-top: 24px; }

.project-dialog-dots {
  display: flex;
  gap: 10px;
  margin-top: 62px;
  padding-left: 18px;
}

.project-dialog-dots i {
  box-sizing: border-box;
  width: 16px;
  height: 16px;
  border: 1.5px solid #fff;
  border-radius: 50%;
}

.project-dialog-dots i:first-child {
  background: #fff;
}

.project-dialog-videos figure { position: relative; margin: 0; background: #000; }
.project-dialog-videos video, .project-dialog-images img { display: block; width: 100%; height: auto; }

.project-dialog-videos figure::after {
  content: '';
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 104px;
  background: linear-gradient(transparent, rgba(0,0,0,.62));
  pointer-events: none;
}

.video-controls {
  position: absolute;
  z-index: 1;
  right: 82px;
  bottom: 29px;
  left: 22px;
  display: grid;
  grid-template-columns: max-content minmax(60px, 1fr) max-content;
  align-items: center;
  gap: 12px;
  color: #fff;
  font-size: 10px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  letter-spacing: .04em;
}

.video-controls time { min-width: 31px; }
.video-duration { text-align: right; }

.video-progress {
  --progress: 0%;
  width: 100%;
  height: 18px;
  margin: 0;
  padding: 0;
  border: 0;
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  cursor: pointer;
  touch-action: pan-y;
}

.video-progress::-webkit-slider-runnable-track {
  height: 1px;
  background: linear-gradient(to right, #fff var(--progress), rgba(255,255,255,.38) var(--progress));
}

.video-progress::-moz-range-track { height: 1px; background: rgba(255,255,255,.38); }
.video-progress::-moz-range-progress { height: 1px; background: #fff; }

.video-progress::-webkit-slider-thumb {
  width: 8px;
  height: 8px;
  margin-top: -3.5px;
  border: 1px solid #fff;
  border-radius: 50%;
  appearance: none;
  -webkit-appearance: none;
  background: #090909;
  opacity: 0;
  transition: opacity .2s ease, transform .2s ease, background .2s ease;
}

.video-progress::-moz-range-thumb {
  width: 8px;
  height: 8px;
  border: 1px solid #fff;
  border-radius: 50%;
  background: #090909;
  opacity: 0;
  transition: opacity .2s ease, transform .2s ease, background .2s ease;
}

.video-progress:hover::-webkit-slider-thumb,
.video-progress:focus-visible::-webkit-slider-thumb,
.video-progress:active::-webkit-slider-thumb { opacity: 1; transform: scale(1.15); background: #fff; }
.video-progress:hover::-moz-range-thumb,
.video-progress:focus-visible::-moz-range-thumb,
.video-progress:active::-moz-range-thumb { opacity: 1; transform: scale(1.15); background: #fff; }
.video-progress:focus-visible { outline: 1px solid rgba(255,255,255,.8); outline-offset: 4px; }

.video-sound {
  position: absolute;
  right: 22px;
  bottom: 22px;
  box-sizing: border-box;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.72);
  border-radius: 50%;
  padding: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
  transition: background .28s ease, color .28s ease, transform .28s ease;
}

.video-sound:not(.sound-on) .sound-waves,
.video-sound.sound-on .sound-slash { display: none; }

.project-dialog-images { line-height: 0; }
body.project-dialog-open { overflow: hidden; }

.project-dialog-trigger:focus:not(:focus-visible) { outline: none; }
.project-dialog-trigger:focus-visible { outline: 1px solid rgba(0,0,0,.72); outline-offset: 3px; }

@media (max-width: 800px) {
  .project-dialog-close { top: 20px; right: 20px; width: 40px; height: 40px; }
  .project-dialog-content { left: 0; width: calc(100% - 32px); }
  .project-dialog-intro { margin-top: 72px; padding: 0 0 56px; }
  .project-dialog-meta { padding-top: 11px; font-size: 10px; }
  .project-dialog-intro h2 { margin: 72px 0 28px; font-size: 14vw; }
  .project-dialog-intro p { width: 100%; font-size: .9375rem; line-height: 1.6; }
  .project-dialog-dots { margin-top: 42px; padding-left: 0; }
  .project-dialog-dots i { width: 12px; height: 12px; }
  .video-sound { right: 12px; bottom: 12px; width: 40px; height: 40px; }
  .video-controls { right: 64px; bottom: 23px; left: 12px; gap: 8px; font-size: 9px; }
  .project-dialog-videos figure::after { height: 82px; }
}
