/*
Theme Name: FL Archive (Block)
Theme URI: https://frankenmodlabs.com
Author: Frankenmod Labs
Description: Block (Full Site Editing) version of the FL Archive theme: cyberpunk CRT-terminal look, sidebar navigation, project pages with linked build logs.
Version: 1.4.7
Requires at least: 6.4
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: fl-archive-block
*/

/* Base styles (from original static build) */
:root {
  --slime: #C6FF00;
  --purple: #9D00FF;
  --cyan: #00E5FF;
  --magenta: #FF3CAC;
  --charcoal: #2F3B46;
  --black: #050505;
  --text: #EAEAEA;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Oxanium', sans-serif;
  background: var(--black);
  color: var(--text);
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
}

/* GRID BACKGROUND */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(rgba(0, 229, 255, .08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 229, 255, .08) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

/* CRT SCANLINES */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 2;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, .02),
    rgba(255, 255, 255, .02) 2px,
    transparent 2px,
    transparent 4px
  );
  pointer-events: none;
}

.header,
.layout {
  position: relative;
  z-index: 1;
}

/* HEADER */
.header {
  background: linear-gradient(90deg, rgba(198, 255, 0, .15), rgba(157, 0, 255, .15));
  border-bottom: 2px solid var(--slime);
  padding: 12px 24px;
}

.logo {
  font-size: 2.25rem;
  line-height: 1;
  font-weight: 800;
  letter-spacing: 6px;
}

.logo .f {
  color: var(--slime);
  text-shadow: 0 0 10px var(--slime), 0 0 30px var(--slime);
}

.logo .l {
  color: var(--purple);
  text-shadow: 0 0 10px var(--purple), 0 0 30px var(--purple);
}

.subtitle {
  color: var(--cyan);
  letter-spacing: 4px;
  margin-top: 10px;
}

/* LAYOUT */
.layout {
  display: grid;
  grid-template-columns: 182px 1fr;
}

/* SIDEBAR */
.sidebar {
  background: #090909;
  border-right: 2px solid var(--purple);
  padding: 14px;
}

.menu-btn {
  display: block;
  width: 100%;
  margin-bottom: 12px;
  padding: 16px;
  background: var(--charcoal);
  border: 1px solid var(--cyan);
  border-radius: 20px;
  color: white;
  text-decoration: none;
  font-weight: 600;
  transition: .25s;
}

.menu-btn:hover,
.menu-btn:focus-visible {
  background: var(--purple);
  box-shadow: 0 0 20px rgba(157, 0, 255, .5);
  transform: translateX(5px);
  outline: none;
}

/* CONTENT */
.content {
  padding: 30px;
}

.content section[id] {
  scroll-margin-top: 20px;
}

.hero {
  border: 2px solid var(--slime);
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(198, 255, 0, .08), rgba(157, 0, 255, .12));
  padding: 35px;
}

.hero h1 {
  font-size: 3rem;
  color: var(--slime);
  text-shadow: 0 0 10px var(--slime);
}

.hero p {
  margin-top: 15px;
  color: #ddd;
}

/* CARDS */
.cards {
  margin-top: 25px;
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.card {
  background: #101010;
  border: 2px solid var(--charcoal);
  border-radius: 20px;
  padding: 20px;
  transition: .3s;
}

.card:hover {
  border-color: var(--cyan);
  box-shadow: 0 0 15px rgba(0, 229, 255, .3);
}

.card h3 {
  color: var(--cyan);
  margin-bottom: 10px;
}

.card p {
  color: #ccc;
}

/* STATUS PANEL */
.status {
  margin-top: 25px;
  background: #0f0f0f;
  border-left: 6px solid var(--magenta);
  border-radius: 16px;
  padding: 20px;
}

.status h2 {
  color: var(--magenta);
  margin-bottom: 15px;
}

.online {
  color: var(--slime);
  font-weight: bold;
  text-shadow: 0 0 10px var(--slime);
}

/* FOOTER */
.footer {
  margin-top: 30px;
  text-align: right;
  color: #999;
}

/* MOBILE */
@media (max-width: 900px) {
  .layout {
    grid-template-columns: 1fr;
  }
  .sidebar {
    border-right: none;
    border-bottom: 2px solid var(--purple);
  }
  .logo {
    font-size: 3rem;
  }
  .hero h1 {
    font-size: 2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .menu-btn, .card { transition: none; }
}

/* ===== WordPress additions ===== */
.logo a { color: inherit; text-decoration: none; display: inline-block; }
.menu-btn.is-active { background: var(--purple); box-shadow: 0 0 20px rgba(157, 0, 255, .5); }
.card h3 a { color: inherit; text-decoration: none; }
.card h3 a:hover { text-decoration: underline; }
.card-thumb { display: block; margin: -20px -20px 15px; border-radius: 18px 18px 0 0; overflow: hidden; }
.card-thumb img { display: block; width: 100%; height: auto; }
.card .meta { color: #999; font-size: .85rem; margin-top: 10px; }

.section-title { color: var(--slime); text-shadow: 0 0 10px var(--slime); margin-top: 30px; }

/* Single posts and pages */
.entry {
  margin-top: 25px;
  background: #101010;
  border: 2px solid var(--charcoal);
  border-radius: 20px;
  padding: 25px;
}
.entry-content { line-height: 1.7; color: #ddd; }
.entry-content > * + * { margin-top: 1em; }
.entry-content a { color: var(--cyan); }
.entry-content a:hover { color: var(--slime); }
.entry-content h2, .entry-content h3, .entry-content h4 { color: var(--cyan); margin-top: 1.5em; }
.entry-content img, .entry-content video, .entry-content iframe { max-width: 100%; height: auto; border-radius: 12px; }
.entry-content ul, .entry-content ol { padding-left: 1.5em; }
.entry-content blockquote { border-left: 4px solid var(--purple); padding-left: 15px; color: #ccc; }
.entry-content pre, .entry-content code { background: #000; border: 1px solid var(--charcoal); border-radius: 6px; padding: 2px 6px; color: var(--slime); }
.entry-content pre { padding: 15px; overflow-x: auto; }
.entry-content table { width: 100%; border-collapse: collapse; }
.entry-content th, .entry-content td { border: 1px solid var(--charcoal); padding: 8px; }
.entry-meta { color: #999; margin-top: 10px; font-size: .9rem; }
.entry-meta a { color: var(--cyan); }

.post-navigation, .pagination { margin-top: 25px; }
.pagination .nav-links, .post-navigation .nav-links { display: flex; gap: 10px; flex-wrap: wrap; justify-content: space-between; }
.page-numbers {
  display: inline-block; padding: 8px 14px; background: var(--charcoal);
  border: 1px solid var(--cyan); border-radius: 20px; color: #fff; text-decoration: none;
}
.page-numbers.current, .page-numbers:hover { background: var(--purple); }

.search-form { margin-top: 20px; display: flex; gap: 10px; flex-wrap: wrap; }
.search-form input[type="search"] {
  flex: 1; min-width: 180px; padding: 12px; background: #000; color: var(--text);
  border: 1px solid var(--cyan); border-radius: 20px; font-family: inherit;
}
.search-form input[type="submit"] {
  padding: 12px 20px; background: var(--charcoal); color: #fff; border: 1px solid var(--cyan);
  border-radius: 20px; font-family: inherit; cursor: pointer;
}
.search-form input[type="submit"]:hover { background: var(--purple); }

/* WordPress core classes */
.alignleft { float: left; margin: 0 1em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1em; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.wp-caption { max-width: 100%; }
.wp-caption-text, .gallery-caption { color: #999; font-size: .9rem; }
.screen-reader-text {
  border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); height: 1px; margin: -1px;
  overflow: hidden; padding: 0; position: absolute; width: 1px; word-wrap: normal !important;
}
.screen-reader-text:focus {
  background: #000; color: var(--slime); clip: auto; clip-path: none; height: auto; width: auto;
  left: 5px; top: 5px; padding: 15px 23px; z-index: 100000;
}

/* No top gap when the first block on a page has no hero above it */
.content > :first-child { margin-top: 0; }

/* ===== Block theme additions ===== */
.wp-site-blocks { padding: 0; }
.wp-site-blocks > * { margin-block-start: 0; margin-block-end: 0; }

.header .logo a { color: inherit; text-decoration: none; display: inline-block; }
.header .logo { margin: 0; }
.header p.subtitle { margin: 10px 0 0; }
.layout > .sidebar { align-self: stretch; }

.sidebar .wp-block-navigation,
.sidebar .wp-block-navigation__container { width: 100%; align-items: stretch; gap: 0; }
.sidebar .wp-block-navigation-item { display: block; width: 100%; margin-bottom: 12px; }
.sidebar .wp-block-navigation-item__content {
  display: block;
  width: 100%;
  padding: 16px;
  background: var(--charcoal);
  border: 1px solid var(--cyan);
  border-radius: 20px;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  transition: .25s;
}
.sidebar .wp-block-navigation-item__content:hover,
.sidebar .wp-block-navigation-item__content:focus-visible,
.sidebar .current-menu-item > .wp-block-navigation-item__content {
  background: var(--purple);
  box-shadow: 0 0 20px rgba(157, 0, 255, .5);
  transform: translateX(5px);
  outline: none;
  color: #fff;
}

ul.cards, ol.cards { list-style: none; padding-left: 0; }
.cards > li { margin: 0; }
.cards > li > .card { height: 100%; }
.card .wp-block-post-title { margin: 0 0 10px; font-size: 1.17em; }
.card .wp-block-post-title a { color: var(--cyan); text-decoration: none; }
.card .wp-block-post-title a:hover { text-decoration: underline; }
.card .wp-block-post-excerpt p { margin: 0; }
.card .wp-block-post-featured-image { margin: -20px -20px 15px; border-radius: 18px 18px 0 0; overflow: hidden; }
.card .wp-block-post-featured-image img { display: block; width: 100%; height: auto; }
.card .meta { margin-top: 10px; color: #999; font-size: .85rem; }
.section-title { margin-top: 30px; color: var(--slime); text-shadow: 0 0 10px var(--slime); }

.hero { margin-top: 0; }
.hero .wp-block-post-title, .hero h1 { margin: 0; }
.hero .wp-block-post-excerpt p, .hero > p { margin-top: 15px; color: #ddd; }

.entry { margin-top: 25px; background: #101010; border: 2px solid var(--charcoal); border-radius: 20px; padding: 25px; }
.entry:has(> .entry-content:empty):not(:has(figure)) { display: none; }
.entry-content { line-height: 1.7; color: #ddd; }
.entry-content > * + * { margin-top: 1em; }
.entry-content a { color: var(--cyan); }
.entry-content a:hover { color: var(--slime); }
.entry-content h2, .entry-content h3, .entry-content h4 { color: var(--cyan); margin-top: 1.5em; }
.entry-content img, .entry-content video, .entry-content iframe { max-width: 100%; height: auto; border-radius: 12px; }
.entry-content ul, .entry-content ol { padding-left: 1.5em; }
.entry-content blockquote { border-left: 4px solid var(--purple); padding-left: 15px; color: #ccc; }
.entry-content pre, .entry-content code { background: #000; border: 1px solid var(--charcoal); border-radius: 6px; padding: 2px 6px; color: var(--slime); }
.entry-content pre { padding: 15px; overflow-x: auto; }
.entry-content table { width: 100%; border-collapse: collapse; }
.entry-content th, .entry-content td { border: 1px solid var(--charcoal); padding: 8px; }
.entry > .wp-block-post-featured-image { margin: 0 0 20px; }
.entry > .wp-block-post-featured-image img { max-width: 100%; height: auto; border-radius: 12px; }
.entry .wp-block-post-terms { margin-top: 15px; }

.entry-meta { display: flex; flex-wrap: wrap; column-gap: .75em; margin-top: 10px; color: #999; font-size: .9rem; }
.entry-meta a { color: var(--cyan); }
.entry-meta .wp-block-post-date, .entry-meta .wp-block-post-terms { margin: 0; }
.entry-meta p { margin: 0; }
.project-links { color: var(--slime); }

.wp-block-query-pagination, .wp-block-post-navigation-link { margin-top: 25px; }
.wp-block-query-pagination { display: flex; flex-wrap: wrap; gap: 10px; }
.wp-block-query-pagination a, .wp-block-query-pagination .page-numbers,
.wp-block-post-navigation-link a {
  display: inline-block; padding: 8px 14px; background: var(--charcoal);
  border: 1px solid var(--cyan); border-radius: 20px; color: #fff; text-decoration: none;
}
.wp-block-query-pagination a:hover, .wp-block-query-pagination .current, .wp-block-post-navigation-link a:hover { background: var(--purple); }

.wp-block-search__inside-wrapper { gap: 10px; }
.wp-block-search__input { padding: 12px; background: #000; color: var(--text); border: 1px solid var(--cyan); border-radius: 20px; font-family: inherit; }
.wp-block-search__button { padding: 12px 20px; background: var(--charcoal); color: #fff; border: 1px solid var(--cyan); border-radius: 20px; font-family: inherit; cursor: pointer; }
.wp-block-search__button:hover { background: var(--purple); }

.wp-block-comments { margin-top: 25px; }
.wp-block-comments h2 { color: var(--magenta); }
.wp-block-comment-template { list-style: none; padding-left: 0; }
.wp-block-comment-template li { margin-top: 15px; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
  width: 100%; padding: 10px; background: #000; color: var(--text); border: 1px solid var(--cyan); border-radius: 12px; font-family: inherit;
}
.comment-form input[type="submit"] { padding: 10px 20px; background: var(--charcoal); color: #fff; border: 1px solid var(--cyan); border-radius: 20px; cursor: pointer; }

.footer p, p.footer { margin: 0; }

@media (max-width: 900px) {
  .sidebar .wp-block-navigation-item { margin-bottom: 8px; }
}

/* ===== Archives (wiki) ===== */
.wiki-layout { display: grid; grid-template-columns: 240px 1fr; gap: 25px; margin-top: 25px; align-items: start; }
.wiki-layout .entry { margin-top: 0; }
.wiki-side { background: #0f0f0f; border-left: 6px solid var(--cyan); border-radius: 16px; padding: 15px 18px; }
.wiki-tree ul { list-style: none; padding-left: 0; margin: 0; }
.wiki-tree ul ul { padding-left: 14px; border-left: 1px solid var(--charcoal); margin: 4px 0 4px 6px; }
.wiki-tree li { margin: 4px 0; }
.wiki-tree a { color: #ccc; text-decoration: none; }
.wiki-tree a:hover { color: var(--cyan); }
.wiki-tree .current_page_item > a { color: var(--slime); font-weight: 700; text-shadow: 0 0 8px var(--slime); }
.wiki-tree .current_page_ancestor > a { color: var(--cyan); }
.wiki-crumbs { color: #999; font-size: .9rem; margin-bottom: 10px; }
.wiki-crumbs a { color: var(--cyan); text-decoration: none; }
.wiki-crumbs a:hover { color: var(--slime); }
.wiki-main .section-title { margin-top: 30px; }
@media (max-width: 900px) {
  .wiki-layout { grid-template-columns: 1fr; }
}

.lab-notes-link { margin: 12px 0 0; }
.lab-notes-link a { color: var(--cyan); text-decoration: none; font-weight: 700; letter-spacing: .05em; }
.lab-notes-link a:hover { color: var(--slime); }

/* ===== Project cards: side-by-side thumbnail layout (v1.3.0) =====
   Used by project archive, front-page Latest Projects / Lab Notes, blog archives, search and the project log.
   Tweak these three variables to resize things. */
.project-cards {
  --pc-max-cols: 3;      /* never more than this many cards per row */
  --pc-min-card: 340px;  /* narrowest a card may get before the row drops a column */
  --pc-gap: 20px;
  --pc-thumb: 120px;     /* thumbnail width; height follows the 4:3 ratio */
  gap: var(--pc-gap);
  /* Column width is the larger of the minimum card width and a 1/max-cols share of the row,
     so auto-fill can never fit more than --pc-max-cols columns. */
  grid-template-columns: repeat(auto-fill, minmax(min(100%, max(var(--pc-min-card), calc((100% - (var(--pc-max-cols) - 1) * var(--pc-gap)) / var(--pc-max-cols) - 1px))), 1fr));
}

.project-card {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 16px;
}

/* Thumbnail: fixed width, 4:3 box, image cropped to fill (portrait photos can't stretch the card) */
.project-card .wp-block-post-featured-image {
  flex: 0 0 var(--pc-thumb, 120px);
  width: var(--pc-thumb, 120px);
  aspect-ratio: 4 / 3;
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
  border: 1px solid var(--charcoal);
}
.project-card .wp-block-post-featured-image a {
  display: block;
  width: 100%;
  height: 100%;
}
.project-card .wp-block-post-featured-image img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center;
}

/* Text column sits to the right of the thumbnail */
.project-card .card-body {
  flex: 1 1 0;
  min-width: 0;
}
.project-card .wp-block-post-title {
  overflow-wrap: anywhere;
}
.project-card .wp-block-post-excerpt__excerpt {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.project-card .wp-block-post-excerpt__more-text {
  margin-top: 8px;
}

@media (max-width: 420px) {
  .project-cards { --pc-thumb: 96px; }
  .project-card { gap: 12px; }
}

/* ===== Compact header ===== */
.header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 12px 24px 14px;
  border-bottom-width: 2px;
}
.logo {
  font-size: 2.25rem;
  line-height: 1;
  letter-spacing: 6px;
}
.header p.tagline {
  margin: 0;
  color: var(--cyan);
  font-size: .95rem;
  letter-spacing: 1.5px;
}

/* ===== Footer ===== */
.site-footer {
  position: relative;
  z-index: 1;
  background: #090909;
  border-top: 2px solid var(--purple);
  padding: 24px 30px;
}
.site-footer .status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 28px;
  margin: 0 0 20px;
  padding: 14px 20px;
}
.site-footer .status h2 { margin: 0; font-size: 1rem; }
.site-footer .status p { margin: 0; font-size: .9rem; }
.footer-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px 24px;
  font-size: .85rem;
  letter-spacing: 1px;
  color: #999;
}
.footer-bar p { margin: 0; }
.footer-brand .f { color: var(--slime); font-weight: 800; text-shadow: 0 0 8px var(--slime); }
.footer-brand .l { color: var(--purple); font-weight: 800; text-shadow: 0 0 8px var(--purple); }
.footer-links { display: flex; gap: 22px; }
.footer-links a { color: var(--cyan); text-decoration: none; font-weight: 700; }
.footer-links a:hover, .footer-links a:focus-visible { color: var(--slime); }

@media (max-width: 900px) {
  .header { padding: 10px 16px 12px; gap: 3px; }
  .logo { font-size: 1.75rem; letter-spacing: 4px; }
  .header p.tagline { font-size: .8rem; letter-spacing: 1px; }
  .site-footer { padding: 20px 16px; }
}

@media (max-width: 480px) {
  .logo { font-size: 1.4rem; letter-spacing: 3px; }
  .header p.tagline { font-size: .72rem; letter-spacing: .5px; }
  .footer-bar { flex-direction: column; align-items: flex-start; }
}

/* ===== Homepage: featured project + more from the lab ===== */
.featured-project { list-style: none; margin: 0; padding: 0; }
.card.featured-card {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 24px;
  border: 2px solid var(--slime);
  box-shadow: 0 0 25px rgba(198, 255, 0, .12);
}
.card.featured-card .wp-block-post-featured-image {
  flex: 0 0 min(42%, 420px);
  width: min(42%, 420px);
  aspect-ratio: 16 / 10;
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
}
.card.featured-card .wp-block-post-featured-image a { display: block; width: 100%; height: 100%; }
.card.featured-card .wp-block-post-featured-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.featured-card .card-body { flex: 1 1 0; min-width: 0; }
.featured-card .wp-block-post-title { margin-top: 0; font-size: 1.6rem; overflow-wrap: anywhere; }
.featured-card .wp-block-post-excerpt__excerpt {
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.more-projects > .wp-block-query + .wp-block-query { margin-top: 20px; }

@media (max-width: 700px) {
  .card.featured-card { flex-direction: column; gap: 16px; }
  .card.featured-card .wp-block-post-featured-image { flex: none; width: 100%; }
}

/* ===== Project page: 50/50 hero (v1.4.2) =====
   Columns block: featured image left, title / excerpt / meta right. Reuses the .hero panel look.
   Tweak --ph-max-h to change how tall the image may grow on desktop. */
.project-hero {
  --ph-max-h: 480px;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 35px;
  padding: 25px;
}
.project-hero > .wp-block-column {
  flex: 1 1 0;
  flex-basis: 50% !important; /* true 50/50 regardless of content */
  min-width: 0;
}

/* Image: fills the left column, never taller than --ph-max-h, cropped (not stretched) to fit.
   Direct-child selectors keep this off the lightbox overlay's enlarged copy of the image. */
.project-hero__media .wp-block-image,
.project-hero__media .wp-block-post-featured-image { margin: 0; }
.project-hero__media figure > img,
.project-hero__media .wp-lightbox-container > img {
  display: block;
  width: 100%;
  height: auto;
  max-height: var(--ph-max-h);
  object-fit: cover;
  object-position: center;
  border-radius: 12px;
  border: 1px solid var(--charcoal);
}
.project-hero__media .lightbox-trigger { cursor: zoom-in; }

/* Right column */
.project-hero__info .wp-block-post-title { margin: 0; }
.project-hero__info .wp-block-post-excerpt { margin-top: 15px; }
.project-hero__info .wp-block-post-excerpt p { margin: 0; }
.project-meta {
  margin-top: 20px;
  padding: 14px 18px;
  background: #0f0f0f;
  border-left: 6px solid var(--magenta);
  border-radius: 16px;
}
.project-meta__row {
  display: flex;
  flex-wrap: nowrap;
  align-items: baseline;
  gap: 14px;
  padding: 4px 0;
}
.project-meta__row > * { margin: 0; }
.project-meta__label {
  flex: 0 0 8.5em;
  color: var(--magenta);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: 2px;
}
.project-meta__row .wp-block-post-date { margin: 0; color: #ccc; font-size: 1rem; }
.project-meta__row .meta { margin: 0; color: #ccc; font-size: 1rem; }

/* Below 782px: stack to one column; image goes full width at its natural aspect ratio. */
@media (max-width: 781px) {
  .project-hero {
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
    padding: 18px;
  }
  .project-hero > .wp-block-column { flex-basis: 100% !important; width: 100%; }
  .project-hero__media figure > img,
  .project-hero__media .wp-lightbox-container > img {
    width: 100%;
    height: auto;
    max-height: none;
    object-fit: contain;
  }
  .project-meta__label { flex-basis: 7em; }
}

/* ===== Broadcast page (Smash Balloon YouTube feed) ===== */
.broadcast-feed { overflow: hidden; }
.broadcast-feed .sb_youtube { max-width: 100%; }
.broadcast-feed .sby_video_title,
.broadcast-feed .sby_video_title a { color: var(--cyan); font-family: inherit; text-decoration: none; }
.broadcast-feed .sby_video_title:hover,
.broadcast-feed .sby_video_title a:hover { color: var(--slime); }
.broadcast-feed .sby_load_btn,
.broadcast-feed .sby_follow_btn a {
  background: var(--charcoal) !important; color: #fff !important;
  border: 1px solid var(--cyan); border-radius: 8px;
}
.broadcast-feed .sby_load_btn:hover,
.broadcast-feed .sby_follow_btn a:hover { background: var(--cyan) !important; color: #000 !important; }

/* Broadcast page title in all caps, like the other page titles */
.broadcast .hero h1 { text-transform: uppercase; }
