  :root {
    --bg: #0b0b0e;
    --overlay: rgba(0,0,0,.8);
    --accent: #7c9fff;
    --radius: 18px;
  }

  /* Demo gallery */
  .gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 14px;
    max-width: 1100px;
    margin: 40px auto;
    padding: 0 16px;
  }
  .gallery a {
    display: block;
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0,0,0,.15);
    transition: transform .2s ease, box-shadow .2s ease;
    background: #111;
  }
  .gallery a:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
  .gallery a:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(0,0,0,.2); }
  .gallery img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    display: block;
  }

  /* Lightbox overlay */
  .lightbox {
    position: fixed;
    inset: 0;
    background: var(--overlay);
    display: grid;
    place-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease;
    z-index: 9999;
  }
  .lightbox[aria-hidden="false"] {
    opacity: 1;
    pointer-events: auto;
  }

  /* Dialog/content */
  .lightbox__dialog {
    position: relative;
    max-width: min(92vw, 1100px);
    max-height: 88vh;
    display: grid;
    grid-template-rows: 1fr auto;
    gap: 10px;
    border-radius: var(--radius);
    overflow: hidden;
    background: #000;
    transform: scale(.96);
    transition: transform .2s ease;
  }
  .lightbox[aria-hidden="false"] .lightbox__dialog { transform: scale(1); }

  .lightbox__media {
    position: relative;
    background: #000;
  }
  .lightbox__img {
    display: block;
    max-width: 100%;
    max-height: 88vh;
    object-fit: contain;
    margin: auto;
  }

  .lightbox__caption {
    color: #eaeaea;
    padding: 10px 14px;
    font: 500 14px/1.35 system-ui, -apple-system, Segoe UI, Roboto, Inter, Arial, sans-serif;
    background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
  }

  /* Controls */
  .lightbox__btn {
    position: absolute;
    top: 10px;
    height: 42px;
    width: 42px;
    border: 0;
    border-radius: 50%;
    background: rgba(20,20,26,.6);
    color: #fff;
    display: grid;
    place-items: center;
    cursor: pointer;
    backdrop-filter: blur(4px);
  }
  .lightbox__btn:hover { background: rgba(20,20,26,.8); }
  .lightbox__btn:focus-visible { outline: 3px solid var(--accent); }

  .lightbox__close { right: 10px; }
  .lightbox__prev, .lightbox__next { top: 50%; transform: translateY(-50%); }
  .lightbox__prev { left: 10px; }
  .lightbox__next { right: 10px; }

  /* Icons */
  .icon { width: 22px; height: 22px; pointer-events: none; }

  /* Hide scrollbar bump on body when open */
  body.lb-open { overflow: hidden; }