/* Both catalogue locales share the typography, surfaces and frame of the About page. */
.bass-gallery-page {
  background: var(--bg-canvas);
  color: var(--text-primary);
  color-scheme: dark;
}
.bass-gallery-page main { font-family: var(--font-zh); }
.bass-gallery-page:lang(en) main { font-family: var(--font-latin); }
.bass-gallery-page main :is(figure, h1, h2, p) { margin: 0; }
.bass-gallery-page main [hidden] { display: none; }
.bass-frame {
  width: min(100%, var(--frame-width));
  padding-inline: var(--frame-gutter);
  margin-inline: auto;
}
.bass-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .74fr);
  align-items: end;
  gap: var(--grid-gap);
  padding-block: clamp(38px, 4.3vw, 72px) clamp(25px, 2.6vw, 42px);
}
.bass-gallery-page .bass-intro h1 {
  color: var(--text-primary);
  font-size: var(--type-h1);
  font-weight: var(--weight-title);
  line-height: var(--leading-h1);
  letter-spacing: -.035em;
}
.bass-gallery-page .bass-intro p {
  max-width: 52ch;
  color: var(--text-secondary);
  font-size: var(--type-body);
  line-height: 1.6;
  text-wrap: pretty;
}
.bass-controls {
  border-top: 1px solid var(--hairline-strong);
}
.bass-filters {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: clamp(16px, 2vw, 32px);
  row-gap: 12px;
  padding-block: 17px 10px;
}
.bass-filter { position: relative; min-width: 0; }
.bass-filter label {
  display: block;
  color: var(--text-secondary);
  font-size: .8125rem;
  line-height: 1.45;
}
.bass-filter select,
.bass-feature-trigger {
  width: 100%;
  min-height: 44px;
  padding: 5px 26px 5px 0;
  appearance: none;
  border: 0;
  border-bottom: 1px solid var(--hairline-strong);
  border-radius: 0;
  background: transparent;
  color: var(--text-primary);
  font: inherit;
  font-size: .9375rem;
  cursor: pointer;
}
.bass-filter:not(.bass-feature-filter)::after,
.bass-feature-trigger::after {
  content: "";
  position: absolute;
  right: 5px;
  bottom: 20px;
  width: 6px;
  height: 6px;
  border: solid var(--text-secondary);
  border-width: 0 1px 1px 0;
  transform: rotate(45deg);
  pointer-events: none;
}
.bass-filter option { background: var(--bg-control); color: var(--text-primary); }
.bass-filters:has(.bass-feature-filter) { align-items: start; }
.bass-feature-trigger {
  position: relative;
  display: block;
  text-align: start;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.bass-feature-trigger::after { top: 50%; bottom: auto; margin-top: -5px; }
.bass-feature-trigger[aria-expanded="true"]::after {
  transform: rotate(225deg);
  margin-top: -1px;
}
.bass-feature-options {
  position: absolute;
  z-index: 2;
  inset-inline: 0;
  top: 100%;
  padding: 4px;
  background: var(--bg-control);
  border: 1px solid var(--hairline-strong);
}
.bass-feature-options label {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 4px 10px;
  color: var(--text-secondary);
  font-size: .9375rem;
  overflow-wrap: anywhere;
  cursor: pointer;
}
.bass-feature-options input {
  flex: none;
  width: 1rem;
  height: 1rem;
  margin: 0;
  accent-color: var(--text-primary);
}
.bass-feature-options label:has(input:checked) { color: var(--text-primary); }
.bass-feature-options input:focus-visible {
  outline: 2px solid var(--text-primary);
  outline-offset: 3px;
}
.bass-results {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  min-height: 46px;
  padding-block: 2px 6px;
  color: var(--text-secondary);
  font-size: .875rem;
}
.bass-results button {
  min-height: 40px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text-primary);
  font: inherit;
  text-decoration: underline;
  text-underline-offset: .26em;
  cursor: pointer;
}
.bass-results button:disabled { color: var(--text-muted); cursor: default; text-decoration: none; }
.bass-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(26px, 3.3vw, 50px) var(--grid-gap);
}
.bass-card { display: flex; min-width: 0; flex-direction: column; }
.bass-gallery-page[data-page="guitars"] { --photo-height: 100%; }
.bass-photo {
  position: relative;
  display: block;
  aspect-ratio: 1.04;
  overflow: hidden;
  background: transparent;
}
.bass-gallery-page .bass-photo img {
  position: absolute;
  left: 50%;
  top: 50%;
  display: block;
  width: auto;
  max-width: none;
  height: var(--photo-height, 90%);
  object-fit: contain;
  transform: var(--photo-placement, translate(-50%, -50%));
}

[data-page="guitars"] .bass-card[data-product-id="htf727-bm-or"] .bass-photo img {
  filter: contrast(.88) brightness(1.04);
}

/* Each finish has its own camera framing. Align the fingerboard axis and lower
   bout center, with the full silhouette occupying 90% of the frame height. */
.bass-photo img[src="/assets/bass-gallery/cutouts/ff524-bm-osf/crimson.webp"] {
  --photo-height: 93.45%;
  --photo-placement: translate(-50.07%, -48.72%) rotate(0.413deg);
}
.bass-photo img[src="/assets/bass-gallery/cutouts/ff524-bm-osf/emerald-burst.webp"] {
  --photo-height: 98.50%;
  --photo-placement: translate(-49.99%, -48.80%) rotate(0.240deg);
}
.bass-photo img[src="/assets/bass-gallery/cutouts/ff524-bm-osf/amethyst-burst.webp"] {
  --photo-height: 94.22%;
  --photo-placement: translate(-49.73%, -49.66%) rotate(0.488deg);
}
.bass-photo img[src="/assets/bass-gallery/cutouts/jb421-smt-osr/nebula.webp"] {
  --photo-height: 93.81%;
  --photo-placement: translate(-49.62%, -49.31%) rotate(0.423deg);
}
.bass-photo img[src="/assets/bass-gallery/cutouts/jb421-smt-osr/abyss.webp"] {
  --photo-height: 93.32%;
  --photo-placement: translate(-50.10%, -49.11%) rotate(0.256deg);
}
.bass-photo img[src="/assets/bass-gallery/cutouts/jb421-smt-osr/twilight.webp"] {
  --photo-height: 93.81%;
  --photo-placement: translate(-49.30%, -49.20%) rotate(0.715deg);
}
.bass-photo img[src="/assets/bass-gallery/cutouts/jb524-smt-osr/nebula.webp"] {
  --photo-height: 94.56%;
  --photo-placement: translate(-50.60%, -50.41%) rotate(-0.336deg);
}
.bass-photo img[src="/assets/bass-gallery/cutouts/jb524-smt-osr/abyss.webp"] {
  --photo-height: 93.64%;
  --photo-placement: translate(-49.87%, -49.84%) rotate(0.316deg);
}
.bass-photo img[src="/assets/bass-gallery/cutouts/jb524-smt-osr/twilight.webp"] {
  --photo-height: 94.80%;
  --photo-placement: translate(-49.47%, -49.98%) rotate(0.364deg);
}
.bass-photo img[src="/assets/bass-gallery/cutouts/ht524-bm-osr/ruby-amber.webp"] {
  --photo-height: 104.77%;
  --photo-placement: translate(-49.40%, -49.50%) rotate(0.101deg);
}
.bass-photo img[src="/assets/bass-gallery/cutouts/ht524-bm-osr/bourbon-amber.webp"] {
  --photo-height: 104.51%;
  --photo-placement: translate(-49.14%, -49.78%) rotate(-0.070deg);
}
.bass-photo img[src="/assets/bass-gallery/cutouts/ht524-bm-osr/black-emerald.webp"] {
  --photo-height: 104.54%;
  --photo-placement: translate(-49.87%, -50.53%) rotate(0.289deg);
}
.bass-photo img[src="/assets/bass-gallery/cutouts/htf524-bm-osr/crimson-shadow.webp"] {
  --photo-height: 97.53%;
  --photo-placement: translate(-49.59%, -51.01%) rotate(0.287deg);
}
.bass-photo img[src="/assets/bass-gallery/cutouts/htf524-bm-osr/bourbon-shadow.webp"] {
  --photo-height: 97.47%;
  --photo-placement: translate(-49.83%, -51.34%) rotate(-0.202deg);
}
.bass-photo img[src="/assets/bass-gallery/cutouts/htf524-bm-osr/nebula-shadow.webp"] {
  --photo-height: 97.65%;
  --photo-placement: translate(-48.95%, -50.92%) rotate(-0.121deg);
}
.bass-photo img[src="/assets/bass-gallery/cutouts/ht524-pme/crimson-nova.webp"] {
  --photo-height: 92.26%;
  --photo-placement: translate(-51.22%, -50.03%) rotate(-0.665deg);
}
.bass-photo img[src="/assets/bass-gallery/cutouts/ht524-pme/scarlet-eclipse.webp"] {
  --photo-height: 92.32%;
  --photo-placement: translate(-51.67%, -49.94%) rotate(-0.861deg);
}
.bass-photo img[src="/assets/bass-gallery/cutouts/ht524-pme/astral-mirage.webp"] {
  --photo-height: 92.35%;
  --photo-placement: translate(-47.10%, -49.83%) rotate(1.246deg);
}
.bass-photo img[src="/assets/bass-gallery/cutouts/ht524-pme/violet-haze.webp"] {
  --photo-height: 92.24%;
  --photo-placement: translate(-50.42%, -49.97%) rotate(-0.336deg);
}
.bass-photo img[src="/assets/bass-gallery/cutouts/jb524-60amt/ice-vein.webp"] {
  --photo-height: 92.29%;
  --photo-placement: translate(-48.90%, -49.94%) rotate(0.329deg);
}
.bass-photo img[src="/assets/bass-gallery/cutouts/jb524-60amt/fire-core.webp"] {
  --photo-height: 92.22%;
  --photo-placement: translate(-47.70%, -49.98%) rotate(0.836deg);
}
.bass-photo img[src="/assets/bass-gallery/cutouts/jb524-60amt/violet-haze.webp"] {
  --photo-height: 92.28%;
  --photo-placement: translate(-49.62%, -49.94%) rotate(0.023deg);
}
.bass-photo img[src="/assets/bass-gallery/cutouts/md635-amt/astral-mirage-flamed.webp"] {
  --photo-height: 92.22%;
  --photo-placement: translate(-49.78%, -49.97%) rotate(0.010deg);
}
.bass-photo img[src="/assets/bass-gallery/cutouts/md635-amt/astral-mirage-quilted.webp"] {
  --photo-height: 92.38%;
  --photo-placement: translate(-48.43%, -49.92%) rotate(0.717deg);
}
.bass-photo img[src="/assets/bass-gallery/cutouts/md535-amt/astral-mirage-flamed.webp"] {
  --photo-height: 92.21%;
  --photo-placement: translate(-50.32%, -49.98%) rotate(-0.209deg);
}
.bass-photo img[src="/assets/bass-gallery/cutouts/md535-amt/blue-pulse.webp"] {
  --photo-height: 92.27%;
  --photo-placement: translate(-50.14%, -49.94%) rotate(-0.169deg);
}
.bass-photo img[src="/assets/bass-gallery/cutouts/md535-amt/astral-mirage-quilted.webp"] {
  --photo-height: 92.28%;
  --photo-placement: translate(-48.31%, -49.92%) rotate(0.774deg);
}

.bass-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  padding: clamp(16px, 1.55vw, 24px) 0 12px;
  border-bottom: 1px solid var(--hairline);
}
.bass-gallery-page .bass-model {
  color: var(--text-primary);
  font: var(--weight-title) clamp(1.7rem, 2.5vw, 2.25rem)/1.12 var(--font-latin);
  letter-spacing: -.035em;
  overflow-wrap: anywhere;
}
.bass-gallery-page .bass-type {
  margin-top: 7px;
  color: var(--text-primary);
  font-size: 1rem;
  line-height: 1.4;
}
.bass-gallery-page .bass-specs {
  margin-top: 7px;
  margin-bottom: 13px;
  color: var(--text-secondary);
  font-size: .875rem;
  line-height: 1.5;
}
.bass-specs > span {
  display: inline-block;
  max-width: 100%;
  overflow-wrap: anywhere;
}
:is(.guitar-card-footer, .bass-card-footer) {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  margin-top: auto;
}
.bass-finishes {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1px 7px;
  margin-top: auto;
}
.bass-swatches {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
}
.bass-swatch {
  position: relative;
  display: inline-grid;
  width: 32px;
  height: 40px;
  flex: none;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  cursor: pointer;
}
.bass-swatch::before,
.bass-swatch[aria-pressed="true"]::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  box-sizing: border-box;
  border-radius: 50%;
}
.bass-swatch::before {
  width: 14px;
  height: 14px;
  background: var(--bg-control) var(--swatch-image) center / cover;
}
.bass-swatch[aria-pressed="true"]::after {
  width: 22px;
  height: 22px;
  border: 2px solid var(--text-primary);
}
.bass-gallery-page .bass-finish-name {
  color: var(--text-secondary);
  font-size: .8125rem;
  line-height: 1.4;
}
.bass-gallery-page .bass-link {
  display: inline-flex;
  gap: .35em;
  min-height: 44px;
  max-width: 100%;
  align-items: center;
  color: var(--text-primary);
  font-size: .875rem;
  line-height: 1.4;
  text-decoration: underline;
  text-decoration-color: var(--hairline-strong);
  text-underline-offset: .35em;
}
.bass-gallery-page main :is(a, button, select, summary):focus-visible {
  outline: 2px solid var(--text-primary);
  outline-offset: 2px;
}
.bass-gallery-page [data-bass-empty] {
  padding-block: clamp(36px, 5vw, 68px);
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: var(--leading-body);
}
.bass-dealer {
  margin-top: clamp(65px, 7.5vw, 112px);
  background: var(--bg-elevated);
}
.bass-dealer-inner {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: var(--grid-gap);
  align-items: center;
  padding-block: clamp(30px, 4.2vw, 58px);
}
.bass-gallery-page .bass-dealer-copy h2 {
  color: var(--text-primary);
  font-size: var(--type-h2);
  font-weight: var(--weight-title);
  line-height: var(--leading-h2);
  letter-spacing: -.025em;
  text-wrap: balance;
}
.bass-gallery-page .bass-dealer-copy p {
  max-width: 44ch;
  margin-top: 15px;
  color: var(--text-secondary);
  font-size: var(--type-body);
  line-height: var(--leading-body);
}
.bass-dealer-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  margin-top: 22px;
  padding-inline: 20px;
  background: var(--bg-paper);
  color: var(--bg-canvas);
  font-size: .9375rem;
  font-weight: 500;
  text-decoration: none;
}
.bass-gallery-page .bass-dealer-photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 2.15;
  object-fit: cover;
  object-position: center 55%;
}
@media (hover: hover) {
  .bass-filter select:hover, .bass-feature-trigger:hover { border-bottom-color: var(--text-primary); }
  .bass-feature-options label:hover { background: var(--bg-elevated); }
  .bass-gallery-page .bass-link:hover { text-decoration-color: currentColor; }
  .bass-swatch:hover::before { outline: 1px solid var(--text-secondary); }
  .bass-dealer-link:hover { background: white; }
}
@media (max-width: 1079px) {
  .bass-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1080px) {
  .bass-photo { aspect-ratio: 1.04 / 1.17; }
  [data-page="guitars"] .bass-photo img { max-width: 100%; }
}
@media (min-width: 768px) {
  .bass-results { justify-content: flex-end; }
}
@media (max-width: 767px) {
  .bass-intro { grid-template-columns: 1fr; gap: 10px; padding-block: 26px 21px; }
  .bass-gallery-page .bass-intro p { font-size: .9375rem; }
  .bass-filters { display: flex; flex-wrap: wrap; row-gap: 8px; padding-block: 8px 14px; }
  .bass-filter { flex: 1 1 10rem; }
  .bass-filter:has([name="strings"]) { flex-basis: 6rem; }
  .bass-filter:has([name="construction"]), .bass-feature-filter { flex-basis: 11rem; }
  .bass-feature-options { position: static; }
  .bass-grid { row-gap: 26px; }
  .bass-card { height: 100%; }
  .bass-photo { aspect-ratio: .84; }
  .bass-card-body { padding-block: 12px 7px; }
  .bass-gallery-page .bass-model { font-size: clamp(1.24rem, 4.9vw, 1.75rem); }
  .bass-gallery-page .bass-type { font-size: .875rem; margin-top: 5px; }
  .bass-gallery-page .bass-specs { font-size: .8125rem; margin-block: 5px 7px; }
  .bass-finishes { display: block; width: 100%; }
  .bass-swatches { margin-inline: -4px; }
  .bass-swatch { width: 44px; height: 44px; }
  .bass-gallery-page .bass-link { font-size: .8125rem; }
  .bass-dealer-inner { grid-template-columns: 1fr; gap: 24px; padding-block: 32px; }
  .bass-gallery-page .bass-dealer-photo img { aspect-ratio: 1.9; }
  :is(.guitar-card-footer, .bass-card-footer) { container-type: inline-size; }
  :is(.guitar-card-footer, .bass-card-footer) .bass-finish-name { display: block; overflow-wrap: anywhere; }
  /* Fit four 44px touch targets into one row using the space beside the card. */
  .bass-card-footer .bass-swatches:has(:nth-child(4)) {
    margin-inline: min(-4px, calc((100% - 176px) / 2));
  }
  @container (max-width: 168px) {
    .bass-card-footer .bass-swatches:not(:has(:nth-child(4))) { margin-inline: 0; }
  }
  @container (max-width: 9rem) {
    .bass-card-footer:lang(en) .bass-finish-name { min-height: 2lh; }
  }
  /* At larger text sizes a two-word finish can wrap beside a one-word finish. */
  @container (max-width: 7rem) {
    :is(.guitar-card-footer, .bass-card-footer) .bass-finish-name { min-height: 2lh; }
  }
}
@media (max-width: 359px) {
  .bass-grid { grid-template-columns: minmax(0, 1fr); }
  .bass-photo { aspect-ratio: 1.04; }
  .bass-gallery-page .bass-model { font-size: 1.6rem; }
}

/* Match the masthead and footer on the current About spread. */
.bass-gallery-page .concept-header {
  position: relative;
  min-height: 86px;
  padding-block: 12px;
  background: var(--bg-stage);
}
.bass-gallery-page .concept-header .concept-logo { width: 154px; height: 60px; }
.bass-gallery-page .about-footer {
  border-top: 1px solid var(--hairline);
  background: var(--bg-canvas);
  font-family: var(--font-zh);
}
.bass-gallery-page:lang(en) .about-footer { font-family: var(--font-latin); }
.bass-gallery-page .footer-inner {
  display: grid;
  width: min(100%, var(--frame-width));
  margin-inline: auto;
  padding: clamp(40px, 4.5vw, 72px) var(--frame-gutter);
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: clamp(20px, 4vw, 64px);
}
.bass-gallery-page .footer-brand p {
  max-width: 49ch;
  margin: 10px 0 0;
  color: var(--text-secondary);
  font-size: .875rem;
  line-height: 1.5;
  text-wrap: balance;
}
.bass-gallery-page .footer-nav { column-gap: clamp(14px, 1.8vw, 30px); }
.bass-gallery-page :is(.footer-nav a, .back-top) {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  color: var(--text-secondary);
  font-size: .875rem;
  line-height: 1.4;
  white-space: nowrap;
}
.bass-gallery-page .back-top { gap: 5px; justify-self: end; }
.bass-legal {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  padding-top: 15px;
  border-top: 1px solid var(--hairline);
  color: var(--text-secondary);
  font-size: .8125rem;
}
.bass-legal a { padding-block: 5px; }
.bass-gallery-page .back-top:is(:hover, :focus-visible) { text-decoration: underline; text-underline-offset: .3em; }
.bass-filter-panel summary {
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--text-primary);
  list-style: none;
  font-size: .9375rem;
  cursor: pointer;
}
.bass-filter-panel summary::-webkit-details-marker { display: none; }
.bass-filter-panel summary::after {
  content: "";
  width: 8px;
  height: 8px;
  margin-inline-end: 4px;
  border: solid currentColor;
  border-width: 0 1px 1px 0;
  transform: translateY(-2px) rotate(45deg);
}
.bass-filter-panel[open] summary::after { transform: translateY(2px) rotate(225deg); }
@media (min-width: 768px) {
  .bass-filter-panel summary { display: none; }
}
@media (min-width: 768px) and (max-width: 1050px) {
  .bass-gallery-page .footer-inner {
    grid-template-columns: minmax(0, 1fr) minmax(218px, 1fr) auto;
    gap: 22px;
  }
}
@media (max-width: 899px) {
  .bass-gallery-page .concept-header { min-height: 75px; padding: max(12px, env(safe-area-inset-top)) 24px; }
  .bass-gallery-page .concept-header .concept-logo { width: 128px; height: 50px; }
  .bass-gallery-page .concept-header:has(.concept-compact-menu[open]),
  .bass-gallery-page .concept-compact-menu nav { background: var(--bg-control); }
}
@media (max-width: 767px) {
  .bass-gallery-page .footer-inner { grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 14px; }
  .bass-gallery-page .footer-brand .concept-logo { width: 110px; height: 44px; }
  .bass-gallery-page .footer-brand { grid-column: 1 / -1; grid-row: 1; }
  .bass-gallery-page .footer-brand p { margin-top: 12px; }
  .bass-gallery-page .back-top { grid-column: 2; grid-row: 1; }
  .bass-gallery-page .footer-nav { grid-column: 1 / -1; grid-row: 2; }
  .bass-filter-panel summary { border-bottom: 1px solid var(--hairline); }
}
