/* Video edits page */
body.video-edits .sections {
  padding-top: 6px;
}

body.video-edits .video-card {
  display: flex;
  flex-direction: column;
}

body.video-edits .video-example {
  width: fit-content;
  max-width: 100%;
}

body.video-edits .video-card--vertical {
  width: min(260px, 100%);
}

body.video-edits .video-card--wide {
  max-width: 560px;
}

body.video-edits .video-preview {
  width: 100%;
  display: block;
  background: #050505;
  object-fit: contain;
}

body.video-edits .video-card--vertical .video-preview {
  aspect-ratio: 9 / 16;
}

body.video-edits .video-card--wide .video-preview {
  aspect-ratio: 16 / 9;
}

body.video-edits .video-shell {
  position: relative;
  overflow: hidden;
  background: #050505;
}

body.video-edits .video-controls {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: grid;
  grid-template-columns: auto minmax(80px, 1fr) auto auto auto;
  align-items: center;
  gap: 8px;
  padding: 10px;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .82));
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 160ms ease, transform 160ms ease;
}

body.video-edits .video-shell:hover .video-controls,
body.video-edits .video-shell:focus-within .video-controls {
  opacity: 1;
  transform: translateY(0);
}

body.video-edits .control-btn {
  position: relative;
  min-width: 34px;
  height: 34px;
  padding: 0 9px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 8px;
  background: rgba(5, 5, 5, .72);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  line-height: 1;
}

body.video-edits .control-icon {
  width: 18px;
  height: 18px;
  display: block;
  fill: currentColor;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

body.video-edits .mute-toggle {
  display: grid;
  place-items: center;
  padding: 0;
}

body.video-edits .mute-toggle.is-muted::after {
  content: "";
  position: absolute;
  width: 21px;
  height: 2px;
  border-radius: 999px;
  background: #ff5f57;
  transform: rotate(-38deg);
}

body.video-edits .control-btn:hover,
body.video-edits .control-btn:focus-visible {
  border-color: var(--outline-strong);
  background: rgba(17, 24, 39, .9);
  outline: none;
}

body.video-edits .video-time {
  color: #f3f4f6;
  font-size: 12px;
  white-space: nowrap;
}

body.video-edits .seek-slider {
  width: 100%;
  min-width: 0;
  accent-color: var(--accent);
  cursor: pointer;
}

body.video-edits .volume-control {
  position: relative;
  display: flex;
  align-items: center;
}

body.video-edits .volume-slider {
  position: absolute;
  left: 50%;
  bottom: 42px;
  width: 28px;
  height: 0;
  opacity: 0;
  accent-color: var(--accent);
  transform: translateX(-50%);
  transition: height 160ms ease, opacity 160ms ease;
  writing-mode: vertical-lr;
  direction: rtl;
}

body.video-edits .volume-control:hover .volume-slider,
body.video-edits .volume-control:focus-within .volume-slider {
  height: 88px;
  opacity: 1;
}

body.video-edits .video-shell:fullscreen {
  display: grid;
  place-items: center;
  background: #000;
}

body.video-edits .video-shell:fullscreen .video-preview {
  width: auto;
  height: 100%;
  max-width: 100%;
}

body.video-edits .video-shell:fullscreen .volume-slider {
  height: 0;
  opacity: 0;
}

body.video-edits .video-copy {
  min-width: 0;
}

body.video-edits .video-desc {
  max-width: 560px;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

body.video-edits .grid:empty::before {
  content: "Projects coming soon.";
  display: block;
  grid-column: 1 / -1;
  padding: 18px;
  border: 1px dashed var(--outline);
  border-radius: 8px;
  color: var(--muted);
  background: rgba(255, 255, 255, .02);
}

@media (max-width: 720px), (hover: none) and (pointer: coarse) and (max-width: 980px) {
  body.video-edits .video-example,
  body.video-edits .video-card--wide,
  body.video-edits .video-card--vertical,
  body.video-edits .video-desc {
    width: 100%;
    max-width: none;
  }

  body.video-edits .video-controls {
    position: static;
    grid-template-columns: auto 1fr auto;
    gap: 8px;
    padding: 8px;
    background: #080808;
    opacity: 1;
    transform: none;
  }

  body.video-edits .seek-slider {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  body.video-edits .play-toggle {
    grid-column: 1;
    grid-row: 2;
  }

  body.video-edits .video-time {
    grid-column: 2;
    grid-row: 2;
    text-align: center;
  }

  body.video-edits .volume-control {
    grid-column: 3;
    grid-row: 2;
    justify-content: end;
  }

  body.video-edits .fullscreen-toggle {
    grid-column: 1 / -1;
    grid-row: 3;
    width: 100%;
  }

  body.video-edits .volume-slider {
    left: auto;
    right: 0;
  }
}
