/* ===== GALLERY ===== */
  .gallery {
    background: #0a1a35;
    padding: 80px 0;
    overflow: hidden;
  }

  .gallery h3 {
    text-align: center;
    color: #D4AF37;
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 400;
    letter-spacing: 0.04em;
    margin-bottom: 40px;
  }

  .carousel {
    position: relative;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 60px;
  }

  .carousel-track {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    -ms-overflow-style: none;
    scrollbar-width: none;
    padding: 10px 0;
  }

  .carousel-track::-webkit-scrollbar { display: none; }

  .carousel-slide {
    flex: 0 0 calc(33.333% - 14px);
    min-width: 260px;
    scroll-snap-align: start;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    cursor: pointer;
  }

  .carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
  }

  .carousel-slide:hover img {
    transform: scale(1.06);
  }

  .carousel-slide .slide-caption {
    position: absolute;
    bottom: 0;
    left: 0; right: 0;
    padding: 30px 16px 14px;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    color: rgba(232, 212, 176, 0.9);
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    transition: opacity 0.3s ease;
  }

  /* Porthole-style frame on each slide */
  .carousel-slide::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 12px;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.3);
    border: 2px solid rgba(139, 115, 64, 0.25);
    pointer-events: none;
  }

  .carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(212, 175, 55, 0.3);
    background: rgba(11, 29, 58, 0.9);
    color: #D4AF37;
    font-size: 1.2rem;
    cursor: pointer;
    transition: background 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
  }

  .carousel-btn:hover {
    background: rgba(212, 175, 55, 0.15);
    border-color: rgba(212, 175, 55, 0.6);
  }

  .carousel-btn.prev { left: 8px; }
  .carousel-btn.next { right: 8px; }

  /* Dots */
  .carousel-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 24px;
  }

  .carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(212, 175, 55, 0.2);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
  }

  .carousel-dot.active {
    background: #D4AF37;
    transform: scale(1.3);
  }

  @media (max-width: 768px) {
    .carousel-slide {
      flex: 0 0 calc(50% - 10px);
      min-width: 220px;
    }
    .carousel { padding: 0 50px; }
  }

  @media (max-width: 480px) {
    .carousel-slide {
      flex: 0 0 85%;
      min-width: 0;
    }
    .carousel { padding: 0 44px; }
  }

  /* Lightbox */
  .lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(0,0,0,0.92);
    align-items: center;
    justify-content: center;
    cursor: pointer;
  }

  .lightbox.active { display: flex; }

  .lightbox img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 0 60px rgba(0,0,0,0.5);
  }

  .lightbox-close {
    position: absolute;
    top: 20px; right: 24px;
    color: rgba(212, 175, 55, 0.7);
    font-size: 2rem;
    cursor: pointer;
    background: none;
    border: none;
    transition: color 0.3s ease;
  }

  .lightbox-close:hover { color: #D4AF37; }
