/* Mind's Eye — page-specific styles. Load after style.css. */
.gallery-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding: 1.5rem clamp(1.5rem, 6vw, 6rem);
  background: #24245f;
  color: white;
}
.gallery-brand {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 600;
}
.gallery-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .7rem 1.5rem;
  font-size: .85rem;
  font-weight: 600;
}
.gallery-nav a { transition: color .2s ease; }
.gallery-nav a:hover,
.gallery-nav a:focus-visible { color: var(--gold); }
.gallery-intro {
  padding: 6rem 1.5rem;
  text-align: center;
  background: linear-gradient(135deg, #f8f4ff 0%, #ede4fa 50%, #e5dcf5 100%);
}
.gallery-intro h1 { color: var(--ink); margin: 1rem 0; }
.gallery-intro > p:last-child {
  max-width: 560px;
  margin: 0 auto;
  color: var(--muted);
  line-height: 1.8;
}
.gallery-collection {
  min-height: 350px;
  padding: 5rem clamp(1.5rem, 7vw, 7rem);
  background: #fffdf9;
  border-top: 1px solid #e7def0;
  scroll-margin-top: 20px;
}
.gallery-collection.alternate { background: #f5f0fc; }
.collection-heading { text-align: center; margin-bottom: 3rem; }
.collection-symbol {
  display: block;
  margin-bottom: .5rem;
  color: #ad91cf;
  font-size: 2rem;
}
.collection-heading h2 { color: var(--ink); }
.collection-heading p { color: var(--muted); font-size: .95rem; }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  align-items: start;
  max-width: 1250px;
  margin: 0 auto;
}
.gallery-item {
  margin: 0;
  overflow: hidden;
  border-radius: 16px;
  background: #eee8f7;
  box-shadow: 0 6px 22px rgba(41,35,68,.12);
  transition: transform .25s ease, box-shadow .25s ease;
}
.gallery-item a { display: block; cursor: zoom-in; }
.gallery-item img { display: block; width: 100%; height: auto; }
.gallery-item:hover,
.gallery-item:focus-within {
  transform: translateY(-5px);
  box-shadow: 0 14px 35px rgba(41,35,68,.2);
}
.gallery-item a:focus-visible {
  outline: 3px solid #8e77c4;
  outline-offset: -3px;
  border-radius: 16px;
}
@media (max-width: 850px) {
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .gallery-header { justify-content: center; text-align: center; }
  .gallery-nav { justify-content: center; gap: .75rem 1rem; }
  .gallery-intro { padding: 4rem 1.5rem; }
  .gallery-collection { min-height: 300px; padding: 3.5rem 1.2rem; }
  .gallery-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .gallery-item, .gallery-nav a { transition: none; }
}
