/* VCCC — clean rebuild of the smpl-skeleton look. Faithful colours/typography, modern responsive layout. */
:root{
  --text:#333; --link:#3376ea; --title:#375199; --accent:#BE3243; --bg:#f9f9f9;
  --font-heading:-apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif;
  --maxw:1000px;
  /* Chrome colours. These generic values let non-original themes adapt; the
     'original' theme in themes.js overrides them with the exact source values. */
  --rule:rgba(128,128,128,.2);
  --rule-soft:rgba(128,128,128,.25);
  --rule-img:rgba(128,128,128,.3);
  --nav-hover:rgba(128,128,128,.1);
  --caption-bg:rgba(255,255,255,.5);
  --muted:var(--text);
  --muted-footer:var(--text);
  --muted-op:.7;
  --rule-faint:rgba(128,128,128,.15);
}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;color:var(--text);background:var(--bg);
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif;
  line-height:1.6;font-size:17px;transition:background .3s,color .3s}
#wrap{max-width:var(--maxw);margin:0 auto;padding:0 18px}
a{color:var(--link)}
a:hover,a:focus{text-decoration:underline}
img{max-width:100%;height:auto}

/* header */
#header{padding:18px 0 6px;text-align:center}
.header_extras{color:var(--accent);font-weight:700;letter-spacing:.12em;font-size:14px;text-transform:uppercase}
#site-title{margin:6px 0 0}
#site-title a{display:inline-block}
#site-title img{max-height:120px;width:auto}

/* nav */
#navigation{border-top:1px solid var(--rule);border-bottom:1px solid var(--rule);margin-top:10px}
.nav-toggle{display:none}
.menu{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;justify-content:center}
.menu li{margin:0}
.menu a{display:block;padding:14px 18px;color:var(--title);font-family:var(--font-heading);font-weight:600;text-decoration:none;transition:background .2s,color .2s}
.menu a:hover,.menu a:focus{background:var(--nav-hover);text-decoration:none}
.menu a.current{color:var(--accent)}

/* content */
#content{padding:26px 0 10px}
.entry-title{color:var(--title);margin:0 0 18px;font-size:2em;line-height:1.2;font-family:var(--font-heading)}
.entry-content h2{color:var(--title);font-size:1.5em;margin:1.4em 0 .5em;font-family:var(--font-heading)}
.entry-content h3{color:var(--accent);font-size:1.2em;margin:1.3em 0 .4em;font-family:var(--font-heading)}
.entry-content p{margin:0 0 1em}
.entry-content hr{border:0;border-top:1px solid var(--rule-soft);margin:1.6em 0}
.entry-content img{height:auto}
.entry-content .alignright{float:right;margin:.3em 0 1em 1.4em;max-width:50%}
.entry-content .alignleft{float:left;margin:.3em 1.4em 1em 0;max-width:50%}
.entry-content .aligncenter{display:block;margin:1em auto}
.entry-content .alignnone{margin:.3em 0 1em}
.wp-caption{max-width:100%;background:var(--caption-bg);border:1px solid var(--rule);padding:6px}
.wp-caption-text,.gallery-caption{font-size:.85em;color:var(--muted);opacity:var(--muted-op);text-align:center;margin:.3em 0}
iframe{max-width:100%}

/* WP galleries */
.gallery{display:flex;flex-wrap:wrap;gap:12px;margin:1.2em 0}
.gallery-item{width:calc(33.333% - 8px);margin:0 !important;text-align:center}
.gallery-item img{border:2px solid var(--rule-img);width:100%;object-fit:cover}
.gallery br{display:none}

/* footer */
#footer{border-top:1px solid var(--rule);margin-top:30px;padding:18px 0 40px;text-align:center;color:var(--muted-footer);opacity:var(--muted-op);font-size:.9em}
/* extra clearance only when the style picker is on screen */
body.vccc-has-picker #footer{padding-bottom:60px}
.footer-more{margin-bottom:8px}
.footer-more a{color:var(--title)}

.clear{clear:both}

/* Era style picker widget */
#vccc-styler{
  position:fixed;bottom:16px;right:16px;z-index:9999;
  display:flex;align-items:center;gap:8px;
  background:rgba(255,255,255,0.92);
  border:1px solid rgba(0,0,0,0.12);
  border-radius:8px;padding:7px 10px;
  box-shadow:0 2px 12px rgba(0,0,0,0.12);
  font-size:13px;
  backdrop-filter:blur(6px);
  -webkit-backdrop-filter:blur(6px);
}
#vccc-style-label{
  font-size:14px;line-height:1;cursor:default;
  color:#555;font-weight:600;white-space:nowrap;
}
#vccc-style-select{
  border:1px solid rgba(0,0,0,0.2);border-radius:4px;
  padding:4px 6px;font-size:12px;font-family:inherit;
  background:white;color:#333;cursor:pointer;max-width:200px;
}

@media (max-width:640px){
  body{font-size:16px}
  .nav-toggle{display:block;width:100%;border:0;background:var(--nav-hover);color:var(--title);
    font-size:16px;font-weight:700;padding:13px;cursor:pointer;font-family:var(--font-heading)}
  .menu{display:none;flex-direction:column}
  #menu-mainnav.open .menu{display:flex}
  .menu a{text-align:center;border-top:1px solid var(--rule-faint)}
  .entry-content .alignright,.entry-content .alignleft{float:none;display:block;margin:1em auto;max-width:100%}
  .gallery-item{width:calc(50% - 6px)}
  #vccc-styler{bottom:12px;right:12px;padding:6px 8px}
  #vccc-style-select{max-width:160px}
}

/* ── Lightbox ─────────────────────────────────────────────────────────
   Deliberately neutral rather than themed: a photo viewer should get out
   of the way of the photograph, so it stays dark across all 14 styles.
   Only the focus ring picks up the active theme's accent. */
body.vccc-lb-open{overflow:hidden}

#vccc-lb{
  position:fixed;inset:0;z-index:10000;
  display:flex;align-items:center;justify-content:center;
  background:rgba(16,16,18,.94);
  padding:clamp(12px,4vw,48px);
  animation:vccc-lb-in .18s ease-out;
}
#vccc-lb[hidden]{display:none}
@keyframes vccc-lb-in{from{opacity:0}to{opacity:1}}

.vccc-lb-stage{
  margin:0;display:flex;flex-direction:column;align-items:center;
  gap:14px;max-width:100%;max-height:100%;
}
.vccc-lb-img{
  max-width:100%;max-height:78vh;width:auto;height:auto;
  object-fit:contain;display:block;
  background:rgba(255,255,255,.04);
  box-shadow:0 18px 50px rgba(0,0,0,.5);
  border-radius:2px;
}
.vccc-lb-cap{
  color:#e8e8e8;font-size:.92em;line-height:1.5;text-align:center;
  max-width:62ch;display:flex;flex-direction:column;gap:4px;
}
.vccc-lb-count{color:#8b8b8f;font-size:.82em;font-variant-numeric:tabular-nums}

/* controls */
#vccc-lb button{
  position:absolute;border:0;cursor:pointer;color:#fff;
  background:rgba(255,255,255,.09);
  border-radius:50%;line-height:1;
  transition:background .15s,transform .15s;
}
#vccc-lb button:hover{background:rgba(255,255,255,.2)}
#vccc-lb button:focus-visible{outline:2px solid var(--accent,#BE3243);outline-offset:3px}
#vccc-lb button[hidden]{display:none}

.vccc-lb-close{top:14px;right:16px;width:42px;height:42px;font-size:26px}
.vccc-lb-nav{
  top:50%;transform:translateY(-50%);
  width:52px;height:52px;font-size:32px;
  display:flex;align-items:center;justify-content:center;
}
.vccc-lb-nav:hover{transform:translateY(-50%) scale(1.06)}
.vccc-lb-prev{left:16px;padding-right:3px}
.vccc-lb-next{right:16px;padding-left:3px}

/* the thumbnails now behave like buttons — say so on hover */
a[data-lb-group]{cursor:zoom-in;display:inline-block}
a[data-lb-group] img{transition:opacity .15s}
a[data-lb-group]:hover img{opacity:.86}

@media (max-width:640px){
  .vccc-lb-img{max-height:70vh}
  .vccc-lb-nav{width:44px;height:44px;font-size:26px}
  .vccc-lb-prev{left:6px}
  .vccc-lb-next{right:6px}
  .vccc-lb-close{top:8px;right:8px}
}
@media (prefers-reduced-motion:reduce){
  #vccc-lb{animation:none}
  #vccc-lb button,.vccc-lb-nav:hover,a[data-lb-group] img{transition:none;transform:none}
  .vccc-lb-nav{transform:translateY(-50%)}
}
