/* Base page styling for gallery pages */
body.gallery-page {
    background: #050505;
    color: #f5f5f5;
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
      sans-serif;
  }
  
  /* HEADER */
  
  .gallery-header {
    max-width: 1200px;
    margin: 2rem auto 1rem;
    padding: 0 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
  }
  
  .back-link {
    text-decoration: none;
    font-size: 0.9rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    opacity: 0.7;
    color: #f5f5f5;
  }
  
  .back-link:hover {
    opacity: 1;
  }
  
  .gallery-title {
    font-size: 2.4rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-weight: 800;
  }
  
  .gallery-title span {
    color: #ff5a1f;
  }
  
  /* INTRO */
  
  .gallery-main {
    max-width: 1200px;
    margin: 0 auto 3rem;
    padding: 0 1.5rem 2rem;
  }
  
  .gallery-intro {
    max-width: 640px;
    margin-bottom: 1.5rem;
    opacity: 0.8;
    font-size: 0.95rem;
    line-height: 1.6;
  }
  
  /* MASONRY GRID */
  
  .gallery-grid {
    column-count: 4;
    column-gap: 1rem;
  }
  
  .gallery-item {
    break-inside: avoid;
    margin-bottom: 1rem;
    opacity: 0;
    transform: translateY(18px);
    transition:
      opacity 0.6s ease,
      transform 0.6s ease;
  }
  
  .gallery-item.is-visible {
    opacity: 1;
    transform: translateY(0);
  }
  
  .gallery-item img {
    width: 100%;
    display: block;
    border-radius: 4px;
    object-fit: cover;
  }
  
  /* Responsive breakpoints */
  @media (max-width: 1200px) {
    .gallery-grid {
      column-count: 3;
    }
  }
  
  @media (max-width: 900px) {
    .gallery-grid {
      column-count: 2;
    }
  
    .gallery-title {
      font-size: 2rem;
    }
  }
  
  @media (max-width: 600px) {
    .gallery-grid {
      column-count: 1;
    }
  
    .gallery-header {
      margin-top: 1.5rem;
    }
  }
  
  /* LIGHTBOX – simple full-image overlay */

.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 40;
  }
  
  .lightbox.is-open {
    display: flex;
  }
  
  .lightbox-image {
    max-width: 90vw;
    max-height: 90vh;
    width: auto;
    height: auto;
    display: block;
    border-radius: 6px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
  }
  
  /* Close button in top-right of overlay */
  .lightbox-close {
    position: fixed;
    top: 1.5rem;
    right: 2rem;
    border: none;
    background: none;
    color: #f5f5f5;
    font-size: 2rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
  }
  
  @media (max-width: 600px) {
    .lightbox-close {
      top: 1rem;
      right: 1.25rem;
    }
  }
  
  