/* Six workflow JPGs share the same file for preview and enlargement. */
.simplified-home #print-index > .workflow-preview {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: start;
  align-content: start;
  gap: 14px 12px;
  min-width: 0;
  color: inherit;
  text-decoration: none;
  cursor: zoom-in;
}
#print-index .workflow-preview-number { font-size: 19px; line-height: 1.25; }
#print-index .workflow-preview-title { font-size: 17px; line-height: 1.4; font-weight: 400; }
#print-index .workflow-preview-expand { font-size: 18px; line-height: 1.25; }
.simplified-home #print-index > .workflow-preview img {
  grid-column: 1 / -1;
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  border-radius: 7.5px;
  filter: none;
  background: transparent;
}
#print-index .workflow-preview:hover img { opacity: .85; }
#print-index .workflow-preview:focus-visible { outline: 2px solid var(--ink); outline-offset: 5px; }
.latest-pack .latest-pack-item img { border-radius: 7.5px; }

.workflow-image-dialog {
  width: min(1800px, calc(100vw - 32px));
  max-width: none;
  max-height: calc(100dvh - 32px);
  padding: 16px;
  border: 0;
  border-radius: 7.5px;
  background: #292929;
  color: #f5f4f0;
  overflow: auto;
  overscroll-behavior: contain;
}
.workflow-image-dialog::backdrop { background: #111d; }
.workflow-image-dialog header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 12px;
}
.workflow-image-dialog h2 { font-size: 18px; line-height: 1.3; letter-spacing: 0; }
.workflow-image-dialog button {
  flex: none;
  padding: 8px 12px;
  min-height: 40px;
  border: 1px solid #777;
  border-radius: 7.5px;
  background: #444;
  color: inherit;
  font-size: 14px;
}
.workflow-image-dialog > img {
  display: block;
  width: 100%;
  height: auto;
  max-height: calc(100dvh - 116px);
  object-fit: contain;
  border-radius: 7.5px;
}
@media (max-width: 760px) {
  #print-index .workflow-preview-title { font-size: 16px; }
  .workflow-image-dialog { width: calc(100vw - 16px); max-height: calc(100dvh - 16px); padding: 10px; }
  .workflow-image-dialog h2 { font-size: 16px; }
  .workflow-image-dialog > img { max-height: calc(100dvh - 100px); }
}
