.ds-home .ds-photo-link {
  position: relative;
  display: block;
  min-width: 0;
  width: 100%;
  align-self: center;
  color: white;
  text-decoration: none;
  border-radius: clamp(.5rem, 1vw, 1rem);
}
.ds-home .ds-photo-link .ds-photo-zoom {
  position: absolute;
  inset-inline-end: .75rem;
  inset-block-end: .75rem;
  padding: .35rem .75rem;
  border-radius: .4rem;
  background: rgb(24 24 26 / 88%);
  color: white;
  font-size: .94rem;
  font-weight: 600;
  line-height: 1.4;
}
.ds-photo-link:is(:hover, :focus-visible) .ds-photo-zoom {
  text-decoration: underline;
  text-underline-offset: .18em;
}
.ds-photo-viewer:not([open]) { display: none; }
.ds-photo-viewer[open] {
  --viewer-pad: clamp(.75rem, 2vw, 1.25rem);
  box-sizing: border-box;
  position: fixed;
  inset: 0;
  margin: auto;
  width: min(80rem, calc(100% - 1rem));
  max-width: none;
  max-height: calc(100% - 1rem);
  max-height: calc(100dvh - 1rem);
  overflow: auto;
  overscroll-behavior: contain;
  padding: var(--viewer-pad);
  border: 0;
  border-radius: .75rem;
  background: #151516;
  color: #fff;
  font: inherit;
  line-height: 1.45;
}
.ds-photo-viewer::backdrop { background: rgb(14 14 15 / 82%); }
html:has(#design-photos[open]) { overflow: hidden; scrollbar-gutter: stable; }
.ds-photo-viewer .ds-gallery-bar,
.ds-photo-viewer .ds-gallery-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .25rem .75rem;
}
.ds-photo-viewer [data-photo-count] {
  font-variant-numeric: tabular-nums;
  color: #ddd;
}
.ds-photo-viewer figure { margin: .5rem 0 0; }
.ds-photo-viewer [data-gallery-frame] picture { display: block; }
.ds-photo-viewer [data-gallery-frame] img {
  display: block;
  width: 100%;
  height: auto;
  max-width: none;
  max-height: max(9rem, calc(100vh - 12rem));
  max-height: max(9rem, calc(100dvh - 12rem));
  object-fit: contain;
}
.ds-photo-viewer figcaption {
  margin: .75rem 0 .25rem;
  padding: 0;
  color: #f4f4f5;
  font: inherit;
}
.ds-photo-viewer button {
  box-sizing: border-box;
  min-height: 44px;
  min-width: 44px;
  padding: .45rem .85rem;
  border: 0;
  border-radius: .4rem;
  color: #fff;
  background: #353538;
  font: inherit;
  text-transform: none;
  cursor: pointer;
}
.ds-photo-viewer button:hover { background: #47474a; }
.ds-photo-viewer button:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}
