#article .article-photo-trigger {
  position: relative;
  display: block;
  width: fit-content;
  max-width: 100%;
  margin: 24px auto;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 8px;
  cursor: zoom-in;
}
#article figure .article-photo-trigger {
  margin-block: 0 8px;
}
#article .article-photo-trigger img {
  margin: 0;
}
#article .article-photo-trigger::after {
  content: '+';
  position: absolute;
  inset: 8px 8px auto auto;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  color: white;
  background: rgb(22 19 16 / 72%);
  font: 20px/1 var(--sans);
  opacity: 0;
  pointer-events: none;
}
#article .article-photo-trigger:is(:hover, :focus-visible)::after {
  opacity: 1;
}
@media (hover: none) {
  #article .article-photo-trigger::after {
    opacity: 0.8;
  }
}
.article-photo-dialog {
  width: min(96vw, 1080px);
  max-height: calc(100dvh - 24px);
  overflow: auto;
  padding: 0;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  overscroll-behavior: contain;
}
.article-photo-dialog::backdrop {
  background: rgb(18 17 16 / 80%);
}
body:has(.article-photo-dialog[open]) {
  overflow: hidden;
}
.article-photo-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  padding: 4px 8px;
  font: 13px var(--sans);
}
.article-photo-actions a {
  padding: 12px 8px;
  color: var(--ink);
  text-underline-offset: 3px;
}
.article-photo-actions button {
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--ink);
  font: 1.6rem/1 var(--sans);
  cursor: pointer;
}
.article-photo-actions button:is(:hover, :focus-visible) {
  background: var(--panel);
}
.article-photo-dialog > img {
  display: block;
  width: 100%;
  height: min(76dvh, 820px);
  object-fit: contain;
  background: var(--panel);
}
.article-photo-dialog > p {
  margin: 0;
  padding: 10px 16px;
  color: var(--muted);
  font: 14px/1.6 var(--sans);
  overflow-wrap: anywhere;
}
