* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #111;
  color: #f5f5f5;
}

.site-header {
  padding: 64px 24px 32px;
  text-align: center;
}

.site-header h1 {
  margin: 0 0 12px;
  font-size: clamp(2.25rem, 6vw, 5rem);
  letter-spacing: -0.06em;
}

.site-header p {
  margin: 0;
  color: #b8b8b8;
  font-size: 1.1rem;
}

.gallery {
  width: min(1400px, 100%);
  margin: 0 auto;
  padding: 24px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.gallery-card {
  border: 0;
  padding: 0;
  background: #1b1b1b;
  color: inherit;
  border-radius: 18px;
  overflow: hidden;
  text-align: left;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease;
}

.gallery-card:hover {
  transform: translateY(-4px);
  background: #242424;
}

.gallery-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  display: block;
}

.gallery-card-text {
  padding: 14px 16px 18px;
}

.gallery-card h2 {
  margin: 0 0 6px;
  font-size: 1rem;
}

.gallery-card p {
  margin: 0;
  color: #aaa;
  font-size: 0.9rem;
  line-height: 1.4;
}

.modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.88);
  z-index: 20;
}

.modal.is-open {
  display: flex;
}

.modal-content {
  width: min(1100px, 100%);
  max-height: 90vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
}

.modal-content img {
  width: 100%;
  max-height: 75vh;
  object-fit: contain;
  border-radius: 16px;
  background: #000;
}

.modal-text {
  text-align: center;
}

.modal-text h2 {
  margin: 0 0 6px;
}

.modal-text p {
  margin: 0;
  color: #bbb;
}

.modal-close {
  position: fixed;
  top: 18px;
  right: 22px;
  border: 0;
  background: transparent;
  color: white;
  font-size: 42px;
  cursor: pointer;
}