.g-shell {
  box-sizing: border-box;
  width: 100%;
  max-width: var(--site-width, 1480px);
  margin-inline: auto;
  padding-inline: var(--gutter, clamp(20px, 5vw, 80px));
  color: var(--ink, #e3dfd9);
}
.g-shell [hidden] { display: none !important; }
.g-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.g-shell :is(a, button, summary):focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}
.g-catalog {
  padding-block: clamp(32px, 6vw, 88px) clamp(80px, 12vw, 178px);
}
.g-page-title, .g-card h2, .g-detail-head h1 {
  font-family: var(--jp-serif, serif);
  font-weight: 400;
  line-height: 1.55;
  overflow-wrap: anywhere;
}
.g-page-title {
  margin: 0 0 clamp(28px, 4vw, 62px);
  font-size: clamp(1.35rem, 2.2vw, 2rem);
  letter-spacing: .12em;
}
.g-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 4px 24px;
  margin-bottom: clamp(26px, 4vw, 60px);
}
.g-toolbar .g-page-title { margin: 0; }
.g-quiet { min-height: 62vh; }
.g-quiet .g-page-title { margin: 0; }
.g-empty {
  margin: clamp(48px, 8vw, 126px) 0 0;
  color: var(--muted, #a9a39d);
  font-family: var(--jp-serif, serif);
  font-size: clamp(.94rem, 1.4vw, 1.1rem);
  line-height: 2;
  letter-spacing: .05em;
}
.g-filters {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 5px 18px;
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}
.g-filters label {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  color: var(--muted, #a9a39d);
  font-size: .78rem;
  letter-spacing: .04em;
}
.g-filters input {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.g-filters input:checked + span {
  color: var(--ink, #e3dfd9);
  text-decoration: underline;
  text-underline-offset: .5em;
}
.g-filters label:has(input:focus-visible) { outline: 2px solid currentColor; }
.g-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(48px, 6vw, 96px) clamp(14px, 2.3vw, 38px);
}
.g-cols-1 {
  grid-template-columns: minmax(0, min(100%, 760px));
  justify-content: center;
}
.g-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g-card { min-width: 0; }
.g-card a { display: block; color: inherit; text-decoration: none; }
.g-card-image {
  display: grid;
  place-items: center;
  aspect-ratio: 4/5;
  grid-template: minmax(0, 1fr) / minmax(0, 1fr);
}
.g-card-image img, .g-zoom-link img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.g-card-label { padding-top: clamp(12px, 1.5vw, 23px); }
.g-card h2 { margin: 0; font-size: clamp(1rem, 1.6vw, 1.4rem); }
.g-card a:hover h2 { text-decoration: underline; text-underline-offset: .25em; }
.g-card-meta, .g-card-status {
  margin: 5px 0 0;
  color: var(--muted, #a9a39d);
  font-size: .75rem;
  line-height: 1.7;
}
.g-card-meta { display: flex; flex-wrap: wrap; gap: 2px 15px; font-variant-numeric: tabular-nums; }
.g-page-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  margin-top: clamp(32px, 5vw, 78px);
}
.g-quiet .g-page-links { margin-top: 20px; }
.g-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: var(--muted, #a9a39d);
  font-size: .8rem;
  text-decoration: none;
}
.g-link:hover, .g-link:focus-visible { color: var(--ink, #e3dfd9); text-decoration: underline; text-underline-offset: .35em; }
.g-detail {
  max-width: 1280px;
  padding-block: clamp(18px, 3vw, 48px) clamp(70px, 10vw, 145px);
}
.g-photo { min-width: 0; }
.g-slides {
  display: flex;
  min-width: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
}
.g-slide { flex: 0 0 100%; min-width: 0; scroll-snap-align: center; }
.g-zoom-link {
  display: block;
  width: 100%;
  height: clamp(290px, 75vh, 920px);
  height: clamp(290px, 75svh, 920px);
  cursor: zoom-in;
}
.g-zoom-link:focus-visible { outline-offset: -4px !important; }
.g-gallery-nav {
  display: flex;
  width: fit-content;
  margin: 4px auto 0;
}
.g-switch {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--muted, #a9a39d);
  font-size: .78rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.g-photo button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 44px;
  min-height: 44px;
  padding: 4px 7px;
  font: inherit;
  color: inherit;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.g-photo button:disabled { opacity: .4; cursor: default; }
.g-photo button:hover:not(:disabled) { text-decoration: underline; text-underline-offset: .3em; }
.g-label {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  gap: 18px 32px;
  align-items: start;
  margin: clamp(20px, 3.5vw, 52px) auto;
}
.g-detail-head h1 { margin: 0; font-size: clamp(1.4rem, 2.5vw, 2.2rem); letter-spacing: .04em; }
.g-sale { padding-top: 4px; text-align: right; }
.g-sale p { margin: 0; font-size: .87rem; line-height: 1.85; }
.g-sale strong { font-weight: 500; white-space: nowrap; }
.g-sale .g-sale-note { margin-top: 5px; color: var(--muted, #a9a39d); font-size: .8rem; }
.g-work-info { border-top: 1px solid var(--line, #29272a); }
.g-work-info summary {
  width: fit-content;
  min-height: 44px;
  padding: 14px 4px 8px 0;
  color: var(--muted, #a9a39d);
  cursor: pointer;
  font-size: .85rem;
}
.g-work-info summary:hover, .g-work-info[open] summary { color: var(--ink, #e3dfd9); }
.g-work-info dl, .g-prose, .g-alt-title { max-width: 48rem; margin: 14px 0; }
.g-work-info dl > div {
  display: grid;
  grid-template-columns: minmax(7em, 28%) minmax(0, 1fr);
  gap: 14px;
  padding: 6px 0;
  font-size: .85rem;
  line-height: 1.85;
}
.g-work-info dt { color: var(--muted, #a9a39d); }
.g-work-info dd, .g-prose { margin-inline: 0; overflow-wrap: anywhere; white-space: pre-line; }
.g-prose, .g-alt-title { font-size: .9rem; line-height: 2; }
.g-dialog {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  height: 100%;
  height: 100dvh;
  max-height: 100%;
  margin: 0;
  padding: max(8px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(10px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
  border: 0;
  color: var(--ink, #e3dfd9);
  background: var(--paper, #080809);
}
.g-dialog[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; gap: 6px; }
.g-dialog::backdrop { background: var(--paper, #080809); }
html:has(.g-dialog[open]) { overflow: hidden; }
.g-dialog-top, .g-dialog-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  font-size: .8rem;
  color: var(--muted, #a9a39d);
}
.g-dialog-top > span { overflow-wrap: anywhere; }
.g-dialog-top > button { flex-shrink: 0; }
.g-loupe { display: grid; place-items: safe center; min-height: 0; overflow: auto; }
.g-loupe img { display: block; width: auto; height: auto; max-width: 100%; max-height: 100%; min-height: 0; object-fit: contain; }
.g-loupe.is-original { display: block; }
.g-loupe.is-original img { max-width: none; max-height: none; margin: auto; }
@media (max-width: 800px) {
  .g-cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 540px) {
  .g-grid { grid-template-columns: minmax(0, 1fr); }
  .g-label { grid-template-columns: minmax(0, 1fr); }
  .g-sale { padding-top: 0; text-align: left; }
  .g-zoom-link { height: clamp(270px, 116vw, 69svh); }
}
