
:root {
    --gallery-gold: #cfaa6e; 
    --overlay-bg: rgba(0, 0, 0, 0.75);
    --glass-border: rgba(255, 255, 255, 0.1);
  }
  
  .gallery-body {
    background-color: var(--bg-0);
    color: var(--text-primary);
    
    background-image: radial-gradient(var(--hairline) 1px, transparent 1px);
    background-size: 20px 20px;
  }
  .gallery-title {
    
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 400;
    letter-spacing: -0.02em;
    text-align: center;
    margin-top: 1rem;
    margin-bottom: 1.5rem;
    display: block;
    width: 100%;
    max-width: none;
    animation: fadeUp 0.8s ease-out;
    text-decoration: none !important;
    border-bottom: none !important;
  
    
    --gallery-gold: #cfaa6e;
    --brush-radius: 0px; 
    --brush-x: 50%;
    --brush-y: 50%;
  
    
    color: transparent;
    background-image: radial-gradient(
      circle var(--brush-radius) at var(--brush-x) var(--brush-y),
      var(--gallery-gold) 0%,
      rgba(207, 170, 110, 0.4) 50%,
      var(--text-primary) 100%
    );
    
    
    background-color: var(--text-primary);
    
    -webkit-background-clip: text;
    background-clip: text;
    
    
    transition: --brush-radius 0.4s ease, background-color 0.4s ease;
  }
  
  /* For browsers that support @property (Chrome/Edge/Safari), 
     this makes the radius transition buttery smooth */
  @property --brush-radius {
    syntax: '<length>';
    inherits: false;
    initial-value: 0px;
  }
  
  
  .filter-container {
    width: 100%;
    position: sticky; 
    top: 0;
    z-index: 90;
    background: rgba(var(--bg-0), 0.85); 
    backdrop-filter: blur(12px); 
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--hairline);
    padding: 1rem 0;
    margin-bottom: 2rem;
    
    
    overflow-x: auto;
    -ms-overflow-style: none;  
    scrollbar-width: none; 
  }
  
  .filter-container::-webkit-scrollbar {
    display: none;
  }
  
  .filter-scroll {
    display: flex;
    justify-content: center; 
    gap: 0.8rem;
    padding: 0 5%;
    min-width: max-content; 
  }
  
/* =========================
   FILTER CHIP ANIMATION
========================= */


@keyframes slideUpFade {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


.filter-chip {
  background: var(--bg-1);
  color: var(--text-2);
  border: 1px solid var(--border);
  padding: 0.5rem 1.2rem;
  border-radius: 100px;
  font-size: 0.85rem;
  cursor: pointer;
  white-space: nowrap;
  font-family: sans-serif;
  letter-spacing: 0.03em;
  opacity: 0; 
  animation: slideUpFade 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
  transition: background 0.3s, color 0.3s, border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}

.filter-chip:nth-child(1) { animation-delay: 0.1s; }
.filter-chip:nth-child(2) { animation-delay: 0.15s; }
.filter-chip:nth-child(3) { animation-delay: 0.2s; }
.filter-chip:nth-child(4) { animation-delay: 0.25s; }
.filter-chip:nth-child(5) { animation-delay: 0.3s; }
.filter-chip:nth-child(6) { animation-delay: 0.35s; }
.filter-chip:nth-child(7) { animation-delay: 0.4s; }
.filter-chip:nth-child(8) { animation-delay: 0.45s; }
  
  .filter-chip:hover {
    border-color: var(--gallery-gold);
    color: var(--text-primary);
    transform: translateY(-1px);
  }
  
  .filter-chip.active {
    background: var(--gallery-gold);
    color: #000;
    border-color: var(--gallery-gold);
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(207, 170, 110, 0.3);
  }
  
  
  main {
    padding: 0 5% 4rem 5%;
    min-height: 80vh;
  }
  
  .art-masonry {
    column-count: 3;
    column-gap: 2rem;
  }
  
  
  @media (max-width: 1024px) {
    .art-masonry { column-count: 2; }
  }
  @media (max-width: 600px) {
    .art-masonry { column-count: 1; }
    
    .filter-scroll {
      justify-content: flex-start; 
    }
  }
  
  
  .art-card {
    break-inside: avoid;
    margin-bottom: 2rem;
    position: relative;
    opacity: 0;
    transform: translateY(40px) scale(0.96);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }
  
  .art-card.hidden {
    display: none;
  }

  .art-card.in-view {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  
  .art-inner {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    background-color: var(--bg-1);
    cursor: pointer;
    
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.1); 
  }
  
  .art-inner img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  }
  
  
  .art-inner:hover img {
    transform: scale(1.05);
  }
  
  .art-inner:hover .art-overlay {
    opacity: 1;
  }
  
  .art-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: var(--overlay-bg);
    opacity: 0;
    transition: opacity 0.4s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1.5rem;
    backdrop-filter: blur(2px); 
  }
  
  .art-meta h3 {
    color: #fff;
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    transform: translateY(15px);
    transition: transform 0.4s ease;
  }
  
  .art-meta .artist {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    transform: translateY(15px);
    transition: transform 0.4s ease 0.1s;
  }
  
  .art-inner:hover h3, 
  .art-inner:hover .artist {
    transform: translateY(0);
  }
  
  
  .art-link-pill {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    text-decoration: none;
    border-radius: 50px;
    font-size: 0.75rem;
    backdrop-filter: blur(4px);
    transition: background 0.2s, border-color 0.2s;
  }
  
  .art-link-pill:hover {
    background: var(--gallery-gold);
    border-color: var(--gallery-gold);
    color: #000;
  }
  
  
  .lightbox {
    position: fixed;
    z-index: 2100;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
  }
  
  .lightbox.active {
    opacity: 1;
    pointer-events: auto;
  }
  
  .lightbox-content {
    max-width: 90%;
    max-height: 90vh;
    text-align: center;
    overflow-y: auto; 
  padding: 1rem; 
  }
  
  .lightbox-content img {
    max-height: 80vh;
    max-width: 100%;
    box-shadow: 0 0 50px rgba(0,0,0,0.5);
    border: 1px solid #333;
  }
  
  .lightbox-caption {
    margin-top: 1rem;
    color: #fff;
  }
  
  .lightbox-caption h3 {
    font-family: var(--font-serif);
    font-weight: 400;
    margin: 0 0 0.5rem 0;
  }
  
  .lightbox-caption p {
    color: #aaa;
    font-size: 0.9rem;
  }


.art-hidden-desc {
  display: none;
}

.lightbox-description {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2); 
  
  
  color: #ddd; 
  font-family: var(--font-serif, serif); 
  font-size: 1rem;
  line-height: 1.6;
  text-align: left; 
  
  
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}


.lightbox-description em {
  font-style: italic;
  color: #fff;
}
  
  .lightbox-close {
    position: absolute;
    top: 1rem;
    right: 2rem;
    background: none;
    border: none;
    color: #fff;
    font-size: 2.5rem;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s;
  }
  
  .lightbox-close:hover {
    opacity: 1;
  }

  @media (max-width: 768px) {
    .lightbox-close {
      top: 1.4rem;
      right: 0.2rem;
      font-size: 1.8rem;
      opacity: 0.85; 
    }
  }
  
  
  @keyframes fadeUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
  }