.tracking-previews figure a {
  display: block;
  border-radius: .85rem;
}

.photo-lightbox {
  inline-size: min(62rem, calc(100% - 2rem));
  max-inline-size: none;
  max-block-size: calc(100% - 2rem);
  margin: auto;
  padding: 0;
  overflow: auto;
  overscroll-behavior: contain;
  border: 1px solid #595b5c;
  border-radius: 1rem;
  background: #151719;
  color: #fff;
}

.photo-lightbox::backdrop { background: #111315df; }

html:has(.photo-lightbox[open]) { overflow: hidden; }

.photo-lightbox-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .75rem;
  padding: .65rem .85rem;
}

.photo-lightbox-header h2 {
  margin: 0;
  font-size: clamp(.95rem, 3vw, 1.2rem);
  line-height: 1.4;
}

.photo-lightbox-header form { margin: 0; }

.photo-lightbox-header button {
  min-block-size: 2.75rem;
  padding: .35rem .8rem;
  border: 1px solid #a0a0a0;
  border-radius: .55rem;
  background: #252829;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.photo-lightbox-header button:hover { background: #363a3c; }
.photo-lightbox-header button:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

.photo-lightbox-image {
  display: block;
  max-inline-size: 100%;
  max-block-size: calc(100vh - 7rem);
  max-block-size: calc(100dvh - 7rem);
  margin-inline: auto;
  object-fit: contain;
}
