:root{
  --bg:#0b1020;
  --card:#111935;
  --text:#e9ecff;
  --muted:#b8c0ff;
  --accent:#d4af37;
  --accent2:#2b6cb0;
  --line:rgba(233,236,255,.12);
  --shadow: 0 18px 50px rgba(0,0,0,.35);
  --radius:18px;
  --max:1100px;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family:var(--sans);
  color:var(--text);
  background:
    radial-gradient(1200px 700px at 20% 10%, rgba(43,108,176,.25), transparent 55%),
    radial-gradient(900px 600px at 85% 20%, rgba(212,175,55,.18), transparent 55%),
    var(--bg);
  line-height:1.55;
}

a{color:inherit}
.container{max-width:var(--max); margin:0 auto; padding:0 18px}

/* Header */
.site-header{
  position:sticky;
  top:0;
  z-index:50;
  backdrop-filter:saturate(140%) blur(12px);
  background:rgba(11,16,32,.72);
  border-bottom:1px solid var(--line);
}
.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:12px 0;
  gap:14px;
}

.brand{
  display:flex;
  align-items:center;
  gap:12px;
  text-decoration:none;
}

/* Supports both older and newer markup */
.brand-mark,
.mark{
  width:42px;
  height:42px;
  border-radius:12px;
  display:grid;
  place-items:center;
  font-weight:800;
  letter-spacing:.6px;
  background:linear-gradient(135deg, rgba(212,175,55,.20), rgba(43,108,176,.22));
  border:1px solid rgba(212,175,55,.25);
  box-shadow: 0 10px 28px rgba(0,0,0,.25);
}

.brand-title,
.brand strong{
  display:block;
  font-size:15px;
  letter-spacing:.2px;
  line-height:1.15;
}
.brand-sub,
.brand span{
  display:block;
  font-size:12px;
  color:var(--muted);
  line-height:1.15;
}

.nav{display:flex; align-items:center; gap:12px}
.nav a{
  text-decoration:none;
  font-size:14px;
  padding:10px 10px;
  border-radius:12px;
  color:var(--muted);
}
.nav a:hover{background:rgba(233,236,255,.06); color:var(--text)}
.nav a.active{color:var(--text); background:rgba(233,236,255,.06)}

.nav-toggle{
  display:none;
  background:rgba(233,236,255,.06);
  border:1px solid var(--line);
  color:var(--text);
  border-radius:12px;
  padding:10px 12px;
}

@media (max-width: 860px){
  .nav{display:none}
  .nav-toggle{display:inline-flex}
  .nav.open{
    position:absolute;
    right:18px;
    top:60px;
    display:flex;
    flex-direction:column;
    width:min(320px, calc(100vw - 36px));
    background:rgba(17,25,53,.96);
    border:1px solid var(--line);
    border-radius:16px;
    padding:10px;
    box-shadow:var(--shadow);
  }
}

/* Buttons (supports .button and .btn markup) */
.button,
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding:12px 14px;
  border-radius:14px;
  border:1px solid var(--line);
  background:rgba(233,236,255,.06);
  text-decoration:none;
  font-weight:600;
  font-size:14px;
}
.button.primary,
.btn{
  /* default primary */
  background:linear-gradient(135deg, rgba(212,175,55,.22), rgba(43,108,176,.20));
  border-color:rgba(212,175,55,.28);
}
.btn:hover, .button:hover{transform:translateY(-1px)}

.btn.ghost,
.button.ghost{
  background:rgba(233,236,255,.06);
  border-color:var(--line);
}

.btn-small{padding:10px 12px; border-radius:12px; font-size:13px}

/* Hero (homepage) */
.hero{
  padding:26px 0 18px;
  display:grid;
  grid-template-columns: 1.05fr .95fr;
  gap:22px;
  align-items:center;
}
@media (max-width: 920px){
  .hero{grid-template-columns:1fr;}
}

.pill,
.kicker{
  display:inline-flex;
  align-items:center;
  gap:10px;
  font-family:var(--mono);
  font-size:12px;
  letter-spacing:.14em;
  text-transform:uppercase;
  color:var(--muted);
  border:1px solid var(--line);
  padding:6px 10px;
  border-radius:999px;
  background:rgba(233,236,255,.05);
}

h1{
  margin:14px 0 10px;
  font-size:44px;
  line-height:1.05;
  letter-spacing:-.02em;
}
@media (max-width: 520px){
  h1{font-size:36px}
}

.h1{font-size:40px; margin:10px 0 10px; line-height:1.1; letter-spacing:-.02em}

.lead{color:var(--muted); font-size:16px; max-width:60ch}

.cta-row{display:flex; gap:12px; flex-wrap:wrap; margin-top:18px}

.hero-art{
  border:1px solid var(--line);
  border-radius:var(--radius);
  background:linear-gradient(180deg, rgba(17,25,53,.95), rgba(17,25,53,.72));
  box-shadow:var(--shadow);
  overflow:hidden;
}
.hero-art img{
  width:100%;
  height:auto;
  display:block;
  background:#fff;
}

/* Page hero (all interior pages) */
.page-hero{
  margin:18px 0 0;
  border:1px solid var(--line);
  border-radius:var(--radius);
  overflow:hidden;
  box-shadow:var(--shadow);
  background:rgba(17,25,53,.45);
}
.page-hero .banner{
  height:220px;
  background-image:url('../images/hero-template.png');
  background-size:cover;
  background-position:center 70%;
  filter:saturate(110%);
}
@media (max-width: 520px){
  .page-hero .banner{height:160px}
}
.page-hero .banner-overlay{
  height:100%;
  display:flex;
  align-items:flex-end;
  padding:16px;
  background:linear-gradient(180deg, rgba(11,16,32,.10), rgba(11,16,32,.75));
}
.page-hero h1{margin:0; font-size:26px}
.page-hero p{margin:6px 0 0; color:var(--muted)}

/* Sections */
.section{padding:22px 0 44px}
.grid,
.grid-3{display:grid; gap:14px}
.grid{grid-template-columns:repeat(2, 1fr)}
.grid-3{grid-template-columns:repeat(3, 1fr)}
@media (max-width: 920px){
  .grid, .grid-3{grid-template-columns:1fr}
}

.card{
  border:1px solid var(--line);
  border-radius:var(--radius);
  background:rgba(17,25,53,.65);
  padding:16px;
  box-shadow: 0 10px 28px rgba(0,0,0,.18);
}
.card h2{margin:6px 0 8px; font-size:20px}
.card h3{margin:6px 0 8px; font-size:16px}
.card p{margin:0; color:var(--muted)}

.badge{
  display:inline-flex;
  align-items:center;
  font-family:var(--mono);
  font-size:12px;
  color:var(--muted);
  border:1px solid var(--line);
  padding:6px 10px;
  border-radius:999px;
  background:rgba(233,236,255,.05);
}

.muted{color:var(--muted)}
.small{font-size:12px; color:var(--muted)}

/* Footer */
.footer{
  border-top:1px solid var(--line);
  padding:20px 0 34px;
  color:var(--muted);
  font-size:13px;
}

/* Forms */
.form{display:grid; gap:12px}
.label{display:grid; gap:6px}
input, textarea{
  width:100%;
  border-radius:14px;
  border:1px solid var(--line);
  background:rgba(233,236,255,.06);
  color:var(--text);
  padding:12px 12px;
  font:inherit;
}
textarea{min-height:130px; resize:vertical}

/* Utility */
hr{border:0; border-top:1px solid var(--line); margin:18px 0}

/* Print */
@media print{
  .site-header, .cta-row{display:none !important}
  body{background:#fff; color:#000}
  .card{box-shadow:none}
}

/* ===== Inner Page Banner (no crop, no stretch) ===== */
/* New markup: <section class="page-hero page-hero--banner"> ... <img ...> */
.page-hero--banner {
  position: relative;
  width: 100%;
  background: #0b1220;
  overflow: hidden;
  padding: 22px 0;
}

.page-hero--banner .page-hero__wrap {
  width: min(1200px, 100%);
  margin: 0 auto;
  padding: 0 18px;
  display: flex;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.page-hero--banner img {
  max-width: 100%;
  width: auto;
  height: auto;
  max-height: 420px;
  object-fit: contain;
  border-radius: 18px;
  box-shadow: 0 18px 55px rgba(0,0,0,.45);
  background: #0b1220;
}

.page-hero--banner::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    rgba(11,18,32,0.10) 0%,
    rgba(11,18,32,0.35) 55%,
    rgba(11,18,32,0.95) 100%
  );
}

/* Compatibility: if any page still uses the older .page-hero .banner background-image approach,
   switch it to temple-banner.png and prevent cropping (contain instead of cover). */
.page-hero .banner{
  background-image:url('../images/2026_Lodge55_Officers_Half.png');
  background-size:contain;
  background-repeat:no-repeat;
  background-position:center center;
  background-color:rgba(17,25,53,.45);
}

@media (max-width: 640px) {
  .page-hero--banner img {
    max-height: 260px;
    border-radius: 14px;
  }
  .page-hero .banner{height:160px}
}

/* Home page officers image */
.home-officers {
  width: 100%;
  display: flex;
  justify-content: center;
  margin: 8px 0 28px;
}

.home-officers img {
  max-width: 100%;
  width: auto;
  height: auto;
  max-height: 520px;
  object-fit: contain;
  border-radius: 18px;
  box-shadow: 0 18px 55px rgba(0,0,0,.45);
  background: #0b1220;
}

/* Clickable image */
.lightbox-trigger{
  border:0;
  padding:0;
  background:transparent;
  cursor:zoom-in;
  border-radius:18px;
}

/* Lightbox overlay */
.lightbox{
  position:fixed;
  inset:0;
  display:none;
  z-index:9999;
}
.lightbox.is-open{display:block}

.lightbox__backdrop{
  position:absolute;
  inset:0;
  background:rgba(0,0,0,.78);
}

.lightbox__content{
  position:relative;
  width:min(1100px, calc(100vw - 36px));
  max-height:calc(100vh - 36px);
  margin:18px auto;
  background:rgba(11,16,32,.95);
  border:1px solid rgba(233,236,255,.14);
  border-radius:18px;
  box-shadow:0 25px 80px rgba(0,0,0,.55);
  padding:14px;
}

.lightbox__content img{
  width:100%;
  height:auto;
  max-height:calc(100vh - 120px);
  object-fit:contain;
  display:block;
  border-radius:12px;
  background:#0b1220;
}

.lightbox__close{
  position:absolute;
  top:10px;
  right:10px;
  width:40px;
  height:40px;
  border-radius:12px;
  border:1px solid rgba(233,236,255,.18);
  background:rgba(233,236,255,.08);
  color:rgba(233,236,255,.92);
  cursor:pointer;
}
.lightbox__close:hover{background:rgba(233,236,255,.12)}

/* About page – history paragraph spacing */
.card .muted p {
  margin-bottom: 12px;
}

.card .muted p:last-child {
  margin-bottom: 0;
}

/* Space between text and pill rows */
.pill-row {
  margin-top: 16px;
}

/* Events page - calendar link tile */
.calendar-link{
  display:flex;
  gap:14px;
  align-items:center;
  padding:14px;
  border-radius:18px;
  border:1px solid var(--line);
  background:rgba(233,236,255,.06);
  text-decoration:none;
  box-shadow: 0 10px 28px rgba(0,0,0,.18);
}

.calendar-link:hover{
  transform: translateY(-1px);
  background:rgba(233,236,255,.08);
}

.calendar-link__icon{
  width:46px;
  height:46px;
  border-radius:14px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:22px;
  background:linear-gradient(135deg, rgba(212,175,55,.22), rgba(43,108,176,.20));
  border:1px solid rgba(212,175,55,.28);
}

.calendar-link__title{
  font-weight:700;
  color:var(--text);
}

.calendar-link__sub{
  font-size:13px;
  color:var(--muted);
  margin-top:2px;
}

/* ==== Events gallery captions ==== */
.thumb-caption{
  display:block;
  margin-top:10px;
  font-size:12px;
  color:var(--muted);
  line-height:1.25;
  text-align:left;
}

/* ==== Lightbox polish: subtle fade/scale in ==== */
.lightbox__panel{ animation: lightboxPop .18s ease-out; }
.lightbox__img{ animation: lightboxFade .18s ease-out; }

@keyframes lightboxPop{
  from{ transform: translateY(6px) scale(.985); opacity:0; }
  to{ transform: translateY(0) scale(1); opacity:1; }
}
@keyframes lightboxFade{
  from{ opacity:0; }
  to{ opacity:1; }
}

.lightbox__caption{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
}
.lightbox__caption-right{
  display:flex;
  align-items:center;
  gap:10px;
}

/* =========================================================
   EVENTS: Sweethearts thumbnails (3x5 look) + Lightbox bright
   Paste at the VERY BOTTOM of assets/styles.css
   ========================================================= */

/* Thumbnails grid */
.event-gallery{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px;
  margin-top: 14px;
}

/* Each thumbnail button (prevents giant images) */
.event-thumb{
  display: block;
  width: 100%;
  max-width: 240px;     /* keeps “3x5-ish” thumbnails from getting huge */
  margin: 0 auto;       /* centers in its grid cell */
  border: 1px solid rgba(233,236,255,.12);
  border-radius: 16px;
  background: rgba(233,236,255,.04);
  padding: 10px;
  cursor: zoom-in;
}

/* The thumbnail image: 3:5 ratio, NO crop */
.event-thumb img{
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 5;
  object-fit: contain;      /* show whole photo */
  background: #0b1220;
  border-radius: 12px;
}

/* ==== Lightbox: make enlarged image bright + fix overlay layering ==== */
.lightbox{
  position: fixed;
  inset: 0;
  display: none;
  z-index: 9999;
}
.lightbox.is-open{ display: block; }

/* Dim the page behind */
.lightbox__backdrop{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.82);
  z-index: 0;
}

/* Keep the panel ABOVE the backdrop */
.lightbox__panel{
  position: relative;
  z-index: 1;
  max-width: min(1100px, calc(100vw - 36px));
  margin: 6vh auto;
  padding: 14px;
  border-radius: 18px;
  background: rgba(11,16,32,.96);
}

/* Ensure the image itself is NOT dimmed */
.lightbox__img{
  display: block;
  width: 100%;
  height: auto;
  max-height: 78vh;
  object-fit: contain;
  opacity: 1 !important;
  filter: none !important;
}

/* ===== Lightbox navigation arrows (restore side positioning) ===== */

.lightbox__panel {
  position: relative;
}

/* Base arrow styling */
.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(0,0,0,.55);
  color: #fff;
  font-size: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: background .2s ease;
}

.lightbox__nav:hover {
  background: rgba(0,0,0,.85);
}

/* LEFT arrow */
.lightbox__nav--prev {
  left: -60px;
}

/* RIGHT arrow */
.lightbox__nav--next {
  right: -60px;
}

/* Mobile adjustment */
@media (max-width: 768px){
  .lightbox__nav--prev { left: 10px; }
  .lightbox__nav--next { right: 10px; }
}

