/* ---------- Shared ---------- */
body {
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  margin: 0;
  color: #222;
  line-height: 1.5;
}

/* Full-width banner behind the name */
.banner {
  background-color: #2b2b2b;   /* dark gray — change to taste */
  color: #f2f2f2;              /* light text for contrast */
  padding: 30px 20px;
  text-align: center;
  margin: 0 0 30px;            /* full width, space below */
}

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

.banner h1 {
  margin: 0;
  font-size: 2em;
  color: inherit;
}

header {
  text-align: center;
  padding: 40px 20px 20px;
}

header a {
  color: #666;
  text-decoration: none;
  font-size: 0.9em;
}

header a:hover {
  text-decoration: underline;
}

h1 {
  margin: 10px 0 0;
  font-size: 2em;
}

.intro {
  text-align: center;
  max-width: 600px;
  margin: 10px auto 30px;
  color: #555;
}

/* ---------- Homepage: small equal-sized image grid ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: 500px;
  margin: 0 auto 60px;
  padding: 0 20px;
}

.card {
  display: block;
  text-decoration: none;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.25);
}

.card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  margin: 0;
}

/* ---------- Gallery: photo wall ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto 60px;
  padding: 0 20px;
}

.gallery figure {
  margin: 0;
}

.gallery img {
  width: 100%;
  display: block;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.gallery figcaption {
  text-align: center;
  padding: 8px 0;
  font-size: 0.9em;
  color: #555;
}

.gallery.landscape img {
  aspect-ratio: 4 / 3;
}

/* ---------- Mobile ---------- */
@media (max-width: 520px) {
  .cards {
    grid-template-columns: 1fr;
  }
  h1 {
    font-size: 1.6em;
  }
}
