.gallery-page {
  max-width: 1000px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

.gallery-page h1 {
  margin-bottom: 0.5rem;
}

.gallery-intro {
  color: var(--color-text-muted);
  margin-bottom: 2rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.gallery-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
  transition: box-shadow 0.2s;
}

.gallery-card:hover {
  box-shadow: var(--shadow-lg);
}

.gallery-card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: var(--color-surface-alt);
  display: block;
}

.gallery-card-body {
  padding: 1rem;
}

.gallery-card-title {
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.gallery-card-creator {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 0.5rem;
}

.gallery-card-links {
  display: flex;
  gap: 0.75rem;
  font-size: 0.8rem;
}

.gallery-card-links a {
  color: var(--color-primary);
}

/* Videos Section */
.gallery-videos-section {
  margin-top: 3rem;
}

.gallery-videos-section h2 {
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--color-border);
}

.gallery-videos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.gallery-video-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
  aspect-ratio: 16 / 9;
}

.gallery-video-card iframe {
  width: 100%;
  height: 100%;
}

/* Resources Section */
.gallery-resources-section {
  margin-top: 3rem;
}

.gallery-resources-section h2 {
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--color-border);
}

.resources-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.resources-table th,
.resources-table td {
  text-align: left;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--color-border);
}

.resources-table th {
  color: var(--color-text-muted);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.resources-table td a {
  color: var(--color-primary);
}
