/* ================================================================
   MURALS PAGE
   Rattlesnakes & Rainbows — Dark Temple Design System
   ================================================================ */

/* --- Page wrapper --- */
.murals-page {
  padding-top: var(--nav-height);
}

/* --- Hero: full-bleed image with gradient overlay --- */
.murals-hero {
  position: relative;
  min-height: 600px;
  overflow: hidden;
}
.murals-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}
.murals-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(15, 15, 15, 0.85) 0%, rgba(15, 15, 15, 0.2) 60%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 48px;
}
.murals-hero-overlay h1 {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 2.2rem;
  color: var(--color-text);
  margin-bottom: 8px;
}
.murals-hero-overlay p {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 1rem;
  color: var(--color-text-muted);
  margin-bottom: 8px;
}
.murals-caption {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  color: rgba(168, 155, 140, 0.5);
}

/* --- Intro text below hero --- */
.murals-hero-section {
  background: var(--color-bg-warm);
}
.murals-intro {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--space-xl) var(--space-lg);
  border-top: 1px solid rgba(196, 153, 59, 0.15);
}
.murals-intro p {
  font-family: var(--font-body);
  font-size: var(--size-body);
  color: var(--color-text-muted);
  line-height: var(--leading-body);
  max-width: 640px;
  margin-bottom: var(--space-md);
}

/* --- Commission CTA (bottom) --- */
.commission-cta {
  padding: var(--space-xl) var(--space-lg);
  background: var(--color-bg-primary);
  text-align: center;
}
.commission-cta h2 {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: var(--size-h2);
  color: var(--color-text);
  margin-bottom: 16px;
}
.commission-cta p {
  font-family: var(--font-body);
  font-size: var(--size-body);
  color: var(--color-text-muted);
  line-height: var(--leading-body);
  max-width: 640px;
  margin: 0 auto var(--space-md);
}

/* ================================================================
   MULTI-PROJECT GALLERY
   ================================================================ */
.murals-gallery {
  padding: var(--space-xl) var(--space-lg);
  background: var(--color-bg-primary);
}
.murals-gallery-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.mural-project {
  overflow: hidden;
}
.mural-project-image {
  border-radius: 8px;
  overflow: hidden;
}
.mural-project-image img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.mural-project:hover .mural-project-image img {
  transform: scale(1.03);
}
.mural-project-info {
  padding: 16px 4px 8px;
}
.mural-project-info h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--color-text);
  margin-bottom: 4px;
}
.mural-project-info .mural-location {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

/* --- Image count badge --- */
.mural-project-image {
  position: relative;
}
.mural-image-count {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(15, 15, 15, 0.75);
  color: var(--color-text-muted);
  font-family: var(--font-ui);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  border-radius: 4px;
  pointer-events: none;
}

/* ================================================================
   LIGHTBOX GALLERY
   ================================================================ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.lightbox.open {
  opacity: 1;
  visibility: visible;
}
.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 10, 0.95);
}
.lightbox-img {
  position: relative;
  z-index: 1;
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 4px;
}
.lightbox-close {
  position: absolute;
  top: 16px;
  right: 20px;
  z-index: 2;
  background: none;
  border: none;
  color: var(--color-text-muted);
  font-size: 2.4rem;
  line-height: 1;
  cursor: pointer;
  padding: 8px;
  transition: color 0.2s;
}
.lightbox-close:hover,
.lightbox-close:focus-visible {
  color: var(--color-text);
}
.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  background: rgba(15, 15, 15, 0.5);
  border: 1px solid rgba(196, 153, 59, 0.2);
  color: var(--color-text-muted);
  font-size: 2.8rem;
  line-height: 1;
  cursor: pointer;
  padding: 8px 14px;
  border-radius: 6px;
  transition: background 0.2s, color 0.2s;
}
.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }
.lightbox-prev:hover,
.lightbox-prev:focus-visible,
.lightbox-next:hover,
.lightbox-next:focus-visible {
  background: rgba(196, 153, 59, 0.15);
  color: var(--color-accent);
}
.lightbox-counter {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  font-family: var(--font-ui);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
}
.lightbox-title {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 1.2rem;
  color: var(--color-text);
  white-space: nowrap;
}

/* ================================================================
   COMMISSION PROCESS
   ================================================================ */
.commission-process {
  padding: var(--space-xl) var(--space-lg);
  background: var(--color-bg-warm);
}
.commission-process-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  text-align: center;
}
.commission-process h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--size-h2);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text);
  margin-bottom: var(--space-lg);
}
.commission-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-bottom: var(--space-lg);
}
.commission-step {
  text-align: center;
}
.commission-step-num {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 2.5rem;
  color: var(--color-accent);
  margin-bottom: 12px;
  line-height: 1;
}
.commission-step h3 {
  font-family: var(--font-ui);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text);
  margin-bottom: 8px;
}
.commission-step p {
  font-family: var(--font-body);
  font-size: 0.88rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 1024px) {
  .murals-gallery-inner {
    grid-template-columns: repeat(2, 1fr);
  }
  .commission-steps {
    grid-template-columns: repeat(2, 1fr);
  }
  .murals-intro {
    padding: var(--space-lg) var(--space-md);
  }
  .commission-cta {
    padding: var(--space-lg) var(--space-md);
  }
}

@media (max-width: 640px) {
  .murals-gallery-inner {
    grid-template-columns: 1fr;
  }
  .commission-steps {
    grid-template-columns: 1fr;
  }
  .murals-hero {
    min-height: 400px;
  }
  .murals-hero-overlay {
    padding: 32px 24px;
  }
  .murals-hero-overlay h1 {
    font-size: 1.6rem;
  }
  .murals-intro {
    padding: var(--space-lg) var(--space-sm);
  }
  .murals-gallery {
    padding: var(--space-lg) var(--space-sm);
  }
  .commission-process {
    padding: var(--space-lg) var(--space-sm);
  }
  .commission-cta {
    padding: var(--space-lg) var(--space-sm);
  }
  .lightbox-prev,
  .lightbox-next {
    font-size: 2rem;
    padding: 6px 10px;
  }
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
  .lightbox-title {
    font-size: 1rem;
  }
}

/* --- Reduced motion --- */
@media (prefers-reduced-motion: reduce) {
  .lightbox {
    transition: none;
  }
  .mural-project-image img {
    transition: none;
  }
}
