/* ── Gallery ── */
.gallery-header {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 24px; margin-bottom: 32px;
}
.gallery-header > div > h2 {
  font-size: clamp(2rem, 3vw, 3rem);
}
.filter-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.filter-chip {
  min-height: 38px; padding: 0 16px; border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--bg-card); color: var(--muted);
  font-family: var(--font-body); font-size: 0.85rem; letter-spacing: 0.04em;
  cursor: pointer;
  transition: background var(--dur-short) ease, color var(--dur-short) ease, border-color var(--dur-short) ease;
}
.filter-chip:hover { color: var(--text); }
.filter-chip.active {
  background: var(--accent-btn); color: var(--accent-text); border-color: transparent;
}
[data-theme="dark"] .filter-chip.active {
  background: var(--accent); color: #120f0a;
}
.gallery-grid { columns: 3 280px; column-gap: 16px; }
.gallery-card {
  break-inside: avoid; margin-bottom: 16px; overflow: hidden;
  background: var(--bg-card); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-card);
  cursor: pointer;
  transition: transform var(--dur-long) ease, box-shadow var(--dur-long) ease;
}
.gallery-card:hover { transform: rotate(0.5deg) translateY(-4px); box-shadow: var(--shadow-hover); }
.gallery-card img { display: block; width: 100%; height: auto; }
.gallery-card-meta { padding: 14px 16px 16px; }
.gallery-card-theme {
  margin: 0 0 4px; font-size: 0.76rem;
  text-transform: uppercase; letter-spacing: 0.10em;
  color: var(--accent); font-weight: 500;
}
.gallery-card-title { margin: 0 0 5px; font-size: 0.92rem; font-weight: 600; color: var(--text); }
.gallery-card-exif {
  margin: 0; font-size: 0.76rem; color: var(--faint);
  letter-spacing: 0.04em; font-variant-numeric: tabular-nums;
}

/* ── About ── */
.about-band {
  background: var(--bg-card); border: 1px solid var(--line);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-card);
  padding: 36px; display: grid;
  grid-template-columns: 0.72fr 1.28fr; gap: 32px;
  align-items: start;
}
.about-band > div > h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); }
.about-right { display: flex; flex-direction: column; gap: 20px; }
.about-copy { font-size: 1.0rem; color: var(--muted); line-height: 1.75; margin: 0; }
.other-side-link {
  display: flex; flex-direction: column; gap: 5px;
  padding: 16px 18px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--bg-card-alt);
  transition: border-color var(--dur-mid) ease, transform var(--dur-long) ease, box-shadow var(--dur-long) ease;
}
.other-side-link:hover {
  border-color: var(--accent);
  transform: rotate(0.5deg) translateY(-2px);
  box-shadow: var(--shadow-hover);
}
.other-side-label {
  font-size: 0.76rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--accent);
}
.other-side-desc { font-size: 0.9rem; color: var(--muted); line-height: 1.5; }

/* ── Lightbox ── */
.lightbox {
  width: min(1200px, calc(100vw - 24px));
  border: 1px solid var(--line-strong); padding: 0;
  border-radius: var(--radius-lg);
  background: var(--bg); color: var(--text);
  box-shadow: 0 40px 80px rgba(28, 26, 22, 0.30);
}
[data-theme="dark"] .lightbox { box-shadow: 0 40px 80px rgba(0, 0, 0, 0.60); }
.lightbox::backdrop { background: rgba(28, 26, 22, 0.72); }
[data-theme="dark"] .lightbox::backdrop { background: rgba(4, 3, 2, 0.82); }
.lightbox-close {
  position: absolute; top: 14px; right: 14px;
  width: 32px; height: 32px; border: 1px solid var(--line-strong);
  border-radius: 50%; background: var(--bg-card); color: var(--muted);
  font-size: 1.1rem; cursor: pointer;
  transition: background var(--dur-short) ease, color var(--dur-short) ease;
  display: grid; place-items: center;
}
.lightbox-close:hover { background: var(--bg-card-alt); color: var(--text); }
.lightbox-frame { display: grid; grid-template-columns: minmax(0, 1fr); }
.lightbox-img-wrap { position: relative; }
.lightbox img {
  display: block; width: 100%; max-height: 78vh; object-fit: contain;
  background: var(--bg-card-alt); pointer-events: none; user-select: none;
  -webkit-user-drag: none;
}
.lightbox-watermark {
  position: absolute; bottom: 10px; right: 14px;
  font-size: 0.72rem; color: rgba(255,255,255,0.45);
  letter-spacing: 0.06em; pointer-events: none;
  text-shadow: 0 1px 3px rgba(0,0,0,0.6);
}
.lightbox-meta { padding: 18px 24px 22px; }
.lightbox-theme {
  margin: 0 0 6px; color: var(--accent);
  text-transform: uppercase; letter-spacing: 0.10em;
  font-size: 0.76rem; font-weight: 500;
}
#lightbox-title {
  font-family: var(--font-display); font-size: 1.4rem; font-weight: 400; margin: 0 0 12px;
}
.lightbox-exif-row {
  display: flex; flex-direction: column; gap: 3px;
  padding: 12px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  margin-bottom: 12px;
}
.lightbox-camera {
  margin: 0; font-size: 0.82rem; color: var(--muted); font-weight: 500;
}
.lightbox-exif {
  margin: 0; font-size: 0.82rem; color: var(--faint);
  font-variant-numeric: tabular-nums; letter-spacing: 0.04em;
}
.lightbox-copyright {
  margin: 0; font-size: 0.75rem; color: var(--faint); line-height: 1.5;
}

/* ── Intersection Observer lazy reveal ── */
.gallery-card.io-hidden {
  opacity: 0;
  transform: translateY(24px);
}
.gallery-card.in-view {
  opacity: 1;
  transform: translateY(0);
  transition: opacity var(--dur-mid) ease, transform var(--dur-mid) ease;
}

/* ── Footer ── */
.site-footer { padding: 32px 0 48px; border-top: 1px solid var(--line); }
.footer-inner {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 24px; flex-wrap: wrap;
}
.footer-left { display: flex; flex-direction: column; gap: 4px; }
.site-footer p { margin: 0; font-size: 0.85rem; color: var(--faint); }
.footer-note { font-size: 0.76rem !important; color: var(--faint); max-width: 480px; line-height: 1.5; }
.footer-links { display: flex; align-items: center; gap: 12px; font-size: 0.85rem; flex-shrink: 0; padding-top: 2px; }
.footer-links a { color: var(--muted); transition: color var(--dur-short) ease; }
.footer-links a:hover { color: var(--text); }
.footer-links span { color: var(--faint); }

/* ── Responsive ── */
@media (max-width: 1080px) {
  .hero { grid-template-columns: 1fr; padding: 48px 0 56px; gap: 40px; }
  .hero-stack { max-width: 440px; }
  .theme-grid { grid-template-columns: repeat(2, 1fr); }
  .about-band { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  :root { --w: min(100vw - 32px, 1280px); }
  .site-header { flex-wrap: wrap; gap: 12px; padding: 16px 0; }
  .main-nav { order: 3; width: 100%; gap: 16px; flex-wrap: wrap; }
  .header-links { order: 2; }
  .theme-toggle { margin-left: auto; }
  .gallery-header { flex-direction: column; align-items: flex-start; }
  .hero-metrics { grid-template-columns: 1fr 1fr; }
  .hero-stack { grid-template-columns: 1fr 1fr; max-width: 100%; }
  .hero-stack figure:nth-child(2) { transform: none; }
  .hero-stack figure:nth-child(2):hover { transform: rotate(1deg); }
}

@media (max-width: 560px) {
  :root { --w: min(100vw - 20px, 1280px); }
  .hero-metrics { grid-template-columns: 1fr; }
  .button { width: 100%; }
  .hero-actions { width: 100%; }
  .gallery-grid { columns: 1; }
  .theme-grid { grid-template-columns: 1fr; }
}