.work-gallery-entry { position: absolute; right: calc(100% + 12px); top: 0; }
.work-gallery-button {
  height: 46px; min-width: 100px; padding: 0 22px; border-radius: 26px;
  border: 1px solid #ffffffdd; color: #111; white-space: nowrap;
  background: linear-gradient(130deg, #ffffffb8, #eeeeee54 50%, #ffffff9a);
  backdrop-filter: blur(14px) saturate(1.08);
  box-shadow: inset 1px 1px 2px #fff, inset -1px -1px 3px #00000018, 0 5px 18px #0000000c;
  font: 400 .875rem/1 "Courier New", Courier, monospace;
  cursor: pointer; transition: background-color 180ms ease, transform 180ms ease;
}
.work-gallery-button:hover { background-color: #fff; transform: translateY(-1px); }
.work-gallery-button:active { transform: translateY(0); }
.work-gallery-button:focus-visible { outline: 2px solid #333; outline-offset: 3px; }
.work-search.is-open .work-gallery-entry { visibility: hidden; pointer-events: none; }
.gallery-content {
  padding: clamp(84px, 9vh, 120px) var(--page-gutter) clamp(48px, 8vh, 96px);
  gap: clamp(40px, 6vw, 80px); max-width: 1600px;
}
.gallery-content > h1 {
  margin: 0; font: 700 clamp(3rem, 6vw, 6rem)/.95 Helvetica, Arial, sans-serif;
  letter-spacing: -.065em;
}
.gallery-content .gallery-empty { color: #6b6b6b; font-size: 1rem; }
.gallery-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 16px; }
.gallery-grid.is-packed { grid-auto-rows: 1px; grid-auto-flow: dense; row-gap: 0; }
.gallery-image { min-width: 0; margin: 0; }
.gallery-image > jw-media { width: 100%; }
.gallery-image figcaption { max-width: 48ch; margin-top: 16px; color: #444; font: 400 1rem/1.55 "Courier New", Courier, monospace; overflow-wrap: anywhere; }
@media (max-width: 700px) { .gallery-grid { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .work-gallery-button { transition: none; } }
