:root {
  --bg: #f5f5f5;
  --text: #1e1e1e;
  --muted: #666;
  --accent: #333;
  --white: #fff;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Lato", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
}

a { color: inherit; text-decoration: none; }

.cover-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background-size: cover;
  background-position: center;
  position: relative;
}

.cover-page::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
}

.cover-card {
  position: relative;
  z-index: 1;
  text-align: center;
  color: var(--white);
  padding: 2rem;
}

.cover-card h1 {
  font-family: "Raleway", Georgia, serif;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  margin: 0 0 0.5rem;
  letter-spacing: 0.04em;
}

.cover-card p {
  margin: 0 0 2rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.85rem;
}

.cover-card button,
.nav-bar a,
.lightbox button {
  border: 0;
  background: var(--accent);
  color: var(--white);
  padding: 0.85rem 1.5rem;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

.gallery-shell { display: none; min-height: 100vh; }
.gallery-shell.active { display: block; }

.nav-bar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--white);
  border-bottom: 1px solid #e5e5e5;
  padding: 1rem 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  align-items: center;
}

.nav-bar h1 {
  margin: 0;
  font-family: "Raleway", Georgia, serif;
  font-size: 1.35rem;
}

.nav-bar .subtitle {
  color: var(--muted);
  font-size: 0.85rem;
}

.gallery-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-left: auto;
}

.gallery-tabs button {
  border: 1px solid #ddd;
  background: var(--white);
  color: var(--text);
  padding: 0.45rem 0.75rem;
  cursor: pointer;
  font-size: 0.8rem;
}

.gallery-tabs button.active {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}

.gallery-header {
  padding: 1.5rem 1.25rem 0.5rem;
}

.gallery-header h2 {
  margin: 0;
  font-family: "Raleway", Georgia, serif;
  font-weight: 600;
}

.gallery-header p {
  margin: 0.35rem 0 0;
  color: var(--muted);
}

.photo-grid {
  columns: 4 260px;
  column-gap: 1rem;
  padding: 1rem 1.25rem 2rem;
}

.photo-card {
  break-inside: avoid;
  margin-bottom: 1rem;
  cursor: pointer;
  background: var(--white);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.photo-card img {
  width: 100%;
  display: block;
}

.photo-card span {
  display: block;
  padding: 0.5rem 0.65rem;
  font-size: 0.75rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 100;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.lightbox.open { display: flex; }

.lightbox img {
  max-width: min(96vw, 1600px);
  max-height: 90vh;
  object-fit: contain;
}

.lightbox .toolbar {
  position: absolute;
  top: 1rem;
  left: 1rem;
  right: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--white);
}

.lightbox .toolbar button {
  background: rgba(255, 255, 255, 0.15);
}

@media (max-width: 700px) {
  .photo-grid { columns: 2 140px; }
  .gallery-tabs { margin-left: 0; width: 100%; }
}
