/* Drama with Helen - Theatre-themed static site
   3-column layout (center dominant), responsive for mobile.
   Cleaned: fixed stray braces, removed duplicates, restored flyer thumb sizing,
            and added ONE consistent lightbox CSS (no conflicting overrides).
*/

/* ===========================
   TOKENS / BASE
   =========================== */

:root{
  --bg: #0b0b10;
  --panel: rgba(18, 18, 28, 0.78);
  --panel-2: rgba(24, 24, 38, 0.72);
  --text: #f3f1ea;
  --muted: rgba(243, 241, 234, 0.72);
  --gold: #d9b45a;
  --gold-2: #f0d18a;

  /* brighter red accents (curtain vibe) */
  --red: #c1121f;
  --red-2: #e11d48;

  --line: rgba(217, 180, 90, 0.22);

  --radius: 18px;
  --shadow: 0 18px 50px rgba(0,0,0,0.45);
  --shadow-soft: 0 10px 30px rgba(0,0,0,0.32);

  --max: 1200px;
  --gap: 18px;

  --serif: ui-serif, Georgia, "Times New Roman", Times, serif;
  --sans: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
}

*{ box-sizing: border-box; }
html, body{ height: 100%; }

body{
  margin: 0;
  color: var(--text);
  font-family: var(--sans);
  background:
    radial-gradient(1000px 600px at 50% 12%, rgba(240, 209, 138, 0.18), transparent 60%),
    radial-gradient(900px 520px at 12% 18%, rgba(255, 0, 64, 0.22), transparent 55%),
    radial-gradient(900px 520px at 88% 22%, rgba(255, 0, 64, 0.18), transparent 55%),
    linear-gradient(180deg, #3b0a12, #1b0509 45%, #0b0b10);
  overflow-x: hidden;
}

a{ color: inherit; text-decoration: none; }
a:hover{ text-decoration: underline; text-underline-offset: 3px; }

.container{
  width: min(var(--max), calc(100% - 32px));
  margin-inline: auto;
}

/* ===========================
   HEADER / BRAND
   =========================== */

.topbar{ position: relative; padding: 14px 0 0; }

.brand{
  display:flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  padding: 14px 0 12px;
}

.brand-centered{
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.brand-logo{
  width: 2in;
  height: 2in;
  object-fit: contain;
  display: block;
  margin: 0 auto 8px auto;
  filter: drop-shadow(0 10px 18px rgba(0,0,0,0.55));
  opacity: 0.98;
}

.brand .title{
  font-family: var(--serif);
  letter-spacing: 0.5px;
  font-size: clamp(28px, 3vw, 42px);
  margin: 0;
  line-height: 1.05;
}

.brand .tag{
  color: var(--muted);
  font-size: 14px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(18,18,28,0.35);
  backdrop-filter: blur(8px);
}

/* ===========================
   NAVIGATION
   =========================== */

.nav{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(12, 12, 18, 0.55);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(10px);
}

.nav .links{
  display:flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items:center;
}

.nav a{
  display:inline-flex;
  align-items:center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid transparent;
  color: rgba(243,241,234,0.92);
  font-weight: 600;
  font-size: 14px;
}

.nav a:hover{
  border-color: rgba(217,180,90,0.28);
  background: rgba(217,180,90,0.08);
}

.nav .cta{ display:flex; gap: 10px; }

.button{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(217,180,90,0.35);
  background: rgba(217,180,90,0.10);
  color: var(--text);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
}

.button:hover{ background: rgba(217,180,90,0.16); }

.button.primary{
  border-color: rgba(240,209,138,0.55);
  background: linear-gradient(180deg, rgba(240,209,138,0.22), rgba(217,180,90,0.10));
}

.button.danger{
  border-color: rgba(255, 80, 120, 0.55);
  background: rgba(255, 0, 64, 0.14);
}

.button.danger:hover{ background: rgba(255, 0, 64, 0.22); }

.button.tiny{
  padding: 7px 10px;
  font-size: 12.5px;
  border-radius: 10px;
}

/* nav active helpers */
.nav-link.active{
  color: var(--gold-2);
  border-bottom: 2px solid var(--gold);
  padding-bottom: 4px;
}
.nav-link:hover{ color: var(--gold-2); }

/* Mobile nav toggle default */
.nav-toggle{ display:none; }

/* ===========================
   HERO
   =========================== */

.hero{
  margin-top: 18px;
  padding: 22px 18px;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  background: rgba(18,18,28,0.55);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
}

.hero-grid{
  display:grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: 18px;
  align-items: center;
}

.hero h2{
  font-family: var(--serif);
  margin: 0 0 10px;
  font-size: clamp(26px, 3vw, 40px);
}

.hero p{
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.6;
  font-size: 15.5px;
}

/* ===========================
   MAIN LAYOUT / PANELS
   =========================== */

.layout{
  margin-top: 18px;
  display:grid;
  grid-template-columns: 0.95fr 1.9fr 0.95fr;
  gap: var(--gap);
}

.panel{
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow-soft);
}

.panel .hd{
  padding: 14px;
  border-bottom: 1px solid rgba(217,180,90,0.14);
}

.panel .bd{ padding: 14px; }

.kicker{
  color: rgba(240,209,138,0.9);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 8px;
  font-weight: 800;
}

.list{
  display:flex;
  flex-direction: column;
  gap: 12px;
}

.card{
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(217,180,90,0.18);
  background: var(--panel-2);
}

.card h4{
  margin: 0 0 6px;
  font-size: 15px;
}

.card p{
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
  font-size: 13.5px;
}

/* ===========================
   UPCOMING / SIDEBAR POLISH
   =========================== */

.panel .bd .list{ gap: 10px; }
.panel .bd .card{ padding: 10px 11px; }

.layout > aside.panel .bd .list .card p{
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (hover: hover){
  .layout > aside.panel .bd .list .card:hover p{
    -webkit-line-clamp: unset;
    overflow: visible;
  }
}

/* ===========================
   UPCOMING FLYER THUMB (homepage)
   =========================== */

.thumb-wrap{
  display:flex;
  justify-content:center;
  margin:12px 0 8px;
}

a.thumb{
  display:block;
  width: min(240px, 100%);
  max-width:240px;
  border-radius:14px;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.16);
  box-shadow:0 14px 40px rgba(0,0,0,.35);
  transition: transform .12s ease, box-shadow .12s ease;
  text-decoration:none;
}

a.thumb:hover{
  transform: translateY(-2px);
  box-shadow:0 18px 60px rgba(0,0,0,.55);
  text-decoration:none;
}

a.thumb img{
  display:block;
  width:100%;
  height:auto;
}

/* ===========================
   CAMP INSTRUCTORS
   =========================== */

.instructors-grid{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.instructor{
  border: 1px solid rgba(217,180,90,0.18);
  background: var(--panel-2);
  border-radius: 14px;
  padding: 12px;
  text-align: center;

  display: flex;
  flex-direction: column;
  align-items: center;
}

.instructor img{
  width: 140px;
  height: 140px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid rgba(217,180,90,0.18);
  margin: 0 auto 8px;
}

.instructor .name{
  font-weight: 800;
  font-size: 14px;
  margin-bottom: 2px;
}

.instructor .role{
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 6px;
}

.instructor .bio{
  max-width: 320px;
  width: 100%;
  background: rgba(0,0,0,0.18);
  padding: 8px 10px;
  border-radius: 10px;
}

/* ===========================
   CAMP GALLERY
   =========================== */

.gallery-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.gallery-item{ text-align: center; }

.gallery-item img{
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid rgba(217,180,90,0.18);
}

.gallery-item .caption{
  margin-top: 6px;
  opacity: 0.9;
  font-size: 12.5px;
  color: var(--muted);
}

/* ===========================
   BIO PAGE PHOTO SIZE (hard cap)
   =========================== */

.bio-photo,
.about-photo,
.profile-photo{
  width: 220px !important;
  height: 220px !important;
  object-fit: cover !important;
  border-radius: 14px;
  border: 1px solid rgba(217,180,90,0.18);
  display: block;
  margin: 0 auto 12px;
}

/* If someone wrapped an img inside another element with same class by accident */
.bio-photo img,
.about-photo img,
.profile-photo img{
  width: 220px !important;
  height: 220px !important;
  object-fit: cover !important;
}

/* ===========================
   PAYMENT CHOICES (fixed braces)
   =========================== */

.pay-choices{
  display:grid;
  gap:10px;
  margin-top:10px;
}

.pay-choice{
  display:block;
  cursor:pointer;
  position: relative;
}

.pay-choice-box{
  user-select: none;
  border: 1px solid rgba(217,180,90,0.22);
  background: rgba(0,0,0,0.18);
  border-radius: 14px;
  padding: 12px 14px;
  transition: 0.15s ease-in-out;
}

.pay-choice:hover .pay-choice-box{
  border-color: rgba(217,180,90,0.45);
  background: rgba(217,180,90,0.08);
}

.pay-choice-title{
  font-weight: 900;
  font-size: 15px;
}

.pay-choice-sub{
  margin-top:4px;
  font-size: 13px;
  color: rgba(243,241,234,0.78);
  line-height: 1.35;
}

/* highlight selected option */
.pay-choice input:checked + .pay-choice-box{
  border-color: rgba(240,209,138,0.70);
  box-shadow: 0 0 0 3px rgba(217,180,90,0.18);
  background: rgba(217,180,90,0.12);
}

/* ===========================
   PAGE TAG (optional badge)
   =========================== */

.page-tag{
  display:inline-block;
  margin-top:10px;
  padding:4px 10px;
  border-radius:999px;
  font-size:12px;
  letter-spacing:0.6px;
  text-transform:uppercase;
  background: rgba(0,0,0,0.35);
  border: 1px solid rgba(217,180,90,0.35);
  color: var(--gold-2);
}

/* ===========================
   LIGHTBOX (Flyer Preview) — ONE version only
   =========================== */

#lightbox.lb{
  display:none;
  position:fixed;
  inset:0;
  z-index:99999;
}

#lightbox.lb.is-open{ display:block; }

#lightbox .lb-backdrop{
  position:absolute;
  inset:0;
  background: rgba(0,0,0,0.72);
}

#lightbox .lb-modal{
  position:relative;
  margin: 6vh auto 0;
  width: min(920px, calc(100% - 28px));
  max-height: 88vh;
  overflow:auto;
  background: rgba(18,18,28,0.96);
  border: 1px solid rgba(217,180,90,0.25);
  border-radius: 16px;
  padding: 14px;
  box-shadow: 0 24px 90px rgba(0,0,0,0.65);
}

#lb-img{
  display:block;
  width:100%;
  height:auto;
  max-height: 72vh;
  object-fit: contain;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.12);
}

#lightbox .lb-close{
  position:absolute;
  top:10px;
  right:10px;
  width:40px;
  height:40px;
  border-radius: 12px;
  border: 1px solid rgba(217,180,90,0.25);
  background: rgba(0,0,0,0.25);
  color: rgba(243,241,234,0.92);
  cursor:pointer;
  font-weight: 900;
}

#lightbox .lb-actions{
  margin-top: 10px;
  display:flex;
  justify-content:flex-end;
}

/* ===========================
   RESPONSIVE
   =========================== */

@media (max-width: 980px){
  .layout{ grid-template-columns: 1fr; }
  .hero-grid{ grid-template-columns: 1fr; }

  .instructors-grid{ grid-template-columns: 1fr; }
  .gallery-grid{ grid-template-columns: 1fr; }
  .gallery-item img{ height: 180px; }
}

@media (max-width: 760px){
  .brand-logo{ width: 1.25in; height: 1.25in; }

  .bio-photo,
  .about-photo,
  .profile-photo{
    width: 160px !important;
    height: 160px !important;
  }
}

/* ===========================
   MOBILE NAV BEHAVIOR
   =========================== */

.links{ display:flex; align-items:center; gap:12px; }

/* CTA group inside links */
.links .cta{
  display:flex;
  gap:10px;
  margin-left:12px;
}

@media (max-width: 820px){
  .nav-toggle{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    margin-top:10px;
    padding:10px 12px;
    border-radius:12px;
    background: rgba(0,0,0,0.35);
    border: 1px solid rgba(217,180,90,0.35);
    color: var(--gold-2);
  }

  .links{
    display:none;
    flex-direction:column;
    align-items:stretch;
    gap:8px;
    margin-top:10px;
    padding:12px;
    border-radius:14px;
    background: var(--panel);
    border: 1px solid rgba(217,180,90,0.22);
  }

  .links.open{ display:flex; }

  .links .cta{
    margin-left:0;
    margin-top:8px;
    flex-direction:column;
  }

  .nav-link{
    padding:10px 10px;
    border-radius:12px;
    background: rgba(0,0,0,0.18);
  }

  .nav-link.active{
    border-bottom: none;
    outline: 1px solid rgba(217,180,90,0.35);
  }
}

/* Desktop: true centered links */
@media (min-width: 821px){
  .nav{
    display:grid;
    grid-template-columns: auto 1fr auto;
    align-items:center;
    gap:14px;
    justify-content: initial;
  }

  .nav-toggle{ display:none !important; }

  .nav .links{
    display:flex;
    flex-wrap:wrap;
    gap:14px;
    justify-content:center;
    justify-self:center;
  }

  .nav .cta{
    display:flex;
    gap:10px;
    justify-self:end;
  }
}

/* ===========================
   PRINT
   =========================== */

@media print{
  *{ -webkit-print-color-adjust: exact; print-color-adjust: exact; }

  body{
    background: #fff !important;
    color: #000 !important;
  }

  /* kill transparent panels / blur that print gray/faint */
  .panel, .card, .nav, .hero{
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
  }

  /* make text darker */
  .panel, .card, .small, p, a, span, div{
    color: #000 !important;
    opacity: 1 !important;
  }

  h1,h2,h3,h4{
    color:#000 !important;
    font-weight: 800 !important;
  }

  .muted{ color:#000 !important; opacity:1 !important; }
  .badge{ border-color:#000 !important; background:transparent !important; }
}
