.collection-more { margin-top: 20px; }
.collection-more summary {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 46px;
  padding: 9px 15px;
  border: 1px solid currentColor;
  color: inherit;
  cursor: pointer;
  list-style: none;
  font-weight: 800;
}
.collection-more summary::-webkit-details-marker { display: none; }
.collection-more summary::before { content: "+"; font-size: 1.25rem; line-height: 1; }
.collection-more[open] summary::before { content: "−"; }
.collection-more summary:hover { background: var(--yellow); color: var(--ink); border-color: var(--yellow); }
.collection-more .collapse-label, .collection-more[open] .expand-label { display: none; }
.collection-more[open] .collapse-label { display: inline; }
.collection-more > :is(.market-grid,.project-grid) { margin-top: 16px; }
.foundry-expandable .project-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
.foundry-expandable .collection-more > .market-grid { grid-template-columns: repeat(4,minmax(0,1fr)); }

.gallery-controls { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; }
.gallery-controls[hidden] { display: none; }
.gallery-count { font-size: .875rem; font-weight: 750; }
.gallery-buttons { display: flex; gap: 8px; }
.gallery-buttons button {
  min-height: 44px; min-width: 58px; padding: 6px 12px;
  border: 1px solid currentColor; background: transparent; color: inherit;
  font: 800 .85rem Manrope,Arial,sans-serif; cursor: pointer;
}
.gallery-buttons button:not([aria-disabled="true"]):hover { background: var(--yellow); color: var(--ink); border-color: var(--yellow); }
.gallery-buttons [aria-disabled="true"] { opacity: .55; cursor: default; }
.gallery-track {
  --basis: 41%;
  --rail-gap: 13px;
  display: flex;
  gap: var(--rail-gap);
  margin: 0;
  padding: 4px 4px 12px;
  list-style: none;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 4px;
  scrollbar-width: thin;
  scrollbar-color: #74796f transparent;
}
.gallery-markets .gallery-track { --basis: 29%; }
.gallery-track > li { flex: 0 0 var(--basis); min-width: 0; scroll-snap-align: start; }
.gallery-track > li > a { height: 100%; }
.gallery .market-card { min-height: clamp(236px,25vw,392px); }
.gallery .project-card { display: flex; flex-direction: column; }
.gallery .project-copy { flex: 1; }
@media (prefers-reduced-motion: no-preference) {
  .gallery-track { scroll-behavior: smooth; }
}

.foundry-showcase .market-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
.foundry-showcase .market-card { min-height: clamp(205px,20vw,320px); }
.project-index { display: grid; grid-template-columns: minmax(0,1.25fr) minmax(0,1fr); gap: clamp(14px,3vw,45px); align-items: stretch; }
.project-index > .project-card { display: flex; flex-direction: column; }
.project-index .project-image { flex: 1; min-height: 275px; position: relative; }
.project-index .project-image img { position: absolute; inset: 0; }
.project-list { background: #f4f3ed; padding: clamp(14px,2.2vw,28px); }
.project-list > h3 { font: 800 clamp(1.65rem,2.45vw,2.5rem)/1 var(--display); text-transform: uppercase; margin-block: 2px 14px; }
.project-list ul { list-style: none; margin: 0; padding: 0; }
.project-list li { border-top: 1px solid #c5c9bf; }
.project-list li:last-child { border-bottom: 1px solid #c5c9bf; }
.project-list a { display: flex; align-items: center; gap: 13px; min-height: 68px; padding-block: 8px; }
.project-list a:hover strong { text-decoration: underline; text-underline-offset: 4px; }
.project-list img { flex: 0 0 auto; width: 65px; height: 48px; object-fit: cover; }
.project-list strong, .project-list small { display: block; }
.project-list strong { line-height: 1.2; }
.project-list small { color: var(--muted); margin-top: 3px; line-height: 1.35; }

@media (max-width: 920px) {
  .foundry-expandable .collection-more > .market-grid, .foundry-showcase .market-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .gallery-markets .gallery-track { --basis: 43%; }
  .gallery-projects .gallery-track { --basis: 54%; }
}
@media (max-width: 760px) {
  .foundry-expandable .project-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .project-index { grid-template-columns: 1fr; }
  .project-index .project-image { flex: auto; min-height: 0; }
}
@media (max-width: 490px) {
  .foundry-expandable .project-grid { grid-template-columns: 1fr; }
  .gallery-markets .gallery-track, .gallery-projects .gallery-track { --basis: 85%; }
}
