 :root {
      --cream: #F5F0E8;
      --dark: #1a1a1a;
      --teal: #3D7A6F;
      --teal-light: #5A9E92;
      --teal-dark: #2A5A52;
      --gold: #C8922A;
      --gold-light: #E4B860;
      --warm-white: #FDFAF5;
      --text: #2C2C2C;
      --text-muted: #6B6B6B;
    }
    * { margin: 0; padding: 0; box-sizing: border-box; }
    html { scroll-behavior: smooth; }
    body { font-family: 'Jost', sans-serif; background: var(--dark); color: white; }

    /* NAV */
    nav {
      position: fixed; top: 0; left: 0; right: 0; z-index: 100;
      display: flex; align-items: center; justify-content: space-between;
      padding: 1rem 3rem;
      background: rgba(26,26,26,0.92);
      backdrop-filter: blur(12px);
      border-bottom: 1px solid rgba(61,122,111,0.2);
      transition: all 0.3s;
    }
    nav.scrolled { padding: 0.7rem 3rem; }
    .nav-logo { display: flex; align-items: center; gap: 0.9rem; text-decoration: none; }
    .nav-logo img { height: 48px; width: 48px; object-fit: contain; }
    .nav-name { font-family: 'Cormorant Garamond', serif; font-size: 0.95rem; line-height: 1.2; color: rgba(255,255,255,0.8); font-weight: 600; }
    .nav-links { display: flex; align-items: center; gap: 2rem; list-style: none; }
    .nav-links a { text-decoration: none; color: rgba(255,255,255,0.6); font-size: 0.82rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; transition: color 0.2s; }
    .nav-links a:hover, .nav-links a.active { color: var(--gold-light); }
    .btn-donate-nav { background: var(--gold); color: white !important; padding: 0.55rem 1.4rem; border-radius: 2px; }
    .btn-donate-nav:hover { background: var(--gold-light) !important; }
    .hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; }
    .hamburger span { display: block; width: 22px; height: 1.5px; background: rgba(255,255,255,0.7); }

    /* PAGE HEADER */
    .page-header {
      min-height: 55vh; display: flex; align-items: flex-end;
      position: relative; overflow: hidden;
      background: linear-gradient(135deg, #111 0%, #1e4a44 50%, #2A5A52 100%);
      padding: 0 4rem 4rem;
    }
    .page-header-pattern {
      position: absolute; inset: 0; opacity: 0.04;
      background-image: radial-gradient(circle, white 1px, transparent 1px);
      background-size: 40px 40px;
    }
    .page-header-logo {
      position: absolute; right: 4%; top: 50%; transform: translateY(-60%);
      opacity: 0.05; width: 45vw; max-width: 550px;
    }
    .page-header-logo img { width: 100%; filter: brightness(10); }
    .page-header-content { position: relative; z-index: 2; }
    .page-header .eyebrow { font-size: 0.68rem; letter-spacing: 0.25em; text-transform: uppercase; color: var(--gold-light); display: block; margin-bottom: 0.8rem; }
    .page-header h1 { font-family: 'Cormorant Garamond', serif; font-size: clamp(2.5rem, 6vw, 5rem); font-weight: 300; line-height: 1.0; margin-bottom: 1rem; }
    .page-header h1 em { color: var(--gold-light); font-style: italic; }
    .page-header p { color: rgba(255,255,255,0.6); font-size: 0.95rem; line-height: 1.7; max-width: 520px; }

    /* GALLERY SECTION */
    #gallery { padding: 4rem 4rem 6rem; }
    .gallery-header { text-align: center; margin-bottom: 3rem; }
    .gallery-header .label { font-size: 0.68rem; letter-spacing: 0.25em; text-transform: uppercase; color: var(--gold); display: block; margin-bottom: 0.7rem; }
    .gallery-header h2 { font-family: 'Cormorant Garamond', serif; font-size: clamp(2rem, 4vw, 3rem); font-weight: 300; margin-bottom: 0.8rem; }
    .gallery-header p { color: rgba(255,255,255,0.5); font-size: 0.9rem; max-width: 500px; margin: 0 auto; }

    /* TABS */
    .gtabs {
      display: flex; justify-content: center; gap: 0; margin-bottom: 3rem;
      border: 1px solid rgba(255,255,255,0.1); border-radius: 3px; overflow: hidden;
      width: fit-content; margin-left: auto; margin-right: auto;
    }
    .gtab {
      padding: 0.75rem 2rem; background: transparent; border: none; border-right: 1px solid rgba(255,255,255,0.1);
      color: rgba(255,255,255,0.5); font-family: 'Jost', sans-serif; font-size: 0.8rem; font-weight: 500;
      letter-spacing: 0.08em; text-transform: uppercase; cursor: pointer; transition: all 0.25s;
    }
    .gtab:last-child { border-right: none; }
    .gtab:hover { color: white; background: rgba(255,255,255,0.05); }
    .gtab.active { background: var(--teal-dark); color: white; }

    /* ISRAEL QUOTE */
    .israel-quote {
      font-family: 'Cormorant Garamond', serif; font-size: 1.25rem; font-style: italic;
      color: rgba(255,255,255,0.7); text-align: center; max-width: 620px; margin: 0 auto 2.5rem;
      line-height: 1.7; padding: 2rem; border: 1px solid rgba(255,255,255,0.08);
      border-radius: 3px; background: rgba(255,255,255,0.03);
    }
    .israel-quote span { display: block; margin-top: 1rem; font-size: 0.78rem; color: var(--gold); letter-spacing: 0.1em; font-style: normal; }

    /* UNIFORM GRID */
    .mission-block { animation: fadeIn 0.4s ease; }
    .mission-block.hidden { display: none; }
    @keyframes fadeIn { from{opacity:0;transform:translateY(12px)} to{opacity:1;transform:translateY(0)} }

    .photo-grid {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 6px;
    }
    .photo-cell {
      aspect-ratio: 1;
      position: relative;
      overflow: hidden;
      cursor: pointer;
      background: #1a1a1a;
      border-radius: 2px;
    }
    .photo-cell img {
      width: 100%; height: 100%; object-fit: cover;
      transition: transform 0.5s ease, opacity 0.4s ease;
      opacity: 0;
    }
    .photo-cell img.loaded { opacity: 1; }
    .photo-cell:hover img { transform: scale(1.06); }
    .photo-cell::after {
      content: attr(data-index);
      position: absolute; inset: 0;
      display: flex; align-items: flex-end; justify-content: flex-start;
      background: linear-gradient(to top, rgba(0,0,0,0.65) 0%, transparent 40%);
      opacity: 0; transition: opacity 0.3s;
      padding: 0.8rem;
      color: rgba(255,255,255,0.8);
      font-size: 0.7rem;
      letter-spacing: 0.08em;
    }
    .photo-cell:hover::after { opacity: 1; }

    /* CAROUSEL TOGGLE */
    .view-toggle {
      display: flex; justify-content: flex-end; align-items: center; gap: 0.6rem;
      margin-bottom: 1.2rem;
    }
    .view-btn {
      background: transparent; border: 1px solid rgba(255,255,255,0.15);
      color: rgba(255,255,255,0.5); padding: 0.45rem 0.9rem; border-radius: 2px;
      font-family: 'Jost', sans-serif; font-size: 0.75rem; letter-spacing: 0.08em;
      text-transform: uppercase; cursor: pointer; transition: all 0.2s; display: flex; align-items: center; gap: 0.4rem;
    }
    .view-btn.active { border-color: var(--teal); color: var(--teal-light); background: rgba(61,122,111,0.1); }
    .view-btn svg { width: 14px; height: 14px; }

    /* CAROUSEL VIEW */
    .carousel-wrap { display: none; position: relative; }
    .carousel-wrap.active { display: block; }
    .carousel-track-outer { overflow: hidden; border-radius: 4px; position: relative; }
    .carousel-track { display: flex; transition: transform 0.45s cubic-bezier(0.4,0,0.2,1); }
    .carousel-slide {
      min-width: 100%; aspect-ratio: 16/9;
      position: relative;
    }
    .carousel-slide img { width: 100%; height: 100%; object-fit: cover; }
    .carousel-slide .slide-num {
      position: absolute; bottom: 1rem; right: 1rem;
      background: rgba(0,0,0,0.5); color: rgba(255,255,255,0.7);
      font-size: 0.72rem; padding: 0.3rem 0.7rem; border-radius: 20px;
      letter-spacing: 0.08em;
    }
    .carousel-btn {
      position: absolute; top: 50%; transform: translateY(-50%);
      width: 48px; height: 48px; border-radius: 50%;
      background: rgba(0,0,0,0.55); border: 1px solid rgba(255,255,255,0.15);
      color: white; font-size: 1.3rem; cursor: pointer; z-index: 5;
      display: flex; align-items: center; justify-content: center;
      transition: all 0.2s; backdrop-filter: blur(4px);
    }
    .carousel-btn:hover { background: var(--teal-dark); border-color: var(--teal); }
    .carousel-btn.prev { left: 1rem; }
    .carousel-btn.next { right: 1rem; }
    .carousel-dots {
      display: flex; justify-content: center; gap: 6px; margin-top: 1.2rem;
    }
    .carousel-dot {
      width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,0.2);
      cursor: pointer; transition: all 0.2s;
    }
    .carousel-dot.active { background: var(--gold); width: 20px; border-radius: 3px; }

    /* GRID VIEW */
    .grid-wrap { }
    .grid-wrap.hidden { display: none; }

    /* LIGHTBOX */
    #lb {
      position: fixed; inset: 0; background: rgba(0,0,0,0.94);
      z-index: 999; display: none; align-items: center; justify-content: center;
    }
    #lb.open { display: flex; }
    #lb-inner { position: relative; max-width: 90vw; max-height: 90vh; display: flex; flex-direction: column; align-items: center; }
    #lb-img { max-width: 100%; max-height: 80vh; object-fit: contain; border-radius: 2px; transition: opacity 0.18s; }
    #lb-cap { color: rgba(255,255,255,0.5); font-size: 0.8rem; margin-top: 0.8rem; letter-spacing: 0.05em; }
    #lb-x { position: absolute; top: -3rem; right: 0; background: none; border: none; color: rgba(255,255,255,0.6); font-size: 1.4rem; cursor: pointer; }
    #lb-prev, #lb-next {
      position: absolute; top: 50%; transform: translateY(-50%);
      background: rgba(255,255,255,0.1); border: none; color: white; font-size: 2rem;
      cursor: pointer; padding: 0.5rem 0.9rem; border-radius: 3px; transition: background 0.2s;
    }
    #lb-prev:hover, #lb-next:hover { background: var(--teal-dark); }
    #lb-prev { left: -4rem; }
    #lb-next { right: -4rem; }

    /* FOOTER */
    footer { background: #0d0d0d; color: rgba(255,255,255,0.4); text-align: center; padding: 3rem; border-top: 1px solid rgba(255,255,255,0.05); }
    .footer-logo { display: flex; align-items: center; justify-content: center; gap: 0.8rem; margin-bottom: 1.5rem; }
    .footer-logo img { height: 40px; opacity: 0.5; }
    .footer-logo span { font-family: 'Cormorant Garamond', serif; font-size: 1rem; color: rgba(255,255,255,0.4); }
    .footer-links { display: flex; justify-content: center; gap: 2rem; margin-bottom: 1rem; flex-wrap: wrap; }
    .footer-links a { color: rgba(255,255,255,0.4); text-decoration: none; font-size: 0.78rem; letter-spacing: 0.1em; transition: color 0.2s; }
    .footer-links a:hover { color: var(--gold-light); }
    footer p { font-size: 0.8rem; }
    .footer-verse { font-family: 'Cormorant Garamond', serif; font-style: italic; margin-top: 0.5rem; font-size: 0.88rem; }

    @media(max-width: 900px) {
      nav { padding: 1rem 1.5rem; }
      .nav-links { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: rgba(26,26,26,0.98); padding: 1.5rem; gap: 1.2rem; border-bottom: 1px solid rgba(255,255,255,0.05); }
      .nav-links.open { display: flex; }
      .hamburger { display: flex; }
      #gallery { padding: 3rem 1.5rem 4rem; }
      .page-header { padding: 0 1.5rem 3rem; }
      .photo-grid { grid-template-columns: repeat(3, 1fr); }
      #lb-prev { left: -2.5rem; } #lb-next { right: -2.5rem; }
    }
    @media(max-width: 580px) {
      .photo-grid { grid-template-columns: repeat(2, 1fr); }
      .gtab { padding: 0.65rem 1rem; font-size: 0.72rem; }
    }