/* ===============================
   BCSP UI — Shared Site Styles
   =============================== */

*{ box-sizing:border-box; }

html, body{
  margin:0;
  padding:0;
}

body{
  font-family:Arial, Helvetica, sans-serif;
  background:#f5f5f5;
  color:#222;
  line-height:1.6;
}

a{ color:inherit; }

/* ===== SHARED HEADER / MASTHEAD ===== */

.site-header{
  background:#f7f7f7;
  border-bottom:4px solid #111;
  padding:12px 0 8px;
}

.masthead{
  max-width:1000px;
  margin:0 auto;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:18px;
  padding:0 20px;
}

.logo-badge{
  width:100%;
  max-width:360px;
  height:auto;
  display:block;
  flex:0 1 auto;
}

.masthead-text{
  text-align:left;
}

.title{
  font-size:30px;
  font-weight:900;
  letter-spacing:.3px;
  line-height:1.05;
  margin:0;
}

.tagline{
  font-size:15px;
  color:#444;
  margin-top:4px;
}

.masthead-rule{
  max-width:1000px;
  margin:10px auto 0;
  border-top:3px double #111;
}

.nav{
  max-width:1000px;
  margin:0 auto;
  padding:12px 20px 6px;
  text-align:center;
}

.nav a{
  display:inline-block;
  margin:0 12px;
  text-decoration:none;
  font-weight:700;
  color:#111;
}

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

/* ===== CONTENT PAGE HELPERS ===== */

.wrapper{
  max-width:1180px;
  margin:30px auto;
  background:#fff;
  padding:40px 56px;
  box-shadow:0 0 20px rgba(0,0,0,.2);
}

.story{
  font-size:18px;
  line-height:1.7;
}

.headerimg img{
  width:100%;
  max-width:760px;
  height:auto;
  display:block;
  margin:0 auto 30px;
}

.quote{
  font-size:20px;
  font-weight:bold;
  margin:30px 0;
  padding-left:20px;
  border-left:6px solid #999;
}

/* ===== STORY IMAGE PANELS ===== */

.story-scroll{
  display:block !important;
  width:auto !important;
  max-width:400px !important;
  height:auto !important;
  margin:40px auto 20px !important;
  border:8px solid red !important;
}

.feature-panel img.story-scroll{
  width:auto;
  max-width:700px;
  height:auto;
  border:none;
  display:block;
  margin:40px auto;
}

.caption{
  font-size:14px;
  color:#555;
  margin-top:8px;
  text-align:center;
}

/* Keep story text readable on wider pages */

.feature-panel p{
  max-width:860px;
  margin-left:auto;
  margin-right:auto;
}

/* ===== SPLIT PANELS (used elsewhere) ===== */

.split-panel{
  display:flex;
  gap:28px;
  align-items:flex-start;
  margin:35px 0;
  flex-wrap:wrap;
}

.info-card{
  flex:1 1 380px;
  background:#f7f3ea;
  padding:24px;
  border:1px solid #d7cfbf;
}

.side-image{
  flex:0 1 320px;
}

.side-image img{
  width:100%;
  height:auto;
  display:block;
  border:1px solid #bbb;
}

.feature-panel{
  margin:35px 0;
  text-align:center;
}

.feature-panel img{
  max-width:100%;
  height:auto;
  border:1px solid #bbb;
}

.homebtn{
  display:inline-block;
  margin-top:24px;
  padding:10px 16px;
  border:1px solid #111;
  text-decoration:none;
  color:#111;
  background:#fff;
  font-weight:700;
}

.homebtn:hover{
  background:#111;
  color:#fff;
  text-decoration:none;
}

/* ===== THUMBNAIL GRID ===== */

.wrap{
  max-width:1200px;
  margin:0 auto;
  padding:12px;
}

.thumbGrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

.thumbCard{
  padding:6px;
  border-radius:6px;
  background:#fff;
}

.thumbImg img{
  width:100%;
  height:auto;
  max-height:300px;
  object-fit:contain;
}

.thumbMeta{
  margin-top:4px;
  font-size:.85rem;
  line-height:1.2;
}

/* ===== RESPONSIVE ===== */

@media (max-width: 768px){

  .masthead{
    flex-direction:column;
    gap:10px;
  }

  .masthead-text{
    text-align:center;
  }

  .logo-badge{
    max-width:280px;
  }

  .title{
    font-size:24px;
  }

  .tagline{
    font-size:14px;
  }

  .nav a{
    margin:6px 8px;
  }

  .wrapper{
    padding:22px;
    margin:20px auto;
  }

  .story{
    font-size:17px;
  }

  .quote{
    font-size:18px;
  }

  .story-scroll{
    max-width:100%;
  }
}

@media (min-width:720px){
  .thumbGrid{
    grid-template-columns:repeat(4, 1fr);
  }
}

@media (min-width:1200px){
  .thumbGrid{
    grid-template-columns:repeat(5, 1fr);
  }
}
/* force story scroll images to ignore generic feature-panel image styling */
.feature-panel img.story-scroll{
  width:auto !important;
  max-width:700px !important;
  height:auto !important;
  border:none !important;
  display:block !important;
  margin:40px auto 20px !important;
}

.about-photo{
  flex:0 1 340px;
}

.about-intro{
  flex:1 1 520px;
  text-align:left;
  font-size:18px;
  line-height:1.75;
  padding-top:6px;
}

.about-intro h1{
  margin-top:0;
  margin-bottom:12px;
}

.about-intro .lead{
  font-size:20px;
  margin-bottom:14px;
}

.about-copy{
  text-align:left;
}

.about-copy h3{
  margin-top:0;
}

.about-copy p{
  max-width:none;
  margin-left:0;
  margin-right:0;
  font-size:17px;
  line-height:1.75;
}