:root {
  --black: #080706;
  --charcoal: #11100d;
  --panel: #18150f;
  --panel-soft: rgba(24, 21, 15, 0.86);
  --gold: #d8aa4d;
  --gold-light: #f6d98b;
  --cream: #fff7e6;
  --muted: #cdbf9f;
  --line: rgba(246, 217, 139, 0.22);
  --green: #20b45b;
  --radius: 8px;
  --max: 1240px;
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.42);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--cream);
  background:
    radial-gradient(circle at 82% 0%, rgba(216, 170, 77, 0.11), transparent 30%),
    linear-gradient(180deg, #080706 0%, #0d0b09 52%, #080706 100%);
  font-family: "Poppins", Arial, sans-serif;
  line-height: 1.65;
  overflow-x: hidden;
}

body.lightbox-open {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

button,
input {
  font: inherit;
}

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

h1,
h2,
h3,
.brand-name {
  font-family: "Cinzel", Georgia, serif;
  letter-spacing: 0;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px clamp(18px, 5vw, 64px);
  background: rgba(8, 7, 6, 0.84);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--gold);
  border-radius: var(--radius);
  color: var(--gold-light);
  font-weight: 800;
  font-size: 13px;
  background: linear-gradient(145deg, rgba(216, 170, 77, 0.24), rgba(255, 255, 255, 0.04));
}

.brand-name {
  display: block;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.1;
}

.brand small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.2;
}

.nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav a {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--gold-light);
}

.menu {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
  color: var(--cream);
}

.menu span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
}

.gallery-hero {
  position: relative;
  min-height: 62svh;
  display: grid;
  align-items: end;
  padding: 128px clamp(18px, 6vw, 80px) 44px;
  isolation: isolate;
}

.gallery-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(8, 7, 6, 0.94), rgba(8, 7, 6, 0.54), rgba(8, 7, 6, 0.2)),
    linear-gradient(0deg, var(--black), rgba(8, 7, 6, 0.16) 58%),
    url("images/gallery/radha-krishna-marble-wall-panel.jpg") center / cover no-repeat;
}

.gallery-hero-content {
  width: min(900px, 100%);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold-light);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

h1 {
  max-width: 860px;
  margin-bottom: 18px;
  font-size: clamp(42px, 7vw, 82px);
  line-height: 0.98;
}

h2 {
  margin-bottom: 12px;
  font-size: clamp(28px, 4.2vw, 46px);
  line-height: 1.08;
}

.hero-copy,
.section-head p,
.design-card p,
.empty-state,
.footer p {
  color: var(--muted);
}

.hero-copy {
  max-width: 730px;
  margin-bottom: 26px;
  font-size: clamp(17px, 2vw, 20px);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 18px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.button-gold {
  color: #1c1207;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
}

.button-outline {
  color: var(--gold-light);
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.04);
}

.gallery-shell {
  padding: clamp(44px, 7vw, 80px) clamp(18px, 6vw, 80px) clamp(72px, 9vw, 112px);
}

.gallery-tools {
  position: sticky;
  top: 72px;
  z-index: 15;
  width: min(var(--max), 100%);
  margin: 0 auto 28px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(13, 11, 9, 0.92);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.search-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  margin-bottom: 12px;
}

.search-input {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  outline: none;
  color: var(--cream);
  background: rgba(8, 7, 6, 0.86);
}

.search-input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(216, 170, 77, 0.14);
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-button {
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
}

.filter-button.is-active {
  color: #1c1207;
  border-color: var(--gold-light);
  background: var(--gold-light);
}

.gallery-meta {
  width: min(var(--max), 100%);
  margin: 0 auto 16px;
  color: var(--gold-light);
  font-size: 13px;
  font-weight: 800;
}

.masonry-grid {
  column-count: 4;
  column-gap: 16px;
  width: min(var(--max), 100%);
  margin: 0 auto;
}

.design-card {
  position: relative;
  display: inline-block;
  width: 100%;
  margin: 0 0 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-soft);
  box-shadow: var(--shadow);
  break-inside: avoid;
}

.preview-button {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.design-card img {
  width: 100%;
  min-height: 220px;
  object-fit: cover;
  background: #21190f;
  transition: transform 420ms ease, filter 420ms ease;
}

.design-card:nth-child(4n + 1) img {
  aspect-ratio: 4 / 5;
}

.design-card:nth-child(4n + 2) img {
  aspect-ratio: 1 / 1;
}

.design-card:nth-child(4n + 3) img {
  aspect-ratio: 5 / 6;
}

.design-card:nth-child(4n + 4) img {
  aspect-ratio: 4 / 3;
}

.design-card:hover img,
.preview-button:focus-visible img {
  transform: scale(1.035);
  filter: saturate(1.08);
}

.design-body {
  padding: 16px;
}

.design-tag {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--gold-light);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.design-card h3 {
  margin-bottom: 8px;
  font-size: 20px;
  line-height: 1.2;
}

.design-card p {
  margin-bottom: 14px;
  font-size: 14px;
}

.card-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.whatsapp-button {
  min-height: 44px;
  color: white;
  background: var(--green);
}

.load-more-wrap,
.empty-state {
  width: min(var(--max), 100%);
  margin: 24px auto 0;
  text-align: center;
}

.load-more-wrap[hidden],
.empty-state[hidden] {
  display: none;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 64px 18px 32px;
  background: rgba(0, 0, 0, 0.92);
}

.lightbox[hidden] {
  display: none;
}

.lightbox figure {
  width: min(1120px, 100%);
  margin: 0;
}

.lightbox img {
  width: 100%;
  max-height: 78svh;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  object-fit: contain;
}

.lightbox figcaption {
  margin-top: 14px;
  color: var(--gold-light);
  font-weight: 800;
  text-align: center;
}

.close {
  position: absolute;
  top: 18px;
  right: 18px;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--cream);
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 34px clamp(18px, 6vw, 80px);
  border-top: 1px solid var(--line);
  background: #050403;
}

.footer p {
  max-width: 640px;
  margin: 6px 0 0;
}

.footer a {
  color: var(--gold-light);
  font-weight: 800;
  text-decoration: none;
}

@media (max-width: 1080px) {
  .masonry-grid {
    column-count: 3;
  }
}

@media (max-width: 780px) {
  .menu {
    display: block;
  }

  .nav {
    position: absolute;
    top: 100%;
    left: 18px;
    right: 18px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(8, 7, 6, 0.97);
  }

  .nav.open {
    display: flex;
  }

  .nav a {
    padding: 13px;
  }

  .gallery-tools {
    position: static;
  }

  .search-row {
    grid-template-columns: 1fr;
  }

  .masonry-grid {
    column-count: 2;
  }

  .footer {
    display: grid;
  }
}

@media (max-width: 520px) {
  .site-header {
    padding: 12px 16px;
  }

  .gallery-hero {
    min-height: 58svh;
    padding: 112px 18px 34px;
  }

  .gallery-shell {
    padding-right: 18px;
    padding-left: 18px;
  }

  .masonry-grid {
    column-count: 1;
  }

  .filter-button,
  .button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
