.gallery-page .primary-nav a[aria-current="page"] { color: var(--ink); }
.gallery-page .primary-nav a[aria-current="page"]::after { transform: scaleX(1); }
.gallery-hero { background: var(--paper); border-bottom: 1px solid var(--line); }
.gallery-hero__inner { min-height: 575px; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(340px, .9fr); gap: clamp(40px, 7vw, 110px); align-items: stretch; }
.gallery-hero__copy { padding: clamp(82px, 9vw, 138px) 0 90px; align-self: center; }
.gallery-hero h1 { max-width: 720px; font-size: clamp(4rem, 7vw, 7.8rem); line-height: .93; }
.gallery-hero h1 em { color: var(--gold); font-weight: 400; }
.gallery-hero__copy > p:not(.eyebrow) { max-width: 560px; margin: 37px 0 0; padding-left: 24px; color: var(--muted); border-left: 2px solid var(--gold); font-size: 1.06rem; line-height: 1.8; }
.gallery-hero__jump { margin-top: 38px; display: inline-flex; align-items: center; gap: 25px; color: var(--gold); font-size: .69rem; font-weight: 900; letter-spacing: .15em; text-transform: uppercase; }
.gallery-hero__jump span { font-size: 1.25rem; font-weight: 400; }
.gallery-hero__jump:hover, .gallery-hero__jump:focus-visible { color: var(--ink); }
.gallery-hero__panel { min-height: 575px; padding: 42px; display: flex; flex-direction: column; justify-content: space-between; color: var(--white); background: #37312a; border-top: 6px solid var(--gold); }
.gallery-hero__edition { color: var(--gold-light); font-size: .64rem; font-weight: 900; letter-spacing: .27em; text-transform: uppercase; }
.gallery-hero__monogram { align-self: center; color: rgba(213,184,132,.72); font: italic clamp(5rem, 12vw, 10rem)/1 var(--serif); letter-spacing: -.13em; }
.gallery-hero__stats { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line-light); }
.gallery-hero__stats div { padding: 26px 8px 0 0; }
.gallery-hero__stats div + div { padding-left: 22px; border-left: 1px solid var(--line-light); }
.gallery-hero__stats strong { display: block; font: 2.4rem/1 var(--serif); }
.gallery-hero__stats span { display: block; margin-top: 9px; color: #cfc5b7; font-size: .62rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.gallery-section { padding: 110px 0 130px; background: var(--white); }
.gallery-section__heading { margin-bottom: 44px; display: grid; grid-template-columns: 1.2fr .8fr; gap: 8%; align-items: end; }
.gallery-section h2 { font-size: clamp(3.1rem, 5.5vw, 5.8rem); }
.gallery-section__heading > p { max-width: 420px; margin: 0 0 4px; color: var(--muted); line-height: 1.8; }
.gallery-tools { padding: 24px 0; display: grid; grid-template-columns: 1fr 235px; gap: 30px; align-items: center; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); }
.gallery-filters { display: flex; flex-wrap: wrap; gap: 7px; }
.gallery-filter { min-height: 39px; padding: 8px 13px; border: 1px solid var(--line); background: transparent; cursor: pointer; color: #5d564d; font-size: .68rem; font-weight: 800; letter-spacing: .055em; transition: background .2s ease, color .2s ease, border-color .2s ease; }
.gallery-filter:hover, .gallery-filter:focus-visible { border-color: var(--ink); }
.gallery-filter[aria-pressed="true"] { color: var(--white); background: var(--dark); border-color: var(--dark); }
.gallery-search { color: var(--gold); font-size: .62rem; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; }
.gallery-search input { width: 100%; min-height: 42px; margin-top: 5px; padding: 0 0 4px; color: var(--ink); background: transparent; border: 0; border-bottom: 1px solid var(--ink); border-radius: 0; outline: none; font-size: .85rem; font-weight: 400; letter-spacing: 0; text-transform: none; }
.gallery-search input:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.gallery-search input::placeholder { color: #8c857c; }
.gallery-count { margin: 19px 0 0; color: var(--muted); font-size: .73rem; font-weight: 700; letter-spacing: .06em; }
.gallery-groups { margin-top: 55px; }
.gallery-brand { margin-bottom: 85px; scroll-margin-top: 150px; }
.gallery-brand__heading { margin-bottom: 18px; display: grid; grid-template-columns: 58px 1fr auto; gap: 22px; align-items: end; }
.gallery-brand__number { align-self: center; color: var(--gold); font: italic 1.45rem var(--serif); }
.gallery-brand__title p { margin: 0 0 2px; color: var(--gold); font-size: .61rem; font-weight: 900; letter-spacing: .18em; text-transform: uppercase; }
.gallery-brand__title h3 { margin: 0; font: 400 clamp(2rem, 3.2vw, 3.25rem)/1.05 var(--serif); letter-spacing: -.045em; }
.gallery-brand__source { margin-bottom: 5px; color: var(--gold); font-size: .66rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.gallery-brand__source:hover, .gallery-brand__source:focus-visible { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.gallery-products { margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1px; list-style: none; background: var(--line); border: 1px solid var(--line); }
.gallery-product { min-width: 0; background: var(--paper); }
.gallery-product__art { position: relative; height: clamp(160px, 18vw, 230px); display: grid; place-items: center; overflow: hidden; background: #e7dfd2; isolation: isolate; }
.gallery-product:nth-child(5n+2) .gallery-product__art { background: #e4e5dc; }
.gallery-product:nth-child(5n+3) .gallery-product__art { background: #d8d9d1; }
.gallery-product:nth-child(5n+4) .gallery-product__art { background: #ede3d8; }
.gallery-product:nth-child(5n+5) .gallery-product__art { background: #e2d8c9; }
.gallery-product__art::before, .gallery-product__art::after { content: ""; position: absolute; z-index: -1; }
.gallery-product__art::before { width: 48%; height: 53%; background: #a78c68; border-radius: 8px 8px 12px 12px; box-shadow: 12px 15px 20px rgba(58,47,34,.14); transform: rotate(-8deg); }
.gallery-product__art::after { width: 25%; height: 12%; bottom: 20%; border-radius: 50%; background: rgba(42,38,33,.13); filter: blur(7px); }
.gallery-product:nth-child(5n+2) .gallery-product__art::before { background: #6c756f; transform: rotate(6deg); }
.gallery-product:nth-child(5n+3) .gallery-product__art::before { background: #655b4e; transform: rotate(-4deg); }
.gallery-product:nth-child(5n+4) .gallery-product__art::before { background: #a66d5d; transform: rotate(9deg); }
.gallery-product:nth-child(5n+5) .gallery-product__art::before { background: #7a6b56; transform: rotate(-2deg); }
.gallery-product__art[data-shape="bottle"]::before, .gallery-product__art[data-shape="clean"]::before, .gallery-product__art[data-shape="pantry"]::before { width: 31%; height: 56%; border-radius: 10px 10px 16px 16px; }
.gallery-product__art[data-shape="bottle"]::after, .gallery-product__art[data-shape="clean"]::after, .gallery-product__art[data-shape="pantry"]::after { width: 17%; height: 7%; top: 18%; bottom: auto; border-radius: 4px 4px 0 0; background: #6a5540; filter: none; }
.gallery-product__art[data-shape="paper"]::before, .gallery-product__art[data-shape="puzzle"]::before { width: 52%; height: 58%; border-radius: 2px; box-shadow: 6px 8px 0 rgba(255,253,248,.55), 13px 15px 18px rgba(58,47,34,.15); }
.gallery-product__art[data-shape="tech"]::before { width: 50%; height: 42%; border-radius: 17px; }
.gallery-product__art[data-shape="outdoor"]::before, .gallery-product__art[data-shape="pet"]::before { width: 47%; height: 45%; border-radius: 24% 24% 17% 17%; }
.gallery-product__art[data-shape="baby"]::before { width: 50%; height: 33%; border-radius: 50%; }
.gallery-product__art[data-shape="tools"]::before { width: 12%; height: 62%; border-radius: 30px; transform: rotate(40deg); }
.gallery-product__art[data-shape="candle"]::before { width: 40%; height: 43%; border-radius: 5px 5px 18px 18px; }
.gallery-product__art > span { position: relative; z-index: 1; align-self: end; justify-self: start; margin: 0 0 12px 15px; color: rgba(38,35,31,.58); font: italic 1.25rem var(--serif); }
.gallery-product__text { min-height: 125px; padding: 18px 17px 22px; }
.gallery-product__text > span { color: var(--gold); font-size: .57rem; font-weight: 900; letter-spacing: .17em; text-transform: uppercase; }
.gallery-product h4 { margin: 9px 0 0; font: 1.13rem/1.27 var(--serif); letter-spacing: -.018em; overflow-wrap: anywhere; }
.gallery-loading, .gallery-empty { padding: 70px 20px; color: var(--muted); text-align: center; border: 1px solid var(--line); }
.gallery-empty[hidden] { display: none; }
.gallery-outro { padding: 95px 0; color: var(--white); background: var(--dark); }
.gallery-outro__inner { display: flex; align-items: end; justify-content: space-between; gap: 50px; }
.gallery-outro h2 { font-size: clamp(3rem, 5vw, 5.2rem); }
.gallery-outro p:not(.eyebrow) { max-width: 560px; color: #c7bfb4; }
.gallery-outro .button { flex: 0 0 auto; }

@media (max-width: 1100px) {
  .gallery-products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .gallery-product__art { height: 210px; }
  .gallery-hero__inner { grid-template-columns: 1fr .8fr; gap: 36px; }
}
@media (max-width: 820px) {
  .gallery-hero__inner { grid-template-columns: 1fr; gap: 0; }
  .gallery-hero__copy { padding: 80px 0 65px; }
  .gallery-hero__panel { min-height: 330px; margin-bottom: 35px; }
  .gallery-hero__monogram { font-size: 7rem; }
  .gallery-section { padding: 85px 0 100px; }
  .gallery-section__heading { grid-template-columns: 1fr; gap: 22px; }
  .gallery-tools { grid-template-columns: 1fr; }
  .gallery-search { max-width: 400px; }
  .gallery-products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .gallery-hero h1 { font-size: clamp(3.5rem, 14vw, 5.4rem); }
  .gallery-hero__panel { padding: 28px; }
  .gallery-hero__stats strong { font-size: 1.9rem; }
  .gallery-hero__stats div + div { padding-left: 10px; }
  .gallery-section { padding: 70px 0 80px; }
  .gallery-section h2 { font-size: clamp(2.8rem, 12vw, 4.5rem); }
  .gallery-brand { margin-bottom: 62px; }
  .gallery-brand__heading { grid-template-columns: 36px 1fr; gap: 10px; }
  .gallery-brand__source { grid-column: 2; margin: 5px 0 0; }
  .gallery-products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery-product__art { height: 145px; }
  .gallery-product__text { min-height: 135px; padding: 14px 12px 18px; }
  .gallery-product h4 { font-size: .98rem; }
  .gallery-outro { padding: 75px 0; }
  .gallery-outro__inner { display: block; }
  .gallery-outro .button { margin-top: 25px; }
}
@media (max-width: 350px) {
  .gallery-products { grid-template-columns: 1fr; }
  .gallery-product { display: grid; grid-template-columns: 105px 1fr; }
  .gallery-product__art { height: 125px; }
  .gallery-product__text { min-height: 125px; }
}
