/* baublog.hurtig.ai — Styles */

html { scroll-behavior: smooth; }

.cuneiform { font-family: 'Noto Sans Cuneiform', serif; }

.kiln-gradient {
  background: linear-gradient(135deg, #a03f28 0%, #c0573e 100%);
}

/* Grain overlay */
.grain-overlay {
  position: fixed;
  inset: -50%;
  width: 200%;
  height: 200%;
  pointer-events: none;
  z-index: 1;
  opacity: 0.035;
  background-image: repeating-conic-gradient(#8a726c 0% 25%, transparent 0% 50%);
  background-size: 3px 3px;
}

/* ── Tag pills ────────────────────────────────── */
.tag-pill {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.tag-pill:not(.active) {
  background: #f4ede1;
  color: #56423d;
}

.tag-pill:hover {
  background: #ddc0ba;
  color: #1e1b14;
}

.tag-pill.active {
  background: #a03f28;
  color: #fff8ef;
}

/* ── Post cards ───────────────────────────────── */
.post-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.post-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(30, 27, 20, 0.08);
}

/* ── Lightbox ─────────────────────────────────── */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(30, 27, 20, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.lightbox-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-overlay img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 0.5rem;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.4);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 248, 239, 0.15);
  border: none;
  color: #fff8ef;
  font-size: 2rem;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.lightbox-nav:hover {
  background: rgba(255, 248, 239, 0.3);
}

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: rgba(255, 248, 239, 0.15);
  border: none;
  color: #fff8ef;
  font-size: 1.5rem;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.lightbox-close:hover {
  background: rgba(255, 248, 239, 0.3);
}

.lightbox-counter {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 248, 239, 0.6);
  font-size: 0.875rem;
  font-family: 'Manrope', sans-serif;
}

/* ── Photo grid in posts ──────────────────────── */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 1rem;
}

@media (min-width: 640px) {
  .photo-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .photo-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.photo-grid img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.photo-grid img:hover {
  transform: scale(1.02);
  opacity: 0.9;
}
