:root {
  --bg: #0b0d10;
  --bg-deep: #050607;
  --panel: #15181d;
  --panel-2: #1d2229;
  --panel-3: #101318;
  --border: #343b45;
  --border-soft: rgba(255, 255, 255, 0.08);
  --text: #f2f4f6;
  --muted: #aeb8c4;
  --muted-2: #8f9aa6;
  --silver: #dce2e8;
  --silver-dark: #a8b2bd;
  --good: #72d68a;
  --shadow: 0 18px 44px rgba(0, 0, 0, 0.38);
  --radius: 20px;
  --max: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
  overflow-x: hidden;
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 20% 0%, rgba(255, 255, 255, 0.07) 0%, transparent 32%),
    radial-gradient(circle at 85% 12%, rgba(207, 213, 220, 0.06) 0%, transparent 34%),
    linear-gradient(180deg, #080a0d 0%, #101317 55%, #0b0d10 100%);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 17px;
  line-height: 1.55;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

/* Header */

.site-header {
  width: 100%;
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(5, 6, 7, 0.9);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(14px);
}

.nav {
  width: min(var(--max), calc(100% - 32px));
  min-height: 86px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.brand-logo,
.brand img {
  width: 68px;
  height: 68px;
  object-fit: contain;
  flex: 0 0 auto;
}

.brand-text,
.brand span {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.brand strong {
  display: block;
  color: var(--text);
  font-size: 1rem;
  line-height: 1;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 950;
}

.brand small,
.brand span span {
  display: block;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.15;
  font-weight: 700;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  flex-wrap: wrap;
}

.nav-links a {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 800;
}

.nav-links a:hover {
  color: var(--text);
}

/* Page shell */

.page {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0 46px;
}

.page,
.hero,
.hero-copy,
.section,
.section-head,
.hero-card,
.content-card,
.cta-card,
.contact-card,
.split-card,
.mini-card,
.feature-card,
.stat-card {
  min-width: 0;
  max-width: 100%;
}

/* Type */

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  color: var(--text);
  text-transform: uppercase;
  font-weight: 950;
}

h1 {
  max-width: 11ch;
  margin-bottom: 22px;
  font-size: clamp(4rem, 7.2vw, 6.6rem);
  line-height: 0.86;
  letter-spacing: -0.075em;
  overflow-wrap: normal;
  word-break: normal;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 0.95;
  letter-spacing: -0.055em;
}

h3 {
  margin-bottom: 10px;
  font-size: clamp(1.35rem, 2.2vw, 1.85rem);
  line-height: 1;
  letter-spacing: -0.035em;
}

p {
  color: var(--muted);
  line-height: 1.58;
}

strong {
  color: var(--text);
}

/* Shared UI */

.eyebrow,
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  max-width: 100%;
  margin-bottom: 16px;
  padding: 8px 12px;
  border: 1px solid rgba(207, 213, 220, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--good);
  box-shadow: 0 0 14px rgba(114, 214, 138, 0.5);
}

.kicker::before {
  content: none;
}

.btn,
.button,
button,
input[type="submit"],
input[type="button"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 18px;
  border-radius: 14px;
  border: 1px solid transparent;
  text-align: center;
  font-weight: 950;
  line-height: 1.1;
  cursor: pointer;
  transition:
    transform 140ms ease,
    background 140ms ease,
    border-color 140ms ease,
    opacity 140ms ease;
}

.btn:hover,
.button:hover,
button:hover,
input[type="submit"]:hover,
input[type="button"]:hover {
  transform: translateY(-1px);
}

.btn:active,
.button:active,
button:active,
input[type="submit"]:active,
input[type="button"]:active {
  transform: translateY(1px) scale(0.99);
}

.btn-primary,
.button-primary {
  background: linear-gradient(180deg, var(--silver) 0%, var(--silver-dark) 100%);
  color: #101317;
}

.btn-secondary,
.button-secondary {
  background: rgba(255, 255, 255, 0.035);
  color: var(--text);
  border-color: var(--border);
}

.btn-secondary:hover,
.button-secondary:hover {
  background: rgba(255, 255, 255, 0.065);
}

/* Hero */

.hero {
  padding: 16px 0 28px;
}

.hero-copy {
  max-width: 880px;
}

.hero-lead,
.hero p {
  max-width: 760px;
  margin-bottom: 0;
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
}

.hero-card {
  margin-top: 28px;
}

/* Button rows */

.hero-actions,
.button-row,
.cta-actions,
.contact-actions,
.card-actions,
.tool-row,
.action-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

/* Cards */

.hero-card,
.content-card,
.cta-card,
.contact-card,
.split-card,
.feature-card,
.mini-card,
.stat-card {
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(29, 34, 41, 0.96) 0%, rgba(21, 24, 29, 0.98) 100%);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow);
}

.hero-card,
.content-card,
.feature-card {
  padding: clamp(22px, 3vw, 34px);
}

.cta-card,
.contact-card {
  padding: clamp(24px, 3vw, 36px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, auto);
  gap: clamp(22px, 4vw, 48px);
  align-items: center;
}

.cta-card p,
.contact-card p {
  max-width: 720px;
  margin-bottom: 0;
}

.cta-actions,
.contact-actions {
  justify-content: flex-end;
  margin-top: 0;
}

.section {
  padding: clamp(16px, 2.8vw, 28px) 0;
}

.section + .section {
  padding-top: 0;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(280px, 1fr);
  gap: clamp(18px, 4vw, 42px);
  align-items: start;
  margin-bottom: 14px;
}

.section-head h2,
.section-head p {
  margin-bottom: 0;
}

.section-head p {
  max-width: 680px;
}

.no-margin {
  margin-bottom: 0;
}

/* Split card */

.split-card {
  padding: clamp(22px, 3vw, 34px);
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(280px, 1fr);
  gap: clamp(18px, 4vw, 42px);
  align-items: center;
}

.split-card h2,
.split-card p {
  margin-bottom: 0;
}

.split-card .button-row,
.split-card .tool-row {
  margin-top: 18px;
}

/* Feature / logo area */

.logo-panel {
  display: grid;
  place-items: center;
  width: min(330px, 100%);
  margin: 0 auto 22px;
  padding: 14px;
  border-radius: 22px;
  background: rgba(0, 0, 0, 0.26);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.logo-panel img {
  width: min(270px, 100%);
  object-fit: contain;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.stat-card {
  padding: 18px;
}

.stat-card span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.stat-card strong {
  display: block;
  font-size: 1.18rem;
}

/* Lists */

.stack {
  display: grid;
  gap: 12px;
}

.feature-list,
.list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.feature-list > div,
.list > div,
.list-item {
  padding: 16px 18px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.075);
  color: var(--muted);
  font-weight: 800;
}

/* Opening hours */

.opening-section {
  display: grid;
  gap: 16px;
}

.big-value {
  display: block;
  margin: 4px 0 10px;
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  line-height: 1;
  letter-spacing: -0.045em;
  text-transform: uppercase;
}

.hours-list {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.hours-list > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 16px 18px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.075);
}

.hours-list strong {
  font-size: 1.05rem;
}

.hours-list span {
  color: var(--muted);
  font-weight: 950;
  white-space: nowrap;
}

/* Events / Gallery */

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.mini-card {
  padding: 22px;
}

.mini-card .kicker {
  margin-bottom: 14px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
}

.mini-card p {
  margin-bottom: 0;
}

/* Partners */

.partner-tags,
.partner-list,
.partners-list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
  padding: 0;
  list-style: none;
}

.partner-tags span,
.partner-list span,
.partner-list a,
.partners-list span,
.partners-list a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 13px;
  border-radius: 999px;
  border: 1px solid rgba(207, 213, 220, 0.18);
  background: rgba(255, 255, 255, 0.025);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Footer */

.footer {
  width: 100%;
  margin-top: 28px;
  padding: 16px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(5, 6, 7, 0.72);
  color: var(--muted);
}

.footer-inner {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.footer p {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  line-height: 1.2;
}

.footer strong {
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.92rem;
  font-weight: 950;
}

.footer span,
.footer p,
.footer a {
  color: var(--muted);
  font-size: 0.95rem;
}

@media (max-width: 640px) {
  .footer {
    margin-top: 22px;
    padding: 14px 0;
  }

  .footer-inner {
    width: min(100%, calc(100% - 24px));
    min-height: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .footer p {
    flex-wrap: wrap;
  }
}

@media (max-width: 430px) {
  .footer-inner {
    width: min(100%, calc(100% - 20px));
  }

  .footer strong,
  .footer span,
  .footer p,
  .footer a {
    font-size: 0.88rem;
  }
}

/* Forms / generic controls */

input,
select,
textarea {
  width: 100%;
  max-width: 100%;
  min-height: 52px;
  padding: 13px 15px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: #101317;
  color: var(--text);
  outline: none;
}

textarea {
  min-height: 130px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(255, 255, 255, 0.28);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.06);
}

/* Desktop / half-screen */

@media (max-width: 1180px) {
  body {
    font-size: 17px;
  }

  h1 {
    max-width: 12ch;
    font-size: clamp(3.5rem, 7.4vw, 5.5rem);
  }

  .nav,
  .page,
  .footer-inner {
    width: min(var(--max), calc(100% - 28px));
  }

  .cta-card,
  .contact-card,
  .split-card {
    grid-template-columns: minmax(0, 1fr);
  }

  .cta-actions,
  .contact-actions {
    justify-content: flex-start;
  }
}

/* Tablet */

@media (max-width: 900px) {
  body {
    font-size: 16.5px;
  }

  .nav {
    min-height: auto;
    padding: 16px 0;
    align-items: flex-start;
  }

  h1 {
    max-width: 100%;
    font-size: clamp(3rem, 9.5vw, 4.5rem);
    line-height: 0.88;
    letter-spacing: -0.065em;
  }

  .section-head {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .card-grid,
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions,
  .button-row,
  .cta-actions,
  .contact-actions,
  .card-actions,
  .tool-row,
  .action-row {
    align-items: stretch;
  }
}

/* Android / large phone */

@media (max-width: 640px) {
  body {
    font-size: 16px;
  }

  .site-header {
    position: static;
  }

  .nav {
    width: min(100%, calc(100% - 24px));
    flex-direction: column;
    gap: 14px;
  }

  .brand {
    width: 100%;
  }

  .brand-logo,
  .brand img {
    width: 56px;
    height: 56px;
  }

  .brand strong {
    font-size: 0.9rem;
    letter-spacing: 0.12em;
  }

  .brand small,
  .brand span span {
    font-size: 0.8rem;
  }

  .nav-links {
    width: 100%;
    justify-content: flex-start;
    gap: 10px;
  }

  .nav-links a {
    min-height: 38px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.08);
  }

  .page {
    width: min(100%, calc(100% - 24px));
    padding-top: 22px;
    padding-bottom: 34px;
  }

  .hero {
    padding: 10px 0 22px;
    overflow: hidden;
  }

  .hero-copy {
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
  }

  .hero-card {
    margin-top: 20px;
  }

  h1 {
    max-width: 100%;
    font-size: clamp(2.75rem, 11.5vw, 3.65rem);
    line-height: 0.9;
    letter-spacing: -0.055em;
  }

  h2 {
    font-size: clamp(1.9rem, 8vw, 2.45rem);
  }

  h3 {
    font-size: clamp(1.25rem, 5vw, 1.55rem);
  }

  .section {
    padding-top: 14px;
    padding-bottom: 14px;
  }

  .section + .section {
    padding-top: 0;
  }

  .section-head {
    margin-bottom: 10px;
  }

  .hero-actions,
  .button-row,
  .cta-actions,
  .contact-actions,
  .card-actions,
  .tool-row,
  .action-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: 16px;
  }

  .hero-actions .btn,
  .button-row .btn,
  .cta-actions .btn,
  .contact-actions .btn,
  .card-actions .btn,
  .tool-row .btn,
  .action-row .btn,
  .hero-actions .button,
  .button-row .button,
  .cta-actions .button,
  .contact-actions .button,
  .card-actions .button,
  .tool-row .button,
  .action-row .button {
    width: auto;
    flex: 1 1 150px;
    min-width: 0;
  }

  .hero-card,
  .content-card,
  .feature-card,
  .cta-card,
  .contact-card,
  .split-card,
  .mini-card {
    width: 100%;
    padding: 18px;
    border-radius: 20px;
  }

  .content-card h2,
  .feature-card h2,
  .cta-card h2,
  .contact-card h2,
  .split-card h2 {
    max-width: 100%;
    margin-bottom: 12px;
    font-size: clamp(2rem, 8.6vw, 2.65rem);
    line-height: 0.95;
    letter-spacing: -0.055em;
  }

  .content-card p,
  .feature-card p,
  .cta-card p,
  .contact-card p,
  .split-card p {
    max-width: 100%;
    margin-bottom: 0;
    font-size: 1rem;
    line-height: 1.55;
  }

  .split-card {
    display: block;
  }

  .split-card .button-row,
  .split-card .tool-row {
    margin-top: 16px;
  }

  .logo-panel {
    width: min(100%, 320px);
    margin-bottom: 16px;
    padding: 12px;
  }

  .logo-panel img {
    width: min(230px, 100%);
  }

  .stack,
  .card-grid,
  .feature-list {
    gap: 10px;
  }

  .hours-list > div {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .hours-list span {
    white-space: normal;
  }

  .footer {
    margin-top: 18px;
  }

  .footer-inner {
    width: min(100%, calc(100% - 24px));
    flex-direction: column;
    align-items: flex-start;
  }
}

/* iPhone / narrow phones */

@media (max-width: 500px) {
  .hero-actions,
  .button-row,
  .cta-actions,
  .contact-actions,
  .card-actions,
  .tool-row,
  .action-row {
    display: grid;
    grid-template-columns: 1fr;
  }

  .hero-actions .btn,
  .button-row .btn,
  .cta-actions .btn,
  .contact-actions .btn,
  .card-actions .btn,
  .tool-row .btn,
  .action-row .btn,
  .hero-actions .button,
  .button-row .button,
  .cta-actions .button,
  .contact-actions .button,
  .card-actions .button,
  .tool-row .button,
  .action-row .button {
    width: 100%;
    flex: none;
  }

  .hero-card {
    margin-top: 22px;
  }
}

@media (max-width: 430px) {
  .nav,
  .page,
  .footer-inner {
    width: min(100%, calc(100% - 20px));
  }

  h1 {
    max-width: 100%;
    font-size: clamp(2.4rem, 10.8vw, 3.15rem);
    line-height: 0.92;
    letter-spacing: -0.045em;
  }

  .eyebrow,
  .kicker {
    font-size: 0.72rem;
    letter-spacing: 0.08em;
  }

  .hero-card,
  .content-card,
  .feature-card,
  .cta-card,
  .contact-card,
  .split-card,
  .mini-card {
    padding: 16px;
  }

  .logo-panel {
    width: 100%;
    margin-bottom: 14px;
  }

  .logo-panel img {
    width: min(210px, 100%);
  }

  .btn,
  .button,
  button,
  input[type="submit"],
  input[type="button"] {
    min-height: 46px;
    padding: 11px 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

/* OPENING SECTION STRUCTURE FIX v4 START */

#opening {
  display: block;
  padding-top: clamp(18px, 3vw, 30px);
  padding-bottom: clamp(18px, 3vw, 30px);
}

#opening .section-head {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(320px, 1fr);
  gap: clamp(18px, 4vw, 42px);
  align-items: start;
  margin-bottom: 18px;
}

#opening .section-head h2 {
  margin: 0;
}

#opening .section-head p {
  margin: 0;
  max-width: 680px;
}

#opening .stack {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  width: 100%;
}

#opening .content-card,
#opening .compact-card {
  display: block;
  width: 100%;
  padding: clamp(20px, 2.6vw, 30px);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(29, 34, 41, 0.96) 0%, rgba(21, 24, 29, 0.98) 100%);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow);
}

#opening .kicker {
  margin-bottom: 14px;
}

#opening .big-value {
  display: block;
  margin: 0 0 10px;
  color: var(--text);
  font-size: clamp(2.4rem, 4vw, 3.25rem);
  line-height: 1;
  letter-spacing: -0.045em;
  text-transform: uppercase;
}

#opening .compact-card p {
  margin: 0;
  max-width: 760px;
}

#opening .hours-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 18px;
}

#opening .hours-list > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  width: 100%;
  padding: 16px 18px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.075);
}

#opening .hours-list strong {
  display: block;
  margin: 0;
  color: var(--text);
  font-size: 1.05rem;
  line-height: 1.2;
}

#opening .hours-list span {
  display: block;
  color: var(--muted);
  font-weight: 950;
  line-height: 1.2;
  white-space: nowrap;
  text-align: right;
}

/* Keep Free Barbell Calculator contents inside the box cleanly. */

.split-card {
  overflow: hidden;
}

.split-card h2 {
  max-width: 100%;
}

.split-card p {
  max-width: 680px;
}

.split-card .button-row,
.split-card .tool-row {
  width: 100%;
  max-width: 100%;
}

.split-card .btn,
.split-card .button {
  max-width: 100%;
}

/* Half-screen and tablet */

@media (max-width: 900px) {
  #opening .section-head {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-bottom: 14px;
  }

  #opening .content-card,
  #opening .compact-card {
    padding: 20px;
  }
}

/* Android / iPhone */

@media (max-width: 640px) {
  #opening {
    padding-top: 14px;
    padding-bottom: 14px;
  }

  #opening .section-head {
    margin-bottom: 12px;
  }

  #opening .stack {
    gap: 12px;
  }

  #opening .content-card,
  #opening .compact-card {
    padding: 18px;
    border-radius: 20px;
  }

  #opening .hours-list > div {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 15px 16px;
  }

  #opening .hours-list span {
    white-space: normal;
    text-align: left;
  }

  .split-card .button-row,
  .split-card .tool-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .split-card .btn,
  .split-card .button {
    width: 100%;
  }
}

@media (max-width: 430px) {
  #opening .content-card,
  #opening .compact-card {
    padding: 16px;
  }

  #opening .big-value {
    font-size: clamp(2.1rem, 11vw, 2.75rem);
  }
}

/* OPENING SECTION STRUCTURE FIX v4 END */


/* static live gallery start */
#gallery {
  display: block;
}

.gallery-category-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.gallery-category-card {
  width: 100%;
  min-width: 0;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr;
  padding: 0;
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(29, 34, 41, 0.96) 0%, rgba(21, 24, 29, 0.98) 100%);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow);
  color: inherit;
  text-align: left;
  cursor: zoom-in;
}

.gallery-category-card:hover {
  transform: translateY(-1px);
}

.gallery-image-wrap {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 11;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 30%, rgba(255, 255, 255, 0.08), transparent 44%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015));
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.gallery-image-wrap img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.gallery-image-empty {
  display: grid;
  place-items: center;
  min-height: 210px;
}

.gallery-image-empty span {
  color: var(--muted);
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.gallery-card-copy {
  display: grid;
  gap: 7px;
  padding: 16px;
}

.gallery-card-copy strong {
  color: var(--text);
  font-size: clamp(1.05rem, 1.8vw, 1.35rem);
  line-height: 1;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

.gallery-card-copy span {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.35;
}

@media (max-width: 900px) {
  .gallery-category-grid {
    grid-template-columns: 1fr;
  }

  .gallery-image-wrap {
    aspect-ratio: 16 / 9;
  }
}

@media (max-width: 520px) {
  .gallery-card-copy {
    padding: 14px;
  }

  .gallery-image-wrap {
    aspect-ratio: 4 / 3;
  }
}
/* static live gallery end */

/* static gallery lightbox start */
body.gallery-lightbox-open {
  overflow: hidden;
}

.gallery-lightbox[hidden] {
  display: none !important;
}

.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 0;
  background: rgba(2, 5, 10, 0.98);
}

.gallery-lightbox-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  min-height: 100%;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: rgba(2, 5, 10, 0.98);
  cursor: zoom-out;
}

.gallery-lightbox-panel {
  position: relative;
  z-index: 1;
  width: 100vw;
  height: 100dvh;
  max-height: 100dvh;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 8px;
  padding: clamp(10px, 1.4vw, 18px);
  border: 0;
  border-radius: 0;
  background: #05070a;
  box-shadow: none;
}

.gallery-lightbox-toolbar {
  min-height: 48px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.gallery-lightbox-close {
  width: auto;
  min-width: 86px;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: linear-gradient(180deg, var(--silver) 0%, var(--silver-dark) 100%);
  color: #101317;
  font-weight: 950;
  line-height: 1;
  cursor: pointer;
  transform: none !important;
}

.gallery-lightbox-close:hover,
.gallery-lightbox-close:active {
  transform: none !important;
}

.gallery-lightbox-stage {
  position: relative;
  min-width: 0;
  min-height: 0;
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 18px;
  background: #05070a;
}

.gallery-lightbox-image {
  display: block;
  width: auto;
  height: auto;
  max-width: calc(100vw - 150px);
  max-height: calc(100dvh - 118px);
  object-fit: contain;
  object-position: center;
  user-select: none;
  -webkit-user-drag: none;
}

.gallery-lightbox-arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 54px;
  height: 72px;
  min-height: 0;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 18px;
  background: rgba(10, 13, 18, 0.86);
  color: rgba(242, 244, 246, 0.96);
  font-size: 3.2rem;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%) !important;
  transition:
    background 140ms ease,
    border-color 140ms ease,
    opacity 140ms ease;
}

.gallery-lightbox-arrow:hover,
.gallery-lightbox-arrow:active {
  transform: translateY(-50%) !important;
}

.gallery-lightbox-arrow:hover {
  background: rgba(255, 255, 255, 0.13);
  border-color: rgba(255, 255, 255, 0.3);
}

.gallery-lightbox-arrow-prev {
  left: clamp(8px, 2vw, 24px);
}

.gallery-lightbox-arrow-next {
  right: clamp(8px, 2vw, 24px);
}

.gallery-lightbox-caption {
  min-height: 24px;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.3;
  text-align: center;
}

@media (max-width: 900px) {
  .gallery-lightbox-panel {
    padding: max(10px, env(safe-area-inset-top)) 10px max(10px, env(safe-area-inset-bottom));
  }

  .gallery-lightbox-toolbar {
    min-height: 44px;
  }

  .gallery-lightbox-image {
    max-width: calc(100vw - 96px);
    max-height: calc(100dvh - 108px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
  }

  .gallery-lightbox-arrow {
    width: 40px;
    height: 58px;
    border-radius: 14px;
    font-size: 2.45rem;
  }

  .gallery-lightbox-arrow-prev {
    left: 8px;
  }

  .gallery-lightbox-arrow-next {
    right: 8px;
  }

  .gallery-lightbox-caption {
    min-height: 22px;
    padding-inline: 8px;
    font-size: 0.88rem;
  }
}

@media (max-width: 430px) {
  .gallery-lightbox-image {
    max-width: calc(100vw - 82px);
    max-height: calc(100dvh - 104px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
  }

  .gallery-lightbox-arrow {
    width: 36px;
    height: 54px;
    font-size: 2.15rem;
  }

  .gallery-lightbox-close {
    min-width: 78px;
    min-height: 40px;
    padding: 9px 14px;
  }
}
/* static gallery lightbox end */