/* ============================================================
   I BEAN TROLLED — gallery.css
   Styles specific to gallery.html only
   ============================================================ */

.page-header { position: relative; z-index: 1; text-align: center; padding: 130px 24px 60px; }
.page-title { font-family: 'Cinzel Decorative',serif; font-size: clamp(1.4rem,5vw,2.5rem); color: var(--text); text-shadow: 0 0 40px rgba(192,132,252,.5); margin-bottom: 12px; }
.page-sub { font-style: italic; color: var(--muted); font-size: 1rem; }
.find-count-badge { display: inline-block; margin-top: 16px; font-family: 'Space Mono',monospace; font-size: .65rem; letter-spacing: .15em; color: var(--t-green); border: 1px solid rgba(57,255,20,.3); border-radius: 50px; padding: 6px 18px; }
.gallery-header-troll { width: 140px; height: auto; margin: 0 auto 20px; display: block; filter: drop-shadow(0 0 30px rgba(255,105,180,.3)); animation: float 3s ease-in-out infinite; }

.gallery-grid { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(auto-fill,minmax(280px,1fr)); gap: 20px; max-width: 1100px; margin: 0 auto; padding: 0 24px 80px; }

.gallery-card { background: rgba(255,255,255,.03); border-radius: 16px; overflow: hidden; border: 1px solid rgba(255,255,255,.08); transition: transform .3s, box-shadow .3s; cursor: pointer; }
.gallery-card:hover { transform: translateY(-4px); }
.gallery-card-photo { width: 100%; height: 220px; object-fit: cover; display: block; }
.gallery-card-no-photo { width: 100%; height: 220px; display: flex; align-items: center; justify-content: center; font-size: 3rem; background: rgba(255,255,255,.02); }
.gallery-card-body { padding: 16px; }
.gallery-card-num { font-family: 'Cinzel Decorative',serif; font-size: .75rem; letter-spacing: .15em; padding: 4px 10px; border-radius: 6px; display: inline-block; margin-bottom: 10px; }
.gallery-card-location { font-family: 'Space Mono',monospace; font-size: .6rem; color: var(--muted); letter-spacing: .1em; margin-bottom: 8px; }
.gallery-card-message { font-style: italic; font-size: .85rem; line-height: 1.6; color: var(--text); }
.gallery-card-date { font-family: 'Space Mono',monospace; font-size: .58rem; color: var(--muted); margin-top: 10px; }

.empty-state { position: relative; z-index: 1; text-align: center; padding: 80px 24px; font-style: italic; color: var(--muted); }

/* Lightbox */
.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,.9); z-index: 200; display: flex; align-items: center; justify-content: center; padding: 24px; opacity: 0; pointer-events: none; transition: opacity .3s; }
.lightbox.visible { opacity: 1; pointer-events: all; }
.lightbox-inner { max-width: 560px; width: 100%; position: relative; }
.lightbox-close { position: absolute; top: -40px; right: 0; background: none; border: none; color: var(--muted); font-size: 1.5rem; cursor: pointer; }
.lightbox-close:hover { color: var(--text); }
.lightbox-img { width: 100%; border-radius: 16px; max-height: 60vh; object-fit: contain; display: block; margin-bottom: 16px; }
.lightbox-info { background: rgba(255,255,255,.04); border-radius: 12px; padding: 16px 20px; }
.lightbox-num { font-family: 'Cinzel Decorative',serif; font-size: .8rem; letter-spacing: .15em; padding: 4px 12px; border-radius: 6px; display: inline-block; margin-bottom: 10px; }
.lightbox-location { font-family: 'Space Mono',monospace; font-size: .65rem; color: var(--muted); margin-bottom: 8px; }
.lightbox-message { font-style: italic; font-size: .95rem; line-height: 1.7; color: var(--text); }
.lightbox-date { font-family: 'Space Mono',monospace; font-size: .6rem; color: var(--muted); margin-top: 8px; }
/* ============================================================
   ARCHIVE ADDITIONS — append to gallery.css
   Badges for hide/rehide/find, photo counter, lightbox nav arrows
   ============================================================ */

.gallery-card-photo-wrap {
  position: relative;
}

.gallery-card-multi {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0,0,0,.6);
  color: #fff;
  font-family: 'Space Mono', monospace;
  font-size: .7rem;
  padding: 2px 8px;
  border-radius: 10px;
  letter-spacing: .05em;
}

.gallery-card-badge {
  display: inline-block;
  font-family: 'Space Mono', monospace;
  font-size: .65rem;
  letter-spacing: .06em;
  padding: 3px 10px;
  border-radius: 12px;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.badge-hide {
  background: rgba(218,165,32,.15);
  border: 1px solid rgba(218,165,32,.4);
  color: #DAA520;
}

.badge-rehide {
  background: rgba(139,0,255,.15);
  border: 1px solid rgba(139,0,255,.4);
  color: #8B00FF;
}

.badge-find {
  background: rgba(255,224,0,.15);
  border: 1px solid rgba(255,224,0,.4);
  color: #FFE000;
}

/* Lightbox nav arrows */
.lightbox-nav {
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 10px;
}

.lightbox-arrow {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.2);
  color: #fff;
  font-size: 1.4rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  line-height: 1;
  transition: background .2s ease;
}

.lightbox-arrow:hover {
  background: rgba(255,255,255,.18);
}

.lightbox-counter {
  font-family: 'Space Mono', monospace;
  font-size: .75rem;
  opacity: .7;
  min-width: 40px;
  text-align: center;
}

/* Pagination */
.gallery-pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin: 40px auto;
  max-width: 900px;
}

.gallery-page-btn {
  font-family: 'Space Mono', monospace;
  font-size: .85rem;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.15);
  color: #fff;
  padding: 6px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease;
}

.gallery-page-btn:hover:not(:disabled) {
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.3);
}

.gallery-page-btn.active {
  background: rgba(255,224,0,.18);
  border-color: rgba(255,224,0,.5);
  color: #FFE000;
}

.gallery-page-btn:disabled {
  opacity: .3;
  cursor: default;
}
