/* Native AsciiDoc open blocks with the photo-gallery role. */
.article-body .photo-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px 16px;
  margin: 32px 0;
}
.article-body .photo-gallery > .content { display: contents; }
.article-body .photo-gallery .imageblock { min-width: 0; margin: 0; }
.article-body .photo-gallery .imageblock a {
  display: block;
  width: 100%;
  border: 0;
  border-radius: 4px;
  overflow: hidden;
  background: var(--surface);
}
.article-body .photo-gallery .imageblock img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  margin: 0;
}
.article-body .photo-gallery .imageblock .title {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
  margin-top: 8px;
}
.gallery-navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-top: 18px;
}
.gallery-navigation button {
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 8px 12px;
  color: var(--green);
  background: var(--surface);
}
.gallery-position { color: var(--muted); font-size: 12px; white-space: nowrap; }
.image-dialog:has(.gallery-navigation:not([hidden])) > img { max-height: 65vh; }
@media (max-width: 380px) {
  .article-body .photo-gallery { grid-template-columns: 1fr; }
  .gallery-navigation { gap: 8px; }
  .gallery-navigation button { padding: 8px; font-size: 12px; }
}
