.card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  border: 1px solid var(--border);
}

.gallery-grid .card > a > img {
  margin-inline: auto;
}

.card-body {
  padding: 16px;
}

.card-title {
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.card-meta {
  color: var(--muted);
  font-family: var(--font-sans);
  font-size: 0.9rem;
}

.gallery-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 24px;
}

.filter-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--surface);
  cursor: pointer;
  min-height: 44px;
  text-align: center;
}

.filter-button[data-open-filter] {
  display: inline-flex;
}

.gallery-layout {
  display: grid;
  gap: 24px;
}

@media (min-width: 1024px) {
  .gallery-layout {
    grid-template-columns: 280px 1fr;
  }

  .filter-button[data-open-filter] {
    display: none;
  }
}

.filter-panel {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 20px;
  border: 1px solid var(--border);
}

.filter-panel h4 {
  margin-bottom: 12px;
}

.filter-panel label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  color: var(--muted);
}

.filter-drawer label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  color: var(--muted);
}

.filter-drawer {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: none;
  z-index: 40;
}

.filter-drawer.open {
  display: block;
}

.drawer-content {
  background: var(--surface);
  padding: 20px;
  width: min(320px, 90%);
  height: 100%;
}


.gallery-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.filter-chip {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 12px;
  background: #fff;
  cursor: pointer;
  min-height: 40px;
}


@media (max-width: 959px) {
  .gallery-toolbar {
    flex-wrap: wrap;
  }
}

@media (max-width: 1023px) {
  .filter-panel {
    display: none;
  }
}

.editorial-page .gallery-toolbar {
  gap: 12px;
  margin-bottom: 28px;
}

.editorial-page .gallery-toolbar .notice {
  color: var(--editorial-muted);
  font-size: 0.88rem;
}

.editorial-page .filter-button {
  min-height: 42px;
  padding: 9px 15px;
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(31, 31, 31, 0.09);
  color: var(--heading);
  font-size: 0.9rem;
  font-weight: 400;
  box-shadow: none;
}

.editorial-page .filter-panel {
  padding: 20px;
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(31, 31, 31, 0.08);
}

.editorial-page .filter-panel h4 {
  margin-bottom: 12px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--heading);
}

.editorial-page .filter-panel label {
  font-size: 0.9rem;
  color: var(--editorial-muted);
}

/* Gallery */
.gallery-page .gallery-grid .card {
  background: rgba(255, 255, 255, 0.5);
  border-color: rgba(31, 31, 31, 0.07);
  box-shadow: none;
}

.gallery-page .gallery-grid .card-title {
  font-size: 1.02rem;
  font-weight: 500;
  color: var(--heading);
}

.gallery-page .gallery-grid .card-meta {
  font-size: 0.86rem;
  color: var(--editorial-muted);
}

/* Artists */
.artists-page .gallery-grid {
  gap: 28px;
}

.artists-page .card {
  background: rgba(255, 255, 255, 0.54);
  border: 1px solid rgba(31, 31, 31, 0.07);
  box-shadow: none;
}

.artists-page .card-title {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--heading);
}

.artists-page .card-meta {
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--editorial-muted);
}

/* Collections */
.collections-page .card {
  background: rgba(255, 255, 255, 0.54);
  border: 1px solid rgba(31, 31, 31, 0.07);
  box-shadow: none;
}

.collections-page .card-body {
  padding: 18px 18px 20px;
}

.collections-page .card-title {
  font-size: 1.06rem;
  line-height: 1.4;
  font-weight: 500;
  color: var(--heading);
}

.collections-page .card-meta {
  margin-top: 6px;
  font-size: 0.88rem;
  line-height: 1.65;
  color: var(--editorial-muted);
}


/* Artist profile — breathable editorial rhythm */
[data-artist-profile] {
  padding-top: clamp(52px, 7vw, 88px);
  padding-bottom: clamp(78px, 9vw, 118px);
}

.artist-profile-hero {
  align-items: start;
  gap: clamp(42px, 6vw, 80px);
}

.artist-profile-copy {
  max-width: 560px;
}

.artist-profile-copy h1 {
  margin-bottom: 16px;
  font-size: clamp(2.2rem, 4vw, 3.35rem);
  line-height: 1.12;
  letter-spacing: -0.018em;
}

.artist-profile-style {
  margin-bottom: 30px;
  color: var(--editorial-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.artist-profile-bio {
  max-width: 34rem;
  font-family: var(--font-serif);
  font-size: 1.06rem;
  line-height: 1.9;
  color: var(--ink);
}

.artist-profile-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.artist-profile-portrait {
  min-width: 0;
}

.artist-profile-portrait img {
  width: 100%;
  box-shadow: none;
}

.artist-profile-works {
  padding-top: clamp(72px, 9vw, 112px);
  padding-bottom: 0;
}

.artist-profile-works .section-title {
  margin-bottom: 30px;
}

.artist-profile-works .gallery-grid {
  gap: clamp(28px, 3vw, 38px);
}

@media (min-width: 960px) {
  .artist-profile-hero {
    grid-template-columns: minmax(0, 0.86fr) minmax(360px, 1.14fr);
    gap: clamp(64px, 7vw, 104px);
  }

  .artist-profile-copy {
    padding-top: clamp(8px, 1.2vw, 18px);
  }
}

@media (max-width: 640px) {
  [data-artist-profile] {
    padding-top: 40px;
    padding-bottom: 78px;
  }

  .artist-profile-hero {
    gap: 42px;
  }

  .artist-profile-copy h1 {
    font-size: clamp(2rem, 10vw, 2.7rem);
  }

  .artist-profile-style {
    margin-bottom: 24px;
  }

  .artist-profile-bio {
    font-size: 1.02rem;
    line-height: 1.85;
  }

  .artist-profile-works {
    padding-top: 64px;
  }

  .artist-profile-works .section-title {
    margin-bottom: 24px;
  }
}
