/* VOW project preview. The OPHYC page typography and grid stay shared. */
.work-photo.vow-preview {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 17px;
  min-height: 0;
  height: 100%;
  aspect-ratio: auto;
  padding: 34px 7% 20px;
  background: radial-gradient(ellipse at 65% 0%, #3b4b41 0%, transparent 65%),
    linear-gradient(160deg, #24372e, #101b17 74%);
}
.vow-notebook {
  position: relative;
  width: 100%;
  max-width: 630px;
  padding-bottom: 13px;
  isolation: isolate;
}
.vow-notebook::after {
  content: "";
  position: absolute;
  z-index: -1;
  left: -4%;
  right: -4%;
  bottom: -5px;
  height: 13px;
  border-radius: 50%;
  background: #050b08;
  filter: blur(9px);
  opacity: .65;
}
.vow-display {
  position: relative;
  padding: 13px 7px 9px;
  background: linear-gradient(140deg, #454c49, #0b100f 23%, #181e1b 82%, #707970);
  border: 1px solid #9ca69d;
  border-bottom-color: #050908;
  border-radius: 10px 10px 4px 4px;
  box-shadow: inset 0 0 0 2px #151b17, 0 8px 24px #0004;
}
.vow-display::before {
  content: "";
  position: absolute;
  top: 5px;
  left: calc(50% - 2px);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #030908;
  box-shadow: inset 0 0 0 1px #394b41;
}
.vow-screen {
  aspect-ratio: 1349 / 630;
  overflow: hidden;
  background: #050c0f;
  border: 1px solid #020605;
  border-radius: 2px;
  contain: layout paint;
}
.vow-track {
  display: flex;
  flex-direction: column;
  height: 100%;
  transform: translate3d(0, 0, 0);
}
.vow-slide {
  position: relative;
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #050c0f;
}
.vow-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.vow-base {
  position: absolute;
  bottom: 0;
  left: -6%;
  width: 112%;
  height: 14px;
  border-radius: 1px 1px 45% 45% / 1px 1px 90% 90%;
  border: 1px solid #8f9a92;
  border-top-color: #d2d8d1;
  border-bottom-color: #080e0b;
  background: linear-gradient(#a1aba4 0%, #69756d 25%, #242f29 55%, #101a14 100%);
}
.vow-base::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 42%;
  width: 16%;
  height: 5px;
  border-radius: 0 0 5px 5px;
  background: linear-gradient(#2d3831, #8e9a90);
}
.vow-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  color: #d5dbd0;
  font: 400 8px/1.4 Arial, Helvetica, sans-serif;
  letter-spacing: .08em;
}
.vow-controls button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 5px;
  min-height: 32px;
  min-width: 32px;
  padding: 4px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
  letter-spacing: inherit;
}
.vow-controls button:disabled { opacity: .35; cursor: default; }
.vow-controls button:hover:not(:disabled) { color: #fff; }
.vow-controls button:focus-visible { outline-color: #c5d1b9; outline-offset: 1px; }
.vow-controls svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.25; }
.vow-toggle { min-width: 62px !important; }
.vow-toggle .vow-play { display: none; }
.vow-preview[data-playing="false"] .vow-toggle .vow-pause { display: none; }
.vow-preview[data-playing="false"] .vow-toggle .vow-play { display: block; }
.vow-count { min-width: 40px; text-align: center; font-variant-numeric: tabular-nums; }
.vow-controls .vow-divider { width: 1px; height: 12px; background: #8b9b874f; }
.vow-work .work-lead { max-width: 350px; }
.vow-work .work-description { max-width: 390px; }
.vow-work .project-link:hover .project-arrow { transform: translateX(4px); }
.vow-work .project-arrow { transition: transform .2s ease; }
@media (max-width: 899px) {
  .work-photo.vow-preview { padding: 29px 9% 12px; gap: 12px; }
  .vow-notebook { max-width: 630px; }
}
@media (max-width: 420px) {
  .work-photo.vow-preview { padding: 24px 7.5% 9px; gap: 7px; }
  .vow-display { padding: 10px 5px 7px; border-radius: 7px 7px 3px 3px; }
  .vow-display::before { top: 4px; width: 3px; height: 3px; }
  .vow-controls { gap: 9px; font-size: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .vow-work .project-arrow { transition: none; }
}
