/* HeyBuddy — Portfolio (galeria justified + lightbox) */
/* ── PAGE HERO ── */
    .page-hero { padding: clamp(3rem, 6vw, 5rem) 0 clamp(1.5rem, 3vw, 2.5rem); }
    .page-title {
      font-family: var(--font-serif);
      font-size: clamp(1.75rem, 3.5vw, 2.75rem);
      font-weight: 400; line-height: 1.15; color: var(--c-text); margin-bottom: 1rem;
    }
    .page-title em {font-style: normal; color: var(--c-accent-dark); }
    .page-intro {
      font-family: var(--font-sans); font-size: 1rem;
      color: var(--c-text-muted); max-width: 60ch; line-height: 1.7;
    }

    /* ── GALLERY (justified) ── */
    .gallery-section { padding: clamp(1rem, 2vw, 1.75rem) 0 var(--section-gap); }
    .gallery { width: 100%; }
    .g-row { display: flex; }
    .g-item {
      position: relative; overflow: hidden;
      background: var(--c-bg-alt); border-radius: var(--radius);
      cursor: zoom-in; flex: 0 0 auto;
      box-shadow: 0 2px 6px rgba(44,44,36,0.08);
      transition: transform .4s cubic-bezier(.2,.7,.3,1), box-shadow .4s;
    }
    .g-item::after {
      content: ""; position: absolute; inset: 0;
      box-shadow: inset 0 0 0 1px rgba(44,44,36,0.07);
      border-radius: var(--radius); pointer-events: none; z-index: 2;
    }
    .g-item img {
      display: block; width: 100%; height: 100%; object-fit: cover;
      opacity: 0; transition: opacity .6s ease;
    }
    .g-item img.loaded { opacity: 1; }
    .g-overlay {
      position: absolute; inset: 0; z-index: 1;
      background: linear-gradient(160deg, rgba(44,44,36,0) 55%, rgba(44,44,36,0.32) 100%);
      opacity: 0; transition: opacity .4s; pointer-events: none;
    }
    .g-zoom {
      position: absolute; right: .7rem; bottom: .7rem; z-index: 3;
      width: 36px; height: 36px; border-radius: 50%;
      background: rgba(252,237,218,0.9); color: var(--c-text);
      display: flex; align-items: center; justify-content: center;
      opacity: 0; transform: scale(.8) translateY(6px); transition: opacity .35s, transform .35s;
      pointer-events: none;
    }
    .g-zoom svg { width: 17px; height: 17px; }
    @media (hover: hover) {
      .g-item:hover { transform: translateY(-5px); box-shadow: 0 16px 30px rgba(44,44,36,0.18); }
      .g-item:hover .g-overlay { opacity: 1; }
      .g-item:hover .g-zoom { opacity: 1; transform: scale(1) translateY(0); }
    }
    .g-item:focus-visible { outline: 2px solid var(--c-focus); outline-offset: 3px; }
    .gallery-empty {
      font-family: var(--font-serif); font-size: 1.2rem;
      color: var(--c-text-light); padding: 3rem 0;
    }

    /* ── LIGHTBOX ── */
    .lightbox {
      position: fixed; inset: 0; z-index: 300;
      display: flex; align-items: center; justify-content: center;
      background: rgba(28,26,20,0.95);
      opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility .3s;
    }
    .lightbox.open { opacity: 1; visibility: visible; }
    .lb-stage {
      position: relative; max-width: 92vw; max-height: 84vh;
      display: flex; align-items: center; justify-content: center;
    }
    .lb-img {
      max-width: 92vw; max-height: 84vh; width: auto; height: auto;
      object-fit: contain; border-radius: 2px;
      box-shadow: 0 24px 70px rgba(0,0,0,0.55);
      background: #1c1a14;
    }
    .lb-img.swapping { opacity: 0; }
    .lb-img { transition: opacity .18s ease; }
    .lb-btn {
      position: absolute; z-index: 2;
      width: 52px; height: 52px; border-radius: 50%;
      border: 1px solid rgba(252,237,218,0.25);
      background: rgba(44,44,36,0.55); color: #fcedda;
      display: flex; align-items: center; justify-content: center;
      cursor: pointer; transition: background .2s, transform .2s, border-color .2s;
      -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
    }
    .lb-btn:hover { background: rgba(210,86,37,0.85); border-color: transparent; transform: translateY(-50%) scale(1.05); }
    .lb-btn svg { width: 22px; height: 22px; }
    .lb-prev { left: max(1rem, 3vw); top: 50%; transform: translateY(-50%); }
    .lb-next { right: max(1rem, 3vw); top: 50%; transform: translateY(-50%); }
    .lb-prev:hover, .lb-next:hover { transform: translateY(-50%) scale(1.05); }
    .lb-close {
      position: absolute; top: max(1rem, 2.5vw); right: max(1rem, 2.5vw);
      width: 48px; height: 48px; transform: none;
    }
    .lb-close:hover { transform: scale(1.05); }
    .lb-meta {
      position: absolute; left: 0; right: 0; bottom: max(1rem, 2.5vw);
      display: flex; flex-direction: column; align-items: center; gap: .25rem;
      color: rgba(252,237,218,0.92); pointer-events: none; padding: 0 1rem; text-align: center;
    }
    .lb-caption { font-family: var(--font-serif); font-size: 1.15rem; }
    .lb-counter {
      font-family: var(--font-sans); font-size: .8rem; font-weight: 600;
      letter-spacing: .18em; color: rgba(252,237,218,0.6);
    }
    @media (max-width: 600px) {
      .lb-btn { width: 44px; height: 44px; }
      .lb-prev { left: .5rem; } .lb-next { right: .5rem; }
      .lb-caption { font-size: 1rem; }
    }
