/* One continuous, swipeable row for visitor artwork, not the page or private library. */
#work #gallery.gallery, .collection-gallery[data-catalog-category] {
  display: flex !important;
  flex-flow: row nowrap !important;
  align-items: flex-start;
  justify-content: flex-start;
  gap: clamp(14px, 3vw, 28px) !important;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x proximity;
  scroll-padding-inline: 8px;
  padding: 12px 8px 24px;
  scrollbar-color: #b789ef #161616;
}
#work #gallery.gallery > .art-card, .collection-gallery[data-catalog-category] > figure {
  flex: 0 0 clamp(240px, 74vw, 400px);
  width: clamp(240px, 74vw, 400px);
  max-width: 86%;
  min-width: 0;
  box-sizing: border-box;
  scroll-snap-align: start;
  margin: 0;
}
#work #gallery .art-card button img, .collection-gallery[data-catalog-category] img {
  width: 100%;
  height: clamp(260px, 48vh, 460px) !important;
  object-fit: contain !important;
}
#work #gallery:focus-visible, .collection-gallery[data-catalog-category]:focus-visible {outline: 2px solid #71e6d2; outline-offset: 2px;}
.horizontal-controls {display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:8px 16px; margin:0 0 24px; font:inherit; color:#71e6d2;}
.horizontal-controls button {font:inherit; font-weight:700; color:#71e6d2; background:transparent; border:0; border-bottom:2px solid #b789ef; min-height:44px; cursor:pointer;}
.horizontal-controls button:disabled {opacity:.4; cursor:default;}
.horizontal-controls button:focus-visible {outline:2px solid #71e6d2;}
@media(max-width:600px){.horizontal-controls span{order:3;flex-basis:100%;text-align:center;}}

/* Category links remain in a single swipeable row on small screens. */
main nav[aria-label="Subcategories"].category-strip{display:flex!important;flex-flow:row nowrap!important;align-items:stretch!important;justify-content:flex-start!important;width:100%;max-width:100%!important;min-width:0;box-sizing:border-box;overflow-x:auto;overflow-y:hidden;gap:clamp(12px,3vw,24px);padding:8px 4px 16px;scroll-snap-type:x proximity;scrollbar-color:#b789ef #161616}
main nav.category-strip>a{flex:0 0 clamp(145px,43vw,235px)!important;min-width:0!important;max-width:235px!important;display:flex!important;flex-direction:column;align-items:center;justify-content:flex-start;gap:10px;text-align:center;scroll-snap-align:start;box-sizing:border-box}
main nav.category-strip>a>span{display:flex;align-items:center;justify-content:center;min-height:44px}
main nav.category-strip img{object-fit:contain!important;aspect-ratio:4/3;width:100%}
main nav.category-strip:focus-visible{outline:2px solid #71e6d2}
#work .mediums{grid-template-columns:repeat(3,minmax(0,1fr))!important}
