.gallery-link { display: block; cursor: zoom-in; }
.gallery-dialog { position: fixed; inset: 0; width: min(94vw, 1240px); max-width: none;
  max-height: 94dvh; margin: auto; padding: 0; border: 0; background: #1b1b1a; color: #fff; }
.gallery-dialog::backdrop { background: rgb(0 0 0 / .78); }
.gallery-viewer { padding: 10px; display: grid; gap: 10px; }
.gallery-viewer img { display: block; margin-inline: auto; width: auto; height: auto;
  max-width: 100%; max-height: 72dvh; object-fit: contain; }
.gallery-viewer-controls { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 8px; text-align: center; }
.gallery-viewer button { font: inherit; color: inherit; background: transparent;
  border: 1px solid #8e8c86; border-radius: 0; padding: 7px 12px; min-height: 42px; cursor: pointer; }
.gallery-viewer button:disabled { opacity: .48; cursor: auto; }
.gallery-viewer button:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.gallery-close { justify-self: end; }
body:has(.gallery-dialog[open]) { overflow: hidden; }
.draft-preview { margin-top: 18px; }
.draft-preview label { display: block; margin-bottom: 6px; }
.draft-preview textarea { display: block; width: 100%; min-height: 130px; resize: vertical; }
.draft-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 12px; }
.draft-status { margin-top: 7px; }
@media (max-width: 560px) {
  .gallery-description { grid-column: 1 / -1; grid-row: 2; }
  .gallery-next { grid-column: 3; }
}
