/* ==========================================================================
   Art Section Styles
   Clean, minimal, gallery-inspired
   ========================================================================== */

/* Art-specific variables - warm white, black text */
.art-page {
  --bg-primary: #faf8f5;
  --bg-surface: #faf8f5;
  --text-primary: #000000;
  --text-secondary: #333333;
  --text-muted: #666666;
  --accent: #000000;
  --border: #e0e0e0;
}

/* Page Layout */
.art-page {
  min-height: 100vh;
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Tree ring background canvas — fixed behind all content */
#tree-rings {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
}

/* Navigation */
.art-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
}

.art-nav .logo {
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-primary);
  text-decoration: none;
  letter-spacing: 0.02em;
}

/* Home / Gallery left group */
.nav-left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-sep {
  font-size: 0.75rem;
  color: var(--text-muted);
  opacity: 0.5;
  user-select: none;
}

.art-nav-links a.active {
  color: var(--text-primary);
}

.art-nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.art-nav-links a {
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s;
}

.art-nav-links a:hover {
  color: var(--text-primary);
}

/* Mobile menu toggle */
.art-nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem;
  width: 28px;
  height: 20px;
  position: relative;
}

.art-nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text-primary);
  position: absolute;
  left: 0;
  transition: all 0.3s ease;
}

.art-nav-toggle span:nth-child(1) { top: 0; }
.art-nav-toggle span:nth-child(2) { top: 9px; }
.art-nav-toggle span:nth-child(3) { top: 18px; }

.art-nav-toggle.open span:nth-child(1) {
  top: 9px;
  transform: rotate(45deg);
}

.art-nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

.art-nav-toggle.open span:nth-child(3) {
  top: 9px;
  transform: rotate(-45deg);
}

/* Hero Section */
.art-hero {
  display: flex;
  justify-content: center;
  padding: 7rem 2rem 5rem;
  position: relative;
  z-index: 1;
}

.art-hero-content {
  max-width: 740px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.5rem;
  text-align: center;
}

.hero-painting img {
  width: 100%;
  max-height: 56vh;
  object-fit: cover;
  display: block;
}

.art-hero .statement {
  font-family: 'Island Moments', cursive;
  font-size: 1.8rem;
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 500px;
  margin: 0 auto;
}

.hero-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.hero-link {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-decoration: none;
  padding: 0.6rem 1.6rem;
  border: 1px solid var(--text-primary);
  color: var(--text-primary);
  transition: all 0.2s;
}

.hero-link:hover {
  background: var(--text-primary);
  color: #fff;
}

/* For-sale indicator on gallery items */
.gallery-item[data-forsale="true"]::after {
  content: '';
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--text-primary);
  z-index: 3;
  opacity: 0.7;
}

/* Gallery Section */
.art-gallery {
  padding: 4rem 2rem;
  position: relative;
  z-index: 1;
}

.art-gallery h2 {
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 3rem;
  text-transform: lowercase;
}

/* Categories */
.art-categories {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.category-btn {
  font-family: inherit;
  font-size: 0.75rem;
  color: var(--text-muted);
  background: #ffffff;
  border: 1px solid var(--border);
  padding: 0.5rem 1rem;
  cursor: pointer;
  transition: all 0.2s;
}

.category-btn:hover,
.category-btn.active {
  color: var(--text-primary);
  border-color: var(--text-primary);
}

/* Gallery Grid — iOS Photos style: tight square cells */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.2rem;
  max-width: 1200px;
  margin: 0 auto;
}

/* Gallery Item */
.gallery-item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1;
  background: var(--bg-surface);
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.gallery-item:hover img {
  transform: scale(1.06);
}

.gallery-item-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  opacity: 0;
  transition: opacity 0.3s;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
}

.gallery-item:hover .gallery-item-overlay {
  opacity: 1;
}

.gallery-item-title {
  font-size: 1rem;
  font-weight: 400;
  color: #fff;
  margin-bottom: 0.25rem;
}

.gallery-item-medium {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.7);
}

.gallery-item-note {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
  font-style: italic;
  margin-top: 0.5rem;
}

/* Placeholder for items without images */
.gallery-placeholder {
  aspect-ratio: 3/4;
  background: #fafafa;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  text-align: center;
}

.gallery-placeholder .gallery-item-title {
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.gallery-placeholder .gallery-item-medium {
  color: var(--text-muted);
}

.gallery-placeholder .gallery-item-note {
  color: var(--text-muted);
  font-style: italic;
  margin-top: 1rem;
}

.gallery-note {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 3rem;
}

/* Show More Button */
.gallery-show-more {
  display: block;
  margin: 2.5rem auto 0;
  font-family: inherit;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  background: transparent;
  border: 1px solid var(--border);
  padding: 0.65rem 2rem;
  cursor: pointer;
  transition: all 0.2s;
}

.gallery-show-more:hover {
  color: var(--text-primary);
  border-color: var(--text-primary);
}

/* Thoughts & Experiments */
.art-thoughts {
  padding: 4rem 2rem;
  position: relative;
  z-index: 1;
}

.art-thoughts h2 {
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 3rem;
  text-transform: lowercase;
}

.thoughts-content {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.thoughts-content blockquote {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  font-style: normal;
}

.thoughts-content p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

/* Shop Teaser */
.shop-teaser {
  padding: 4rem 2rem;
  border-top: 1px solid var(--border);
  text-align: center;
  position: relative;
  z-index: 1;
}

.shop-teaser h2 {
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  color: var(--text-muted);
  text-transform: lowercase;
  margin-bottom: 0.75rem;
}

.shop-teaser p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.shop-teaser-link {
  display: inline-block;
  padding: 0.65rem 1.5rem;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-decoration: none;
  color: var(--text-primary);
  border: 1px solid var(--text-primary);
  transition: all 0.2s;
}

.shop-teaser-link:hover {
  background: var(--text-primary);
  color: #fff;
}

/* Contact */
.art-contact {
  padding: 3rem 2rem;
  text-align: center;
}

.art-contact p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.art-contact a {
  color: var(--text-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.art-contact .location {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Footer */
.art-footer {
  padding: 2rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 1;
}

.art-footer-nav {
  display: flex;
  gap: 2rem;
}

.art-footer-nav a {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.art-footer-nav a:hover {
  color: var(--text-primary);
}

/* Lightbox Modal */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.95);
  justify-content: center;
  align-items: center;
  padding: 2rem;
}

.lightbox.active {
  display: flex;
}

.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
}

.lightbox-caption {
  margin-top: 1rem;
  text-align: center;
  color: #fff;
}

.lightbox-title {
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

.lightbox-medium {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
}

.lightbox-more {
  display: none;
  position: absolute;
  inset: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  background: rgba(0, 0, 0, 0.78);
}

.lightbox-more.visible {
  display: flex;
}

.lightbox-more-text {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 0.12em;
  text-transform: lowercase;
}

.lightbox-more-btn {
  padding: 0.6rem 1.75rem;
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: all 0.2s;
}

.lightbox-more-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.7);
}

.lightbox-close {
  position: absolute;
  top: -2.5rem;
  right: 0;
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s;
  line-height: 1;
}

.lightbox-close:hover {
  opacity: 1;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #fff;
  font-size: 2.5rem;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s;
  padding: 1rem;
}

.lightbox-nav:hover {
  opacity: 1;
}

.lightbox-prev {
  left: -4rem;
}

.lightbox-next {
  right: -4rem;
}

/* Exhibit notification */
.exhibit-notify {
  position: fixed;
  top: 5rem;
  right: 1.5rem;
  z-index: 90;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0;
  background: rgba(0,0,0,0.88);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 6px;
  opacity: 0;
  transform: translateY(-10px);
  animation: notifyIn 0.6s ease 1.5s forwards, notifyPulse 2s ease 2.1s 3;
}

.exhibit-notify:hover {
  background: rgba(0,0,0,0.95);
  border-color: rgba(255,255,255,0.25);
}

.exhibit-notify.hidden {
  display: none;
}

.exhibit-notify-text {
  display: block;
  padding: 0.75rem 0 0.75rem 1.25rem;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.85);
  letter-spacing: 0.02em;
  text-decoration: none;
}

.exhibit-notify-text:hover {
  color: #fff;
}

.exhibit-notify-close {
  background: none;
  border: none;
  color: rgba(255,255,255,0.4);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0.75rem 1rem;
  line-height: 1;
  transition: color 0.2s;
}

.exhibit-notify-close:hover {
  color: #fff;
}

@keyframes notifyIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes notifyPulse {
  0%, 100% { border-color: rgba(255,255,255,0.12); }
  50% { border-color: rgba(255,255,255,0.35); box-shadow: 0 0 15px rgba(255,255,255,0.06); }
}

/* Responsive */
@media (max-width: 768px) {
  .art-nav {
    padding: 1rem;
  }

  .art-nav-toggle {
    display: block;
  }

  .art-nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    flex-direction: column;
    padding: 1rem 1.5rem 1.5rem;
    gap: 1rem;
    border-bottom: 1px solid var(--border);
  }

  .art-nav-links.open {
    display: flex;
  }

  .art-nav-links a {
    font-size: 1rem;
    padding: 0.25rem 0;
  }

  .art-hero {
    padding: 6rem 1.5rem 3rem;
    min-height: 70vh;
  }

  .art-gallery,
  .art-thoughts,
  .shop-teaser {
    padding: 3rem 1.5rem;
  }

  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.15rem;
  }

  .art-footer {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .lightbox-nav {
    font-size: 1.5rem;
    padding: 0.5rem;
  }

  .lightbox-prev {
    left: 0;
  }

  .lightbox-next {
    right: 0;
  }
}

/* Sketches Intro */
.sketches-intro {
  display: none;
  max-width: 600px;
  margin: 0 auto 2rem;
  text-align: center;
}

.sketches-intro.visible {
  display: block;
}

.sketches-statement {
  font-size: 1rem;
  font-style: italic;
  color: var(--text-secondary);
  line-height: 1.8;
}

/* Prints intro */
.prints-intro {
  display: none;
  max-width: 600px;
  margin: 0 auto 2rem;
  text-align: center;
}

.prints-intro.visible {
  display: block;
}

.prints-statement {
  font-size: 1rem;
  font-style: italic;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 1rem;
}

.prints-shop-link {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-primary);
  text-decoration: none;
  border-bottom: 1px solid var(--text-primary);
  padding-bottom: 2px;
  transition: opacity 0.2s;
}

.prints-shop-link:hover {
  opacity: 0.6;
}

/* ==========================================================================
   Exhibitions Teaser
   ========================================================================== */

.art-exhibitions-teaser {
  border-top: 1px solid var(--border);
  padding: 3rem 2rem 4rem;
}

.art-exhibitions-teaser h2 {
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  color: var(--text-muted);
  text-transform: lowercase;
  margin-bottom: 1.5rem;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.exhibitions-teaser-list {
  max-width: 900px;
  margin: 0 auto 1.5rem;
}

a.exhibition-teaser-row {
  display: grid;
  grid-template-columns: 2.5rem 3.5rem 1fr auto auto;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: var(--text-primary);
  transition: opacity 0.2s;
}

a.exhibition-teaser-row:first-child {
  border-top: 1px solid var(--border);
}

a.exhibition-teaser-row:hover {
  opacity: 0.6;
}

.exhibition-teaser-row img {
  width: 2.5rem;
  height: 2.5rem;
  object-fit: cover;
  border-radius: 2px;
  display: block;
}

.exhibition-teaser-year {
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.exhibition-teaser-title {
  font-size: 0.88rem;
}

.exhibition-teaser-location {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.exhibition-teaser-arrow {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.exhibitions-teaser-more {
  display: block;
  max-width: 900px;
  margin: 1.25rem auto 0;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-primary);
  text-decoration: none;
  border-bottom: 1px solid var(--text-primary);
  padding-bottom: 2px;
  width: fit-content;
  transition: opacity 0.2s;
}

.exhibitions-teaser-more:hover {
  opacity: 0.6;
}

@media (max-width: 600px) {
  a.exhibition-teaser-row {
    grid-template-columns: 2rem 2.5rem 1fr auto;
  }

  .exhibition-teaser-location {
    display: none;
  }
}
