/* gallery.css - Isolated styles for the quotes gallery */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-main);
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.6;
}

/* Header */
.gallery-header {
  background: var(--surface-card);
  border-bottom: 1px solid var(--border-light);
  padding: 1rem 2rem;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.brand-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  gap: 0.75rem;
  color: var(--text-primary);
}

.brand-logo-img {
  width: 32px;
  height: 32px;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-title {
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.logo-subtitle {
  font-size: 0.75rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.gallery-nav a {
  text-decoration: none;
  color: var(--text-primary);
  margin-left: 1.5rem;
  font-weight: 500;
  transition: color 0.2s;
}

.gallery-nav a:hover {
  color: var(--accent-primary);
}

/* Hero */
.gallery-hero {
  text-align: center;
  padding: 4rem 1rem;
  background: linear-gradient(to bottom, var(--surface-card), var(--bg-main));
}

.gallery-hero h1 {
  font-size: 2.5rem;
  font-family: var(--font-serif);
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.gallery-hero p {
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.1rem;
}

/* CSS Columns Masonry support for gallery cards */
.post-media {
  position: relative;
  width: 100%;
  aspect-ratio: 4/5;
  background-color: #ddd;
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3rem 2.5rem;
}

/* Glassmorphism Overlay */
.post-media::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(135deg, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.7) 100%);
  backdrop-filter: blur(2px);
  z-index: 1;
}

/* Watermark Quote Icon */
.quote-watermark {
  position: absolute;
  top: 1rem;
  left: 1.5rem;
  font-family: var(--font-serif);
  font-size: 8rem;
  line-height: 1;
  color: rgba(255, 255, 255, 0.15);
  z-index: 2;
  pointer-events: none;
}

.quote-content {
  position: relative;
  z-index: 3;
  color: #fff;
  text-align: center;
  margin-top: -2rem; /* Balance the watermark space */
}

.quote-text {
  font-family: var(--font-serif);
  font-size: 1.7rem;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.quote-author {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  opacity: 0.9;
  text-shadow: 0 1px 4px rgba(0,0,0,0.8);
}

/* Footer */
.gallery-footer {
  text-align: center;
  padding: 2rem;
  background: #111;
  color: #888;
  font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .gallery-hero {
    padding: 2.5rem 1rem;
  }
  .gallery-hero h1 {
    font-size: 2rem;
  }
  .post-media {
    padding: 2rem 1.5rem;
  }
  .quote-watermark {
    font-size: 6rem;
    top: 0.5rem;
    left: 1rem;
  }
  .quote-text {
    font-size: 1.4rem;
  }
  .quote-author {
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  .quote-text {
    font-size: 1.25rem;
  }
}

.hidden-canvas {
  display: none;
}

