/* write.jmanoo.ch: image zoom (write.js), after the fluidbox light theme. Search draws its own styles. */
.gh-content .kg-card img { cursor: zoom-in; }
.gh-content .kg-card a img { cursor: pointer; }

.jm-zoom { position: fixed; inset: 0; z-index: 2000; display: flex; align-items: center; justify-content: center; background: hsla(0, 0%, 100%, 0.85); cursor: zoom-out; animation: jm-fade 0.15s ease-out; }
.jm-zoom-image { max-width: 94vw; max-height: 94vh; width: auto; height: auto; box-shadow: 0 10px 40px rgba(0, 0, 0, 0.18); }
@keyframes jm-fade { from { opacity: 0; } to { opacity: 1; } }

/* Captions: the theme's default is dark grey for a white page, which the jm palette never re-coloured.
   Use jm's muted grey (the card excerpt colour); links in captions in jm's text colour. */
.gh-content figcaption, .article-image figcaption { color: var(--jm-muted) !important; }
.gh-content figcaption a, .article-image figcaption a { color: var(--jm-text) !important; }

/* Image and embed blocks: no background of their own, so they sit straight on the text column. */
.gh-content .kg-image-card, .gh-content .kg-embed-card { background: transparent !important; }

/* Tags: one small pill around the tag name, the same on cards and posts. The theme stacked three pill rules:
   the whole tag row was a pill (a full-width bar on a post) with a second pill on the post's tag link inside it. */
.post-card-tags, .post-card-tags:hover, .article-tag, .article-tag:hover {
  background: none !important; border: 0 !important; border-radius: 0 !important; padding: 0 !important;
}
.article-tag .post-card-primary-tag { padding: 0 !important; background: none !important; border: 0 !important; }
.post-card-header .post-card-primary-tag, .article-tag .post-card-primary-tag a {
  display: inline-flex !important; align-items: center; width: auto !important;
  padding: 0.1rem 0.9rem !important; border-radius: 999px !important;
  background: var(--jm-surface-2) !important; border: 1px solid var(--jm-border) !important;
  color: var(--jm-muted) !important; font-size: 1.3rem !important; font-weight: 500 !important;
  line-height: 1.8 !important; letter-spacing: 0.01em !important; text-decoration: none !important;
}
.article-tag .post-card-primary-tag a:hover { background: var(--jm-border) !important; color: var(--jm-text) !important; }
