.project-album .project-photo-preview {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}
.project-album .project-video-preview {
  display: block;
  width: 100%;
  min-height: 48px;
  padding: 12px;
  background: var(--white);
  color: var(--ink);
  border: 1px solid var(--line);
  cursor: pointer;
}
.project-album .project-viewer {
  position: fixed;
  inset: 0;
  width: min(1200px, calc(100vw - 24px));
  max-width: none;
  max-height: calc(100svh - 24px);
  margin: auto;
  padding: 16px;
  border: 1px solid #ffffff40;
  background: #191d19;
  color: #fffcf6;
}
.project-viewer::backdrop {
  background: #111d;
}
.project-viewer-stage {
  height: min(70svh, 850px);
  display: grid;
  place-items: center;
}
.project-album .project-viewer-stage img,
.project-album .project-viewer-stage video {
  width: 100%;
  height: 100%;
  max-height: min(70svh, 850px);
  object-fit: contain;
}
.project-viewer button {
  min-width: 48px;
  min-height: 48px;
  padding: 8px 16px;
  border: 1px solid #ffffff80;
  background: #292f29;
  color: #fffcf6;
  cursor: pointer;
}
.project-viewer button:disabled {
  opacity: 0.4;
  cursor: default;
}
.project-viewer button:focus-visible,
.project-photo-preview:focus-visible,
.project-video-preview:focus-visible {
  outline: 3px solid #d8ab8a;
  outline-offset: 3px;
}
.project-viewer-close {
  display: block;
  margin: 0 0 12px auto;
}
.project-viewer-controls {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
}
.project-viewer-status {
  text-align: center;
  font-size: 14px;
  max-height: 4.5em;
  overflow: auto;
}
body:has(.project-viewer[open]) {
  overflow: hidden;
}
@media (max-width: 600px) {
  .project-viewer-stage,
  .project-album .project-viewer-stage img,
  .project-album .project-viewer-stage video {
    height: 55svh;
    max-height: 55svh;
  }
}
