/* ==========================================================================
   Zontrac – post.css (FINAL)
   - Full-bleed hero with overlay (category above title)
   - Title & category color configurable (default: pure white)
   - Content-first layout (text before gallery)
   - 60vw centered content, mobile friendly
   - Lightbox styles + keyboard-hints
   - Lazy-friendly (no CSS 'loading' misuse)
   - Minor defaults for videos & images inside content
   ========================================================================== */

/* ------------------------------
   Full-bleed hero image
   ------------------------------ */
.header-media{
  position: relative;
  margin: 0 0 1.25rem;
  /* full bleed */
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  width: 100vw;
  /* cap hero block to viewport height */
  max-height: 92vh;
  overflow: hidden;
}
.header-media img{
  display:block;
  width:100%;
  height:auto;
  max-height:92vh;
  object-fit: cover;
  /* stacking context below overlay + gradient */
  position: relative;
  z-index: 0;
}

/* Overlay tokens (customize here if needed) */
:root{
  --hero-title-color:  #ffffff;  /* pure white as default */
  --hero-kicker-color: #ffffff;  /* pure white for category */
  --hero-overlay-bg:   linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,.65) 80%);
  --hero-pad-x:        min(5vw, 32px);
  --hero-pad-y:        clamp(16px, 3vw, 28px);
}

/* dark gradient over the image, but under the text */
.header-media::after{
  content: "";
  position: absolute;
  inset: 0;
  background: var(--hero-overlay-bg);
  pointer-events: none;
  z-index: 1; /* text sits above (z:2) */
}

/* Overlay container */
.hero-overlay{
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: var(--hero-pad-y) var(--hero-pad-x);
  color: var(--hero-title-color);
  z-index: 2;
}

/* Category (kicker) – above title, in Roboto Mono per project style */
.hero-kicker{
  display:inline-block;
  font-family: "Roboto Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-weight: 600;
  font-size: 0.9rem;
  line-height: 1.1;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--hero-kicker-color);
  margin-bottom: .45rem;
  text-shadow: 0 1px 2px rgba(0,0,0,.35);
  background: transparent;
}

/* Title */
.hero-title{
  margin: 0;
  color: var(--hero-title-color);
  font-family: var(--font-head, ui-sans-serif, system-ui, -apple-system, Segoe UI, Arial, sans-serif);
  font-weight: 800;
  line-height: 1.04;
  font-size: clamp(1.6rem, 3.6vw, 2.6rem);
  text-wrap: balance;
  text-shadow: 0 1px 3px rgba(0,0,0,.35);
}

/* ------------------------------
   Content wrapper (60vw centered)
   ------------------------------ */
.post-wrap{
  width: 60vw;
  margin: 0 auto;
  padding: 0;
}
@media (max-width: 900px){
  .post-wrap{ width: 92vw; }
}

/* Article text in Roboto Mono */
.post-wrap.post-content{
  font-family: "Roboto Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-optical-sizing: auto;
  font-weight: 400;
  line-height: 1.65;
  font-size: 1rem;
  color: inherit;
}

/* Content links */
.post-wrap.post-content a{ color: inherit; text-decoration-thickness: 1px; }
.post-wrap.post-content a:hover{ text-decoration: underline; text-underline-offset: 3px; }

/* Images inside content should never overflow the column */
.post-wrap.post-content img{
  max-width: 100%;
  height: auto;
  display: block;
}

/* Spacing: body first, then gallery */
.post-body{ margin: 1rem 0 2rem; }
.gallery{ margin: 0 0 2rem; }

/* ------------------------------
   Gallery / Thumbnails
   ------------------------------ */
.thumbs-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.thumbs-grid img{
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  cursor: zoom-in;
  aspect-ratio: 4/5;    /* pleasant default crop */
}
/* Optional variant, if needed */
.thumbs-grid img.ar-54{ aspect-ratio: 5/4; }

@media (max-width: 900px){
  .thumbs-grid{ grid-template-columns: repeat(2, 1fr); }
}

/* ------------------------------
   Lightbox UI
   ------------------------------ */
.lb-backdrop{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}
.lb-backdrop.on{ display: flex; }

.lb-stage{
  position: relative;
  max-width: 96vw;
  max-height: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lb-stage img{
  max-width: 96vw;
  max-height: 92vh;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0,0,0,.5);
  transition: transform .2s ease;
}

.lb-btn{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.2);
  color: #fff;
  padding: .6rem .8rem;
  border-radius: 10px;
  cursor: pointer;
  font-size: 18px;
  user-select: none;
  transition: transform .12s ease;
}
.lb-btn:active{ transform: translateY(-50%) scale(.98); }

.lb-prev{ left: 12px; }
.lb-next{ right: 12px; }
.lb-close{ position: absolute; top: 12px; right: 12px; transform: none; }

.lb-counter{
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  color: #bbb;
  font-size: .9rem;
}

/* Keyboard hints bubble (also injected by JS, but styles live here) */
.lb-hints{
  position: absolute;
  top: 12px;
  left: 12px;
  color: #c9c9c9;
  font: 600 12px/1.2 system-ui, -apple-system, Segoe UI, Roboto, Arial;
  opacity: .9;
  background: rgba(0,0,0,.35);
  padding: .45rem .55rem;
  border-radius: 8px;
  user-select: none;
  pointer-events: none;
  transition: opacity .3s ease;
}
.lb-hints.hide{ opacity: 0; }

/* ------------------------------
   Videos (responsive helper)
   ------------------------------ */
.video-frame{
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  background: #000;
  border-radius: 8px;
  overflow: hidden;
  margin: 1rem 0 2rem;
}
.video-frame > iframe,
.video-frame > video{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

/* Avoid horizontal scrollbars due to full-bleed hero */
html, body { overflow-x: hidden; }

/* === Static category chip above the title (non-clickable) === */
:root{
  --hero-chip-fg: #fff;
  --hero-chip-bg: rgba(255,255,255,.14);
  --hero-chip-br: rgba(255,255,255,.28);
  --hero-chip-shadow: rgba(0,0,0,.25);
}

.hero-chip{
  display: inline-flex;
  align-items: center;
  gap: .5ch;
  padding: .35rem .6rem;
  border-radius: 999px;
  border: 1px solid var(--hero-chip-br);
  color: var(--hero-chip-fg);
  background: var(--hero-chip-bg);
  box-shadow: 0 2px 6px var(--hero-chip-shadow);
  font-family: "Roboto Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-weight: 600;
  font-size: .82rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  line-height: 1;
  margin-bottom: .5rem;   /* Abstand zum Titel */
  user-select: none;
}

/* Optional: leichte Hover-Reaktion ohne Clickbarkeit (rein visuell) */
.hero-chip:hover{
  background: rgba(255,255,255,.20);
  border-color: rgba(255,255,255,.35);
}

/* Wenn du die alte .hero-kicker weiter nutzen willst, Chip darüber platzieren */
.hero-overlay .hero-chip + .hero-kicker{
  margin-top: .35rem;
}




/* === Interrupting Quote block inside the article === */
:root{
  --quote-color: #000; /* default black */
  --quote-font: var(--font-head, ui-sans-serif, system-ui, -apple-system, Segoe UI, Arial, sans-serif);
  --quote-weight: 800;
  --quote-size: clamp(1.6rem, 3.6vw, 2.6rem);
  --quote-line: 1.1;
  --quote-accent: rgba(0,0,0,.1);
}
.post-quote{
  margin: 1.5rem 0 2rem;
  padding: 1.25rem 0;
  display: block;
  border-top: 2px solid var(--quote-accent);
  border-bottom: 2px solid var(--quote-accent);
}
.post-quote p{
  margin: 0;
  color: var(--quote-color);
  font-family: var(--quote-font);
  font-weight: var(--quote-weight);
  font-size: var(--quote-size);
  line-height: var(--quote-line);
  text-wrap: balance;
}
