/*
Theme Name: Revolucci Gallery Slider 3.0
Theme URI: https://revolucci.art/
Author: NotYouAgain.ai
Description: Revolucci.art theme with explicit gallery sliders, mapped category fallback imagery, horizontal category slider, visible inline article images, and responsive single-title fitting.
Version: 4.1.0
License: GPL-2.0-or-later
Text Domain: revolucci-slider
*/

:root{
  --paper:#eee5d8;
  --paper-2:#f7efe3;
  --ink:#111;
  --muted:#544f48;
  --line:rgba(17,17,17,.25);
  --soft:rgba(255,255,255,.32);
  --shadow:0 18px 45px rgba(0,0,0,.13);
  --header-h:68px;
}

*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--paper);color:var(--ink);font-family:"Courier New",Courier,monospace;overflow-x:hidden}body:before{content:"";position:fixed;inset:0;pointer-events:none;z-index:-1;background:radial-gradient(circle at 20% 10%,rgba(255,255,255,.45),transparent 35%),radial-gradient(circle at 80% 70%,rgba(0,0,0,.04),transparent 45%),linear-gradient(90deg,rgba(0,0,0,.035) 1px,transparent 1px),linear-gradient(rgba(0,0,0,.025) 1px,transparent 1px);background-size:auto,auto,34px 34px,34px 34px;mix-blend-mode:multiply}.site-header{height:var(--header-h);display:flex;align-items:center;justify-content:space-between;gap:24px;padding:0 clamp(18px,3vw,52px);border-bottom:1px solid var(--line);position:sticky;top:0;z-index:30;background:rgba(238,229,216,.88);backdrop-filter:blur(14px)}.site-branding a{color:var(--ink);text-decoration:none;font-weight:900;letter-spacing:.32em;font-size:clamp(18px,2vw,29px);white-space:nowrap}.site-nav ul{display:flex;align-items:center;gap:clamp(14px,2vw,34px);padding:0;margin:0;list-style:none}.site-nav a{color:var(--ink);text-decoration:none;text-transform:uppercase;font-weight:800;letter-spacing:.12em;font-size:13px;border-bottom:2px solid transparent;padding-bottom:6px}.site-nav a:hover,.site-nav .current-menu-item a{border-color:var(--ink)}.site-action{display:flex;align-items:center;gap:12px}.ink-button,.button-ink{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:44px;padding:12px 18px;background:var(--ink);color:var(--paper-2);text-decoration:none;text-transform:uppercase;letter-spacing:.12em;font-weight:900;border:1px solid var(--ink);box-shadow:5px 5px 0 rgba(0,0,0,.13);transition:transform .18s ease,box-shadow .18s ease}.ink-button:hover,.button-ink:hover{transform:translate(-2px,-2px);box-shadow:8px 8px 0 rgba(0,0,0,.18)}.button-ink.secondary{background:transparent;color:var(--ink)}

.home-shell{height:calc(100svh - var(--header-h));min-height:620px;max-height:calc(100svh - var(--header-h));display:grid;grid-template-rows:minmax(0,1fr) auto;overflow:hidden;padding:clamp(10px,1.5vw,24px) clamp(14px,3vw,54px) clamp(10px,1.5vw,20px)}.hero-revolucci{min-height:0;height:100%;display:grid;grid-template-columns:minmax(170px,.64fr) minmax(300px,1.08fr) minmax(185px,.64fr);align-items:center;gap:clamp(14px,2.4vw,48px);padding:clamp(6px,1.2vw,18px) 0 clamp(8px,1.4vw,20px);border-bottom:1px solid var(--line);overflow:hidden}.hero-kicker{display:inline-block;text-transform:uppercase;letter-spacing:.22em;font-weight:900;font-size:clamp(10px,.85vw,13px);border-bottom:2px solid var(--ink);padding-bottom:6px;margin-bottom:clamp(8px,1vw,14px)}.hero-title{font-family:Impact,"Arial Black",sans-serif;font-size:clamp(42px,5.6vw,92px);line-height:.82;letter-spacing:.04em;text-transform:uppercase;margin:0 0 clamp(10px,1.3vw,18px)}.hero-sub{max-width:330px;font-size:clamp(12px,.95vw,16px);line-height:1.38;color:var(--muted);margin:0 0 clamp(10px,1.3vw,18px)}.hero-art{display:grid;place-items:center;min-height:0;height:100%;overflow:hidden}.hero-art img{width:min(100%,560px);max-height:calc((100svh - var(--header-h)) * .58);object-fit:contain;filter:contrast(1.05);mix-blend-mode:multiply}.hero-quote{font-size:clamp(12px,1vw,17px);line-height:1.55;max-width:300px}.quote-mark{font-family:Georgia,serif;font-size:clamp(48px,5vw,72px);line-height:.6;display:block;font-weight:900}.hero-quote p{margin:0 0 16px}.hero-quote:after{content:"";display:block;width:72px;height:12px;background:linear-gradient(180deg,transparent 45%,var(--ink) 45%,var(--ink) 58%,transparent 58%);transform:rotate(-4deg)}

.category-stage{min-height:0;padding-top:clamp(8px,1.2vw,16px);overflow:hidden}.stage-header{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:0 0 clamp(8px,1vw,12px)}.stage-title{font-size:clamp(13px,1vw,19px);font-weight:900;letter-spacing:.22em;text-transform:uppercase;white-space:nowrap}.stage-line{height:1px;background:var(--line);flex:1}.slider-controls{display:flex;align-items:center;gap:10px}.nav-button{width:clamp(34px,2.8vw,44px);height:clamp(34px,2.8vw,44px);border-radius:999px;border:1px solid var(--ink);background:transparent;color:var(--ink);font-size:clamp(22px,2vw,28px);line-height:1;cursor:pointer}.nav-button:hover{background:var(--ink);color:var(--paper)}.category-rail{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(280px,25vw);gap:clamp(10px,1.2vw,18px);overflow-x:auto;overflow-y:hidden;scroll-snap-type:x mandatory;scrollbar-width:none;outline:none;padding:0 0 clamp(6px,.8vw,10px)}.category-rail::-webkit-scrollbar{display:none}.category-card{scroll-snap-align:start;height:clamp(225px,28svh,330px);min-height:0;border:1px solid var(--line);border-radius:10px;overflow:hidden;background:rgba(255,255,255,.2);position:relative;box-shadow:var(--shadow);display:flex;flex-direction:column;text-decoration:none;color:var(--ink)}.category-card-img{height:62%;min-height:130px;background-size:cover;background-position:center;filter:grayscale(1) contrast(1.08);mix-blend-mode:multiply;border-bottom:1px solid var(--line);transition:transform .45s ease}.category-card:hover .category-card-img{transform:scale(1.035)}.category-card-copy{padding:clamp(12px,1.2vw,18px);height:38%;min-height:0;background:linear-gradient(180deg,rgba(238,229,216,.7),rgba(238,229,216,.96));overflow:hidden}.category-card h2{font-family:Impact,"Arial Black",sans-serif;text-transform:uppercase;letter-spacing:.16em;font-size:clamp(19px,1.55vw,30px);line-height:.95;margin:0 0 6px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.category-card p{font-size:clamp(11px,.85vw,13px);line-height:1.28;margin:0;color:var(--muted);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.card-arrow{position:absolute;right:clamp(12px,1.2vw,20px);bottom:clamp(10px,1.1vw,16px);font-size:clamp(22px,2vw,30px)}.slider-dots{display:flex;justify-content:center;gap:9px;padding:2px 0 0}.dot{width:10px;height:10px;border-radius:999px;border:1px solid var(--ink);background:transparent;cursor:pointer}.dot.is-active{background:var(--ink)}


@media (min-width:1021px) and (max-height:760px){.site-header{height:58px}.home-shell{min-height:560px}.hero-title{font-size:clamp(38px,5vw,78px)}.hero-sub{font-size:12px}.ink-button,.button-ink{min-height:38px;padding:9px 14px;font-size:12px}.hero-art img{max-height:46svh;width:min(100%,480px)}.category-card{height:clamp(205px,26svh,285px)}.category-card-img{height:60%;min-height:120px}.category-card-copy{height:40%;padding:12px}.hero-quote{font-size:12px}.quote-mark{font-size:44px}}
@media (min-width:1021px) and (max-height:660px){.hero-kicker,.hero-sub,.hero-quote{display:none}.hero-revolucci{grid-template-columns:minmax(160px,.55fr) minmax(260px,.9fr) minmax(160px,.55fr)}.hero-art img{max-height:42svh}.category-card{height:220px}.category-card-img{height:64%}.category-card-copy{height:36%}}
.content-shell{max-width:1180px;margin:0 auto;padding:clamp(26px,5vw,72px) clamp(18px,4vw,52px)}.archive-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}.post-card{border:1px solid var(--line);background:rgba(255,255,255,.24);box-shadow:var(--shadow);text-decoration:none;color:var(--ink);display:block;overflow:hidden}.post-card-image{height:260px;background-size:cover;background-position:center;filter:grayscale(1) contrast(1.05);mix-blend-mode:multiply;border-bottom:1px solid var(--line)}.post-card-copy{padding:20px}.post-card h2{font-family:Impact,"Arial Black",sans-serif;text-transform:uppercase;letter-spacing:.08em;line-height:.95;font-size:34px;margin:0 0 10px}.single-hero{min-height:54vh;display:grid;align-items:end;padding:clamp(80px,12vw,170px) clamp(18px,4vw,72px) 42px;background-size:cover;background-position:center;filter:grayscale(1);position:relative}.single-hero:before{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(238,229,216,.95),rgba(238,229,216,.55),rgba(238,229,216,.1))}.single-hero-copy{position:relative;max-width:820px}.single-hero h1,.archive-title{font-family:Impact,"Arial Black",sans-serif;text-transform:uppercase;letter-spacing:.06em;line-height:.9;font-size:clamp(56px,9vw,142px);margin:0}.entry-content{font-size:20px;line-height:1.7;max-width:1120px;margin:0 auto;padding:clamp(28px,5vw,74px) clamp(18px,4vw,52px)}.entry-content p,.entry-content blockquote,.entry-content pre,.entry-content ul,.entry-content ol{max-width:840px;margin-left:auto;margin-right:auto}.entry-content p,.entry-content blockquote,.entry-content pre{cursor:zoom-in}.wp-block-gallery,.gallery{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px!important;max-width:1120px!important;margin:32px auto!important}.wp-block-gallery img,.gallery img,.entry-content img{cursor:zoom-in}.entry-content img{max-width:100%;height:auto}.comments-area{max-width:840px;margin:0 auto 80px;padding:0 clamp(18px,4vw,52px)}

.revolucci-lightbox-open{overflow:hidden}.revolucci-lightbox{position:fixed;inset:0;z-index:9999;display:none;align-items:center;justify-content:center;background:rgba(12,10,8,.92);padding:28px}.revolucci-lightbox.is-open{display:flex}.revolucci-lightbox-inner{position:relative;max-width:min(1160px,94vw);max-height:90vh;color:var(--paper)}.revolucci-lightbox img{max-width:100%;max-height:86vh;display:block;object-fit:contain}.revolucci-lightbox-text{max-width:min(860px,90vw);max-height:82vh;overflow:auto;background:var(--paper);color:var(--ink);padding:clamp(26px,5vw,64px);font-size:clamp(22px,3vw,46px);line-height:1.45;box-shadow:0 30px 70px rgba(0,0,0,.45)}.revolucci-lightbox-close,.revolucci-lightbox-prev,.revolucci-lightbox-next{position:fixed;border:1px solid var(--paper);background:transparent;color:var(--paper);cursor:pointer}.revolucci-lightbox-close{right:24px;top:22px;width:48px;height:48px;font-size:34px}.revolucci-lightbox-prev,.revolucci-lightbox-next{top:50%;transform:translateY(-50%);width:56px;height:56px;border-radius:999px;font-size:38px}.revolucci-lightbox-prev{left:24px}.revolucci-lightbox-next{right:24px}

@media (max-width:1020px){.site-nav{display:none}.home-shell{height:auto;max-height:none;min-height:calc(100svh - var(--header-h));overflow:visible;display:block;padding:clamp(14px,3vw,28px)}.hero-revolucci{grid-template-columns:1fr;min-height:auto;height:auto;text-align:left;overflow:visible}.hero-art{order:-1;min-height:0;height:auto}.hero-art img{max-height:42svh;width:min(100%,420px)}.hero-title{font-size:clamp(44px,9vw,82px)}.hero-quote{display:none}.category-rail{grid-auto-columns:minmax(260px,78vw)}.category-card{height:clamp(270px,40svh,360px)}.archive-grid{grid-template-columns:1fr 1fr}}@media (max-width:680px){:root{--header-h:58px}.site-header{padding:0 16px}.site-branding a{font-size:16px;letter-spacing:.18em}.site-action{display:none}.home-shell{padding:14px}.hero-title{font-size:48px}.hero-sub{font-size:13px}.category-card{height:300px}.category-card-img{height:62%;min-height:165px}.archive-grid{grid-template-columns:1fr}.wp-block-gallery,.gallery{grid-template-columns:1fr 1fr}.entry-content{font-size:18px}.single-hero h1,.archive-title{font-size:58px}}


/* v2.2 — gallery first, text second */
.category-card-gallery{
  height:66%;
  min-height:145px;
  display:grid;
  grid-template-columns:1.35fr 1fr;
  grid-template-rows:1fr 1fr;
  gap:1px;
  overflow:hidden;
  border-bottom:1px solid var(--line);
  background:rgba(0,0,0,.08);
}
.category-card-gallery .category-card-img{
  height:auto;
  min-height:0;
  width:100%;
  display:block;
  background-size:cover;
  background-position:center;
  filter:grayscale(1) contrast(1.11);
  mix-blend-mode:multiply;
  border:0;
  transition:transform .45s ease;
}
.category-card-gallery .mosaic-0{grid-row:1 / span 2;}
.category-card:hover .category-card-gallery .category-card-img{transform:scale(1.035)}
.category-card-copy{height:34%;}
.category-card:after,.post-card:after{content:"Gallery first";position:absolute;top:10px;left:10px;background:rgba(238,229,216,.88);border:1px solid var(--ink);padding:5px 8px;font-size:10px;line-height:1;text-transform:uppercase;letter-spacing:.16em;font-weight:900;}
.post-card{position:relative;}
.post-card-gallery{height:300px;display:grid;grid-template-columns:1.35fr 1fr;grid-template-rows:1fr 1fr;gap:1px;overflow:hidden;border-bottom:1px solid var(--line);background:rgba(0,0,0,.08)}
.post-card-gallery .post-card-image{height:auto;border:0;display:block;background-size:cover;background-position:center;filter:grayscale(1) contrast(1.08);mix-blend-mode:multiply;}
.post-card-gallery .mosaic-0{grid-row:1 / span 2;}
.post-card-image{height:300px;}
.single-hero-compact{min-height:34vh;}
.revolucci-gallery-lead{max-width:1480px;margin:0 auto;padding:clamp(18px,3vw,44px) clamp(14px,3vw,44px) clamp(10px,2vw,26px);}
.gallery-lead-header,.text-second-header{display:flex;align-items:end;justify-content:space-between;gap:20px;border-bottom:1px solid var(--line);padding-bottom:12px;margin-bottom:18px;text-transform:uppercase;letter-spacing:.18em;font-weight:900;}
.gallery-lead-header strong{font-size:12px;color:var(--muted);}
.revolucci-gallery-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:clamp(8px,1vw,16px);grid-auto-flow:dense;}
.gallery-lead-item{margin:0;min-height:180px;border:1px solid var(--line);background:rgba(255,255,255,.22);box-shadow:var(--shadow);overflow:hidden;}
.gallery-lead-item.is-featured{grid-column:span 2;grid-row:span 2;}
.gallery-lead-item img{width:100%;height:100%;min-height:inherit;object-fit:cover;display:block;filter:grayscale(1) contrast(1.06);mix-blend-mode:multiply;cursor:zoom-in;transition:transform .35s ease;}
.gallery-lead-item:hover img{transform:scale(1.035);}
.text-second-panel{border-top:1px solid var(--line);margin-top:clamp(12px,2vw,28px);}
.text-second-header{max-width:1120px;margin:0 auto;padding:clamp(18px,3vw,34px) clamp(18px,4vw,52px) 12px;align-items:start;}
.text-second-header p{margin:0;text-transform:none;letter-spacing:0;font-weight:400;color:var(--muted);max-width:420px;font-size:13px;line-height:1.4;}
.text-second-panel .entry-content{padding-top:24px;}
.text-second-panel .entry-content .wp-block-gallery,
.text-second-panel .entry-content .gallery{display:none!important;}
.text-second-panel .entry-content p,
.text-second-panel .entry-content blockquote,
.text-second-panel .entry-content pre,
.text-second-panel .entry-content li{cursor:zoom-in;}

@media (min-width:1021px){
  .home-shell{grid-template-rows:minmax(0,.92fr) auto;}
  .category-card{height:clamp(245px,31svh,360px);}
}
@media (max-width:1020px){
  .revolucci-gallery-grid{grid-template-columns:repeat(3,minmax(0,1fr));}
  .gallery-lead-item.is-featured{grid-column:span 2;grid-row:span 1;}
  .post-card-gallery{height:260px;}
}
@media (max-width:680px){
  .revolucci-gallery-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
  .gallery-lead-item{min-height:150px;}
  .gallery-lead-item.is-featured{grid-column:span 2;}
  .gallery-lead-header,.text-second-header{display:block;}
  .text-second-header p{margin-top:8px;}
  .post-card-gallery{height:240px;}
}


/* v2.3 — viewport, colour, and typography correction */
:root{
  --paper:#eadfce;
  --paper-2:#f1e7d8;
  --ink:#0f0e0d;
  --muted:#37322c;
  --line:rgba(15,14,13,.20);
  --shadow:0 10px 26px rgba(0,0,0,.10);
}
body{
  background:var(--paper);
  font-family:"Courier New", Courier, monospace;
}
body:before{
  background:
    radial-gradient(circle at 18% 12%,rgba(255,255,255,.22),transparent 34%),
    radial-gradient(circle at 82% 78%,rgba(0,0,0,.035),transparent 45%),
    linear-gradient(180deg,rgba(255,255,255,.12),rgba(0,0,0,.025));
  background-size:auto;
  mix-blend-mode:multiply;
  opacity:.85;
}
.site-header{
  background:rgba(234,223,206,.94);
  border-bottom:1px solid rgba(15,14,13,.18);
}
.site-branding a{letter-spacing:.34em;}
.site-action .ink-button{box-shadow:4px 4px 0 rgba(0,0,0,.10);}
.home-shell{
  min-height:calc(100svh - var(--header-h));
  height:calc(100svh - var(--header-h));
  max-height:calc(100svh - var(--header-h));
  grid-template-rows:minmax(0,.66fr) minmax(205px,.34fr);
  padding:clamp(8px,1vw,16px) clamp(16px,3vw,52px) clamp(8px,1vw,16px);
  overflow:hidden;
}
.hero-revolucci{
  grid-template-columns:minmax(205px,.72fr) minmax(300px,1fr) minmax(150px,.48fr);
  gap:clamp(14px,2vw,34px);
  padding:0 0 clamp(8px,1vw,14px);
}
.hero-title{
  font-size:clamp(36px,4.6vw,74px);
  line-height:.88;
  letter-spacing:.01em;
  margin-bottom:clamp(8px,1vw,12px);
}
.hero-kicker{font-size:clamp(9px,.78vw,12px);margin-bottom:clamp(6px,.8vw,10px);}
.hero-sub{
  max-width:290px;
  font-size:clamp(11px,.82vw,14px);
  line-height:1.32;
  margin-bottom:clamp(8px,1vw,12px);
}
.hero-art img{
  width:min(100%,500px);
  max-height:calc((100svh - var(--header-h)) * .43);
  background:transparent;
  filter:contrast(1.04) saturate(.92);
  mix-blend-mode:multiply;
}
.hero-quote{font-size:clamp(11px,.84vw,14px);max-width:240px;}
.quote-mark{font-size:clamp(38px,3.4vw,56px);}
.ink-button,.button-ink{
  min-height:38px;
  padding:10px 15px;
  font-size:clamp(11px,.82vw,13px);
  box-shadow:4px 4px 0 rgba(0,0,0,.10);
}
.category-stage{padding-top:clamp(6px,.8vw,10px);}
.stage-header{margin-bottom:clamp(6px,.75vw,10px);}
.stage-title{font-size:clamp(12px,.92vw,16px);letter-spacing:.18em;}
.nav-button{width:clamp(30px,2.4vw,40px);height:clamp(30px,2.4vw,40px);font-size:clamp(20px,1.7vw,26px);}
.category-rail{grid-auto-columns:minmax(250px,24vw);gap:clamp(10px,1vw,16px);}
.category-card{
  height:clamp(190px,26svh,285px);
  border-radius:8px;
  background:rgba(234,223,206,.42);
  box-shadow:0 8px 24px rgba(0,0,0,.09);
}
.category-card-gallery{height:65%;min-height:120px;}
.category-card-copy{height:35%;padding:clamp(9px,1vw,14px);background:rgba(234,223,206,.92);}
.category-card h2{font-size:clamp(15px,1.18vw,22px);line-height:1;letter-spacing:.14em;}
.category-card p{font-size:clamp(10px,.74vw,12px);line-height:1.22;-webkit-line-clamp:2;}
.category-card:after,.post-card:after{display:none!important;}
.card-arrow{font-size:clamp(18px,1.5vw,24px);bottom:10px;}
.slider-dots{padding-top:1px;}
.dot{width:8px;height:8px;}

@media (max-width:1100px){
  :root{--header-h:64px;}
  .site-header{height:var(--header-h);padding:0 clamp(18px,3vw,30px);}
  .site-branding a{font-size:clamp(16px,2.2vw,22px);letter-spacing:.28em;}
  .site-nav{display:none;}
  .home-shell{
    display:grid;
    height:calc(100svh - var(--header-h));
    min-height:calc(100svh - var(--header-h));
    max-height:calc(100svh - var(--header-h));
    grid-template-rows:minmax(0,.60fr) minmax(245px,.40fr);
    overflow:hidden;
    padding:12px 30px 12px;
  }
  .hero-revolucci{
    display:grid;
    grid-template-columns:minmax(260px,.78fr) minmax(300px,1fr);
    grid-template-areas:"copy art";
    height:100%;
    min-height:0;
    overflow:hidden;
    text-align:left;
    border-bottom:1px solid var(--line);
    gap:20px;
    align-items:center;
  }
  .hero-copy{grid-area:copy;}
  .hero-art{grid-area:art;order:initial;height:100%;min-height:0;}
  .hero-quote{display:none;}
  .hero-art img{width:min(100%,370px);max-height:34svh;}
  .hero-title{font-size:clamp(38px,5.4vw,58px);line-height:.88;}
  .hero-sub{font-size:12px;max-width:310px;}
  .button-ink{min-height:36px;padding:9px 13px;}
  .category-stage{min-height:0;overflow:hidden;}
  .category-rail{grid-auto-columns:minmax(225px,31vw);gap:12px;}
  .category-card{height:clamp(205px,26svh,250px);}
  .category-card-gallery{height:66%;min-height:125px;}
  .category-card-copy{height:34%;}
}

@media (max-width:760px){
  :root{--header-h:58px;}
  .site-header{padding:0 16px;}
  .home-shell{
    height:auto;
    max-height:none;
    min-height:calc(100svh - var(--header-h));
    overflow:visible;
    display:block;
    padding:14px;
  }
  .hero-revolucci{display:grid;grid-template-columns:1fr;grid-template-areas:"art" "copy";height:auto;overflow:visible;text-align:left;}
  .hero-art img{width:min(100%,360px);max-height:38svh;}
  .hero-title{font-size:44px;}
  .category-rail{grid-auto-columns:minmax(240px,82vw);}
  .category-card{height:270px;}
}

/* v2.4 — desktop/laptop viewport fit + category hero image preservation */
@media (min-width:761px){
  :root{--header-h:60px;}
  .site-header{height:var(--header-h);position:sticky;}
  .home-shell{
    height:calc(100dvh - var(--header-h));
    min-height:0;
    max-height:calc(100dvh - var(--header-h));
    display:grid;
    grid-template-rows:minmax(235px,47%) minmax(190px,53%);
    gap:0;
    overflow:hidden;
    padding:clamp(8px,1vw,14px) clamp(18px,3vw,50px) clamp(8px,1vw,14px);
  }
  .hero-revolucci{
    min-height:0;
    height:100%;
    overflow:hidden;
    grid-template-columns:minmax(210px,.70fr) minmax(280px,.92fr) minmax(140px,.42fr);
    align-items:center;
    gap:clamp(14px,2vw,32px);
    padding:0 0 clamp(6px,.8vw,10px);
  }
  .hero-title{font-size:clamp(34px,3.8vw,66px);line-height:.88;margin-bottom:8px;}
  .hero-kicker{font-size:clamp(9px,.72vw,11px);margin-bottom:7px;}
  .hero-sub{font-size:clamp(11px,.78vw,13px);line-height:1.25;max-width:285px;margin-bottom:9px;}
  .hero-quote{font-size:clamp(10px,.72vw,13px);line-height:1.35;max-width:215px;}
  .quote-mark{font-size:clamp(34px,2.8vw,48px);}
  .hero-art{height:100%;min-height:0;}
  .hero-art img{width:min(100%,430px);max-height:min(36dvh,390px);object-fit:contain;}
  .button-ink,.ink-button{min-height:34px;padding:8px 13px;font-size:clamp(10px,.72vw,12px);}
  .category-stage{min-height:0;overflow:hidden;padding-top:clamp(6px,.7vw,9px);display:grid;grid-template-rows:auto minmax(0,1fr) auto;}
  .stage-header{margin-bottom:clamp(6px,.7vw,9px);}
  .stage-title{font-size:clamp(11px,.82vw,15px);}
  .category-rail{min-height:0;grid-auto-columns:minmax(230px,23vw);gap:clamp(10px,1vw,15px);align-content:start;}
  .category-card{height:clamp(170px,23dvh,235px);box-shadow:0 8px 20px rgba(0,0,0,.08);}
  .category-card-gallery{display:block;height:66%;min-height:0;overflow:hidden;background:rgba(0,0,0,.04);}
  .category-card-gallery .category-card-img{display:block;width:100%;height:100%;background-size:cover;background-position:center;}
  .category-card-gallery .category-card-img:not(:first-child){display:none;}
  .category-card-copy{height:34%;padding:9px 12px;}
  .category-card h2{font-size:clamp(14px,1.05vw,20px);line-height:1;margin-bottom:4px;}
  .category-card p{font-size:clamp(9px,.68vw,11px);line-height:1.18;-webkit-line-clamp:2;}
  .card-arrow{right:12px;bottom:8px;font-size:20px;}
  .slider-dots{height:16px;align-items:center;}
}

@media (min-width:761px) and (max-height:820px){
  :root{--header-h:56px;}
  .site-header{height:var(--header-h);}
  .home-shell{grid-template-rows:minmax(210px,44%) minmax(185px,56%);padding-top:8px;padding-bottom:7px;}
  .hero-title{font-size:clamp(30px,3.4vw,56px);}
  .hero-sub{font-size:11px;line-height:1.22;}
  .hero-kicker{display:none;}
  .hero-art img{width:min(100%,390px);max-height:min(31dvh,320px);}
  .hero-quote{display:none;}
  .hero-revolucci{grid-template-columns:minmax(210px,.68fr) minmax(280px,.92fr);grid-template-areas:"copy art";}
  .hero-copy{grid-area:copy;}
  .hero-art{grid-area:art;}
  .category-card{height:clamp(165px,23dvh,220px);}
  .category-card-copy{padding:8px 11px;}
}

@media (min-width:1101px) and (min-height:900px){
  .home-shell{grid-template-rows:minmax(310px,52%) minmax(230px,48%);}
  .hero-art img{width:min(100%,520px);max-height:min(42dvh,500px);}
  .category-card{height:clamp(210px,25dvh,285px);}
}

.archive-hero{
  min-height:min(42dvh,430px);
  display:grid;
  align-items:end;
  padding:clamp(52px,8vw,110px) clamp(18px,4vw,72px) clamp(24px,3vw,44px);
  background-size:cover;
  background-position:center;
  position:relative;
  overflow:hidden;
  border-bottom:1px solid var(--line);
}
.archive-hero:before{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(234,223,206,.96),rgba(234,223,206,.62),rgba(234,223,206,.2));}
.archive-hero:after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(234,223,206,.16),rgba(0,0,0,.05));mix-blend-mode:multiply;}
.archive-hero-copy{position:relative;z-index:1;max-width:880px;}
.archive-hero .archive-title{font-size:clamp(46px,8vw,116px);}
.archive-hero-desc{max-width:680px;font-size:clamp(13px,1vw,17px);line-height:1.45;color:var(--muted);margin-top:12px;}
.archive-hero + .content-shell{padding-top:clamp(24px,3vw,44px);}
@media (max-width:760px){.archive-hero{min-height:34vh;padding:44px 18px 26px}.archive-hero .archive-title{font-size:48px}}

/* v2.5 — auto-sliding category hero banners + category fallback art */
.home-shell{
  grid-template-rows:minmax(260px,52%) minmax(190px,48%);
}
.hero-revolucci.hero-category-slider{
  display:block;
  position:relative;
  height:100%;
  min-height:0;
  padding:0;
  border-bottom:1px solid var(--line);
  overflow:hidden;
  background:var(--paper);
}
.hero-slides{
  position:relative;
  height:100%;
  min-height:0;
}
.hero-slide{
  position:absolute;
  inset:0;
  display:grid;
  align-items:center;
  text-decoration:none;
  color:var(--ink);
  background-size:cover;
  background-position:center;
  opacity:0;
  transform:scale(1.015);
  pointer-events:none;
  transition:opacity .75s ease, transform 1.25s ease;
  filter:grayscale(1) contrast(1.04);
  isolation:isolate;
}
.hero-slide.is-active{
  opacity:1;
  transform:scale(1);
  pointer-events:auto;
}
.hero-slide-shade{
  position:absolute;
  inset:0;
  z-index:0;
  background:linear-gradient(90deg,rgba(238,229,216,.94) 0%,rgba(238,229,216,.72) 28%,rgba(238,229,216,.22) 58%,rgba(238,229,216,.08) 100%);
  mix-blend-mode:multiply;
}
.hero-slide-copy{
  position:relative;
  z-index:2;
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  width:min(44vw,640px);
  max-width:680px;
  margin-left:clamp(22px,4.5vw,86px);
}
.hero-slide-title{
  display:block;
  font-family:Impact,"Arial Black",sans-serif;
  font-size:clamp(48px,8.2vw,136px);
  line-height:.82;
  letter-spacing:.02em;
  text-transform:uppercase;
  margin:0 0 clamp(9px,1vw,16px);
  text-shadow:0 2px 0 rgba(238,229,216,.75);
}
.hero-category-slider .hero-sub{
  display:block;
  max-width:520px;
  font-size:clamp(12px,.95vw,16px);
  color:rgba(17,17,17,.82);
  margin-bottom:clamp(10px,1.1vw,16px);
  background:rgba(238,229,216,.48);
  padding:6px 0;
}
.hero-slider-controls{
  position:absolute;
  z-index:5;
  right:clamp(14px,2.2vw,40px);
  bottom:clamp(10px,1.2vw,18px);
  display:flex;
  align-items:center;
  gap:10px;
  padding:6px 8px;
  background:rgba(238,229,216,.62);
  backdrop-filter:blur(8px);
  border:1px solid rgba(17,17,17,.18);
}
.hero-dots{display:flex;align-items:center;gap:8px;}
.hero-dot{width:9px;height:9px;border-radius:999px;border:1px solid var(--ink);background:transparent;padding:0;cursor:pointer;}
.hero-dot.is-active{background:var(--ink);}
.hero-nav{width:34px;height:34px;font-size:22px;}
.category-card-gallery .category-card-img,
.post-card-gallery .post-card-image{
  filter:grayscale(1) contrast(1.06);
  mix-blend-mode:multiply;
}
.post-card-gallery{
  display:block;
  height:260px;
  overflow:hidden;
  border-bottom:1px solid var(--line);
}
.post-card-gallery .post-card-image{display:block;width:100%;height:100%;background-size:cover;background-position:center;}
.post-card-gallery .post-card-image:not(:first-child){display:none;}
.archive-hero{min-height:min(48dvh,510px);background-position:center;}
.archive-hero:before{background:linear-gradient(90deg,rgba(238,229,216,.96),rgba(238,229,216,.54),rgba(238,229,216,.08));}

@media (min-width:761px) and (max-height:820px){
  .home-shell{grid-template-rows:minmax(210px,48%) minmax(180px,52%);}
  .hero-slide-title{font-size:clamp(38px,6.4vw,98px);}
  .hero-category-slider .hero-sub{font-size:11px;max-width:440px;}
  .hero-slider-controls{bottom:8px;right:18px;}
}

@media (max-width:1100px){
  .home-shell{grid-template-rows:minmax(245px,.56fr) minmax(245px,.44fr);}
  .hero-revolucci.hero-category-slider{display:block;}
  .hero-slide-copy{width:min(58vw,520px);margin-left:30px;}
  .hero-slide-title{font-size:clamp(44px,8vw,86px);}
  .hero-category-slider .button-ink{min-height:36px;padding:9px 13px;}
}

@media (max-width:760px){
  .hero-revolucci.hero-category-slider{height:54svh;min-height:360px;display:block;}
  .hero-slide{background-position:center right;}
  .hero-slide-shade{background:linear-gradient(90deg,rgba(238,229,216,.96) 0%,rgba(238,229,216,.72) 55%,rgba(238,229,216,.16) 100%);}
  .hero-slide-copy{width:70vw;margin-left:18px;}
  .hero-slide-title{font-size:clamp(38px,14vw,72px);line-height:.86;}
  .hero-category-slider .hero-sub{font-size:12px;max-width:320px;}
  .hero-slider-controls{right:12px;bottom:10px;}
  .hero-nav{width:30px;height:30px;font-size:20px;}
}

/* v2.6 — poster typography, painted footer stripe, category viewport boards, and single article gallery slider */
:root{--stripe-img:url('assets/img/revolucci-ink-stripe.webp');}
.site-header-poster{
  min-height:76px;
  height:var(--header-h);
  gap:clamp(14px,2.2vw,34px);
  background:rgba(238,229,216,.94);
}
.site-branding-poster{min-width:0;flex:1 1 auto;}
.site-branding-poster .brand-logo{
  display:flex;align-items:center;gap:14px;text-decoration:none;color:var(--ink);letter-spacing:normal;
}
.site-branding-poster img{
  width:56px;height:56px;object-fit:cover;border-radius:50%;filter:grayscale(1) contrast(1.08);mix-blend-mode:multiply;flex:0 0 auto;
}
.brand-copy{display:flex;flex-direction:column;align-items:flex-start;min-width:0;}
.brand-title-box{
  display:inline-block;background:var(--ink);color:var(--paper-2);padding:6px 12px 7px;
  font-family:Impact,"Arial Black",sans-serif;font-size:clamp(21px,2.2vw,36px);line-height:.95;letter-spacing:.08em;text-transform:uppercase;
  box-shadow:4px 4px 0 rgba(0,0,0,.12);
}
.brand-subtitle{
  margin-top:5px;font-size:clamp(10px,.75vw,13px);line-height:1.2;letter-spacing:.02em;color:var(--ink);font-weight:800;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:min(56vw,720px);
}
.site-header-poster .site-nav{flex:0 0 auto;}
.site-header-poster .site-action{flex:0 0 auto;}

.hero-slide-copy{width:min(46vw,710px);}
.hero-category-slider .hero-kicker,
.poster-kicker{
  display:inline-block;background:var(--ink);color:var(--paper-2);padding:6px 10px;margin-bottom:10px;
  text-transform:uppercase;letter-spacing:.18em;font-weight:900;font-size:clamp(10px,.8vw,13px);box-shadow:3px 3px 0 rgba(0,0,0,.12);border:0;
}
.hero-slide-title,
.poster-title-box{
  display:inline-block;background:var(--ink);color:var(--paper-2);padding:clamp(8px,1.1vw,16px) clamp(12px,1.8vw,26px);
  text-shadow:none!important;box-shadow:7px 7px 0 rgba(0,0,0,.16);max-width:100%;
}
.hero-category-slider .hero-sub{
  background:rgba(17,17,17,.92);color:var(--paper-2);padding:9px 12px;max-width:560px;font-weight:800;line-height:1.35;box-shadow:4px 4px 0 rgba(0,0,0,.12);
}
.hero-category-slider .button-ink{background:var(--paper-2);color:var(--ink);border:2px solid var(--ink);}
.hero-slide-shade{background:linear-gradient(90deg,rgba(238,229,216,.30) 0%,rgba(238,229,216,.12) 42%,rgba(238,229,216,.02) 100%);}

.site-footer-poster{
  position:relative;isolation:isolate;min-height:150px;margin-top:clamp(28px,4vw,64px);padding:38px clamp(18px,4vw,66px);
  overflow:hidden;color:var(--paper-2);
}
.footer-ink-stripe{
  position:absolute;inset:0;z-index:-1;background-image:var(--stripe-img);background-size:100% 100%;background-position:center;background-repeat:no-repeat;filter:contrast(1.08);
}
.footer-poster-inner{
  max-width:1280px;margin:0 auto;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:clamp(14px,2vw,36px);align-items:center;
}
.footer-motto,.footer-brand{display:flex;flex-direction:column;gap:5px;min-width:0;border-left:1px solid rgba(238,229,216,.35);padding-left:clamp(12px,1.4vw,22px);}
.footer-motto strong,.footer-brand strong{font-family:Impact,"Arial Black",sans-serif;text-transform:uppercase;letter-spacing:.12em;font-size:clamp(20px,2vw,32px);line-height:1;color:var(--paper-2);}
.footer-motto span,.footer-brand span{font-size:clamp(11px,.9vw,14px);line-height:1.3;color:rgba(247,239,227,.9);font-weight:800;}
.footer-brand strong{font-size:clamp(18px,1.6vw,26px);letter-spacing:.18em;}

@media (min-width:761px){
  .archive-hero{
    min-height:calc(100dvh - var(--header-h) - 250px);
    max-height:58dvh;
    background-size:cover;background-position:center;
  }
  .archive-hero .archive-title{
    display:inline-block;background:var(--ink);color:var(--paper-2);padding:clamp(8px,1vw,16px) clamp(12px,1.6vw,24px);
    font-size:clamp(44px,7.2vw,112px);line-height:.86;box-shadow:7px 7px 0 rgba(0,0,0,.16);
  }
  .archive-hero-desc{background:rgba(17,17,17,.88);color:var(--paper-2);padding:10px 12px;font-weight:800;display:inline-block;box-shadow:4px 4px 0 rgba(0,0,0,.12);}
  .archive-hero + .content-shell{padding-top:18px;}
  .archive-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;}
  .post-card-gallery{height:clamp(135px,18dvh,215px);}
  .post-card-copy{padding:12px 14px;}
  .post-card h2{font-size:clamp(18px,1.6vw,30px);line-height:1;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;}
  .post-card p{font-size:clamp(10px,.78vw,12px);line-height:1.25;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;}
}

.single-viewport-story{background:var(--paper);}
.single-article-board{
  min-height:clamp(220px,38dvh,420px);display:grid;align-items:end;padding:clamp(36px,6vw,90px) clamp(18px,4vw,72px) clamp(20px,3vw,42px);
  background-size:cover;background-position:center;filter:grayscale(1) contrast(1.04);position:relative;overflow:hidden;border-bottom:1px solid var(--line);
}
.single-article-board:before{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(238,229,216,.28),rgba(238,229,216,.04));mix-blend-mode:multiply;}
.single-board-copy{position:relative;z-index:1;max-width:900px;}
.single-board-copy .poster-title-box{
  font-family:Impact,"Arial Black",sans-serif;text-transform:uppercase;letter-spacing:.04em;line-height:.88;font-size:clamp(42px,7.6vw,118px);margin:0;
}
.single-gallery-slider-section{
  height:calc(100dvh - var(--header-h));min-height:520px;display:grid;grid-template-rows:auto minmax(0,1fr) auto;gap:12px;
  padding:clamp(14px,2vw,28px) clamp(16px,3vw,56px);overflow:hidden;border-bottom:1px solid var(--line);
}
.single-gallery-topline{display:flex;align-items:center;gap:14px;min-height:38px;text-transform:uppercase;letter-spacing:.16em;font-weight:900;}
.single-gallery-topline:after{content:"";height:1px;background:var(--line);flex:1;}
.single-gallery-topline strong{background:var(--ink);color:var(--paper-2);padding:6px 10px;letter-spacing:.1em;white-space:nowrap;}
.single-gallery-controls{display:flex;gap:8px;}
.single-gallery-rail{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(76vw,1fr);gap:clamp(12px,2vw,28px);overflow-x:auto;overflow-y:hidden;scroll-snap-type:x mandatory;scrollbar-width:none;outline:none;min-height:0;}
.single-gallery-rail::-webkit-scrollbar{display:none;}
.single-gallery-slide{scroll-snap-align:center;margin:0;min-width:0;height:100%;display:grid;place-items:center;background:rgba(255,255,255,.16);border:1px solid var(--line);box-shadow:var(--shadow);overflow:hidden;}
.single-gallery-slide img{width:100%;height:100%;object-fit:contain;display:block;filter:grayscale(1) contrast(1.04);mix-blend-mode:multiply;cursor:zoom-in;}
.single-gallery-dots{display:flex;justify-content:center;gap:8px;height:18px;align-items:center;overflow:hidden;}
.gallery-dot{width:9px;height:9px;border-radius:999px;border:1px solid var(--ink);background:transparent;padding:0;cursor:pointer;}
.gallery-dot.is-active{background:var(--ink);}
.text-second-panel{padding-top:clamp(24px,4vw,62px);}
.text-second-header{max-width:960px;margin:0 auto 20px;padding:0 clamp(18px,4vw,52px);}
.text-second-header span{display:inline-block;background:var(--ink);color:var(--paper-2);padding:8px 12px;text-transform:uppercase;font-weight:900;letter-spacing:.16em;}
.text-second-header p{max-width:680px;color:var(--muted);font-weight:800;}
.revolucci-gallery-lead{display:none;}

@media (max-width:1100px){
  .site-header-poster{height:70px;}
  :root{--header-h:70px;}
  .site-branding-poster img{width:48px;height:48px;}
  .brand-title-box{font-size:24px;}
  .brand-subtitle{max-width:54vw;font-size:10px;}
  .hero-slide-copy{width:min(68vw,640px);}
}
@media (max-width:760px){
  :root{--header-h:64px;}
  .site-header-poster{height:64px;min-height:64px;padding:0 12px;}
  .site-branding-poster img{width:40px;height:40px;}
  .brand-title-box{font-size:19px;padding:5px 8px;letter-spacing:.06em;}
  .brand-subtitle{display:none;}
  .site-action .ink-button{min-height:34px;padding:8px 10px;font-size:11px;}
  .hero-slide-copy{width:82vw;margin-left:14px;}
  .hero-slide-title{font-size:clamp(34px,13vw,64px);}
  .hero-category-slider .hero-sub{background:rgba(17,17,17,.9);color:var(--paper-2);}
  .footer-poster-inner{grid-template-columns:1fr 1fr;gap:18px;}
  .site-footer-poster{padding:32px 18px;}
  .single-article-board{min-height:34vh;}
  .single-gallery-slider-section{height:72svh;min-height:420px;padding:14px;}
  .single-gallery-topline{font-size:11px;letter-spacing:.12em;}
  .single-gallery-topline:after{display:none;}
  .single-gallery-rail{grid-auto-columns:86vw;}
  .single-board-copy .poster-title-box{font-size:42px;}
  .archive-grid{grid-template-columns:1fr;}
}


/* v2.8 — uniform viewport boards for home, category archive, and single article pages */
:root{--board-gap:clamp(12px,1.6vw,22px);}
body.archive, body.category, body.single{background:var(--paper);} 

/* Category archives now use the same first-screen rhythm as the homepage:
   compact hero on top, horizontal cards underneath. */
.archive-viewport-board{
  min-height:calc(100dvh - var(--header-h));
  display:grid;
  grid-template-rows:minmax(260px,52dvh) minmax(190px,1fr);
  overflow:hidden;
  padding:clamp(10px,1.3vw,18px) clamp(14px,3vw,42px) clamp(10px,1.3vw,18px);
  gap:var(--board-gap);
}
.archive-viewport-board .archive-hero{
  min-height:0!important;
  max-height:none!important;
  height:100%;
  border:1px solid var(--line);
  overflow:hidden;
  align-items:end;
  padding:clamp(26px,4vw,62px);
  background-size:cover;
  background-position:center;
  box-shadow:var(--shadow);
}
.archive-viewport-board .archive-hero:before{
  background:linear-gradient(90deg,rgba(238,229,216,.80),rgba(238,229,216,.30),rgba(238,229,216,.06));
}
.archive-viewport-board .archive-hero-copy{max-width:min(760px,78vw);}
.archive-viewport-board .archive-title{
  display:inline-block;
  background:var(--ink);
  color:var(--paper-2);
  padding:clamp(7px,1vw,14px) clamp(10px,1.6vw,24px);
  font-family:Impact,"Arial Black",sans-serif;
  font-size:clamp(42px,7vw,108px)!important;
  line-height:.86;
  letter-spacing:.045em;
  text-transform:uppercase;
  box-shadow:7px 7px 0 rgba(0,0,0,.16);
}
.archive-viewport-board .archive-hero-desc{
  display:block;
  width:max-content;
  max-width:min(620px,78vw);
  margin-top:12px;
  background:rgba(17,17,17,.90);
  color:var(--paper-2);
  padding:9px 12px;
  font-size:clamp(12px,.9vw,15px);
  line-height:1.35;
  font-weight:900;
  box-shadow:4px 4px 0 rgba(0,0,0,.12);
}
.archive-card-shell{
  max-width:none;
  padding:0!important;
  min-height:0;
  overflow:hidden;
}
.archive-card-shell .stage-header{margin-bottom:10px;}
.archive-card-shell .archive-grid{
  display:grid;
  grid-auto-flow:column;
  grid-auto-columns:minmax(260px,24vw);
  grid-template-columns:none;
  gap:clamp(10px,1.2vw,18px);
  overflow-x:auto;
  overflow-y:hidden;
  scroll-snap-type:x mandatory;
  scrollbar-width:none;
  padding-bottom:6px;
}
.archive-card-shell .archive-grid::-webkit-scrollbar{display:none;}
.archive-card-shell .post-card{
  scroll-snap-align:start;
  height:clamp(210px,30dvh,315px);
  min-height:0;
  display:flex;
  flex-direction:column;
  border-radius:10px;
}
.archive-card-shell .post-card-gallery{
  height:64%;
  min-height:0;
  display:grid;
}
.archive-card-shell .post-card-image{
  height:100%;
  min-height:0;
  background-size:cover;
  background-position:center;
  border-bottom:1px solid var(--line);
}
.archive-card-shell .post-card-copy{
  flex:1 1 auto;
  min-height:0;
  padding:clamp(10px,1vw,14px);
  background:linear-gradient(180deg,rgba(238,229,216,.72),rgba(238,229,216,.96));
  overflow:hidden;
}
.archive-card-shell .post-card h2{
  font-size:clamp(18px,1.55vw,28px);
  line-height:1;
  letter-spacing:.08em;
  margin:0 0 6px;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
.archive-card-shell .post-card p{
  margin:0;
  font-size:clamp(10px,.78vw,12px);
  line-height:1.25;
  color:var(--muted);
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}

/* Single pages: hero + gallery are one viewport board. The text starts after it. */
.single-top-viewport{
  min-height:calc(100dvh - var(--header-h));
  display:grid;
  grid-template-rows:minmax(245px,50dvh) minmax(210px,1fr);
  gap:var(--board-gap);
  padding:clamp(10px,1.3vw,18px) clamp(14px,3vw,42px) clamp(10px,1.3vw,18px);
  overflow:hidden;
}
.single-top-viewport .single-article-board{
  min-height:0!important;
  height:100%;
  border:1px solid var(--line);
  box-shadow:var(--shadow);
  padding:clamp(26px,4vw,62px);
  background-size:cover;
  background-position:center;
}
.single-top-viewport .single-article-board:before{
  background:linear-gradient(90deg,rgba(238,229,216,.20),rgba(238,229,216,.04));
}
.single-top-viewport .poster-kicker{margin-bottom:10px;}
.single-top-viewport .single-board-copy .poster-title-box{
  font-size:clamp(38px,6.8vw,104px);
  max-width:min(980px,88vw);
}
.single-top-viewport .single-gallery-slider-section{
  height:auto!important;
  min-height:0!important;
  padding:0!important;
  display:grid;
  grid-template-rows:auto minmax(0,1fr) auto;
  gap:10px;
  overflow:hidden;
  border:0;
}
.single-top-viewport .single-gallery-topline{
  min-height:36px;
  margin:0;
}
.single-top-viewport .single-gallery-rail{
  grid-auto-columns:minmax(260px,26vw);
  gap:clamp(10px,1.2vw,18px);
}
.single-top-viewport .single-gallery-slide{
  height:100%;
  min-height:0;
  border-radius:10px;
  scroll-snap-align:start;
  background:rgba(255,255,255,.18);
}
.single-top-viewport .single-gallery-slide img{
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center;
}
.single-top-viewport .single-gallery-dots{height:16px;}
.text-second-panel{border-top:1px solid var(--line);}

@media (min-width:761px) and (max-height:760px){
  .archive-viewport-board{grid-template-rows:minmax(220px,48dvh) minmax(180px,1fr);}
  .archive-card-shell .post-card{height:clamp(190px,29dvh,260px);} 
  .single-top-viewport{grid-template-rows:minmax(210px,47dvh) minmax(180px,1fr);} 
  .single-top-viewport .single-gallery-rail{grid-auto-columns:minmax(230px,23vw);} 
  .single-top-viewport .single-board-copy .poster-title-box{font-size:clamp(34px,6vw,82px);} 
}

@media (max-width:760px){
  .archive-viewport-board,
  .single-top-viewport{
    min-height:calc(100svh - var(--header-h));
    display:grid;
    grid-template-rows:minmax(250px,46svh) minmax(230px,1fr);
    padding:10px 12px 12px;
    gap:12px;
    overflow:hidden;
  }
  .archive-viewport-board .archive-hero,
  .single-top-viewport .single-article-board{
    padding:22px 14px;
    background-position:center;
  }
  .archive-viewport-board .archive-title,
  .single-top-viewport .single-board-copy .poster-title-box{
    font-size:clamp(36px,11vw,62px)!important;
    line-height:.9;
    max-width:92vw;
  }
  .archive-viewport-board .archive-hero-desc{font-size:11px;max-width:82vw;}
  .archive-card-shell .stage-title,.single-gallery-topline span{font-size:12px;letter-spacing:.14em;}
  .archive-card-shell .archive-grid{
    grid-auto-columns:minmax(235px,78vw);
    gap:12px;
  }
  .archive-card-shell .post-card{height:250px;}
  .single-top-viewport .single-gallery-rail{
    grid-auto-columns:minmax(235px,78vw);
    gap:12px;
  }
  .single-top-viewport .single-gallery-topline{
    min-height:34px;
    font-size:11px;
    letter-spacing:.11em;
    gap:8px;
  }
  .single-top-viewport .single-gallery-topline strong{padding:5px 8px;}
  .single-gallery-controls .nav-button{width:34px;height:34px;}
  .text-second-panel{padding-top:26px;}
}

@media (max-width:430px){
  .archive-viewport-board,.single-top-viewport{grid-template-rows:minmax(225px,43svh) minmax(220px,1fr);} 
  .archive-card-shell .post-card,.single-top-viewport .single-gallery-slide{height:auto;} 
  .single-top-viewport .single-gallery-rail{min-height:190px;} 
}

/* v2.9 — Google Fonts, stronger communication hierarchy, visual-impaired readability pass */
:root{
  --font-body:"Atkinson Hyperlegible",system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  --font-display:"Oswald","Arial Narrow",Arial,sans-serif;
  --font-mono:"IBM Plex Mono","Courier New",monospace;
  --reading:#161411;
  --reading-muted:#2f2b25;
  --focus:#000;
}

body{
  font-family:var(--font-body);
  color:var(--reading);
  font-size:18px;
  line-height:1.55;
  text-rendering:optimizeLegibility;
  -webkit-font-smoothing:antialiased;
}

body:before{
  opacity:.42;
  background:
    radial-gradient(circle at 20% 10%,rgba(255,255,255,.34),transparent 35%),
    radial-gradient(circle at 80% 70%,rgba(0,0,0,.028),transparent 45%);
}

.site-nav a,
.ink-button,
.button-ink,
.stage-title,
.hero-kicker,
.poster-kicker,
.hero-category-slider .hero-sub,
.archive-hero-desc,
.single-gallery-topline,
.single-gallery-topline strong,
.text-second-header span,
.footer-motto span,
.footer-brand span,
.category-card p,
.post-card p,
.brand-subtitle{
  font-family:var(--font-mono);
}

.hero-title,
.hero-slide-title,
.category-card h2,
.post-card h2,
.single-hero h1,
.archive-title,
.poster-title-box,
.brand-title-box,
.footer-motto strong,
.footer-brand strong{
  font-family:var(--font-display);
  font-weight:700;
  letter-spacing:.035em;
  text-rendering:geometricPrecision;
}

.brand-title-box{
  font-size:clamp(22px,2.05vw,34px);
  letter-spacing:.075em;
  padding:.22em .46em .28em;
}

.brand-subtitle{
  font-weight:700;
  color:var(--reading);
  font-size:clamp(11px,.82vw,14px);
  line-height:1.35;
  letter-spacing:.01em;
}

.site-nav a{
  font-size:14px;
  font-weight:700;
  letter-spacing:.08em;
}

.ink-button,.button-ink{
  font-weight:700;
  letter-spacing:.08em;
  border-width:2px;
}

.hero-slide-title,
.poster-title-box,
.archive-viewport-board .archive-title,
.single-board-copy .poster-title-box{
  letter-spacing:.028em!important;
  line-height:.92!important;
  word-spacing:.04em;
}

.hero-slide-title{
  font-size:clamp(42px,6.8vw,112px);
}

.hero-category-slider .hero-sub{
  max-width:680px;
  font-size:clamp(15px,1.08vw,19px);
  line-height:1.48;
  font-weight:700;
  letter-spacing:.01em;
  padding:12px 15px;
}

.poster-kicker,.hero-category-slider .hero-kicker{
  font-size:clamp(12px,.85vw,14px);
  line-height:1.25;
  letter-spacing:.11em;
  font-weight:700;
}

.stage-title{
  font-size:clamp(14px,1.05vw,19px);
  letter-spacing:.16em;
  font-weight:700;
}

.category-card h2,
.post-card h2{
  letter-spacing:.055em;
  line-height:1.05;
}

.category-card p,
.post-card p{
  font-size:clamp(13px,.95vw,16px);
  line-height:1.42;
  color:var(--reading-muted);
  font-weight:500;
  letter-spacing:0;
}

.category-card-copy,
.post-card-copy{
  background:rgba(245,238,226,.96)!important;
}

.archive-viewport-board .archive-hero-desc{
  font-size:clamp(15px,1.05vw,18px);
  line-height:1.5;
  font-weight:700;
  max-width:min(760px,82vw);
  letter-spacing:.005em;
}

.archive-card-shell .post-card h2{
  font-size:clamp(20px,1.55vw,30px);
}

.archive-card-shell .post-card p{
  font-size:clamp(13px,.92vw,15px);
  -webkit-line-clamp:3;
}

.single-gallery-topline{
  font-size:clamp(14px,1vw,18px);
  letter-spacing:.12em;
  font-weight:700;
}

.text-second-header p{
  color:var(--reading-muted);
  font-family:var(--font-body);
  font-size:clamp(17px,1.2vw,21px);
  line-height:1.55;
  font-weight:700;
}

.entry-content{
  font-family:var(--font-body);
  font-size:clamp(19px,1.28vw,23px);
  line-height:1.78;
  color:var(--reading);
}

.entry-content p,
.entry-content li,
.entry-content blockquote{
  font-size:1em;
  line-height:1.78;
}

.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4{
  font-family:var(--font-display);
  line-height:1.1;
  letter-spacing:.025em;
}

.entry-content a{
  color:#000;
  font-weight:700;
  text-decoration-thickness:2px;
  text-underline-offset:4px;
}

.entry-content blockquote{
  border-left:6px solid var(--ink);
  padding-left:1.1em;
  font-weight:700;
}

.revolucci-lightbox-text{
  font-family:var(--font-body);
  font-size:clamp(22px,2.2vw,34px);
  line-height:1.6;
}

.nav-button,
.dot,
.hero-dot,
.gallery-dot,
a,
button{
  -webkit-tap-highlight-color:rgba(0,0,0,.12);
}

a:focus-visible,
button:focus-visible,
.category-rail:focus-visible,
.archive-grid:focus-visible,
.single-gallery-rail:focus-visible{
  outline:4px solid var(--focus);
  outline-offset:4px;
}

.footer-motto span,.footer-brand span{
  font-size:clamp(13px,.95vw,16px);
  line-height:1.45;
  font-weight:700;
}

.footer-motto strong,.footer-brand strong{
  letter-spacing:.08em;
}

@media (min-width:761px){
  .archive-viewport-board{grid-template-rows:minmax(250px,49dvh) minmax(225px,1fr);}
  .single-top-viewport{grid-template-rows:minmax(245px,48dvh) minmax(230px,1fr);}
}

@media (max-width:760px){
  body{font-size:17px;}
  .brand-title-box{font-size:20px;}
  .hero-slide-title{font-size:clamp(36px,11.5vw,58px);}
  .hero-category-slider .hero-sub{font-size:14px;line-height:1.45;max-width:78vw;}
  .category-card p,.post-card p{font-size:13px;line-height:1.35;}
  .archive-viewport-board .archive-title,
  .single-top-viewport .single-board-copy .poster-title-box{font-size:clamp(34px,10vw,56px)!important;}
  .archive-viewport-board .archive-hero-desc{font-size:13px;line-height:1.42;}
  .entry-content{font-size:19px;line-height:1.7;}
}

@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{animation-duration:.001ms!important;animation-iteration-count:1!important;scroll-behavior:auto!important;transition-duration:.001ms!important;}
}


/* v3.0 — panel-size image canon: every gallery/card image is cropped by the panel, not the source ratio.
   Main page defines the visual rhythm; category and single pages inherit the same sizing language. */
:root{
  --panel-paper:#f2eadc;
  --panel-paper-strong:#f7efe3;
  --panel-ratio:1.38;
  --hero-board:min(48dvh,520px);
  --article-gallery-h:clamp(210px,31dvh,335px);
}

/* One colour system everywhere, pulled back toward the main page paper tone. */
body,
body.archive,
body.category,
body.single,
.category-card-copy,
.post-card-copy,
.single-gallery-slide,
.wp-block-gallery figure,
.gallery-item{
  background-color:var(--paper)!important;
}

/* All image panels crop; none of the panels are allowed to grow because of a tall/wide source image. */
.category-card-img,
.category-card-gallery .category-card-img,
.post-card-image,
.post-card-gallery .post-card-image,
.single-gallery-slide img,
.wp-block-gallery img,
.gallery img,
.entry-content figure img,
.entry-content .wp-block-image img{
  width:100%!important;
  height:100%!important;
  max-width:none!important;
  object-fit:cover!important;
  object-position:center!important;
  display:block;
  filter:grayscale(1) contrast(1.06);
  mix-blend-mode:multiply;
}

/* Home/category/archive cards use a uniform poster-card size. */
.category-card,
.archive-card-shell .post-card{
  height:clamp(220px,29dvh,318px)!important;
  min-height:0!important;
  background:var(--panel-paper)!important;
}
.category-card-gallery,
.category-card-img,
.archive-card-shell .post-card-gallery,
.post-card-gallery{
  height:64%!important;
  min-height:0!important;
  overflow:hidden!important;
  border-bottom:1px solid var(--line);
  background:rgba(0,0,0,.045)!important;
}
.category-card-copy,
.archive-card-shell .post-card-copy,
.post-card-copy{
  height:36%!important;
  min-height:0!important;
  overflow:hidden!important;
}

/* Category boards now follow the homepage viewport canon more strictly. */
.archive-viewport-board{
  grid-template-rows:minmax(245px,var(--hero-board)) minmax(210px,1fr)!important;
}
.archive-viewport-board .archive-hero{
  height:100%!important;
  min-height:0!important;
  background-size:cover!important;
  background-position:center!important;
}
.archive-card-shell .archive-grid{
  align-content:start;
  min-height:0;
}

/* Single page: hero + gallery remain one viewport board, but the gallery is panel-based. */
.single-top-viewport{
  grid-template-rows:minmax(230px,var(--hero-board)) minmax(var(--article-gallery-h),1fr)!important;
  max-height:calc(100dvh - var(--header-h));
}
.single-top-viewport .single-article-board{
  height:100%!important;
  min-height:0!important;
  background-size:cover!important;
  background-position:center!important;
}
.single-top-viewport .single-gallery-slider-section{
  min-height:0!important;
  height:100%!important;
}
.single-top-viewport .single-gallery-rail{
  grid-auto-columns:minmax(255px,24vw)!important;
  min-height:0!important;
  height:100%!important;
  align-items:stretch;
}
.single-top-viewport .single-gallery-slide{
  height:100%!important;
  min-height:0!important;
  aspect-ratio:var(--panel-ratio);
  display:block!important;
  overflow:hidden!important;
  background:var(--panel-paper)!important;
}
.single-top-viewport .single-gallery-slide img{
  cursor:zoom-in;
}

/* Gutenberg/article galleries below the fold also become uniform panel grids. */
.entry-content .wp-block-gallery,
.entry-content .gallery{
  display:grid!important;
  grid-template-columns:repeat(auto-fit,minmax(min(220px,100%),1fr))!important;
  gap:clamp(10px,1.2vw,16px)!important;
  max-width:1120px!important;
  margin:clamp(22px,3vw,38px) auto!important;
}
.entry-content .wp-block-gallery figure,
.entry-content .gallery-item,
.entry-content .wp-block-image{
  aspect-ratio:var(--panel-ratio)!important;
  height:auto!important;
  max-height:clamp(180px,28dvh,320px);
  overflow:hidden!important;
  border:1px solid var(--line);
  background:var(--panel-paper)!important;
  margin:0!important;
}
.entry-content .wp-block-image{
  max-width:1120px!important;
  margin:clamp(20px,3vw,36px) auto!important;
}
.entry-content .wp-block-image img{
  aspect-ratio:var(--panel-ratio)!important;
}

/* Text remains readable, but images remain governed by the panel canon. */
.entry-content p > img,
.entry-content a > img{
  aspect-ratio:var(--panel-ratio)!important;
  max-height:clamp(180px,30dvh,360px)!important;
}

/* Lightbox affordance is visible again for gallery cards and article images. */
.single-gallery-slide,
.entry-content figure,
.wp-block-gallery figure,
.gallery-item{
  cursor:zoom-in;
}
.single-gallery-slide:focus-visible,
.wp-block-gallery figure:focus-visible,
.gallery-item:focus-visible{
  outline:4px solid var(--focus);
  outline-offset:4px;
}

@media (min-width:761px) and (max-height:760px){
  :root{--hero-board:min(44dvh,420px);--article-gallery-h:clamp(178px,28dvh,255px);} 
  .category-card,.archive-card-shell .post-card{height:clamp(190px,27dvh,255px)!important;}
  .single-top-viewport .single-gallery-rail{grid-auto-columns:minmax(225px,22vw)!important;}
}

@media (max-width:760px){
  :root{--hero-board:43svh;--article-gallery-h:clamp(215px,38svh,330px);}
  .archive-viewport-board,
  .single-top-viewport{
    grid-template-rows:minmax(225px,var(--hero-board)) minmax(var(--article-gallery-h),1fr)!important;
    max-height:calc(100svh - var(--header-h));
  }
  .category-card,
  .archive-card-shell .post-card{height:clamp(230px,34svh,290px)!important;}
  .archive-card-shell .archive-grid,
  .single-top-viewport .single-gallery-rail{
    grid-auto-columns:minmax(240px,78vw)!important;
  }
  .single-top-viewport .single-gallery-slide{aspect-ratio:1.28;}
  .entry-content .wp-block-gallery,
  .entry-content .gallery{grid-template-columns:1fr 1fr!important;}
  .entry-content .wp-block-gallery figure,
  .entry-content .gallery-item,
  .entry-content .wp-block-image{max-height:230px;}
}

@media (max-width:430px){
  .entry-content .wp-block-gallery,
  .entry-content .gallery{grid-template-columns:1fr!important;}
  .category-card,
  .archive-card-shell .post-card{height:245px!important;}
}


/* v3.1 — width-first panel crop, archive/gallery navigation, and article prev/next in hero */
:root{
  --gallery-panel-h:clamp(215px,30dvh,330px);
  --archive-panel-h:clamp(220px,30dvh,318px);
}

/* Every visible gallery/card image is a controlled panel. The panel owns the size;
   the lightbox owns the full image view. */
.category-card-img,
.post-card-image,
.single-gallery-slide .gallery-panel-image,
.single-gallery-slide img,
.archive-card-shell .post-card-image,
.entry-content .wp-block-gallery img,
.entry-content .gallery img,
.entry-content .wp-block-image img{
  width:100%!important;
  height:100%!important;
  object-fit:cover!important;
  object-position:center!important;
  max-width:none!important;
}

/* In article galleries the image fills the visible panel; the full uncropped image
   remains available only in the lightbox/popup. */
.single-top-viewport .single-gallery-slide{
  height:var(--gallery-panel-h)!important;
  max-height:100%!important;
  aspect-ratio:auto!important;
  display:block!important;
  position:relative;
}
.single-top-viewport .single-gallery-slide img{
  position:absolute;
  inset:0;
  width:100%!important;
  height:100%!important;
  object-fit:cover!important;
  object-position:center center!important;
}
.single-gallery-rail{
  -webkit-overflow-scrolling:touch;
  overscroll-behavior-x:contain;
  scroll-padding-inline:clamp(12px,2vw,24px);
}

/* Make category/archive article strips truly navigable and visibly complete. */
.archive-card-shell .stage-header,
.single-gallery-topline{
  display:flex;
  align-items:center;
  gap:clamp(8px,1vw,14px);
}
.stage-count,
.gallery-count{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background:var(--ink);
  color:var(--paper-2);
  padding:6px 10px;
  font-family:var(--font-mono);
  font-weight:700;
  font-size:clamp(11px,.82vw,14px);
  letter-spacing:.08em;
  text-transform:uppercase;
  white-space:nowrap;
}
.archive-card-shell .slider-controls,
.archive-card-shell .single-gallery-controls,
.single-gallery-controls{
  display:flex!important;
  align-items:center;
  gap:8px;
  flex:0 0 auto;
}
.archive-dots{
  display:flex;
  justify-content:center;
  align-items:center;
  gap:8px;
  min-height:18px;
  margin-top:8px;
}
.archive-dot{
  width:9px;height:9px;border-radius:999px;border:1px solid var(--ink);background:transparent;padding:0;cursor:pointer;
}
.archive-dot.is-active{background:var(--ink);}
.archive-card-shell .archive-grid{
  -webkit-overflow-scrolling:touch;
  overscroll-behavior-x:contain;
  scroll-padding-inline:clamp(8px,1vw,14px);
}
.archive-card-shell .post-card{height:var(--archive-panel-h)!important;}
.archive-card-shell .post-card-gallery{height:62%!important;}
.archive-card-shell .post-card-copy{height:38%!important;}

/* Header image article navigation */
.single-post-neighbours{
  position:absolute;
  z-index:4;
  right:clamp(12px,2vw,28px);
  bottom:clamp(12px,2vw,28px);
  display:flex;
  align-items:center;
  gap:10px;
  max-width:min(560px,52vw);
}
.single-post-neighbours a{
  display:inline-flex;
  align-items:center;
  gap:8px;
  min-height:42px;
  padding:9px 12px;
  background:rgba(17,17,17,.92);
  color:var(--paper-2);
  font-family:var(--font-mono);
  font-size:clamp(11px,.78vw,13px);
  font-weight:700;
  line-height:1.2;
  letter-spacing:.06em;
  text-transform:uppercase;
  text-decoration:none;
  box-shadow:4px 4px 0 rgba(0,0,0,.16);
  max-width:260px;
  overflow:hidden;
}
.single-post-neighbours a span{
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.single-post-neighbours a:hover,
.single-post-neighbours a:focus-visible{background:#000;color:#fff;}
.single-post-neighbours .is-disabled{opacity:.35;pointer-events:none;}

/* Lightbox is the only full-view mode. */
.revolucci-lightbox-inner img{
  width:auto!important;
  height:auto!important;
  max-width:92vw!important;
  max-height:88vh!important;
  object-fit:contain!important;
  object-position:center!important;
  filter:grayscale(1) contrast(1.04);
}

@media (min-width:761px) and (max-height:760px){
  :root{--gallery-panel-h:clamp(175px,27dvh,255px);--archive-panel-h:clamp(190px,27dvh,255px);} 
}
@media (max-width:760px){
  :root{--gallery-panel-h:clamp(205px,36svh,310px);--archive-panel-h:clamp(230px,34svh,290px);} 
  .single-post-neighbours{
    left:14px;
    right:14px;
    bottom:12px;
    max-width:none;
    justify-content:space-between;
  }
  .single-post-neighbours a{
    width:calc(50% - 5px);
    min-width:0;
    padding:8px 9px;
  }
  .single-post-neighbours a span{display:none;}
  .single-top-viewport .single-article-board{padding-bottom:68px;}
  .archive-dots{display:none;}
}


/* v3.2 — visible panel crop canon restored.
   Every non-popup image is framed by its panel. The panel decides the shape;
   the lightbox is the only place where the full uncropped image is shown. */
:root{
  --home-card-h:clamp(220px,29dvh,318px);
  --home-card-img:64%;
  --home-card-copy:36%;
  --archive-card-h:clamp(220px,30dvh,318px);
  --single-card-h:clamp(215px,30dvh,330px);
}

/* HOME CATEGORY PLACEHOLDERS / CARDS — never disappear, always use the mapped banners. */
.category-stage{min-height:0!important;overflow:hidden!important;display:grid!important;grid-template-rows:auto minmax(0,1fr) auto!important;}
.category-rail{
  min-height:0!important;
  overflow-x:auto!important;
  overflow-y:hidden!important;
  scroll-snap-type:x mandatory!important;
  display:grid!important;
  grid-auto-flow:column!important;
  grid-auto-columns:minmax(260px,24vw)!important;
  align-items:stretch!important;
  padding-bottom:8px!important;
}
.category-card{
  display:grid!important;
  grid-template-rows:var(--home-card-img) var(--home-card-copy)!important;
  height:var(--home-card-h)!important;
  min-height:0!important;
  overflow:hidden!important;
  background:var(--paper)!important;
  position:relative!important;
}
.category-card-gallery{
  display:block!important;
  position:relative!important;
  width:100%!important;
  height:100%!important;
  min-height:0!important;
  overflow:hidden!important;
  background:rgba(17,17,17,.055)!important;
  border-bottom:1px solid var(--line)!important;
}
.category-card-gallery .category-card-img,
.category-card > .category-card-img{
  display:block!important;
  position:absolute!important;
  inset:0!important;
  width:100%!important;
  height:100%!important;
  min-height:0!important;
  background-size:cover!important;
  background-position:center center!important;
  background-repeat:no-repeat!important;
  filter:grayscale(1) contrast(1.08)!important;
  mix-blend-mode:multiply!important;
  transform:none;
}
.category-card-gallery .category-card-img:not(:first-child){display:none!important;}
.category-card-copy{
  height:auto!important;
  min-height:0!important;
  overflow:hidden!important;
  padding:clamp(10px,1vw,15px)!important;
  background:linear-gradient(180deg,rgba(242,234,220,.84),rgba(242,234,220,.98))!important;
}
.category-card h2,
.post-card h2{word-break:normal;overflow-wrap:anywhere;}

/* ARCHIVE / CATEGORY ARTICLE CARDS — same crop rule as homepage. */
.archive-card-shell .archive-grid{
  display:grid!important;
  grid-auto-flow:column!important;
  grid-auto-columns:minmax(260px,24vw)!important;
  grid-template-columns:none!important;
  gap:clamp(10px,1.2vw,18px)!important;
  overflow-x:auto!important;
  overflow-y:hidden!important;
  scroll-snap-type:x mandatory!important;
  scrollbar-width:none!important;
  min-height:0!important;
}
.archive-card-shell .archive-grid::-webkit-scrollbar{display:none!important;}
.archive-card-shell .post-card{
  scroll-snap-align:start!important;
  display:grid!important;
  grid-template-rows:64% 36%!important;
  height:var(--archive-card-h)!important;
  min-height:0!important;
  overflow:hidden!important;
}
.post-card-gallery,
.archive-card-shell .post-card-gallery{
  display:block!important;
  position:relative!important;
  width:100%!important;
  height:100%!important;
  min-height:0!important;
  overflow:hidden!important;
  background:rgba(17,17,17,.055)!important;
  border-bottom:1px solid var(--line)!important;
}
.post-card-gallery .post-card-image,
.archive-card-shell .post-card-gallery .post-card-image{
  display:block!important;
  position:absolute!important;
  inset:0!important;
  width:100%!important;
  height:100%!important;
  min-height:0!important;
  background-size:cover!important;
  background-position:center center!important;
  background-repeat:no-repeat!important;
  filter:grayscale(1) contrast(1.08)!important;
  mix-blend-mode:multiply!important;
}
.post-card-gallery .post-card-image:not(:first-child){display:none!important;}
.post-card-copy,
.archive-card-shell .post-card-copy{height:auto!important;min-height:0!important;overflow:hidden!important;}

/* SINGLE ARTICLE GALLERY — fixed frame, cover crop in panel. */
.single-gallery-rail{
  display:grid!important;
  grid-auto-flow:column!important;
  grid-auto-columns:minmax(260px,24vw)!important;
  gap:clamp(10px,1.2vw,18px)!important;
  overflow-x:auto!important;
  overflow-y:hidden!important;
  scroll-snap-type:x mandatory!important;
  scrollbar-width:none!important;
  min-height:0!important;
}
.single-gallery-rail::-webkit-scrollbar{display:none!important;}
.single-top-viewport .single-gallery-slide,
.single-gallery-slide{
  scroll-snap-align:start!important;
  position:relative!important;
  display:block!important;
  width:auto!important;
  height:var(--single-card-h)!important;
  min-height:0!important;
  overflow:hidden!important;
  background:var(--paper)!important;
  border:1px solid var(--line)!important;
}
.single-gallery-slide img,
.single-top-viewport .single-gallery-slide img{
  position:absolute!important;
  inset:0!important;
  width:100%!important;
  height:100%!important;
  max-width:none!important;
  max-height:none!important;
  object-fit:cover!important;
  object-position:center center!important;
  display:block!important;
  filter:grayscale(1) contrast(1.06)!important;
  mix-blend-mode:multiply!important;
}

/* Content images below the fold: still panel-cropped until the viewer opens the lightbox. */
.entry-content .wp-block-image,
.entry-content figure,
.entry-content .gallery-item{
  position:relative!important;
  overflow:hidden!important;
  aspect-ratio:1.38!important;
  max-height:clamp(190px,30dvh,340px)!important;
  background:var(--paper)!important;
}
.entry-content .wp-block-image img,
.entry-content figure img,
.entry-content .gallery-item img,
.entry-content p > img,
.entry-content a > img{
  width:100%!important;
  height:100%!important;
  max-width:none!important;
  max-height:none!important;
  object-fit:cover!important;
  object-position:center center!important;
  display:block!important;
}

/* But popup/lightbox is full-image mode. */
.revolucci-lightbox img{
  position:static!important;
  width:auto!important;
  height:auto!important;
  max-width:94vw!important;
  max-height:86vh!important;
  object-fit:contain!important;
  filter:none!important;
  mix-blend-mode:normal!important;
}

@media (min-width:761px) and (max-height:760px){
  :root{--home-card-h:clamp(190px,27dvh,255px);--archive-card-h:clamp(190px,27dvh,255px);--single-card-h:clamp(178px,28dvh,255px);} 
  .category-rail,.archive-card-shell .archive-grid,.single-gallery-rail{grid-auto-columns:minmax(230px,22vw)!important;}
}
@media (max-width:760px){
  :root{--home-card-h:clamp(230px,34svh,290px);--archive-card-h:clamp(230px,34svh,290px);--single-card-h:clamp(215px,38svh,330px);} 
  .category-rail,.archive-card-shell .archive-grid,.single-gallery-rail{grid-auto-columns:minmax(240px,78vw)!important;}
}
@media (max-width:430px){
  :root{--home-card-h:245px;--archive-card-h:245px;--single-card-h:245px;}
}

/* v3.4 — Cascading panel canon
   One shared panel system controls every visible image frame.
   The panel owns the size; the image is material inside it.
   Only the lightbox is allowed to show the full uncropped source. */
:root{
  --rv-panel-radius:10px;
  --rv-panel-border:1px solid var(--line);
  --rv-panel-bg:rgba(255,255,255,.18);
  --rv-panel-shadow:var(--shadow);
  --rv-panel-media-filter:grayscale(1) contrast(1.06);
  --rv-panel-img-pos:center center;

  --rv-category-panel-h:clamp(205px,28dvh,320px);
  --rv-category-media-ratio:64%;
  --rv-article-panel-h:clamp(205px,30dvh,315px);
  --rv-article-media-ratio:64%;
  --rv-gallery-panel-h:100%;
  --rv-hero-panel-h:minmax(245px,50dvh);
}

.revolucci-panel,
.category-card,
.archive-card-shell .post-card,
.single-top-viewport .single-gallery-slide,
.gallery-lead-item,
.wp-block-gallery figure,
.gallery-item,
.entry-content figure.wp-block-image,
.entry-content .wp-block-image,
.entry-content > img{
  position:relative;
  overflow:hidden;
  background:var(--rv-panel-bg);
  border-radius:var(--rv-panel-radius);
  border:var(--rv-panel-border);
  box-shadow:var(--rv-panel-shadow);
}

/* All media in non-popup panels obeys the same law: cover the panel, crop overflow. */
.revolucci-panel img,
.revolucci-panel picture,
.revolucci-panel video,
.revolucci-panel .panel-media,
.category-card-img,
.post-card-image,
.single-gallery-slide img,
.gallery-lead-item img,
.wp-block-gallery img,
.gallery img,
.entry-content figure.wp-block-image img,
.entry-content .wp-block-image img,
.entry-content > img{
  width:100%;
  height:100%;
  display:block;
  object-fit:cover!important;
  object-position:var(--rv-panel-img-pos)!important;
  background-size:cover!important;
  background-position:var(--rv-panel-img-pos)!important;
  filter:var(--rv-panel-media-filter);
  mix-blend-mode:multiply;
}

.revolucci-panel--category,
.category-card{
  height:var(--rv-category-panel-h)!important;
  min-height:0!important;
  display:flex;
  flex-direction:column;
}

.revolucci-panel--category .category-card-gallery,
.category-card .category-card-gallery{
  display:block!important;
  height:var(--rv-category-media-ratio)!important;
  min-height:0!important;
  overflow:hidden;
  border-bottom:1px solid var(--line);
  background:rgba(0,0,0,.04);
  flex:0 0 var(--rv-category-media-ratio);
}

.revolucci-panel--category .category-card-img,
.category-card .category-card-img{
  display:block!important;
  width:100%;
  height:100%!important;
  min-height:0!important;
  transform:none;
}

/* Homepage category placeholders: always show at least the first mapped category banner. */
.category-card .category-card-img:not(:first-child){display:none!important;}
.category-card:hover .category-card-img{transform:scale(1.025);}
.category-card .category-card-copy{
  height:auto!important;
  min-height:0!important;
  flex:1 1 auto;
  overflow:hidden;
}

.revolucci-panel--article,
.archive-card-shell .post-card{
  height:var(--rv-article-panel-h)!important;
  min-height:0!important;
  display:flex!important;
  flex-direction:column!important;
}

.revolucci-panel--article .post-card-gallery,
.archive-card-shell .post-card .post-card-gallery,
.post-card-gallery{
  height:var(--rv-article-media-ratio)!important;
  min-height:0!important;
  flex:0 0 var(--rv-article-media-ratio);
  display:block!important;
  overflow:hidden;
  border-bottom:1px solid var(--line);
  background:rgba(0,0,0,.04);
}

.revolucci-panel--article .post-card-image,
.archive-card-shell .post-card .post-card-image,
.post-card-gallery .post-card-image{
  display:block!important;
  width:100%!important;
  height:100%!important;
  min-height:0!important;
}
.post-card-gallery .post-card-image:not(:first-child){display:none!important;}
.archive-card-shell .post-card .post-card-copy{
  height:auto!important;
  flex:1 1 auto;
  min-height:0!important;
  overflow:hidden;
}

.revolucci-panel--gallery,
.single-top-viewport .single-gallery-slide{
  height:var(--rv-gallery-panel-h)!important;
  min-height:0!important;
  display:block!important;
}
.single-top-viewport .single-gallery-slide img{
  width:100%!important;
  height:100%!important;
  max-width:none!important;
  max-height:none!important;
}

.revolucci-panel--hero,
.hero-slide,
.archive-hero,
.single-article-board{
  overflow:hidden;
  background-size:cover!important;
  background-position:center center!important;
}

/* WordPress/Gutenberg content panels below the fold also follow the canon. */
.wp-block-gallery,
.gallery{
  align-items:stretch!important;
}
.wp-block-gallery figure,
.gallery-item,
.entry-content figure.wp-block-image,
.entry-content .wp-block-image{
  height:clamp(180px,28dvh,340px)!important;
  min-height:0!important;
  margin:0!important;
}
.entry-content > img{
  height:clamp(180px,28dvh,340px)!important;
  max-width:100%!important;
}

/* The lightbox is the exception: real full view, no crop, no blend. */
.revolucci-lightbox img,
.revolucci-lightbox .revolucci-lightbox-img{
  width:auto!important;
  height:auto!important;
  max-width:96vw!important;
  max-height:92vh!important;
  object-fit:contain!important;
  object-position:center center!important;
  filter:none!important;
  mix-blend-mode:normal!important;
  border:0!important;
  box-shadow:none!important;
  background:transparent!important;
}

.revolucci-lightbox .revolucci-lightbox-inner,
.revolucci-lightbox figure{
  border:0!important;
  box-shadow:none!important;
  background:transparent!important;
  overflow:visible!important;
}

@media (min-width:761px) and (max-height:760px){
  :root{
    --rv-category-panel-h:clamp(185px,27dvh,260px);
    --rv-article-panel-h:clamp(185px,29dvh,260px);
  }
}

@media (max-width:760px){
  :root{
    --rv-category-panel-h:250px;
    --rv-article-panel-h:250px;
  }
}

@media (max-width:430px){
  :root{
    --rv-category-panel-h:230px;
    --rv-article-panel-h:230px;
  }
}

/* v3.4 — Hard panel media output
   The previous span-background method could disappear on some installs/caches.
   Visible cards now carry a real <img> plus a background fallback; the panel still owns the crop. */
.category-card,
.archive-card-shell .post-card,
.single-gallery-slide{
  isolation:isolate;
}
.category-card .category-card-gallery,
.archive-card-shell .post-card-gallery{
  position:relative!important;
  display:block!important;
  width:100%!important;
  min-height:0!important;
  overflow:hidden!important;
  background-color:rgba(17,17,17,.055)!important;
  background-size:cover!important;
  background-position:center center!important;
  background-repeat:no-repeat!important;
  flex:0 0 var(--rv-category-media-ratio,64%)!important;
  z-index:1;
}
.category-card .category-card-gallery{
  height:var(--rv-category-media-ratio,64%)!important;
}
.archive-card-shell .post-card-gallery{
  height:var(--rv-article-media-ratio,64%)!important;
  flex-basis:var(--rv-article-media-ratio,64%)!important;
}
.category-card .category-card-img,
.archive-card-shell .post-card-image,
.category-card .category-card-gallery > img,
.archive-card-shell .post-card-gallery > img,
.single-gallery-slide > img,
.gallery-lead-item > img{
  position:absolute!important;
  inset:0!important;
  display:block!important;
  width:100%!important;
  height:100%!important;
  min-width:100%!important;
  min-height:100%!important;
  max-width:none!important;
  max-height:none!important;
  object-fit:cover!important;
  object-position:center center!important;
  filter:grayscale(1) contrast(1.06)!important;
  mix-blend-mode:multiply!important;
  opacity:1!important;
  visibility:visible!important;
  z-index:1;
}
.category-card .category-card-gallery > span.category-card-img,
.archive-card-shell .post-card-gallery > span.post-card-image{
  background-size:cover!important;
  background-position:center center!important;
  background-repeat:no-repeat!important;
}
.category-card .category-card-copy,
.archive-card-shell .post-card-copy{
  position:relative!important;
  z-index:2;
}
/* The rail itself must never clip the card media vertically; only each panel clips its own image. */
.category-rail,
.archive-card-shell .archive-grid,
.single-gallery-rail{
  overflow-x:auto!important;
  overflow-y:visible!important;
}
/* Keep homepage rhythm close to the approved main-page screenshot on iPad. */
@media (max-width:1020px){
  .category-card{height:clamp(235px,28svh,300px)!important;}
  .category-card .category-card-gallery{height:62%!important;flex-basis:62%!important;}
  .category-card .category-card-copy{height:38%!important;}
}
@media (min-width:1021px){
  .category-card{height:clamp(205px,25dvh,280px)!important;}
}

/* v3.5 — uniform below-hero media strip canon
   Fixes inconsistent image behaviour under the main hero on home, category archives, and single posts.
   The strip/card owns the height; every image fills that hard panel with object-fit: cover.
   The lightbox remains the only place where the full uncropped source is shown. */
:root{
  --rv-below-hero-panel-h:clamp(205px,25dvh,280px);
  --rv-below-hero-media-share:64%;
  --rv-below-hero-radius:10px;
}

.category-stage,
.archive-card-shell,
.single-top-viewport .single-gallery-slider-section{
  min-height:0!important;
  overflow:hidden!important;
}

.category-rail,
.archive-card-shell .archive-grid,
.single-top-viewport .single-gallery-rail{
  min-height:0!important;
  height:auto!important;
  max-height:calc(var(--rv-below-hero-panel-h) + 4px)!important;
  align-items:start!important;
  overflow-x:auto!important;
  overflow-y:hidden!important;
  scroll-snap-type:x mandatory;
  -webkit-overflow-scrolling:touch;
}

.category-card,
.archive-card-shell .post-card,
.single-top-viewport .single-gallery-slide{
  height:var(--rv-below-hero-panel-h)!important;
  min-height:0!important;
  max-height:var(--rv-below-hero-panel-h)!important;
  border-radius:var(--rv-below-hero-radius)!important;
  overflow:hidden!important;
  flex:0 0 auto!important;
  position:relative!important;
  background:rgba(255,255,255,.18)!important;
}

.category-card,
.archive-card-shell .post-card{
  display:flex!important;
  flex-direction:column!important;
}

.category-card .category-card-gallery,
.archive-card-shell .post-card-gallery{
  position:relative!important;
  display:block!important;
  width:100%!important;
  height:var(--rv-below-hero-media-share)!important;
  flex:0 0 var(--rv-below-hero-media-share)!important;
  min-height:0!important;
  max-height:none!important;
  overflow:hidden!important;
  border-bottom:1px solid var(--line)!important;
  background-size:cover!important;
  background-position:center center!important;
  background-repeat:no-repeat!important;
}

.category-card .category-card-copy,
.archive-card-shell .post-card-copy{
  height:auto!important;
  flex:1 1 auto!important;
  min-height:0!important;
  overflow:hidden!important;
}

.category-card .category-card-img,
.archive-card-shell .post-card-image,
.single-top-viewport .single-gallery-slide > img,
.single-top-viewport .single-gallery-slide img{
  position:absolute!important;
  inset:0!important;
  width:100%!important;
  height:100%!important;
  min-width:100%!important;
  min-height:100%!important;
  max-width:none!important;
  max-height:none!important;
  display:block!important;
  object-fit:cover!important;
  object-position:center center!important;
  background-size:cover!important;
  background-position:center center!important;
  filter:grayscale(1) contrast(1.06)!important;
  mix-blend-mode:multiply!important;
}

.category-card .category-card-img:not(:first-child),
.archive-card-shell .post-card-image:not(:first-child){
  display:none!important;
}

.single-top-viewport .single-gallery-slide{
  display:block!important;
  scroll-snap-align:start!important;
}

.single-top-viewport .single-gallery-slider-section{
  grid-template-rows:auto minmax(0,var(--rv-below-hero-panel-h)) auto!important;
}

.single-top-viewport .single-gallery-topline,
.archive-card-shell .stage-header{
  flex:0 0 auto!important;
}

/* Keep normal article body galleries controlled too, but do not affect the lightbox. */
.entry-content .wp-block-gallery,
.entry-content .gallery{
  align-items:stretch!important;
}
.entry-content .wp-block-gallery figure,
.entry-content .gallery-item,
.entry-content figure.wp-block-image,
.entry-content .wp-block-image{
  height:var(--rv-below-hero-panel-h)!important;
  min-height:0!important;
  overflow:hidden!important;
}
.entry-content .wp-block-gallery img,
.entry-content .gallery img,
.entry-content figure.wp-block-image img,
.entry-content .wp-block-image img{
  width:100%!important;
  height:100%!important;
  max-width:none!important;
  max-height:none!important;
  object-fit:cover!important;
  object-position:center center!important;
}

.revolucci-lightbox img,
.revolucci-lightbox .revolucci-lightbox-img,
.revolucci-lightbox-inner img{
  width:auto!important;
  height:auto!important;
  max-width:96vw!important;
  max-height:92vh!important;
  object-fit:contain!important;
  object-position:center center!important;
  filter:none!important;
  mix-blend-mode:normal!important;
}

@media (max-width:1020px){
  :root{--rv-below-hero-panel-h:250px;}
}
@media (max-width:430px){
  :root{--rv-below-hero-panel-h:230px;}
}


/* v3.6 — archive article rail viewport lock
   Category article sliders must size to the visible viewport, not to the total number
   of articles. The rail can have a larger scrollWidth, but its own rendered width
   stays clamped to its parent/viewport so cards never push the page off-screen. */
:root{
  --rv-archive-gap:clamp(10px,1.2vw,18px);
  --rv-archive-visible-cards:3;
}

.archive-viewport-board,
.archive-card-shell,
.archive-card-shell .stage-header,
.archive-card-shell .archive-grid{
  box-sizing:border-box!important;
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
}

.archive-viewport-board,
.archive-card-shell{
  overflow:hidden!important;
  contain:inline-size;
}

.archive-card-shell .stage-header{
  padding-inline:0!important;
}

.archive-card-shell .archive-grid{
  display:grid!important;
  grid-auto-flow:column!important;
  grid-template-columns:none!important;
  grid-auto-columns:calc((100% - ((var(--rv-archive-visible-cards) - 1) * var(--rv-archive-gap))) / var(--rv-archive-visible-cards))!important;
  gap:var(--rv-archive-gap)!important;
  inline-size:100%!important;
  max-inline-size:100%!important;
  overflow-x:auto!important;
  overflow-y:hidden!important;
  overscroll-behavior-x:contain!important;
  scroll-snap-type:x mandatory!important;
  scrollbar-width:none!important;
  -webkit-overflow-scrolling:touch!important;
}

.archive-card-shell .archive-grid > .post-card{
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  scroll-snap-align:start!important;
}

@media (max-width:700px){
  :root{--rv-archive-visible-cards:1;}
}

/* v3.7 — REVOLUCCI Analog Jitter FX
   Flashy street-print / vibrating screen entrance for hero headers only:
   home hero copy, category/archive header title, and single article title. */
@keyframes rev-analog-pop-jitter{
  0%{opacity:0;transform:translateY(30px) scale(.955) rotate(-.7deg);filter:contrast(1.65) blur(2px);}
  38%{opacity:1;transform:translateY(-7px) scale(1.028) rotate(.55deg);filter:contrast(1.95) blur(0);}
  52%{transform:translateY(4px) scale(.992) rotate(-.42deg);}
  64%{transform:translateY(-3px) scale(1.012) rotate(.28deg);}
  76%{transform:translateY(2px) scale(.998) rotate(-.18deg);}
  100%{opacity:1;transform:translateY(0) scale(1) rotate(0);filter:contrast(1) blur(0);}
}

@keyframes rev-analog-screen-vibe{
  0%,100%{transform:translate3d(0,0,0) rotate(0);}
  16%{transform:translate3d(-1px,1px,0) rotate(-.08deg);}
  33%{transform:translate3d(1px,-1px,0) rotate(.08deg);}
  50%{transform:translate3d(-1px,-.5px,0) rotate(-.05deg);}
  66%{transform:translate3d(.5px,1px,0) rotate(.06deg);}
  83%{transform:translate3d(1px,.5px,0) rotate(.04deg);}
}

@keyframes rev-ink-scan-flash{
  0%,100%{opacity:0;transform:translateX(-120%) skewX(-12deg);}
  18%{opacity:.34;}
  42%{opacity:.18;transform:translateX(120%) skewX(-12deg);}
  43%{opacity:0;}
}

.hero-slide-copy,
.archive-hero-copy,
.single-board-copy{
  transform-origin:left bottom;
  backface-visibility:hidden;
  will-change:transform,filter,opacity;
}

.hero-slide.is-active .hero-slide-copy,
.archive-hero-copy,
.single-board-copy{
  animation:rev-analog-pop-jitter .78s cubic-bezier(.18,1.42,.32,1) both,
            rev-analog-screen-vibe .18s steps(2,end) .84s 10;
}

.hero-slide-copy .hero-kicker,
.hero-slide-copy .hero-title,
.archive-title,
.poster-title-box{
  position:relative;
  overflow:hidden;
  isolation:isolate;
}

.hero-slide.is-active .hero-kicker::after,
.hero-slide.is-active .hero-title::after,
.archive-title::after,
.poster-title-box::after{
  content:"";
  position:absolute;
  inset:-12% -35%;
  z-index:2;
  pointer-events:none;
  background:linear-gradient(90deg,transparent 0%,rgba(255,255,255,.04) 42%,rgba(255,255,255,.62) 50%,rgba(255,255,255,.06) 58%,transparent 100%);
  mix-blend-mode:screen;
  animation:rev-ink-scan-flash 1.15s steps(5,end) .12s 2 both;
}

/* Re-trigger the punch when the home hero changes slide. */
.hero-slide-copy.rev-fx-replay,
.archive-hero-copy.rev-fx-replay,
.single-board-copy.rev-fx-replay{
  animation:none!important;
}

@media (prefers-reduced-motion:reduce){
  .hero-slide.is-active .hero-slide-copy,
  .archive-hero-copy,
  .single-board-copy,
  .hero-slide.is-active .hero-kicker::after,
  .hero-slide.is-active .hero-title::after,
  .archive-title::after,
  .poster-title-box::after{
    animation:none!important;
    opacity:1!important;
    transform:none!important;
    filter:none!important;
  }
}


/* v4.0 — inline image visibility fix.
   Normal images inserted in article text must remain visible in the article body.
   Only actual gallery blocks are hidden from the text because those are rendered in the gallery rail above. */
.text-second-panel .entry-content .wp-block-image,
.text-second-panel .entry-content figure.wp-block-image,
.text-second-panel .entry-content p > img,
.text-second-panel .entry-content a > img{
  display:block!important;
  visibility:visible!important;
  opacity:1!important;
}
.text-second-panel .entry-content .wp-block-image,
.text-second-panel .entry-content figure.wp-block-image{
  max-width:1120px!important;
  width:auto!important;
  height:auto!important;
  max-height:none!important;
  aspect-ratio:auto!important;
  overflow:visible!important;
  border:0!important;
  background:transparent!important;
  margin:clamp(20px,3vw,36px) auto!important;
}
.text-second-panel .entry-content img,
.text-second-panel .entry-content .wp-block-image img,
.text-second-panel .entry-content figure.wp-block-image img,
.text-second-panel .entry-content p > img,
.text-second-panel .entry-content a > img{
  display:block!important;
  width:auto!important;
  height:auto!important;
  max-width:100%!important;
  max-height:none!important;
  aspect-ratio:auto!important;
  object-fit:contain!important;
  object-position:center!important;
}


/* v4.1 — single article title fit guard
   Long post titles scale down inside the header instead of blowing out of the hero panel. */
.single-top-viewport .single-board-copy{
  max-width:min(980px,86vw);
}
.single-top-viewport .single-board-copy h1.poster-title-box{
  font-size:clamp(30px,5.1vw,76px)!important;
  line-height:.88!important;
  letter-spacing:.018em!important;
  max-width:min(980px,84vw);
  max-height:calc(var(--hero-board, 48dvh) - 96px);
  overflow:hidden;
  display:-webkit-box;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:4;
  text-wrap:balance;
  overflow-wrap:normal;
  hyphens:auto;
}
.single-top-viewport .single-board-copy h1.poster-title-box.is-title-long{
  font-size:clamp(26px,4.35vw,62px)!important;
  line-height:.9!important;
  -webkit-line-clamp:5;
}
.single-top-viewport .single-board-copy h1.poster-title-box.is-title-very-long{
  font-size:clamp(22px,3.55vw,50px)!important;
  line-height:.92!important;
  -webkit-line-clamp:6;
}
@media (max-width:760px){
  .single-top-viewport .single-board-copy h1.poster-title-box{
    font-size:clamp(30px,9vw,50px)!important;
    max-width:92vw;
    max-height:172px;
    -webkit-line-clamp:4;
  }
  .single-top-viewport .single-board-copy h1.poster-title-box.is-title-long{
    font-size:clamp(25px,7.4vw,42px)!important;
    -webkit-line-clamp:5;
  }
  .single-top-viewport .single-board-copy h1.poster-title-box.is-title-very-long{
    font-size:clamp(21px,6.2vw,34px)!important;
    -webkit-line-clamp:6;
  }
}
@media (min-width:761px) and (max-height:760px){
  .single-top-viewport .single-board-copy h1.poster-title-box{
    font-size:clamp(28px,4.3vw,62px)!important;
    max-height:calc(47dvh - 88px);
  }
  .single-top-viewport .single-board-copy h1.poster-title-box.is-title-long{
    font-size:clamp(24px,3.7vw,52px)!important;
  }
  .single-top-viewport .single-board-copy h1.poster-title-box.is-title-very-long{
    font-size:clamp(20px,3.1vw,42px)!important;
  }
}
