:root { --portal-header-offset: 90px; }
.admin-visibility { color: #526059; background: #f3f5f3; border: 1px solid #e1e6e2; border-radius: 4px; padding: .6rem 1rem; margin: .8rem auto 1.2rem; max-width: 1200px; font-size: .78rem; line-height: 1.5; overflow-wrap: anywhere; }
.admin-visibility p { margin: .25rem 0 0; }
.admin-visibility strong { font-weight: 700; }
[hidden] { display: none !important; }
[id^="member-"], .editor[id] { scroll-margin-top: var(--portal-header-offset); }
.post .post-image, .demo-post-grid .post-image {
  display: block; width: auto; max-width: 100%; height: auto; max-height: 20rem;
  aspect-ratio: auto; object-fit: contain; margin: 0 auto 1rem;
}
.news-card > img, .news-card > a > img {
  height: auto; max-height: 20rem; aspect-ratio: auto; object-fit: contain;
  align-self: start; margin-inline: auto;
}
.post-gallery { align-items: start; }
.post-gallery a { display: block; text-align: center; cursor: zoom-in; }
.post-gallery img {
  width: auto; max-width: 100%; height: auto; max-height: 36rem;
  aspect-ratio: auto; object-fit: contain; margin-inline: auto;
}
.article-gallery-dialog {
  width: min(96vw, 1100px); max-width: 96vw; max-height: 96dvh;
  border: 0; border-radius: 8px; padding: 1rem; color: white; background: #12261e;
}
.article-gallery-dialog::backdrop { background: rgb(0 0 0 / .8); }
.article-gallery-dialog figure { margin: 1rem 0; text-align: center; }
.article-gallery-dialog img { width: auto; height: auto; max-width: 100%; max-height: 70dvh; object-fit: contain; }
.article-gallery-dialog .gallery-controls { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; justify-content: space-between; }
.article-gallery-dialog .gallery-controls a { color: white; text-decoration: underline; }
.article-gallery-dialog figcaption { overflow-wrap: anywhere; }
.article-gallery-dialog button:focus-visible, [data-gallery-image]:focus-visible { outline: 3px solid #f2bd18; outline-offset: 3px; }
