/* ==========================================================================
   D-ARTIST — Complete Artist Digital Gallery Styles (css/pages/artist.css)
   A Personal Digital Gallery Belonging to the Artist
   Strict Monochrome Architectural Layout & Editorial Typographic Hierarchy
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. MAIN VIEWPORT CONTAINER (95% Viewport Width)
   -------------------------------------------------------------------------- */
.artist-gallery-main {
  width: 100%;
  min-height: calc(100vh - var(--nav-height, 70px));
  background: var(--bg);
  padding-top: var(--nav-height, 70px);
  padding-bottom: var(--space-3xl);
  overflow-x: hidden;
}

.artist-gallery-container {
  width: 95%;
  max-width: 1680px;
  margin: 0 auto;
  padding: 0 12px;
  display: flex;
  flex-direction: column;
  gap: var(--space-2xl);
}

.artist-gallery-space {
  display: flex;
  flex-direction: column;
  gap: var(--space-2xl);
  position: relative;
  width: 100%;
}

/* Loading & Empty States */
.artist-loading-state,
.gallery-empty-state-wrap {
  padding: 96px 24px;
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.artist-loading-spinner {
  width: 36px;
  height: 36px;
  border: 2px solid var(--border);
  border-top-color: var(--white);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 20px auto;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.artist-loading-text {
  font-size: var(--font-size-sm);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.gallery-empty-icon {
  width: 56px;
  height: 56px;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px auto;
  color: var(--white);
  background: var(--surface-2);
}

.gallery-empty-title {
  font-size: var(--font-size-2xl);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 10px;
}

.gallery-empty-desc {
  font-size: var(--font-size-base);
  color: var(--text-dim);
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   2. ARTIST PROFILE HERO SECTION (100% Full-Width Cinematic Banner & Identity)
   -------------------------------------------------------------------------- */
.artist-profile-hero {
  width: 100%;
  position: relative;
  border-bottom: 1px solid var(--border);
  border-top: none;
  border-left: none;
  border-right: none;
  border-radius: 0;
  overflow: hidden;
  background: var(--surface-2);
  min-height: clamp(380px, 46vh, 520px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  margin: 0;
}

.artist-hero-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  filter: brightness(0.65) contrast(1.05);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), filter 0.6s ease;
  z-index: 1;
}

.artist-profile-hero:hover .artist-hero-bg-img {
  transform: scale(1.015);
  filter: brightness(0.7) contrast(1.05);
}

.artist-hero-fallback-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 50% 30%, #1a1a1c 0%, #0d0d0e 100%);
  z-index: 1;
}

.artist-hero-pattern {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 24px 24px;
}

.artist-hero-gradient-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(11, 11, 12, 0.2) 0%,
    rgba(11, 11, 12, 0.6) 45%,
    rgba(11, 11, 12, 0.96) 100%
  );
  z-index: 2;
  pointer-events: none;
}

.artist-hero-content-wrap {
  width: 95%;
  max-width: 1680px;
  margin: 0 auto;
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  padding: 32px 16px 36px 16px;
  gap: 28px;
  flex: 1;
}

.artist-hero-top-badge {
  align-self: flex-end;
  background: rgba(11, 11, 12, 0.75);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  padding: 6px 14px;
  font-size: var(--font-size-2xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--white);
}

.artist-hero-body {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
}

.artist-hero-avatar-block {
  flex-shrink: 0;
}

.artist-hero-avatar-wrap {
  width: clamp(110px, 11vw, 136px);
  height: clamp(110px, 11vw, 136px);
  border-radius: 50%;
  border: 4px solid rgba(255, 255, 255, 0.15);
  background: var(--surface-2);
  overflow: hidden;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.75);
  position: relative;
}

.artist-hero-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.artist-hero-avatar-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #18181b;
  color: var(--white);
  font-size: 2.2rem;
  font-weight: 700;
}

.artist-hero-avatar-verified {
  position: absolute;
  bottom: 4px;
  right: 4px;
  background: var(--white);
  color: var(--black);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--bg);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}

.artist-hero-identity-block {
  flex: 1;
  min-width: 280px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.artist-hero-category-label {
  font-size: var(--font-size-2xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}

.artist-hero-name {
  font-size: clamp(2rem, 3.6vw, 3.2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--white);
  line-height: 1.1;
  margin: 2px 0 4px 0;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.artist-hero-meta-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: var(--font-size-sm);
  color: var(--text-dim);
  flex-wrap: wrap;
}

.artist-hero-handle {
  color: var(--white);
  font-weight: 600;
}

.hero-meta-dot {
  color: var(--border);
}

.artist-hero-location {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--muted);
}

.artist-hero-verified-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(20, 20, 22, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  padding: 4px 10px;
  margin-top: 4px;
  width: fit-content;
}

.artist-hero-bio-text {
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.5;
  margin-top: 6px;
  max-width: 640px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.artist-hero-actions-block {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding-bottom: 4px;
}

.btn-owner-studio {
  background: var(--white);
  color: var(--black);
  border: 1px solid var(--white);
  font-weight: 600;
}

.btn-gallery-follow {
  min-width: 120px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-gallery-follow.is-following {
  background: var(--surface-2);
  border-color: var(--border);
  color: var(--white);
}

.follow-count-badge {
  font-size: 11px;
  padding: 1px 6px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-xs);
  color: var(--white);
  margin-left: 2px;
}

@media (max-width: 860px) {
  .artist-profile-hero {
    min-height: auto;
  }
  .artist-hero-content-wrap {
    padding: 20px 18px 22px 18px;
    gap: 18px;
  }
  .artist-hero-body {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  .artist-hero-actions-block {
    width: 100%;
  }
  .artist-hero-actions-block .btn {
    flex: 1;
  }
}

@media (max-width: 540px) {
  .artist-hero-avatar-wrap {
    width: 96px;
    height: 96px;
  }
  .artist-hero-name {
    font-size: 1.8rem;
  }
  .artist-hero-top-badge {
    align-self: flex-start;
    font-size: 9px;
    padding: 4px 10px;
  }
}

/* --------------------------------------------------------------------------
   4. BIO, APPROVED MEDIUMS, INTEGRATED STATS & SOCIALS
   -------------------------------------------------------------------------- */
.gallery-intro-section {
  padding: var(--space-xl) 16px;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  margin-top: var(--space-md);
}

.gallery-intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}

@media (max-width: 960px) {
  .gallery-intro-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

.section-micro-label {
  font-size: var(--font-size-2xs);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  display: block;
  margin-bottom: 10px;
}

.gallery-bio-prose {
  font-size: var(--font-size-base);
  color: var(--text-dim);
  line-height: 1.75;
  max-width: 680px;
  margin-bottom: 24px;
}

.gallery-mediums-block {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mediums-label {
  font-size: var(--font-size-2xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.gallery-mediums-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.editorial-tag {
  display: inline-block;
  padding: 5px 12px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  font-size: var(--font-size-2xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
}

/* Collections Preview under Traditional Disciplines */
.gallery-collections-preview-block {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border, rgba(255, 255, 255, 0.08));
}

.collections-preview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.collections-preview-count {
  font-size: 11px;
  font-family: var(--font-mono, monospace);
  color: var(--muted, #71717a);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.gallery-collections-round-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.collection-round-card {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: 260px;
  max-width: 100%;
  flex-shrink: 0;
  padding: 6px 14px 6px 6px;
  background: var(--surface, rgba(255, 255, 255, 0.03));
  border: 1px solid var(--border, rgba(255, 255, 255, 0.08));
  border-radius: 40px;
  text-decoration: none;
  box-sizing: border-box;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.collection-round-card:hover {
  background: var(--surface-2, rgba(255, 255, 255, 0.07));
  border-color: var(--border-hover, rgba(255, 255, 255, 0.25));
  transform: translateY(-2px);
}

.collection-round-avatar-wrap {
  position: relative;
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border-radius: 50%;
  overflow: visible;
}

.collection-round-avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  background: #18181b;
  border: 1.5px solid rgba(255, 255, 255, 0.2);
}

.collection-round-avatar-fallback {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: var(--white, #fff);
  background: #1f1f23;
  border: 1.5px solid rgba(255, 255, 255, 0.2);
}

.collection-round-badge {
  position: absolute;
  bottom: -2px;
  right: -3px;
  background: var(--white, #fff);
  color: var(--black, #000);
  font-size: 9px;
  font-weight: 800;
  padding: 0 4px;
  min-width: 16px;
  text-align: center;
  border-radius: 10px;
  font-family: var(--font-mono, monospace);
  line-height: 1.3;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
}

.collection-round-details {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
  gap: 1px;
}

.collection-round-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--white, #fff);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: -0.01em;
}

.collection-round-meta {
  font-size: 11px;
  color: var(--muted, #71717a);
  font-family: var(--font-mono, monospace);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Integrated Horizontal Stats Bar (No Separate Bulky Card) */
.gallery-intro-meta-col {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.gallery-stats-horizontal {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  padding: 18px 24px;
  gap: 12px;
}

.stat-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 1;
}

.stat-number {
  font-size: clamp(1.4rem, 2vw, 1.8rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.stat-tag {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 4px;
}

.stat-divider {
  width: 1px;
  height: 36px;
  background: var(--border);
}

@media (max-width: 600px) {
  .gallery-stats-horizontal {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    padding: 16px;
  }
  .stat-divider {
    display: none;
  }
}

.gallery-externals-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.externals-label {
  font-size: var(--font-size-2xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.externals-links-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.external-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  color: var(--white);
  font-size: 12px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.external-pill:hover {
  background: var(--surface-2);
  border-color: var(--border-hover, #444);
  color: var(--white);
  transform: translateY(-1px);
}

.external-pill-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  color: var(--text-dim, #a1a1aa);
}

.external-pill-icon svg {
  width: 14px !important;
  height: 14px !important;
  max-width: 14px !important;
  max-height: 14px !important;
  display: block !important;
}

.external-pill-platform {
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--white, #fff);
}

.external-pill-handle {
  font-size: 11px;
  color: var(--muted, #888);
  max-width: 140px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.external-pill-arrow {
  display: inline-flex;
  align-items: center;
  color: var(--muted, #71717a);
  font-size: 11px;
  transition: transform 0.2s ease, color 0.2s ease;
}

.external-pill-arrow svg {
  width: 12px !important;
  height: 12px !important;
  max-width: 12px !important;
  max-height: 12px !important;
  display: block !important;
}

.external-pill:hover .external-pill-arrow {
  color: var(--white, #fff);
  transform: translateX(2px);
}

/* --------------------------------------------------------------------------
   5. FEATURED SIGNATURE ARTWORK ("GALLERY OPENING")
   -------------------------------------------------------------------------- */
.gallery-featured-section {
  padding: 0 16px;
}

.gallery-section-header {
  margin-bottom: 24px;
}

.gallery-section-title {
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--white);
  margin-top: 4px;
}

.featured-artwork-monument {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 40px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  padding: 24px;
  align-items: center;
}

@media (max-width: 960px) {
  .featured-artwork-monument {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 16px;
  }
}

.featured-media-frame {
  position: relative;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  max-height: 580px;
}

.featured-artwork-link {
  display: block;
  width: 100%;
  height: 100%;
}

.featured-artwork-image {
  width: 100%;
  max-height: 560px;
  object-fit: contain;
  display: block;
  background: #000;
  transition: transform 0.5s ease;
}

.featured-media-frame:hover .featured-artwork-image {
  transform: scale(1.02);
}

.featured-artwork-overlay-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(11, 11, 12, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  padding: 5px 12px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
  border-radius: var(--radius-xs);
}

.featured-artwork-meta-panel {
  display: flex;
  flex-direction: column;
  gap: 20px;
  justify-content: center;
}

.featured-category-tag {
  font-size: var(--font-size-2xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}

.featured-artwork-title {
  font-size: clamp(1.6rem, 2.4vw, 2.1rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
}

.featured-artwork-title a {
  color: inherit;
  text-decoration: none;
}

.featured-artwork-title a:hover {
  text-decoration: underline;
}

.featured-creator-line {
  font-size: var(--font-size-sm);
  color: var(--muted);
  margin-top: 4px;
}

.featured-creator-line strong {
  color: var(--white);
}

.featured-spec-sheet {
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  padding: 16px 0;
}

.spec-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--font-size-sm);
}

.spec-label {
  color: var(--muted);
}

.spec-value {
  color: var(--white);
  font-weight: 500;
  text-align: right;
}

.spec-highlight {
  font-weight: 700;
  font-size: var(--font-size-base);
}

.featured-actions-and-stats {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.featured-actions-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.featured-quiet-stats {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: var(--font-size-xs);
  color: var(--muted);
}

.quiet-stat-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.quiet-stat-divider {
  color: var(--border);
}

/* --------------------------------------------------------------------------
   6. PORTFOLIO TABS (SLIM EDITORIAL UNDERLINE NAVIGATION)
   -------------------------------------------------------------------------- */
.gallery-portfolio-nav-section {
  padding: 0 16px;
  border-bottom: 1px solid var(--border);
  margin-top: var(--space-md);
}

.gallery-tabs-bar {
  display: flex;
  align-items: center;
  gap: 32px;
  overflow-x: auto;
  scrollbar-width: none;
}

.gallery-tabs-bar::-webkit-scrollbar {
  display: none;
}

.gallery-tab-btn {
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 14px 4px;
  font-size: var(--font-size-sm);
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.gallery-tab-btn:hover {
  color: var(--white);
}

.gallery-tab-btn.active {
  color: var(--white);
  border-bottom-color: var(--white);
}

.tab-count-pill {
  font-size: 11px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  padding: 2px 7px;
  color: var(--muted);
}

.gallery-tab-btn.active .tab-count-pill {
  color: var(--white);
  border-color: var(--white);
}

/* --------------------------------------------------------------------------
   7. ARTWORK CARDS & GRID — TRUE PINTEREST-STYLE MASONRY ARCHITECTURE
   -------------------------------------------------------------------------- */
.gallery-tab-panel {
  padding: var(--space-lg) 16px;
}

.gallery-masonry-grid {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  width: 100%;
}

.pinterest-masonry-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
  flex: 1 1 0;
  min-width: 0;
}

@media (max-width: 1100px) {
  .gallery-masonry-grid {
    gap: 16px;
  }
  .pinterest-masonry-col {
    gap: 16px;
  }
}

@media (max-width: 600px) {
  .gallery-masonry-grid {
    gap: 12px;
  }
  .pinterest-masonry-col {
    gap: 12px;
  }
}

/* Pure CSS Column Fallback if items are placed directly without .pinterest-masonry-col */
.gallery-masonry-grid:not(.is-column-layout) {
  display: block;
  column-count: 4;
  column-gap: 20px;
  width: 100%;
}

@media (max-width: 1200px) {
  .gallery-masonry-grid:not(.is-column-layout) {
    column-count: 3;
    column-gap: 16px;
  }
}

@media (max-width: 800px) {
  .gallery-masonry-grid:not(.is-column-layout) {
    column-count: 2;
    column-gap: 14px;
  }
}

@media (max-width: 500px) {
  .gallery-masonry-grid:not(.is-column-layout) {
    column-count: 1;
    column-gap: 0;
  }
}

.gallery-masonry-item {
  break-inside: avoid;
  page-break-inside: avoid;
  -webkit-column-break-inside: avoid;
  margin-bottom: 20px;
  display: block;
  width: 100%;
}

.pinterest-masonry-col .gallery-masonry-item {
  margin-bottom: 0;
}

/* Natural Aspect Ratio Visual Artwork Card */
.editorial-art-card {
  position: relative;
  width: 100%;
  aspect-ratio: auto;
  height: auto;
  background-color: var(--surface, #121214);
  border-radius: var(--radius-sm, 6px);
  overflow: hidden;
  border: 1px solid var(--border, rgba(255, 255, 255, 0.08));
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), 
              border-color 0.3s ease, 
              box-shadow 0.3s ease;
  cursor: pointer;
  user-select: none;
  display: block;
}

.editorial-art-card:hover {
  border-color: var(--border-hover, rgba(255, 255, 255, 0.22));
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.45);
}

/* Image Media Wrap */
.editorial-art-media-wrap {
  position: relative;
  width: 100%;
  height: auto;
  display: block;
  overflow: hidden;
  background-color: #0b0b0d;
}

.editorial-art-link {
  display: block;
  width: 100%;
  height: auto;
  text-decoration: none;
}

.editorial-art-img {
  aspect-ratio: auto;
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), filter 0.4s ease;
}

.editorial-art-card:hover .editorial-art-img {
  transform: scale(1.03);
}

/* Layered Bottom Gradient & Glass Overlay */
.editorial-art-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(
    to top,
    rgba(8, 8, 10, 0.94) 0%,
    rgba(8, 8, 10, 0.72) 45%,
    rgba(8, 8, 10, 0.32) 75%,
    rgba(8, 8, 10, 0) 100%
  );
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  -webkit-mask-image: linear-gradient(to top, rgba(0, 0, 0, 1) 50%, rgba(0, 0, 0, 0) 100%);
  mask-image: linear-gradient(to top, rgba(0, 0, 0, 1) 50%, rgba(0, 0, 0, 0) 100%);
  padding: 36px 14px 12px 14px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  transition: background 0.3s ease;
}

.editorial-art-card:hover .editorial-art-overlay {
  background: linear-gradient(
    to top,
    rgba(5, 5, 7, 0.98) 0%,
    rgba(5, 5, 7, 0.82) 50%,
    rgba(5, 5, 7, 0.42) 80%,
    rgba(5, 5, 7, 0) 100%
  );
}

/* Layout Container for Metadata & Action Controls */
.editorial-art-overlay-content {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
}

/* Metadata Block Inside Bottom Overlay */
.editorial-art-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  flex: 1;
  pointer-events: auto;
}

.editorial-art-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--white, #ffffff);
  line-height: 1.25;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: -0.01em;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.7);
}

.editorial-art-title a {
  color: inherit;
  text-decoration: none;
}

.editorial-art-title a:hover {
  text-decoration: underline;
}

.editorial-art-medium-row {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
}

.art-medium-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.art-dot-separator {
  color: rgba(255, 255, 255, 0.4);
  font-size: 9px;
}

.art-price-text {
  font-size: 11px;
  font-weight: 600;
  color: var(--gold, #d4af37);
  display: inline-block;
  margin-top: 2px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

.art-price-text.available-tag {
  color: #4ade80;
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* Action Controls (Heart + Views) */
.editorial-art-stats-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  pointer-events: auto;
  margin-bottom: 2px;
}

/* Polished Interactive Heart Button */
.art-stat-like-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 16px;
  padding: 4px 8px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
  outline: none;
}

.art-stat-like-btn:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.3);
  color: var(--white, #ffffff);
}

.art-stat-like-btn:active {
  transform: scale(0.96);
}

.art-stat-like-btn .like-icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  position: relative;
}

.art-stat-like-btn .like-icon-wrap svg {
  width: 14px;
  height: 14px;
  display: block;
}

.art-stat-like-btn .heart-outline {
  display: block;
}

.art-stat-like-btn .heart-filled {
  display: none;
}

/* Active Liked State */
.art-stat-like-btn.active,
.art-stat-like-btn.is-liked {
  background: rgba(225, 29, 72, 0.18);
  border-color: rgba(225, 29, 72, 0.45);
  color: #fb7185;
}

.art-stat-like-btn.active .heart-outline,
.art-stat-like-btn.is-liked .heart-outline {
  display: none;
}

.art-stat-like-btn.active .heart-filled,
.art-stat-like-btn.is-liked .heart-filled {
  display: block;
  fill: #f43f5e;
  color: #f43f5e;
}

/* Short, Polished Heart Keyframe Animations (~350–500ms) */
@keyframes heartPopAnimation {
  0% {
    transform: scale(1);
  }
  30% {
    transform: scale(1.42) rotate(-8deg);
  }
  50% {
    transform: scale(1.22) rotate(4deg);
  }
  75% {
    transform: scale(1.3) rotate(0deg);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes heartUnpopAnimation {
  0% {
    transform: scale(1);
  }
  40% {
    transform: scale(0.78);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes heartGlowPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(244, 63, 94, 0.6);
  }
  65% {
    box-shadow: 0 0 0 7px rgba(244, 63, 94, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(244, 63, 94, 0);
  }
}

.art-stat-like-btn.is-animating-like {
  animation: heartGlowPulse 480ms ease-out both;
}

.art-stat-like-btn.is-animating-like .like-icon-wrap {
  animation: heartPopAnimation 460ms cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
}

.art-stat-like-btn.is-animating-unlike .like-icon-wrap {
  animation: heartUnpopAnimation 360ms ease both;
}

/* View Count Stat Badge */
.art-stat-views {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 4px 7px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.art-stat-views svg {
  width: 13px;
  height: 13px;
  opacity: 0.85;
}

/* Editorial Empty State */
.gallery-editorial-empty-state {
  padding: 72px 24px;
  text-align: center;
  max-width: 540px;
  margin: 0 auto;
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
}

.editorial-empty-heading {
  font-size: var(--font-size-lg);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 10px;
}

.editorial-empty-sub {
  font-size: var(--font-size-sm);
  color: var(--muted);
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   8. COLLECTIONS EXHIBITION
   -------------------------------------------------------------------------- */
.gallery-collections-space {
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.featured-collection-monument {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 36px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  padding: 24px;
  align-items: center;
}

@media (max-width: 900px) {
  .featured-collection-monument {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 16px;
  }
}

.featured-collection-cover-wrap {
  width: 100%;
  height: 320px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  overflow: hidden;
}

.featured-collection-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.featured-collection-monument:hover .featured-collection-cover-img {
  transform: scale(1.02);
}

.featured-collection-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.featured-collection-title {
  font-size: clamp(1.4rem, 2.2vw, 1.8rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
}

.featured-collection-desc {
  font-size: var(--font-size-sm);
  color: var(--text-dim);
  line-height: 1.6;
}

.featured-collection-meta-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: var(--font-size-xs);
  color: var(--muted);
}

.btn-collection-cta {
  width: fit-content;
  margin-top: 8px;
}

.gallery-secondary-collections-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.gallery-collection-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.collection-card-media {
  position: relative;
  height: 200px;
  background: var(--surface-2);
  display: block;
}

.collection-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-collection-card:hover .collection-card-img {
  transform: scale(1.03);
}

.collection-card-count-badge {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(11, 11, 12, 0.85);
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 600;
  color: var(--white);
}

.collection-card-info {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.collection-card-theme {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}

.collection-card-title {
  font-size: var(--font-size-base);
  font-weight: 700;
  color: var(--white);
}

.collection-card-title a {
  color: inherit;
  text-decoration: none;
}

.collection-card-summary {
  font-size: var(--font-size-xs);
  color: var(--text-dim);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.collection-explore-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--font-size-xs);
  font-weight: 600;
  color: var(--white);
  text-decoration: none;
  margin-top: auto;
  padding-top: 10px;
}

.collection-explore-link:hover {
  text-decoration: underline;
}

/* --------------------------------------------------------------------------
   9. THE PRACTICE / ARTIST STATEMENT (CATALOGUE ESSAY)
   -------------------------------------------------------------------------- */
.gallery-practice-container {
  max-width: 820px;
  margin: 0 auto;
}

.practice-essay-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

@media (max-width: 600px) {
  .practice-essay-card {
    padding: 24px;
  }
}

.practice-heading {
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.01em;
}

.practice-blockquote {
  font-family: var(--font-serif);
  font-size: clamp(1.1rem, 1.8vw, 1.35rem);
  font-style: italic;
  color: var(--white);
  line-height: 1.6;
  border-left: 2px solid var(--white);
  padding-left: 20px;
  margin: 8px 0;
}

.practice-body-text {
  font-size: var(--font-size-base);
  color: var(--text-dim);
  line-height: 1.8;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.practice-materials-section {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  margin-top: 8px;
}

.practice-materials-list {
  list-style: none;
  padding: 0;
  margin: 14px 0 0 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.material-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: var(--font-size-sm);
  color: var(--white);
}

.material-check {
  color: var(--muted);
  display: flex;
}

/* --------------------------------------------------------------------------
   10. PROCESS & VERIFICATION SECTION
   -------------------------------------------------------------------------- */
.gallery-process-container {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.process-banner-header {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 28px;
}

.process-header-icon {
  width: 48px;
  height: 48px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  flex-shrink: 0;
}

.process-main-title {
  font-size: clamp(1.3rem, 2vw, 1.7rem);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 6px;
}

.process-desc {
  font-size: var(--font-size-sm);
  color: var(--text-dim);
  line-height: 1.6;
}

.process-evidence-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.process-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  overflow: hidden;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.process-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.process-card-title {
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--white);
}

.process-verified-pill {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  padding: 2px 7px;
}

.process-card-media {
  height: 200px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  overflow: hidden;
}

.process-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.process-card-caption {
  font-size: var(--font-size-xs);
  color: var(--muted);
  line-height: 1.5;
}

.process-verification-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  text-align: center;
}

.verif-seal-icon {
  color: var(--white);
  display: flex;
}

.verif-seal-text {
  font-size: var(--font-size-xs);
  color: var(--text-dim);
  font-weight: 500;
}

/* --------------------------------------------------------------------------
   11. DIRECT ARTIST ACQUISITION & CONSULTATION BANNER
   -------------------------------------------------------------------------- */
.gallery-consultation-section {
  padding: 0 16px;
  margin-top: var(--space-xl);
}

.consultation-banner-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 36px 40px;
  flex-wrap: wrap;
}

@media (max-width: 860px) {
  .consultation-banner-card {
    padding: 24px;
    flex-direction: column;
    align-items: flex-start;
  }
}

.consultation-left {
  flex: 1;
  min-width: 280px;
}

.consultation-title {
  font-size: clamp(1.4rem, 2.2vw, 1.8rem);
  font-weight: 700;
  color: var(--white);
  margin: 6px 0 8px 0;
}

.consultation-desc {
  font-size: var(--font-size-sm);
  color: var(--text-dim);
  line-height: 1.6;
  max-width: 600px;
}

.consultation-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-consultation-wa {
  background: var(--white);
  color: var(--black);
  border-color: var(--white);
  font-weight: 600;
}

.btn-consultation-wa:hover {
  background: var(--surface-2);
  color: var(--white);
  border-color: var(--border-hover);
}

/* Fallback & Placeholder Enhancements */
.gallery-cover-placeholder {
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 50% 30%, #1A1A22 0%, #0D0D11 100%);
  position: relative;
}

.gallery-cover-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.15;
  background-image: radial-gradient(#ffffff 1px, transparent 1px);
  background-size: 24px 24px;
}

.gallery-avatar-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 700;
  color: var(--white);
  background: var(--surface-2);
  letter-spacing: -0.02em;
}

.collection-card-placeholder {
  width: 100%;
  height: 100%;
  min-height: 200px;
  background: var(--surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
