@charset "utf-8";
/* CSS Document */

/* ==========================================================
   Wildflower Photography — Bell Springs Mountain
   Author: Doug Zimmerman
   Description: Custom styles for gallery pages
   ========================================================== */

/* ---------- 1. GLOBAL LAYOUT ---------- */
html, body {
  margin: 0;
  padding: 0;
  font-family: "Helvetica Neue", Arial, sans-serif;
  background-color: #fafafa;
  color: #222;
  scroll-behavior: smooth;
}

/* ---------- 2. HEADERS & TITLES ---------- */
header {
  background: #fff;
  border-bottom: 1px solid #ddd;
  text-align: center;
  padding: 1.5rem 1rem;
}

header h1 {
  font-size: 1.8rem;
  letter-spacing: 0.05em;
  margin: 0;
}

header p.subtitle {
  color: #555;
  font-size: 1rem;
  margin-top: 0.3rem;
}

/* ---------- 3. NAVIGATION ---------- */
nav {
  display: flex;
  justify-content: center;
  gap: 1rem;
  background: #f4f4f4;
  padding: 0.5rem;
  border-bottom: 1px solid #ddd;
}

nav a {
  color: #333;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

nav a:hover {
  color: #0078d4;
}

/* ---------- 4. MAIN CONTENT ---------- */
main {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 1rem;
}

/* ---------- 5. IMAGE GALLERY ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.gallery img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery img:hover {
  transform: scale(1.03);
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

/* ---------- 6. CAPTIONS ---------- */
figure {
  margin: 0;
  text-align: center;
}

figcaption {
  font-size: 0.9rem;
  color: #555;
  margin-top: 0.3rem;
}

/* ---------- 7. FOOTER ---------- */
footer {
  background: #f4f4f4;
  color: #666;
  text-align: center;
  padding: 1rem;
  font-size: 0.9rem;
  border-top: 1px solid #ddd;
}

/* ---------- 8. RESPONSIVE ---------- */
@media (max-width: 600px) {
  header h1 {
    font-size: 1.4rem;
  }

  .gallery {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  }
}
