/*
 * JBL brochure-style redesign — plugin v1.3.0 (footer full-bleed + services/gallery)
 * ------------------------------------------------------------------
 * SCOPING: Enqueue only on configured page IDs via the
 * "JBL Brochure Staging" plugin (option jbl_brochure_staging_page_ids),
 * or with ?jbl_brochure_staging=1 for logged-in users.
 * Do NOT paste into live Appearance → Customize → Additional CSS.
 * ------------------------------------------------------------------
 * Layout + tokens from comps/styles.css; hero uses --jbl-hero-bg
 * (set from Settings → Uploads base URL + hero-a2-blurred-workshop.webp).
 */

:root {
  --gold: #DF943A;
  --gold-hover: #E8A84E;
  --green: #122620;
  --deep: #0D1B17;
  --white: #FFFFFF;
  --mist: #F4F5F3;
  --muted: #4A5550;
  --container: 1140px;
  --gutter: 24px;
  --pad: clamp(56px, 8vw, 112px);
  --cut: 10.5vw;
  --stripe: 8px;
  --stripe-total: 8px;
  --bubble: 200px;
  --ease-lift: cubic-bezier(.2, .7, .2, 1);
  --shadow-card: 0 6px 16px rgba(13, 27, 23, .12);
  --shadow-card-hover: 0 18px 36px rgba(13, 27, 23, .22);
  --header-h: 120px;
  /* Filled by plugin inline CSS from uploads base option */
  --jbl-hero-bg: url('');
}

body.cut-b1 { --cut: 6.1vw; --stripe: 6px; --stripe-total: 6px; }
body.cut-b2 { --cut: 10.5vw; --stripe: 8px; --stripe-total: 8px; }
body.cut-b3 { --cut: 19.4vw; --stripe: 8px; --stripe-total: 20px; }

/* Hide theme / Elementor / child chrome so comps header in the shortcode shows cleanly */
body.jbl-brochure-staging-preview .jbl-header,
body.jbl-brochure-staging-preview #jbl-site-header,
body.jbl-brochure-staging-preview #jbl-site-footer,
body.jbl-brochure-staging-preview .elementor-location-header,
body.jbl-brochure-staging-preview .elementor-location-footer {
  display: none !important;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; font-family: 'Montserrat', sans-serif; }
body, button, input, textarea, select { font-family: 'Montserrat', sans-serif; }
body.jbl-brochure-staging-preview {
  margin: 0 !important;
  padding: 0 !important;
  font-size: 17px;
  line-height: 1.65;
  font-weight: 400;
  color: var(--green);
  background: var(--white);
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0 0 .5em; font-family: 'Montserrat', sans-serif; }
body.jbl-brochure-staging-preview h1 { font-size: 56px; line-height: 1.1; font-weight: 800; letter-spacing: -.01em; }
body.jbl-brochure-staging-preview h2 { font-size: 40px; line-height: 1.2; font-weight: 700; }
body.jbl-brochure-staging-preview h3 { font-size: 22px; line-height: 1.3; font-weight: 700; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

.container { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.text-gold { color: var(--gold); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; }
.on-dark :focus-visible,
.site-header :focus-visible,
.site-footer :focus-visible,
.hero :focus-visible,
.jbl-header :focus-visible { outline-color: var(--gold); }

.skip-link {
  position: absolute; left: 16px; top: -80px; z-index: 100;
  background: var(--gold); color: var(--green);
  padding: 12px 20px; font-weight: 700; text-decoration: none; border-radius: 4px;
}
.skip-link:focus { top: 16px; }

/* Comps header (inside shortcode) — beat Hello Elementor .site-header:not(.dynamic-header) max-width/padding */
body.jbl-brochure-staging-preview .site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  background: var(--green) !important;
  border-bottom: 1px solid var(--deep);
  box-sizing: border-box;
}

/* Comps footer — beat Hello Elementor .site-footer:not(.dynamic-footer) max-width/padding */
body.jbl-brochure-staging-preview .site-footer {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  margin-inline: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  padding-inline: 0 !important;
  box-sizing: border-box;
}

.site-header__inner { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); gap: 24px; }
.site-header__logo { display: inline-flex; flex: 0 0 auto; }
.site-header__logo img { height: 90px; width: auto; }
.primary-nav ul { display: flex; gap: 36px; list-style: none; margin: 0; padding: 0; }
.primary-nav a {
  position: relative; display: inline-block; padding: 10px 0;
  color: var(--white); text-decoration: none;
  font-size: 15px; font-weight: 600; letter-spacing: .02em;
}
.primary-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 3px;
  background: var(--gold); transform: scaleX(0); transform-origin: left center;
  transition: transform 200ms ease-out;
}
.primary-nav a:hover::after,
.primary-nav a:focus-visible::after,
.primary-nav a[aria-current="page"]::after { transform: scaleX(1); }
.primary-nav a:hover, .primary-nav a[aria-current="page"] { color: var(--gold-hover); }
.nav-toggle {
  display: none; width: 44px; height: 44px; padding: 0;
  background: transparent; border: 2px solid rgba(223, 148, 58, .55); border-radius: 6px; cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.nav-toggle span { display: block; width: 22px; height: 3px; background: var(--gold); border-radius: 2px; }

.btn, .elementor-button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 12px 28px;
  background-color: var(--gold); color: var(--green);
  border: 2px solid var(--gold); border-radius: 4px;
  font-size: 15px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; text-decoration: none;
  cursor: pointer;
  transition: transform 180ms ease-out, background-color 180ms ease-out, border-color 180ms ease-out, color 180ms ease-out;
}
.btn:hover, .btn:focus-visible, .elementor-button:hover, .elementor-button:focus-visible {
  background-color: var(--gold-hover); border-color: var(--gold-hover); color: var(--green); transform: translateY(-2px);
}
.btn--ghost { background-color: transparent; color: var(--white); }
.btn--ghost:hover, .btn--ghost:focus-visible { background-color: var(--gold); border-color: var(--gold); color: var(--green); }
.btn-row { display: flex; flex-wrap: wrap; gap: 16px; }
.btn-row--center { justify-content: center; }

.hero {
  position: relative; z-index: 2;
  background: var(--gold);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--cut)), 0 100%);
}
.hero__inner {
  position: relative; z-index: 1; overflow: hidden;
  display: flex; align-items: center;
  min-height: 640px;
  padding: var(--pad) 0 calc(var(--pad) + var(--cut) + var(--stripe-total));
  background: var(--deep);
  color: var(--white);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--cut) - var(--stripe-total)), 0 calc(100% - var(--stripe-total)));
}
.hero--compact .hero__inner { min-height: 380px; }
.hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero__bg::before, .hero__bg::after { content: ""; position: absolute; inset: 0; }
.hero__content { position: relative; z-index: 1; }
.hero__content > * { max-width: 760px; }
.hero__content p { font-size: 20px; font-weight: 500; color: rgba(255, 255, 255, .9); margin-bottom: 32px; }
.hero--compact .hero__content p { font-size: 18px; }
.hero h1::before {
  content: ""; display: block; width: 72px; height: 6px; margin-bottom: 24px;
  background: var(--gold); transform: skewX(-24deg); transform-origin: left bottom;
}

/* A2 hero: Media Library hero webp via --jbl-hero-bg */
body.hero-a2 .hero__bg::before,
body.jbl-brochure-staging-preview .hero__bg::before {
  background: var(--jbl-hero-bg) center / cover no-repeat;
  filter: blur(14px) brightness(.32) saturate(.6);
  transform: scale(1.1);
}
body.hero-a2 .hero__bg::after,
body.jbl-brochure-staging-preview .hero__bg::after {
  background: linear-gradient(115deg, rgba(18, 38, 32, .92) 0%, rgba(18, 38, 32, .6) 55%, rgba(223, 148, 58, .28) 100%);
}
/* Fallback when templates omit .hero__bg (Elementor path) */
.hero__inner {
  background:
    linear-gradient(115deg, rgba(18,38,32,.92) 0%, rgba(18,38,32,.6) 55%, rgba(223,148,58,.28) 100%),
    var(--jbl-hero-bg) center / cover no-repeat,
    var(--deep);
}

.section { position: relative; z-index: 1; padding: var(--pad) 0; }
.on-light { background: var(--white); color: var(--green); }
.on-mist { background: var(--mist); color: var(--green); }
.on-dark { background: var(--green); color: var(--white); }
.on-light p, .on-mist p { color: var(--muted); }
.on-dark p { color: rgba(255, 255, 255, .88); }

.hero + .section, .hero + .e-con { margin-top: calc(-1 * var(--cut)); padding-top: calc(var(--pad) + var(--cut)); }
.cut-top-rise, .cut-top-fall { margin-top: calc(-1 * var(--cut)); padding-top: calc(var(--pad) + var(--cut)); }
.cut-top-rise { clip-path: polygon(0 var(--cut), 100% 0, 100% 100%, 0 100%); }
.cut-top-fall { clip-path: polygon(0 0, 100% var(--cut), 100% 100%, 0 100%); }
.section:has(+ .cut-top-rise), .section:has(+ .cut-top-fall),
main > .section:last-child { padding-bottom: calc(var(--pad) + var(--cut)); }

.section-title::after {
  content: ""; display: block; width: 56px; height: 5px; margin-top: 16px;
  background: var(--gold); transform: skewX(-24deg); transform-origin: left bottom;
}
.section-title--center { text-align: center; }
.section-title--center::after { margin-left: auto; margin-right: auto; }
.section-intro { max-width: 760px; margin-bottom: 48px; }
.section-intro--center { margin-left: auto; margin-right: auto; text-align: center; }

.corner-stripes { position: relative; overflow: hidden; }
.corner-stripes::before {
  content: ""; position: absolute; top: 0; right: 0; width: 220px; height: 220px; pointer-events: none;
  background: linear-gradient(225deg,
    rgba(223, 148, 58, 0) 0 28%, var(--gold) 28% 34%,
    rgba(223, 148, 58, 0) 34% 40%, rgba(223, 148, 58, .45) 40% 43%,
    rgba(223, 148, 58, 0) 43%);
}
.corner-stripes > * { position: relative; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; }
.feature { display: grid; grid-template-columns: 1.25fr .75fr; gap: 64px; align-items: center; }
.grid { display: grid; gap: 32px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); max-width: 900px; margin: 0 auto; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); gap: 24px; --bubble: 180px; }

.card {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  background: var(--white); color: var(--green);
  border-radius: 12px; padding: 40px 28px 32px;
  box-shadow: var(--shadow-card);
  transition: transform 220ms var(--ease-lift), box-shadow 220ms var(--ease-lift);
}
.card p { color: var(--muted); flex: 1 1 auto; margin-bottom: 24px; }
.card .btn { margin-top: auto; }
.card:hover, .card:focus-within { transform: translateY(-6px); box-shadow: var(--shadow-card-hover); }
.grid-4 .card { padding: 36px 20px 28px; }
.on-dark .card {
  background: rgba(255, 255, 255, .05); color: var(--white);
  border: 1px solid rgba(223, 148, 58, .35);
  box-shadow: 0 6px 16px rgba(13, 27, 23, .30);
}
.on-dark .card p { color: rgba(255, 255, 255, .85); }
.on-dark .card:hover, .on-dark .card:focus-within { box-shadow: 0 18px 36px rgba(13, 27, 23, .45); }

.bubble {
  flex: 0 0 auto;
  width: var(--bubble); height: var(--bubble); margin: 0 auto 28px;
  display: grid; place-items: center; overflow: hidden;
  border-radius: 50%; background: var(--white);
  border: 4px solid var(--gold);
  box-shadow: 0 0 0 8px rgba(223, 148, 58, .18), 0 18px 40px rgba(13, 27, 23, .25);
}
.bubble img { width: 82%; height: 82%; object-fit: contain; mix-blend-mode: multiply; transition: transform 300ms ease-out; }
.bubble--logo { background: var(--green); }
.bubble--logo img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: normal; }
.bubble--photo img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: normal; border-radius: 50%; }
.bubble--lg { --bubble: 340px; }
.card:hover .bubble img, .card:focus-within .bubble img { transform: scale(1.04); }

.cta-band { text-align: center; }
.cta-band .section-intro { margin-bottom: 32px; }

.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 40px; align-items: start; }
.contact-card {
  background: var(--green); color: var(--white);
  border-radius: 12px; padding: 48px 40px;
  box-shadow: 0 18px 40px rgba(13, 27, 23, .25);
}
.contact-card h2 { font-size: 32px; }
.contact-list { list-style: none; margin: 32px 0; padding: 0; }
.contact-list > li {
  display: grid; grid-template-columns: 56px 1fr; gap: 4px 16px; align-items: center;
  padding: 16px 0; border-top: 1px solid rgba(223, 148, 58, .3);
}
.contact-list > li:last-child { border-bottom: 1px solid rgba(223, 148, 58, .3); }
.contact-label { grid-column: 2; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); }
.contact-value { grid-column: 2; font-size: 18px; font-weight: 600; overflow-wrap: anywhere; }
.contact-value a { color: var(--white); text-decoration-color: var(--gold); text-underline-offset: 4px; }
.contact-value a:hover { color: var(--gold-hover); }
.contact-icon {
  grid-column: 1; grid-row: 1 / span 2;
  width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center;
  border: 2px solid var(--gold); color: var(--gold);
  box-shadow: 0 0 0 6px rgba(223, 148, 58, .15);
}
.contact-icon svg { width: 22px; height: 22px; }
.contact-map { width: 100%; }
.contact-map iframe { display: block; width: 100%; max-width: 100%; }

.form-card {
  background: var(--white); border-radius: 12px; padding: 48px 40px;
  box-shadow: 0 18px 40px rgba(13, 27, 23, .14);
  border-top: 6px solid var(--gold);
}
.form-card h2 { font-size: 32px; }
.form-note { margin-top: 16px; font-size: 14px; color: var(--muted); }

/* CF7 inside form-card — readable on white; existing tokens only */
.jbl-cf7 { margin-top: 8px; }
.jbl-cf7 .wpcf7-form p { margin: 0 0 16px; }
.jbl-cf7 label { display: block; font-weight: 600; font-size: 14px; color: var(--green); margin-bottom: 6px; }
.jbl-cf7 input[type="text"],
.jbl-cf7 input[type="email"],
.jbl-cf7 input[type="tel"],
.jbl-cf7 input[type="url"],
.jbl-cf7 input[type="number"],
.jbl-cf7 textarea,
.jbl-cf7 select {
  width: 100%;
  max-width: 100%;
  font-family: inherit;
  font-size: 16px;
  line-height: 1.4;
  color: var(--green);
  background: var(--white);
  border: 1px solid #C5CCC8;
  border-radius: 6px;
  padding: 12px 14px;
  box-sizing: border-box;
}
.jbl-cf7 textarea { min-height: 140px; resize: vertical; }
.jbl-cf7 input:focus,
.jbl-cf7 textarea:focus,
.jbl-cf7 select:focus {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
  border-color: var(--gold);
}
.jbl-cf7 input[type="submit"],
.jbl-cf7 .wpcf7-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 28px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .02em;
  color: var(--green);
  background: var(--gold);
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 180ms ease-out, transform 180ms ease-out;
}
.jbl-cf7 input[type="submit"]:hover,
.jbl-cf7 .wpcf7-submit:hover {
  background: var(--gold-hover);
}
.jbl-cf7 .wpcf7-not-valid-tip { color: #A33; font-size: 13px; }
.jbl-cf7 .wpcf7-response-output { margin: 16px 0 0; border-radius: 6px; }

.site-footer { position: relative; background: var(--gold); color: var(--white); padding-bottom: 0; }
.site-footer::before {
  content: ""; position: absolute; inset: 0; z-index: 0; background: var(--deep);
  clip-path: polygon(0 4px, 100% calc(var(--cut) + 4px), 100% 100%, 0 100%);
}
.site-footer.cut-top-rise::before { clip-path: polygon(0 calc(var(--cut) + 4px), 100% 4px, 100% 100%, 0 100%); }
.site-footer > .container, .site-footer > * { position: relative; z-index: 1; }
.site-footer__brand { margin-bottom: 40px; }
.site-footer__brand img {
  height: 72px; width: 72px; object-fit: cover; border-radius: 50%;
  box-shadow: 0 0 0 3px var(--gold), 0 0 0 9px rgba(223, 148, 58, .15);
}
.footer-cols { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 48px; }
.site-footer h3 { color: var(--gold); font-size: 18px; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 20px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 10px; }
.site-footer a { color: var(--white); text-decoration: none; }
.site-footer a:hover { color: var(--gold-hover); text-decoration: underline; }
.site-footer p, .site-footer address { color: rgba(255, 255, 255, .85); font-style: normal; font-size: 16px; }
.footer-contact li { display: flex; gap: 12px; align-items: flex-start; }
.footer-contact svg { flex: 0 0 auto; width: 20px; height: 20px; margin-top: 4px; color: var(--gold); }
.social { display: flex; gap: 12px; margin-bottom: 20px; }
.social a {
  width: 44px; height: 44px; display: grid; place-items: center;
  border: 2px solid var(--gold); border-radius: 50%; color: var(--gold);
  transition: transform 180ms ease-out, background-color 180ms ease-out, color 180ms ease-out;
}
.social a:hover, .social a:focus-visible { background-color: var(--gold); color: var(--deep); transform: translateY(-2px); text-decoration: none; }
.social svg { width: 20px; height: 20px; }
.footer-bottom { margin-top: 56px; padding: 24px 0; border-top: 1px solid rgba(223, 148, 58, .3); font-size: 14px; }
.footer-bottom p { color: rgba(255, 255, 255, .75); font-size: 14px; }

/* Kill live CSS :after override on staging drafts if that class appears */
body.jbl-brochure-staging-preview .jbl-footer__social-text:after { content: none !important; }

@media (prefers-reduced-motion: no-preference) {
  .js .reveal {
    opacity: 0; translate: 0 16px;
    transition: opacity 600ms ease-out, translate 600ms ease-out;
    transition-delay: var(--d, 0ms);
  }
  .js .card.reveal {
    transition: opacity 600ms ease-out, translate 600ms ease-out,
      transform 220ms var(--ease-lift), box-shadow 220ms var(--ease-lift);
    transition-delay: var(--d, 0ms), var(--d, 0ms), 0ms, 0ms;
  }
  .js .reveal.is-visible { opacity: 1; translate: none; }
  .hero__content { animation: jbl-hero-in 700ms ease-out both; }
  @keyframes jbl-hero-in {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: none; }
  }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .card:hover, .card:focus-within,
  .btn:hover, .btn:focus-visible,
  .social a:hover, .social a:focus-visible,
  .card:hover .bubble img, .card:focus-within .bubble img { transform: none; }
}

@media (max-width: 1023px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { --bubble: 180px; }
  .contact-grid { grid-template-columns: 1fr; }
  .feature { grid-template-columns: 1fr 1fr; gap: 40px; }
  .bubble--lg { --bubble: 280px; }
}
@media (max-width: 767px) {
  :root { --gutter: 20px; --header-h: 76px; --bubble: 160px; }
  body.jbl-brochure-staging-preview { font-size: 16px; }
  body.jbl-brochure-staging-preview h1 { font-size: 34px; }
  body.jbl-brochure-staging-preview h2 { font-size: 28px; }
  body.jbl-brochure-staging-preview h3 { font-size: 20px; }
  .site-header__logo img { height: 60px; }
  .hero__inner { min-height: 520px; }
  .hero--compact .hero__inner { min-height: 300px; }
  .hero__content p { font-size: 17px; }
  .hero--compact .hero__content p { font-size: 16px; }
  .hero h1::before { width: 56px; height: 5px; margin-bottom: 18px; }
  .js .nav-toggle { display: flex; }
  .js .primary-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--green); border-top: 1px solid rgba(223, 148, 58, .35);
    box-shadow: 0 18px 30px rgba(13, 27, 23, .4);
  }
  .js .primary-nav.is-open { display: block; }
  .primary-nav ul { flex-direction: column; gap: 0; padding: 8px var(--gutter) 16px; }
  .primary-nav a { display: block; padding: 12px 0; min-height: 44px; }
  .primary-nav a::after { right: auto; width: 48px; bottom: 6px; }
  html:not(.js) .site-header__inner { flex-wrap: wrap; padding-bottom: 8px; }
  .split, .feature, .grid-2, .grid-3, .grid-4, .footer-cols { grid-template-columns: 1fr; }
  .split, .feature { gap: 40px; }
  .grid-4 { --bubble: 160px; }
  .grid { gap: 28px; }
  .bubble--lg { --bubble: 220px; }
  .feature .bubble { order: -1; }
  .section-intro { margin-bottom: 36px; }
  .contact-card, .form-card { padding: 36px 24px; }
  .contact-card h2, .form-card h2 { font-size: 26px; }
  .corner-stripes::before { width: 140px; height: 140px; }
  .btn-row .btn { flex: 1 1 100%; }
  .footer-cols { gap: 36px; }
}
@media (min-width: 640px) and (max-width: 767px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

/* ------------------------------------------------------------------
 * 1.4.0 Gallery by machine type (gallery template only; .gallery-* scoped)
 * White studio frames inside the existing .card system, gold top accent.
 * ------------------------------------------------------------------ */
.gallery-section { scroll-margin-top: calc(var(--header-h) + 16px); }
.gallery-jump {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px;
  max-width: 900px; margin: 0 auto 56px;
}
.gallery-jump a {
  display: inline-flex; align-items: center; min-height: 40px; padding: 8px 18px;
  border: 2px solid var(--gold); border-radius: 999px; background: var(--white);
  color: var(--green); font-size: 14px; font-weight: 600; line-height: 1.2; text-decoration: none;
  transition: background-color 180ms ease-out, color 180ms ease-out;
}
.gallery-jump a:hover, .gallery-jump a:focus-visible { background: var(--gold); color: var(--green); }
.gallery-grid { grid-template-columns: repeat(4, 1fr); gap: 24px; }
.gallery-grid--2 { grid-template-columns: repeat(2, 1fr); max-width: 558px; margin: 0 auto; }
.gallery-card { padding: 20px 20px 24px; border-top: 4px solid var(--gold); }
.gallery-frame {
  width: 100%; aspect-ratio: 1 / 1; margin: 0 0 18px; overflow: hidden;
  background: #FFFFFF; border-radius: 8px; border: 1px solid rgba(18, 38, 32, .08);
}
.gallery-frame img { width: 100%; height: 100%; object-fit: contain; transition: transform 300ms ease-out; }
.card:hover .gallery-frame img, .card:focus-within .gallery-frame img { transform: scale(1.04); }
body.jbl-brochure-staging-preview .gallery-card h3 { flex: 1 1 auto; margin: 0 0 6px; font-size: 18px; line-height: 1.3; }
.gallery-nw { white-space: nowrap; }
.card p.gallery-type {
  flex: 0 0 auto; margin: 0; color: var(--muted);
  font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
}
@media (prefers-reduced-motion: reduce) {
  .card:hover .gallery-frame img, .card:focus-within .gallery-frame img { transform: none; }
}
@media (max-width: 1023px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 767px) {
  .gallery-grid, .gallery-grid--2 { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .gallery-card { padding: 12px 12px 16px; }
  .gallery-frame { margin-bottom: 12px; }
  body.jbl-brochure-staging-preview .gallery-card h3 { font-size: 15px; }
  .card p.gallery-type { font-size: 11px; letter-spacing: .06em; }
  .gallery-jump { gap: 8px; margin-bottom: 40px; }
  .gallery-jump a { min-height: 36px; padding: 6px 14px; font-size: 13px; }
}
@media (max-width: 359px) {
  .gallery-grid, .gallery-grid--2 { grid-template-columns: 1fr; }
}
