/* Base */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
img { max-width: 100%; height: auto; display: block; }

.page {
  font-family: Arial, Helvetica, sans-serif;
  background-color: #ffffff;
  background-image: url("images/back_green.gif");
}

.container {
  max-width: 980px;
  margin: 0 auto;
  background: #ffffff;
}

/* Header / Branding */
.header { padding: 12px 12px 0; }

.brand {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: center;
}

.brand-logo img { display: block; }
.brand-title img { display: block; }

/* Nav */
.nav {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 8px;
  background: #000;
  border-bottom: 6px solid #008000;
}

.nav-link {
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  padding: 10px 12px;
  background: #000;
  display: inline-block;
}

.nav-link.is-active {
  background: #ff0000;
}

.nav-link:focus,
.nav-link:hover {
  text-decoration: underline;
}

/* Intro */
.main { padding: 12px; }

.intro {
  text-align: center;
  padding: 10px 8px 16px;
}

.intro-lead {
  margin: 0 0 6px;
  color: #ff0000;
  font-weight: 700;
}

.intro-note {
  margin: 0;
  color: #000;
  font-size: 12px;
  font-weight: 700;
}

/* Gallery grid */

.card-img {
  max-width: 100%;
  height: auto;
  display: block;
  margin-left: auto;
  margin-right: auto;
}


.card {
  display: flex;
  flex-direction: column;
  align-items: center;     /* horizontal center */
  justify-content: center; /* vertical center */
  text-align: center;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}

.card {
  border: 1px solid #cfcfcf;
  padding: 10px;
  text-align: center;
  background: #ffffff;
}

.card:nth-child(odd) {
  background: #ccffcc; /* preserve your alternating green cells vibe */
}

.card-link {
  color: #0000ee;
  text-decoration: none;
  display: block;
}

.card-link:hover { text-decoration: underline; }

.card-title {
  margin: 8px 0 0;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
}

/* Footer */
.gallery-note {
  text-align: center;
  margin: 16px 0 6px;
  font-size: 12px;
}

.footer {
  padding: 16px 12px 20px;
  text-align: center;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 10px;
}

.footer-nav a {
  color: #008000;
  font-weight: 700;
  text-decoration: none;
  font-size: 12px;
}

.footer-nav a:hover { text-decoration: underline; }

.footer-meta, .footer-url {
  margin: 10px 0 0;
  font-size: 12px;
}

/* Responsive breakpoints */
@media (max-width: 900px) {
  .gallery { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 600px) {
  .brand { grid-template-columns: 1fr; justify-items: center; }
  .nav { justify-content: center; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 380px) {
  .gallery { grid-template-columns: 1fr; }
}