:root {
  --bg: #faf6ef;
  --card: #ffffff;
  --text: #181512;
  --muted: #5f574c;
  --stroke: #e5d8c6;
  --accent: #b85d2b;
  --accent-soft: #ffe0c7;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Space Grotesk", "IBM Plex Sans JP", sans-serif;
  background: linear-gradient(180deg, #fdf9f2 0%, #f5ecdf 100%);
  color: var(--text);
  min-height: 100vh;
}

.gallery-shell {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px 16px 40px;
}

.gallery-header {
  margin-bottom: 20px;
}

.eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  font-size: 0.75rem;
}

h1 {
  margin: 6px 0 6px;
  font-size: 1.7rem;
  line-height: 1.1;
}

#count {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

/* ── Photo grid ───────────────────────────────── */

.photo-grid {
  columns: 4 220px;
  gap: 10px;
}

.gallery-thumb {
  position: relative;
  break-inside: avoid;
  margin-bottom: 10px;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  background: var(--card);
  border: 1px solid var(--stroke);
}

.gallery-thumb img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 0.25s ease;
}

.gallery-thumb:hover img {
  transform: scale(1.03);
}

.gallery-thumb-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 6, 2, 0.78) 0%, transparent 55%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 10px 12px;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.gallery-thumb:hover .gallery-thumb-overlay {
  opacity: 1;
}

.gallery-thumb-shop {
  font-size: 0.88rem;
  font-weight: 600;
  color: #fff;
  line-height: 1.2;
}

.gallery-thumb-zone {
  font-size: 0.72rem;
  color: var(--accent-soft);
  margin-top: 2px;
}

.empty-state {
  text-align: center;
  padding: 48px 16px;
  color: var(--muted);
}

/* ── Lightbox ─────────────────────────────────── */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox[hidden] {
  display: none;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 6, 2, 0.88);
}

.lightbox-content {
  position: relative;
  z-index: 1;
  max-width: min(92vw, 900px);
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 78vh;
  border-radius: 10px;
  object-fit: contain;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
  position: absolute;
  top: -14px;
  right: -14px;
  background: var(--card);
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.lightbox-caption {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.lightbox-shop-name {
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
}

.lightbox-shop-name:hover {
  text-decoration: underline;
  color: var(--accent-soft);
}

.lightbox-shop-zone {
  font-size: 0.78rem;
  color: var(--accent-soft);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
