:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --text: #111111;
  --muted: #6b6b6b;
  --line: #ececec;
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
  --radius-lg: 20px;
  --radius-md: 14px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Space Grotesk", sans-serif;
  color: var(--text);
  background: var(--bg);
}

.page-shell {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  padding: 32px 0 40px;
}

.page-logo {
  display: block;
  margin: 40px auto 10px;
  max-width: 80px;
  height: auto;
}

.page-title {
  margin: 0 0 28px;
  font-family: "Syne", sans-serif;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  font-size: clamp(2.6rem, 6vw, 5rem);
  text-align: center;
}

.page-description {
  margin: -16px auto 28px;
  max-width: 520px;
  font-size: 1.2rem;
  line-height: 1.5;
  text-align: center;
  color: var(--muted);
}

.gallery-section {
  padding: 0;
  background: var(--surface);
}

.error-banner {
  padding: 20px;
  border-radius: var(--radius-md);
  background: #fafafa;
}

.error-banner {
  color: #8a2f2f;
  margin-bottom: 20px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.gallery-card {
  display: grid;
  gap: 10px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.gallery-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius-lg);
  display: block;
  box-shadow: var(--shadow);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.gallery-card:hover img,
.gallery-card:focus-visible img {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.gallery-card strong {
  font-size: 0.95rem;
  font-weight: 500;
}

.lightbox {
  width: min(92vw, 1000px);
  padding: 20px;
  border: 0;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.98);
  color: var(--text);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.18);
}

.lightbox-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.lightbox-nav {
  display: flex;
  gap: 8px;
}

.lightbox::backdrop {
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(6px);
}

.lightbox img {
  width: 100%;
  max-height: 72vh;
  object-fit: contain;
}

.lightbox-meta {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.lightbox-copy {
  display: grid;
  gap: 8px;
}

.lightbox-description {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
  max-width: 60ch;
  white-space: pre-wrap;
}

.lightbox-meta a {
  color: inherit;
}

.lightbox-button {
  appearance: none;
  border: 0;
  border-radius: 999px;
  padding: 10px 14px;
  font: inherit;
  font-weight: 500;
  color: var(--text);
  background: #f4f4f4;
  cursor: pointer;
}

.lightbox-button:disabled {
  opacity: 0.45;
  cursor: default;
}

.page-footer {
  margin-top: 48px;
  padding-top: 20px;
  text-align: center;
  border-top: 1px solid var(--line);
}

@media (max-width: 640px) {
  .page-shell {
    width: min(100% - 24px, 1120px);
    padding-top: 20px;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }
}
