/* Screenshot gallery on software.html (js/gallery.js): a native <dialog> with previous / next / close. */
dialog.gallery-dialog {
	width: min(96vw, 1280px); max-height: 94vh; padding: 12px; border: 0; border-radius: 12px;
	background: #fff; color: #38247d; overflow: auto;
}
dialog.gallery-dialog::backdrop { background: rgba(20, 12, 50, .8); }
.gallery-dialog figure { margin: 0; }
.gallery-dialog img { display: block; width: auto; max-width: 100%; max-height: calc(94vh - 110px); margin: 0 auto; }
.gallery-dialog figcaption { margin-top: 8px; text-align: center; font-size: 14px; }
.gallery-bar { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 8px; }
.gallery-bar button {
	min-width: 44px; min-height: 44px; padding: 0 16px; border: 0; border-radius: 8px;
	font: 600 15px system-ui, sans-serif; color: #fff; background: #38247d; cursor: pointer;
}
.gallery-bar button:hover { background: #2b1b61; }
