.journal-jumps {
  display: flex;
  flex-wrap: wrap;
  gap: .15rem clamp(.6rem, 2.2vw, 1.7rem);
  padding: .38rem 0;
  border-bottom: 1px solid var(--line);
}
.journal-jumps a {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  min-height: 2.55rem;
  padding: 0 .25rem;
  color: var(--muted);
  font-size: .84rem;
  font-weight: 720;
  text-decoration: none;
  transition: color var(--focus-time);
}
.journal-jumps a::before {
  width: .32rem;
  height: .32rem;
  background: currentColor;
  opacity: .54;
  transform: rotate(45deg);
  transition: color var(--focus-time), opacity var(--focus-time), transform var(--hover-time) var(--out);
  content: '';
}
.journal-jumps a:focus-visible, .journal-jumps a:active { color: var(--ink); }
.journal-jumps a:focus-visible::before, .journal-jumps a:active::before {
  color: var(--signal);
  opacity: 1;
  transform: rotate(45deg) scale(1.25);
}

.image-section { margin-top: clamp(3rem, 7vw, 6rem); }
.image-section .section-title p { color: var(--muted); font-size: .9rem; }
.image-deck {
  display: grid;
  grid-template-columns: minmax(0, 1.9fr) minmax(13.5rem, 1fr);
  gap: .75rem;
  align-items: start;
}
.gallery-figure, .gallery-picker {
  min-width: 0;
  border: 1px solid var(--line);
  border-top: 4px solid var(--rule);
  background: var(--surface);
}
.gallery-stage {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1.8;
  overflow: hidden;
  padding: 0;
  border: 0;
  background: var(--dark-inset);
}
.gallery-stage:focus-visible { outline-offset: -4px; }
.gallery-stage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 270ms var(--out);
}
.gallery-stage:active img { transform: scale(.991); transition-duration: var(--fast); }
.gallery-enlarge-label {
  position: absolute;
  bottom: .7rem;
  right: .7rem;
  display: flex;
  align-items: center;
  gap: .42rem;
  padding: .32rem .56rem;
  background: #181818e8;
  color: var(--dark-ink);
  font-size: .79rem;
  transition: background-color var(--hover-time), color var(--focus-time), transform var(--hover-time) var(--out);
}
.gallery-enlarge-label i {
  width: .58rem;
  height: .58rem;
  background: linear-gradient(currentColor,currentColor) center / 100% 1px no-repeat,
    linear-gradient(currentColor,currentColor) center / 1px 100% no-repeat;
}
.gallery-stage:focus-visible .gallery-enlarge-label {
  transform: translateX(-4px);
  background: var(--signal);
  color: var(--on-signal);
}
.gallery-figure figcaption {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: .65rem 1rem;
  padding: .8rem clamp(.75rem, 2vw, 1.15rem);
}
.gallery-figure figcaption h3 { font-size: clamp(1.05rem, 1.8vw, 1.5rem); overflow-wrap: anywhere; }
.gallery-figure figcaption .micro { color: var(--orange-ink); }
.gallery-picker { padding: clamp(.7rem, 2.2vw, 1.25rem); }
.gallery-picker-head { display: flex; justify-content: space-between; align-items: baseline; gap: .35rem; }
.gallery-picker-head h3 { font-size: 1.05rem; }
.gallery-picker-head .micro { color: var(--muted); }
.gallery-thumbs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .43rem; margin-top: .68rem; }
.gallery-thumb {
  position: relative;
  display: grid;
  gap: .35rem;
  align-content: start;
  min-width: 0;
  padding: .24rem;
  border: 1px solid var(--line);
  border-bottom-width: 3px;
  border-radius: 0;
  background: var(--paper);
  color: var(--ink);
  text-align: left;
  transition: border-color var(--focus-time), background-color var(--hover-time);
}
.gallery-thumb[aria-pressed='true'] { border-color: var(--signal); background: var(--hover-surface); }
.gallery-thumb-image { display: block; aspect-ratio: 1.7; overflow: hidden; background: var(--soft); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--hover-time) var(--out); }
.gallery-thumb:active img { transform: scale(.96); }
.gallery-thumb strong {
  display: block;
  overflow: hidden;
  padding: 0 .19rem .13rem;
  font-size: .78rem;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.gallery-controls { margin-top: .65rem; }
.gallery-controls .action { min-height: 2.65rem; }
.gallery-dialog {
  width: min(67rem, calc(100vw - 1.25rem));
  max-width: none;
  max-height: calc(100dvh - 1.25rem);
  padding: clamp(.65rem, 2vw, 1.2rem);
}
.gallery-dialog-head, .gallery-dialog-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
}
.gallery-dialog-head h2 { margin-bottom: .45rem; font-size: clamp(1.12rem, 3vw, 1.8rem); overflow-wrap: anywhere; }
.gallery-dialog-head p { margin: 0 0 .24rem; color: var(--orange-ink); }
.gallery-original {
  display: grid;
  place-items: center;
  height: min(62dvh, 90vw);
  margin: .35rem 0 .72rem;
  overflow: hidden;
  background: var(--dark-inset);
}
.gallery-original img { width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.gallery-dialog-actions { flex-wrap: wrap; }
.gallery-dialog-actions .cluster { margin: 0; }
.gallery-dialog :is(button, a) { min-height: 2.62rem; }

@media (hover: hover) and (pointer: fine) {
  .journal-jumps a:hover { color: var(--ink); }
  .journal-jumps a:hover::before { color: var(--signal); opacity: 1; transform: rotate(45deg) scale(1.25); }
  .gallery-stage:hover:not(:active) img { transform: scale(1.04); }
  .gallery-stage:hover .gallery-enlarge-label { transform: translateX(-4px); background: var(--signal); color: var(--on-signal); }
  .gallery-thumb:hover { border-color: var(--signal); }
  .gallery-thumb:hover:not(:active) img, .gallery-thumb:focus-visible img { transform: scale(1.07); }
}
@media (max-width: 52rem) {
  .image-deck { grid-template-columns: minmax(0, 1fr); }
  .gallery-thumbs { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 32rem) {
  .journal-jumps { gap: .05rem .5rem; }
  .journal-jumps a { min-height: 2.35rem; }
  .gallery-picker { padding: .62rem; }
  .gallery-stage { aspect-ratio: 1.42; }
  .gallery-enlarge-label { inset: auto .42rem .42rem auto; }
  .gallery-thumbs { gap: .28rem; }
  .gallery-thumb { padding: .16rem; }
  .gallery-thumb strong { font-size: .69rem; padding-left: 0; }
}
