.photo-lightbox-trigger {
  display: block;
  max-width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: inherit;
}

[aria-haspopup="dialog"]:has(img) { cursor: zoom-in; }

.photo-lightbox {
  box-sizing: border-box;
  max-width: min(94vw, 1300px);
  max-height: 94dvh;
  padding: 2.75rem 1rem 1rem;
  border: 0;
  border-radius: 8px;
  background: #181818;
  color: white;
}

.photo-lightbox::backdrop { background: rgb(0 0 0 / .82); }
.photo-lightbox figure { margin: 0; }
.photo-lightbox img { display: block; width: auto; height: auto; max-width: 100%; max-height: 75dvh; margin: auto; object-fit: contain; }
.photo-lightbox figcaption { max-width: 70ch; margin: .65rem auto 0; color: white; }
.photo-lightbox button { position: absolute; top: .2rem; right: .5rem; width: 44px; height: 44px; border: 0; background: transparent; color: white; font-size: 2rem; cursor: pointer; }
