@charset "utf-8";
  @import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@300;400;600&family=Space+Mono:wght@400;700&display=swap');

  :root {
    --bg: #0f0f0f;
    --surface: #1a1a1a;
    --border: #2e2e2e;
    --accent: #c9a96e;
    --text: #e8e0d4;
    --muted: #666;
    --thumb: 100px;
    --gap: 12px;
    --radius: 4px;
  }

  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

  /* ── Gallery Grid ── */
  .gallery {
    display: flex;
    flex-wrap: wrap;
    gap: var(--gap);
    justify-content: center;
    margin: 0 auto;
  }

  .gallery-item {
    width: var(--thumb);
    height: var(--thumb);
    cursor: zoom-in;
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    flex-shrink: 0;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  }

  .gallery-item:hover {
    transform: scale(1.08);
    border-color: var(--accent);
    box-shadow: 0 0 0 2px var(--accent), 0 8px 32px rgba(201,169,110,0.25);
    z-index: 2;
  }

  .gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: filter 0.3s ease;
  }

  .gallery-item:hover img { filter: brightness(1.1); }

  /* zoom icon overlay */
  .gallery-item::after {
    content: '+';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    color: white;
    background: rgba(0,0,0,0.35);
    opacity: 0;
    transition: opacity 0.25s ease;
  }
  .gallery-item:hover::after { opacity: 1; }

  /* ── Lightbox Overlay ── */
  #lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(10, 10, 10, 0.96);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: lbFadeIn 0.25s ease;
  }
  #lightbox.active { display: flex; }

  @keyframes lbFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
  }

  /* Container da imagem */
  .lb-container {
    position: relative;
    max-width: 95vw;
    max-height: 90vh;
    animation: lbZoomIn 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  }
  @keyframes lbZoomIn {
    from { transform: scale(0.88); opacity: 0; }
    to   { transform: scale(1);    opacity: 1; }
  }

  #lb-img {
    display: block;
    max-width: 95vw;
    max-height: 85vh;
    width: auto;
    height: auto;
    border-radius: var(--radius);
    box-shadow: 0 24px 80px rgba(0,0,0,0.8);
    object-fit: contain;
  }

  /* Caption */
  #lb-caption {
    position: absolute;
    bottom: -32px;
    left: 0; right: 0;
    text-align: center;
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--muted);
  }

  /* Botões de Controle */
  .lb-btn {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border);
    color: var(--text);
    font-family: 'Space Mono', monospace;
    font-size: 1.1rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, border-color 0.2s, transform 0.2s;
    z-index: 10000;
  }
  .lb-btn:hover {
    background: rgba(201,169,110,0.15);
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-50%) scale(1.1);
  }
  #lb-prev { left: clamp(8px, 2vw, 24px); }
  #lb-next { right: clamp(8px, 2vw, 24px); }

  /* Fechar */
  #lb-close {
    position: fixed;
    top: 16px;
    right: 16px;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border);
    color: var(--text);
    font-size: 1rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, border-color 0.2s;
    z-index: 10000;
    font-family: 'Space Mono', monospace;
  }
  #lb-close:hover { background: rgba(255,60,60,0.2); border-color: #ff4444; color: #ff4444; }

  /* Contador */
  #lb-counter {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.6rem;
    letter-spacing: 0.3em;
    color: var(--muted);
    text-transform: uppercase;
    z-index: 10000;
    pointer-events: none;
  }

  /* Indicador de carregamento */
  #lb-loader {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 0.7rem;
    letter-spacing: 0.2em;
  }

  /* ── Responsivo ── */
  @media (max-width: 480px) {
    :root { --thumb: 80px; --gap: 8px; }
    .lb-btn { width: 38px; height: 38px; font-size: 0.9rem; }
  }
  @media (min-width: 1024px) {
    :root { --thumb: 100px; --gap: 14px; }
  }