#gh60-builds [data-build-photo] {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

#gh60-builds [data-build-photo]::after {
  content: '⤢' / '';
  position: absolute;
  inset: auto 8px 8px auto;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 4px;
  background: rgb(15 22 18 / 84%);
  color: #fff;
  font-size: 20px;
  line-height: 1;
}

#gh60-builds [data-build-photo]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

[data-gallery-dialog][data-build-viewer] {
  width: min(1440px, calc(100vw - 24px), calc(160dvh - 40px));
  max-width: none;
  max-height: calc(100dvh - 24px);
  margin: auto;
  padding: 0;
  overflow: hidden;
  background: #151818;
}

[data-build-viewer] [data-dialog-image] {
  display: block;
  width: 100%;
  height: auto;
}

[data-build-viewer] [data-dialog-close] {
  top: 8px;
  right: 8px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgb(255 255 255 / 68%);
  border-radius: 50%;
  background: rgb(15 22 18 / 88%);
  color: #fff;
  font-size: 26px;
  line-height: 1;
}

html:has([data-build-viewer][open]) {
  overflow: hidden;
}
