/* ── Edit everything below to style your gallery ── */
@font-face {
  font-family: 'daydream';
  src: url('../../fonts/Daydream.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'soda';
  src: url('../../fonts/KiwiSoda.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.2; }
}

@keyframes sizepulse {
  0%, 100% { transform: scale(1); }
  50%       { transform: scale(0.8); }
}

  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

  body { 
    font-family: soda; 
    background-image: url('../../images/clouds.png'),linear-gradient(rgba(140, 185, 253, 0.678), rgba(19, 0, 16, 0.76));  
    background-size: 100%;
    color: #111; 
    }

#star-container {
  position: relative;
  width: 100%;
  min-height: 100vh;
  overflow: hidden;
  z-index: 0;
}

#app {
  position: relative;
  z-index: 1;
}

.star {
  position: absolute;
  width: 10px;
  height: 10px;
  background-color: rgba(255, 255, 255, 0.9);
  pointer-events: none;
  border-radius: 3px;
}

  @keyframes twinkle {
    0%   { opacity: 1; }
    50%  { opacity: 0.05; }
    100% { opacity: 1; }
  }



  /* Header */
  .header {
    padding: 3rem;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    border-bottom: 3px solid #5b36a5;
    background-color: #eeeeee7a;

  }
  .header h1   { font-size: 3rem; font-weight: 30; 
    color: #5b36a5;
    text-align: center;
    letter-spacing: 7px;
    justify-items: center;
  }
  .header span { color: #aaa; font-size: 0.85rem; }

  /* Grid */
  .grid {
    padding: 10rem;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(600px, 1fr));
    gap: 8px;
    align-items: start;
    z-index: 10;
  }

  /* Masonry alternative using CSS columns.
     Add the `masonry` class to the grid element to enable. */
  .grid.masonry {
    display: block;
    column-width: 600px;
    column-gap: 35px;
  }
  
  .grid.masonry .card {
    display: inline-block;
    width: 100%;
    margin: 0 0 35px;
    break-inside: avoid;
    border-radius: 15px;
  }

  .grid.masonry .card img {
    width: 100%;
    height: auto;
    display: block;
  }
  .card { overflow: hidden; cursor: pointer; background: #f0f0f0; align-self: start; }
  .card img { width: 100%; height: auto; display: block; }
  .card:hover img { opacity: 0.85; }

  /* Footer */
  .footer {
    padding: 1.5rem 2rem;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: flex-end;
  }
  .next-btn {
    padding: 0.6rem 1.4rem;
    background: #111;
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
  }
  .next-btn:hover { background: #333; }

  /* Lightbox */
  .lb {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.9);
    z-index: 99;
    align-items: center;
    justify-content: center;
  }
  .lb.open { display: flex; }

  .lb-bg { position: absolute; inset: 0; cursor: zoom-out; }

  .lb img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    position: relative;
    z-index: 1;
    pointer-events: none;
  }

  .lb-prev, .lb-next {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: 1px solid rgba(255,255,255,0.25);
    color: #fff;
    width: 44px;
    height: 44px;
    cursor: pointer;
    font-size: 1.2rem;
    z-index: 2;
  }
  .lb-prev { left: 1rem; }
  .lb-next { right: 1rem; }

  .lb-close {
    position: fixed;
    top: 1rem;
    right: 1rem;
    background: none;
    border: 1px solid rgba(255,255,255,0.25);
    color: #fff;
    width: 36px;
    height: 36px;
    cursor: pointer;
    font-size: 1rem;
    z-index: 2;
  }

  .lb-caption {
    position: fixed;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,0.4);
    font-size: 0.75rem;
    z-index: 2;
    white-space: nowrap;
  }

  #error { padding: 2rem; color: #c00; }