/* ─── Variables ───────────────────────────────────────────────── */
:root {
  --bg:          #F3F2EF;
  --text:        #1A1A1A;
  --muted:       #909090;
  --footer-bg:   #161616;
  --footer-text: #ffffff;
  --pad:         72px;
  --gap:         12px;
  --card-w:      220px;
  --radius:      0;
  --ease:        0.2s ease;
  --font-sans:   'Poppins', system-ui, sans-serif;
  --font-serif:  'Source Serif 4', Georgia, serif;
}

/* ─── Reset ───────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; }
body {
  font-family: var(--font-serif);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
img { display: block; }
main { flex: 1; }

/* ─── Container ───────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--pad);
}

/* ─── Typography ──────────────────────────────────────────────── */
h1 {
  font-family: var(--font-sans);
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

h2, h3 {
  font-family: var(--font-sans);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.overline {
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 400;
  color: var(--muted);
  margin-bottom: 10px;
  letter-spacing: 0.01em;
}

.intro-text {
  max-width: 520px;
  margin-top: 22px;
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text);
}

.back-link {
  font-family: var(--font-sans);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8125rem;
  color: var(--muted);
  margin-bottom: 18px;
  transition: color var(--ease);
}
.back-link:hover { color: var(--text); }

/* ─── Page Header ─────────────────────────────────────────────── */
.page-header { padding: 64px 0 48px; }

/* ─── Strip (horizontal scroll) ──────────────────────────────── */
.strip-section { padding: 16px 0 72px; }

/* strip-outer takes the role of .container but without padding —
   the scroll area itself carries the padding so cards align with the headline */
.strip-outer {
  position: relative;
  max-width: 1280px;
  margin: 0 auto;
}

.strip-scroll {
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-snap-type: x mandatory;
  padding: 0 var(--pad);
}
.strip-scroll::-webkit-scrollbar { display: none; }

.strip-track {
  display: flex;
  gap: var(--gap);
  padding: 8px 0;
  width: max-content;
}

/* ─── Strip Arrows ────────────────────────────────────────────── */
/* Arrows sit in the padding zone, left of the first card */
.strip-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border: 1px solid rgba(0,0,0,0.14);
  border-radius: 50%;
  background: var(--bg);
  color: var(--text);
  font-size: 17px;
  display: none; /* JS adds .visible when strip is scrollable */
  align-items: center;
  justify-content: center;
  transition: background var(--ease), opacity var(--ease), border-color var(--ease);
  line-height: 1;
  z-index: 2;
}
.strip-arrow.visible { display: flex; }
.strip-arrow:hover { background: #E8E7E4; border-color: rgba(0,0,0,0.22); }
.strip-arrow:disabled { opacity: 0.25; pointer-events: none; }

/* Place arrows centred in the --pad zone on each side */
.strip-arrow.prev { left:  calc(var(--pad) / 2 - 20px); }
.strip-arrow.next { right: calc(var(--pad) / 2 - 20px); }

/* ─── Album Card ──────────────────────────────────────────────── */
.album-card {
  flex-shrink: 0;
  width: var(--card-w);
  scroll-snap-align: start;
  display: block;
  transition: transform var(--ease);
}
.album-card:hover { transform: translateY(-3px); }

.card-image {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: var(--radius);
  background: #E3D4D1;
}
.card-image-placeholder {
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius);
  background: #E3D4D1;
}

.card-body { padding: 12px 2px 0; }
.card-title { font-family: var(--font-sans); font-size: 0.9375rem; font-weight: 600; line-height: 1.25; }
.card-year  { font-family: var(--font-sans); font-size: 0.9375rem; font-weight: 400; color: var(--text); margin-top: 1px; }

/* ─── Album Page ──────────────────────────────────────────────── */
.album-title { font-family: var(--font-sans); line-height: 1.05; }
.album-title strong { font-weight: 600; }
.album-title .year  { font-weight: 300; }

/* ─── Photo Grid ──────────────────────────────────────────────── */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 220px;
  grid-auto-flow: row dense; /* fills gaps left by tall items */
  gap: 8px;
  padding-bottom: 72px;
}

.photo-grid-item {
  overflow: hidden;
  cursor: pointer;
}
.photo-grid-item.tall {
  grid-row: span 2; /* double-height cell */
}
.photo-grid-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.3s ease, opacity 0.2s ease;
}
.photo-grid-item:hover img { transform: scale(1.025); opacity: 0.88; }

/* ─── Lightbox ────────────────────────────────────────────────── */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(10,10,10,0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.lightbox.open {
  opacity: 1;
  pointer-events: all;
}
.lightbox-img-wrap {
  max-width: min(90vw, 1100px);
  max-height: 90vh;
}
.lightbox-img-wrap img {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
}
.lb-btn {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.08);
  color: #fff;
  font-size: 19px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1001;
  transition: background 0.2s;
}
.lb-btn:hover { background: rgba(255,255,255,0.18); }
.lb-btn:disabled { opacity: 0.2; pointer-events: none; }
.lb-btn.prev { left: 24px; }
.lb-btn.next { right: 24px; }

.lb-close {
  position: fixed;
  top: 20px;
  right: 24px;
  background: none;
  border: none;
  color: rgba(255,255,255,0.7);
  font-size: 30px;
  line-height: 1;
  z-index: 1001;
  padding: 4px 8px;
  transition: color 0.2s;
}
.lb-close:hover { color: #fff; }

.lb-counter {
  position: fixed;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.4);
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  z-index: 1001;
}

/* ─── Imprint ─────────────────────────────────────────────────── */
.imprint-content {
  max-width: 620px;
  padding-bottom: 80px;
}
.imprint-content h2 {
  font-family: var(--font-sans);
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-top: 44px;
  margin-bottom: 10px;
}
.imprint-content h2:first-child { margin-top: 0; }
.imprint-content p  { font-size: 0.9375rem; margin-bottom: 12px; color: var(--text); }
.imprint-content a  { border-bottom: 1px solid rgba(26,26,26,0.3); transition: border-color var(--ease); }
.imprint-content a:hover { border-color: var(--text); }

/* ─── Footer ──────────────────────────────────────────────────── */
footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  padding: 52px 0;
  margin-top: auto;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 32px;
}
.footer-name  { font-size: 0.9375rem; font-weight: 700; color: #fff; margin-bottom: 4px; }
.footer-place { font-size: 0.9375rem; color: #fff; }
.footer-links { display: flex; flex-direction: column; gap: 6px; }
.footer-links a {
  font-size: 0.9375rem;
  color: #fff;
  transition: opacity var(--ease);
}
.footer-links a:hover { opacity: 0.7; }

/* ─── Responsive ──────────────────────────────────────────────── */
@media (max-width: 960px) {
  :root { --pad: 32px; --card-w: 190px; }
  .photo-grid { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 180px; }
  /* Not enough padding for arrows to sit outside — hide them */
  .strip-arrow { display: none !important; }
}

@media (max-width: 640px) {
  :root { --pad: 20px; }

  /* Strip: vertical full-width stack on mobile */
  .strip-scroll { overflow-x: visible; scroll-snap-type: none; padding: 0; }
  .strip-track  {
    flex-direction: column;
    width: 100%;
    padding: 0 var(--pad);
    gap: 16px;
  }
  .album-card { width: 100%; }
  .card-image,
  .card-image-placeholder { aspect-ratio: 16 / 9; }

  /* Photo grid: 2 columns on mobile */
  .photo-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr 1fr; row-gap: 24px; }
  .footer-grid > div:last-child { grid-column: 1 / -1; }

  h1 { font-size: 2.75rem; }
}
