.gallery-page,.exhibit-page{padding-bottom:clamp(2.5rem,6vw,5rem)}
.gallery-layout{display:flex;flex-direction:column;min-height:100vh;min-height:100svh}
.gallery-page{flex:1}
.gallery-heading,.detail-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:1.3rem}
.gallery-heading,.detail-heading{padding:clamp(.75rem,2vw,1.9rem) 0 clamp(1.2rem,2.5vw,2rem);border-bottom:1px solid var(--edge)}
.gallery-heading h1,.detail-heading h1{font-size:clamp(2.1rem,4.6vw,4.4rem);letter-spacing:-.06em;line-height:1.12;color:var(--ink)}
.gallery-filters{display:flex;flex-wrap:wrap;gap:.45rem}
.gallery-filters a{display:inline-flex;align-items:center;gap:.5rem;border:1px solid var(--edge);border-radius:3px;padding:.53rem .9rem;font-size:.95rem;font-weight:600;color:var(--muted);background:white}
.gallery-filters a span{font:.78rem var(--mono);font-variant-numeric:tabular-nums}
.gallery-filters a:hover{border-color:var(--blue);color:var(--blue)}
.gallery-filters a[aria-current="true"]{color:white;background:var(--blue);border-color:var(--blue)}
.gallery-page [hidden]{display:none}
.gallery-grid{
  list-style:none;
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:clamp(1.5rem,3vw,2.75rem) clamp(.8rem,1.7vw,1.5rem);
  margin:clamp(1.2rem,2.2vw,2rem) 0 0;
  padding:0;
}
.gallery-card{display:block;color:var(--ink)}
.gallery-card img{
  width:100%;
  height:auto;
  aspect-ratio:8/5;
  object-fit:contain;
  border:1px solid var(--edge);
  border-radius:3px;
  background:var(--pale);
}
.gallery-card span{display:block;padding:.65rem 0 0;font-size:clamp(1rem,1.4vw,1.2rem);font-weight:650;overflow-wrap:anywhere}
.gallery-card:is(:hover,:focus-visible) img{border-color:#7892ba}
.gallery-card:is(:hover,:focus-visible) span{color:var(--blue);text-decoration:underline;text-underline-offset:.22em}
.gallery-more{margin-top:clamp(1.8rem,4vw,3.5rem)}
.gallery-more summary{
  display:flex;
  align-items:center;
  gap:.85rem;
  min-height:3.5rem;
  padding:.9rem clamp(.85rem,2vw,1.5rem);
  list-style:none;
  border:1px solid var(--edge);
  border-radius:3px;
  background:var(--pale);
  color:var(--ink);
  font-weight:650;
  cursor:pointer;
}
.gallery-more summary::-webkit-details-marker{display:none}
.gallery-more summary:is(:hover,:focus-visible){border-color:var(--blue);color:var(--blue)}
.gallery-more-count{margin-inline-start:auto;color:var(--muted);font-size:.9rem;font-weight:500}
.gallery-more summary::after{
  content:"";
  width:.55rem;
  height:.55rem;
  border:solid currentColor;
  border-width:0 2px 2px 0;
  transform:translateY(-.12rem) rotate(45deg);
}
.gallery-more[open] summary::after{transform:translateY(.12rem) rotate(225deg)}
.detail-heading p{color:var(--muted);margin-bottom:.24rem;font-size:.9rem}
.exhibit-link,.exhibit-services a{color:var(--blue);font-weight:600;text-underline-offset:.23em}
.exhibit-link{font-size:.94rem;white-space:nowrap}
.exhibit-link:hover,.exhibit-services a:hover{text-decoration:underline}
.exhibit-link span{font-size:1.13em}
.gallery-empty{padding:clamp(3rem,8vw,6.25rem) 0;color:var(--muted)}
.exhibit-page article>[data-impeller-viewer]{margin-top:clamp(.8rem,1.6vw,1.45rem)}
.exhibit-services{margin-top:1.4rem;display:flex;gap:1.3rem;align-items:center;flex-wrap:wrap;font-size:.96rem}
.exhibit-services span{color:var(--muted)}
.site-head .main-nav a[aria-current]{color:var(--blue)}
@media(max-width:1120px){.gallery-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:760px){.gallery-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:650px){.gallery-heading{align-items:flex-start;flex-direction:column;gap:.9rem}.gallery-filters a{padding:.44rem .72rem}.detail-heading .exhibit-link{font-size:.86rem}}
@media(max-width:480px){.gallery-grid>li:only-child{grid-column:1/-1;max-width:22rem}}
@media(max-width:359px){.gallery-grid{grid-template-columns:1fr}}
