:root {
  --gallery-bg: #101315;
  --gallery-panel: rgba(20, 23, 24, 0.86);
  --gallery-line: rgba(247, 241, 232, 0.15);
  --gallery-ink: #f7f1e8;
  --gallery-muted: rgba(247, 241, 232, 0.74);
  --gallery-warm: #d0a363;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Outfit", Arial, sans-serif;
  color: var(--gallery-ink);
  background:
    linear-gradient(180deg, rgba(16, 19, 21, 0.76), rgba(16, 19, 21, 0.95)),
    url("slider 2/leather-hides-stack-1290x724.jpg") center top / cover fixed no-repeat,
    var(--gallery-bg);
}

a {
  color: inherit;
}

.gallery-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem clamp(1rem, 4vw, 3.5rem);
  border-bottom: 1px solid var(--gallery-line);
  background: rgba(13, 16, 18, 0.88);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.gallery-brand {
  text-decoration: none;
  font-size: 1.22rem;
  font-weight: 700;
  letter-spacing: 0.22em;
}

.gallery-nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.9rem;
  color: var(--gallery-muted);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.gallery-nav-links a {
  text-decoration: none;
}

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

.gallery-shell {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
}

.gallery-hero {
  padding: clamp(4.5rem, 9vw, 8rem) 0 clamp(2.4rem, 5vw, 4rem);
}

.gallery-kicker {
  margin: 0 0 0.8rem;
  color: var(--gallery-warm);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 940px;
  margin-bottom: 1rem;
  font-size: clamp(2.6rem, 7vw, 6rem);
  line-height: 0.96;
  letter-spacing: 0;
  text-transform: uppercase;
}

.gallery-intro {
  max-width: 780px;
  color: rgba(247, 241, 232, 0.86);
  font-size: clamp(1rem, 2vw, 1.18rem);
  line-height: 1.72;
}

.gallery-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.gallery-button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1rem;
  border: 1px solid var(--gallery-warm);
  border-radius: 8px;
  background: var(--gallery-warm);
  color: #171310;
  text-decoration: none;
  font-weight: 800;
}

.gallery-button.is-ghost {
  background: transparent;
  color: var(--gallery-ink);
}

.gallery-section {
  padding: 0 0 clamp(3rem, 8vw, 6rem);
}

.gallery-section h2 {
  margin-bottom: 1rem;
  font-size: clamp(1.7rem, 4vw, 3rem);
  line-height: 1.05;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.wallet-photo-card {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--gallery-line);
  border-radius: 10px;
  background: var(--gallery-panel);
  box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.22);
}

.wallet-photo-card a {
  display: block;
  text-decoration: none;
}

.wallet-photo-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  display: block;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.06);
}

.wallet-photo-card figcaption {
  display: grid;
  gap: 0.4rem;
  padding: 0.85rem;
  color: var(--gallery-ink);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.35;
}

.wallet-photo-card span {
  color: var(--gallery-muted);
  font-size: 0.8rem;
  font-weight: 500;
}

.gallery-seo-copy {
  margin-bottom: 1.5rem;
  color: var(--gallery-muted);
  line-height: 1.7;
}

.gallery-footer {
  padding: 1.6rem 0 2.4rem;
  border-top: 1px solid var(--gallery-line);
  color: rgba(247, 241, 232, 0.62);
}

@media (max-width: 1100px) {
  .gallery-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gallery-nav {
    align-items: flex-start;
    flex-direction: column;
  }

  .gallery-nav-links {
    justify-content: flex-start;
  }
}

@media (max-width: 460px) {
  .gallery-grid {
    gap: 0.75rem;
  }

  .wallet-photo-card figcaption {
    padding: 0.7rem;
    font-size: 0.86rem;
  }
}
