html:has(.project-viewer[open]) { overflow: hidden; }
.project-viewer {
  box-sizing: border-box;
  width: 80vw;
  height: 80dvh;
  max-width: none;
  max-height: none;
  padding: 0;
  border: 1px solid #ffffff33;
  background: #172526;
  color: white;
}
.project-viewer::backdrop {
  background: #101919a8;
  backdrop-filter: blur(8px);
}
.project-viewer-frame {
  display: grid;
  grid-template-rows: 44px minmax(0, 1fr) 44px;
  height: 100%;
}
.project-viewer img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
}
.project-viewer-close { justify-self: end; }
.project-viewer-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
}
.project-viewer button {
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  color: inherit;
  font-size: 25px;
  cursor: pointer;
}
.project-viewer button:disabled { opacity: .35; cursor: default; }
.project-viewer button:focus-visible { outline: 2px solid white; outline-offset: -4px; }
.project-viewer [data-counter] { min-width: 54px; text-align: center; font-size: 13px; }
