/* ===========================
   CB Camera Club — Minimal Theme
   =========================== */

/* Variables */
:root{
  --bg: #ffffff;
  --ink: #0e1b2a;
  --muted: #5f6b7a;
  --line: #e6e8ec;
  --accent: #0d2749;   /* close to your current brand blue */
  --accent-weak: #eaf1fb;

  --radius: 12px;
  --shadow: 0 6px 24px rgba(0,0,0,.06);
  --container: 1200px;
}

/* Modern reset */
*,
*::before,
*::after{ box-sizing: border-box; }
html, body{ height: 100%; }
body{
  margin: 0;
  font: 16px/1.6 system-ui,-apple-system,Segoe UI,Roboto,Inter,Helvetica,Arial,sans-serif;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img{ max-width: 100%; height: auto; display: block; }
a{ color: var(--accent); text-decoration: none; }
a:hover{ text-decoration: underline; }
hr{ border: 0; border-top: 1px solid var(--line); margin: 24px 0; }

/* Layout helpers */
.container{
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 20px;
}

/* ===== Header (top bar) ===== */
.site-header{
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,.9);
  backdrop-filter: saturate(140%) blur(6px);
  border-bottom: 1px solid var(--line);
}
.header-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 16px;
}
.brand img{
  height: 54px; /* adjust as needed */
  width: auto;
}

/* Nav */
.site-nav ul{
  display: flex;
  align-items: center;
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav a{
  color: var(--ink);
  padding: 8px 10px;
  border-radius: 8px;
  text-decoration: none;
}
.site-nav a:hover{
  background: var(--accent-weak);
  text-decoration: none;
}
.site-nav .btn{
  padding: 8px 14px;
  border: 1px solid var(--accent);
  color: var(--accent);
  border-radius: 999px;
}
.site-nav .btn:hover{
  background: var(--accent);
  color: #fff;
}

/* Mobile nav toggle */
.nav-toggle{
  display: none;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
}
.nav-toggle span{
  display: block;
  width: 26px;
  height: 2px;
  background: var(--ink);
  margin: 6px 0;
  transition: transform .2s ease, opacity .2s ease;
}

/* ===== Main content ===== */
.main{
  padding-block: 5px 25px; /* bottom space so footer never hugs content */
}
.section-title{
  margin: 16px 0 8px 0;
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 700;
  color: var(--accent);
}

/* Hero strip (kept but simplified) */
.top{
  width: 100%;
  height: 40px;
  /* background: url('/img/CBBanner.jpg') center/cover no-repeat; */
  display: grid;
  place-items: end start;
}
.top .title{
  color: var(--accent);
  background: rgba(255,255,255,.8);
  padding: 14px 18px;
  font-weight: 700;
  text-transform: uppercase;
  margin: 0 0 12px 12px;
  border-radius: 8px;
}

/* Content card */
.wrapper .content{
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(16px, 2.5vw, 32px);
  color: var(--muted);
}
.content h1, .content h2, .content h3{
  color: var(--accent);
  margin: 0 0 12px;
}
.content p{ margin: 0 0 18px; }


/* ===== Footer ===== */
.site-footer{
  border-top: 1px solid var(--line);
  background: #fafbfc;
}
.footer-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 20px;
}
.footer-inner p{
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}
.footer-links{
  list-style: none;
  display: flex;
  gap: 14px;
  margin: 0;
  padding: 0;
}
.footer-links a{
  color: var(--muted);
  font-size: 14px;
}
.footer-links a:hover{
  color: var(--accent);
  text-decoration: none;
}

/* ===== Responsive ===== */
@media (max-width: 920px){
  .nav-toggle{ display: block; }
  .site-nav{
    position: absolute;
    top: 72px;
    right: 0;
    left: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease;
  }
  .site-nav.open{
    opacity: 1;
    pointer-events: auto;
  }
  .site-nav ul{
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    gap: 6px;
  }
  .site-nav a{ padding: 12px; }
  .footer-inner{
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Remove legacy sidebar styles if that CSS still ships somewhere */
header ul.social,
header .rights,
#menu_icon,
.close_menu{
  display: none !important;
}

/* --- LightGallery tweaks for CB Camera Club --- */

/* ============================================
   CB Camera Club — LightGallery toolbar layout
   ============================================ */

/* make the toolbar a single flex row */
.lg-toolbar {
  display: flex !important;
  align-items: center;
  gap: 10px;
  background: rgba(0, 0, 0, 0.85); /* keep your dark strip */
  padding: 6px 12px;
}

/* stop LG v1 from floating the icons to the right */
.lg-toolbar .lg-icon {
  float: none !important;
  /* keep their width/height */
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* counter FIRST, bold, white */
.lg-toolbar #lg-counter,
.lg-toolbar .lg-counter {
  order: 1;
  color: #fff !important;
  font-weight: 700 !important;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0;                 /* remove old top/left padding */
  line-height: 1.2;
  font-size: 0.9rem;
}

/* your caption NEXT, takes the space */
.lg-toolbar .cb-lg-caption {
  order: 2;
  flex: 1 1 auto;
  min-width: 0;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 0.9rem;
}

/* close button LAST, at the far right */
.lg-toolbar .lg-close {
  order: 3;
  margin-left: 6px;
}

/* push the image down so it doesn't sit under toolbar */
.lg-container .lg-content {
  margin-top: 46px;
}

/* white + bold counter globally, just in case */
#lg-counter,
.lg-counter {
  color: #fff !important;
  font-weight: 700 !important;
}

/* Make LightGallery background white instead of black */
.lg-backdrop {
  background: #ffffff !important;
}

.lg-outer, 
.lg-container {
  background-color: #ffffff !important;
}

.lg-sub-html {
  background: rgba(255,255,255,0.9) !important;
  color: #000 !important;
}