/* ===== Base layout ===== */
:root {
    --page-max: 1200px;
    --gap: 1rem;
  }
  
  * { box-sizing: border-box; }
  html, body { height: 100%; }
  body {
    margin: 0;
    font-family: Inter, system-ui, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
    background: #0e0f12;
    color: #e7e9ee;
  }
  
  /* Page container helpers (use if you want) */
  .container {
    max-width: var(--page-max);
    margin-inline: auto;
    padding: 1.25rem;
  }
  
  /* ===== Gallery grid ===== */
  .gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: var(--gap);
  }
  
  .gallery__item {
    display: block;
    border: 0;
    padding: 0;
    background: transparent;
    cursor: zoom-in;
    outline: none;
    text-decoration: none;
  }
  
  .gallery__img {
    width: 100%;
    aspect-ratio: 1 / 1;  /* square tiles */
    object-fit: cover;     /* crop edges to fill square */
    display: block;
    border-radius: 8px;
  }
  
  /* ===== Lightbox ===== */
  .lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.9);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 2rem;
  }
  
  .lightbox--open { display: flex; }
  
  .lightbox__img {
    max-width: 100%;
    max-height: 100%;
    display: block;
    border-radius: 10px;
  }
  
  .lightbox__close {
    position: absolute;
    top: 1rem;
    right: 1.25rem;
    font-size: 2rem;
    line-height: 1;
    color: #fff;
    cursor: pointer;
    user-select: none;
  }
  