/* ── Gallery Hero ────────────────────────────────────────── */
#gallery-hero {
    position: relative;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    overflow: hidden;
  }
  
  .gallery-slides {
    position: absolute;
    inset: 0;
    z-index: 0;
  }
  
  .gallery-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
  }
  
  .gallery-slide.active { opacity: 1; }
  
  .gallery-hero-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0,0,0,0.55);
    z-index: 1;
  }
  
  .gallery-hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    padding: var(--space-md);
  }
  
  .gallery-hero-content h1 {
    color: #fff;
    margin-bottom: var(--space-sm);
    text-shadow: 0 2px 12px rgba(0,0,0,0.3);
  }
  
  .gallery-hero-content .hero-sub {
    font-size: 1.1rem;
    opacity: 0.9;
    margin: 0;
  }
  
  /* ── Filter tabs ─────────────────────────────────────────── */
  .gallery-filters {
    display: flex;
    justify-content: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-lg);
    flex-wrap: wrap;
  }
  
  .gallery-filter {
    padding: 0.5rem 1.5rem;
    border: 2px solid var(--color-primary);
    border-radius: 50px;
    background: none;
    color: var(--color-primary);
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s;
  }
  
  .gallery-filter:hover,
  .gallery-filter.active {
    background-color: var(--color-primary);
    color: #fff;
  }
  
  /* ── Gallery grid ────────────────────────────────────────── */
  .gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-sm);
  }
  
  .gallery-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    opacity: 0;
    transform: scale(0.96);
    transition: opacity 0.3s, transform 0.3s;
  }
  
  .gallery-item.visible {
    opacity: 1;
    transform: scale(1);
  }
  
  .gallery-thumb {
    width: 100%;
    height: 260px;
    background-size: cover;
    background-position: center;
    transition: transform 0.4s;
  }
  
  .gallery-item:hover .gallery-thumb {
    transform: scale(1.06);
  }
  
  .gallery-item-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
      to bottom,
      rgba(0,0,0,0) 40%,
      rgba(39,83,132,0.75) 100%
    );
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    padding: var(--space-sm);
    opacity: 0;
    transition: opacity 0.3s;
  }
  
  .gallery-item:hover .gallery-item-overlay {
    opacity: 1;
  }
  
  .gallery-zoom {
    font-size: 1.4rem;
  }
  
  .gallery-year-tag {
    font-size: 0.78rem;
    font-weight: 700;
    color: #fff;
    background-color: var(--color-secondary);
    padding: 0.2rem 0.6rem;
    border-radius: 50px;
    letter-spacing: 0.05em;
  }
  
  .gallery-note {
    text-align: center;
    color: var(--color-text-light);
    font-size: 0.88rem;
    margin-top: var(--space-md);
    font-style: italic;
  }
  
  /* ── CTA ─────────────────────────────────────────────────── */
  .gallery-cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-lg);
    flex-wrap: wrap;
  }
  
  /* ── Lightbox ────────────────────────────────────────────── */
  .lightbox {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .lightbox-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0,0,0,0.92);
  }
  
  .lightbox-content {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: var(--space-md);
    max-width: 90vw;
    max-height: 90vh;
  }
  
  .lightbox-content img {
    max-width: 80vw;
    max-height: 85vh;
    border-radius: 8px;
    object-fit: contain;
    box-shadow: 0 8px 40px rgba(0,0,0,0.5);
  }
  
  .lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.2s;
  }
  
  .lightbox-close:hover { opacity: 1; }
  
  .lightbox-prev,
  .lightbox-next {
    background: rgba(255,255,255,0.15);
    border: none;
    color: #fff;
    font-size: 2.5rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background-color 0.2s;
    line-height: 1;
  }
  
  .lightbox-prev:hover,
  .lightbox-next:hover {
    background: rgba(255,255,255,0.3);
  }
  
  /* ── Responsive ──────────────────────────────────────────── */
  @media (max-width: 1024px) {
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  }
  
  @media (max-width: 768px) {
    #gallery-hero  { min-height: 50vh; }
    .gallery-grid  { grid-template-columns: repeat(2, 1fr); }
    .gallery-cta-inner { flex-direction: column; text-align: center; }
    .lightbox-prev,
    .lightbox-next { display: none; }
  }
  
  @media (max-width: 480px) {
    .gallery-grid { grid-template-columns: 1fr; }
  }

/* ── Coming soon badge ───────────────────────────────────── */
.gallery-coming-soon {
    position: absolute;
    top: var(--space-sm);
    left: var(--space-sm);
    background-color: rgba(0,0,0,0.55);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.25rem 0.6rem;
    border-radius: 50px;
    pointer-events: none;
  }
  
  .gallery-placeholder .gallery-thumb {
    filter: brightness(0.7);
  }