:root {
  --bg: #ffffff;
  --fg: #1a1a1a;
  --muted: #8a8a8a;
  --gap: 10px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  height: 100vh;
  min-height: 480px;
  background-size: cover;
  background-position: center 40%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,.28), rgba(0,0,0,.15) 40%, rgba(0,0,0,.45));
}
.hero-content {
  position: relative;
  color: #fff;
  padding: 2rem;
  text-shadow: 0 1px 20px rgba(0,0,0,.35);
}
.eyebrow {
  font-size: clamp(.7rem, 1.4vw, .85rem);
  letter-spacing: .35em;
  text-transform: uppercase;
  font-weight: 400;
  margin: 0 0 1.2rem;
  opacity: .92;
}
.hero-content h1 {
  font-weight: 200;
  font-size: clamp(2rem, 6vw, 4.5rem);
  letter-spacing: .12em;
  text-transform: uppercase;
  margin: 0;
  line-height: 1.15;
}
.scroll-down {
  position: absolute;
  bottom: 2.2rem;
  left: 50%;
  transform: translateX(-50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.7);
  background: transparent;
  color: #fff;
  font-size: 1.1rem;
  cursor: pointer;
  transition: background .2s, transform .2s;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: bob 2.4s ease-in-out infinite;
}
.scroll-down:hover { background: rgba(255,255,255,.18); }
@keyframes bob {
  0%,100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(7px); }
}

/* ---------- Bar ---------- */
.bar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem clamp(1rem, 3vw, 2.5rem);
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #eee;
}
.bar .count {
  font-size: .9rem;
  letter-spacing: .05em;
  color: var(--muted);
}
.btn {
  font: inherit;
  font-size: .85rem;
  letter-spacing: .05em;
  padding: .55rem 1.1rem;
  border: 1px solid var(--fg);
  background: var(--fg);
  color: #fff;
  border-radius: 999px;
  cursor: pointer;
  transition: opacity .2s;
  white-space: nowrap;
}
.btn:hover { opacity: .82; }
.btn:disabled { opacity: .5; cursor: default; }

/* ---------- Grid (justified rows) ---------- */
.grid {
  padding: var(--gap);
}
.row {
  display: flex;
  gap: var(--gap);
  margin-bottom: var(--gap);
}
.grid .cell {
  flex: 0 0 auto;
  position: relative;
  cursor: zoom-in;
  background: #f3f3f3;
  overflow: hidden;
  border-radius: 2px;
}
.grid img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease, filter .3s;
}
.grid .cell:hover img { transform: scale(1.03); }
.cell .dl {
  position: absolute;
  bottom: 8px;
  left: 8px;
  background: rgba(0,0,0,.6);
  color: #fff;
  border-radius: 4px;
  padding: 4px 8px;
  font-size: .72rem;
  text-decoration: none;
  opacity: 0;
  transition: opacity .2s;
}
.grid .cell:hover .dl { opacity: 1; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(15,15,15,.96);
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox[hidden] { display: none; }
.lightbox img {
  max-width: 92vw;
  max-height: 86vh;
  object-fit: contain;
  box-shadow: 0 10px 60px rgba(0,0,0,.6);
}
.lb-btn {
  position: absolute;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  opacity: .8;
  transition: opacity .2s;
  user-select: none;
}
.lb-btn:hover { opacity: 1; }
.lb-close { top: 1rem; right: 1.3rem; font-size: 2rem; }
.lb-prev, .lb-next { top: 50%; transform: translateY(-50%); font-size: 2.6rem; padding: 1rem; }
.lb-prev { left: .5rem; }
.lb-next { right: .5rem; }
.lb-bottom {
  position: absolute;
  bottom: 1.1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 1.4rem;
  color: #fff;
  font-size: .85rem;
  letter-spacing: .05em;
}
.lb-bottom a { color: #fff; }
.lb-count { opacity: .7; }

/* ---------- Footer ---------- */
.site-footer {
  text-align: center;
  padding: 3rem 1rem 4rem;
  color: var(--muted);
  font-size: .85rem;
  letter-spacing: .15em;
  text-transform: uppercase;
}

/* ---------- Photobooth button ---------- */
.photobooth {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .7rem;
  width: max-content;
  max-width: 90%;
  margin: 3rem auto 4.5rem;
  padding: 1.6rem 2.4rem;
  border: 2px solid var(--fg);
  border-radius: 16px;
  background: #fff;
  color: var(--fg);
  text-decoration: none;
  text-align: center;
  transition: transform .2s ease, background .2s, color .2s, box-shadow .2s;
}
.photobooth:hover {
  transform: translateY(-3px);
  background: var(--fg);
  color: #fff;
  box-shadow: 0 8px 24px rgba(0,0,0,.18);
}
.photobooth .pb-cam { font-size: 2rem; line-height: 1; }
.photobooth .pb-strip { display: flex; gap: 5px; }
.photobooth .pb-strip i {
  width: 20px; height: 26px;
  background: #dcdcdc;
  border-radius: 3px;
  display: block;
}
.photobooth:hover .pb-strip i { background: rgba(255,255,255,.55); }
.photobooth .pb-text {
  letter-spacing: .18em;
  text-transform: uppercase;
  font-size: .85rem;
}
.photobooth .pb-sub { font-size: .75rem; color: var(--muted); letter-spacing: .05em; }
.photobooth:hover .pb-sub { color: rgba(255,255,255,.7); }

/* Back link on sub-albums */
.bar .back {
  color: var(--fg);
  text-decoration: none;
  font-size: .9rem;
  letter-spacing: .05em;
}
.bar .back:hover { text-decoration: underline; }

/* ---------- Progress ---------- */
.progress {
  position: fixed;
  bottom: 1.2rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--fg);
  color: #fff;
  padding: .6rem 1.2rem;
  border-radius: 999px;
  font-size: .85rem;
  z-index: 60;
}
.progress[hidden] { display: none; }

@media (max-width: 600px) {
  .lb-prev, .lb-next { font-size: 2rem; padding: .5rem; }
}
