/*
Theme Name: Content With Life
Theme URI: https://contentwithlife.co.uk
Author: Content With Life
Description: A quiet Scandi block theme for a web designer, photographer and maker. Includes a light/dark switch and custom post types for photography stories, web projects and the Playground, and a scroll-animated Vintage page.
Version: 0.1.133
Requires at least: 6.5
Tested up to: 7.1
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: content-with-life
Update URI: false
*/

/* ---------- Colour tokens (light, then dark) ---------- */
:root{
  --cwl-bg:#F2F3F1; --cwl-surface:#E7E9E5; --cwl-ink:#22282B; --cwl-muted:#5E686C; --cwl-line:#D3D7D2;
  --cwl-sage:#A8B9A6; --cwl-fjord:#46606B; --cwl-sun:#E3B04B; --cwl-blush:#E2C3B8; --cwl-sky:#B9CDD6; --cwl-error:#9E3B2C; --cwl-on-sun:#22282B; --cwl-paper:.8;
  --cwl-panel:#E7E9E5; /* project details gallery panels: stays light in dark mode, as most logos are made for light backgrounds */
}
@media (prefers-color-scheme:dark){
  :root:not([data-theme="light"]){
    --cwl-bg:#1C2022; --cwl-surface:#262C2F; --cwl-ink:#ECEEEB; --cwl-muted:#9AA3A6; --cwl-line:#363D40;
    --cwl-sage:#6F836D; --cwl-fjord:#7FA0AE; --cwl-sun:#C9973A; --cwl-blush:#A58579; --cwl-sky:#5E7C88; --cwl-error:#E89A86; --cwl-on-sun:#1C2022; --cwl-paper:.25; color-scheme:dark;
  }
}
:root[data-theme="dark"]{
  --cwl-bg:#1C2022; --cwl-surface:#262C2F; --cwl-ink:#ECEEEB; --cwl-muted:#9AA3A6; --cwl-line:#363D40;
  --cwl-sage:#6F836D; --cwl-fjord:#7FA0AE; --cwl-sun:#C9973A; --cwl-blush:#A58579; --cwl-sky:#5E7C88; --cwl-error:#E89A86; --cwl-on-sun:#1C2022; --cwl-paper:.25; color-scheme:dark;
}

html{scroll-behavior:smooth}
body{-webkit-font-smoothing:antialiased}
:focus-visible{outline:2px solid var(--cwl-fjord);outline-offset:3px}
.cwl-muted{color:var(--cwl-muted)}

/* ---------- Header and footer ---------- */
.wp-site-blocks > header{padding-top:env(safe-area-inset-top,0px)}
.wp-block-site-title a{text-decoration:none;display:block;line-height:0}
.cwl-logo{display:block;height:4.5rem;width:auto;color:var(--cwl-fjord)}
.cwl-logo-sun{fill:var(--cwl-sun)}
@media (max-width:700px){.cwl-logo{height:3.25rem}}
.wp-block-navigation a{text-decoration:none;color:var(--cwl-muted)}
.wp-block-navigation a:hover,.wp-block-navigation .current-menu-item > a{color:var(--cwl-ink)}
/* Phone menu panel: the site's own colours, links left-aligned and large in the heading font */
.wp-block-navigation__responsive-container.is-menu-open{background-color:var(--cwl-bg)!important;color:var(--cwl-ink)!important;--navigation-layout-justification-setting:flex-start;--navigation-layout-justify:flex-start}
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content{align-items:flex-start;padding-top:calc(2rem + 24px)}
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container{align-items:flex-start!important;gap:.9rem}
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item{align-items:flex-start!important;text-align:left}
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content{font-family:var(--wp--preset--font-family--heading);font-weight:300;font-size:clamp(1.75rem,8vw,2.5rem);letter-spacing:-.02em;line-height:1.2;color:var(--cwl-ink)}
.wp-block-navigation__responsive-container.is-menu-open .current-menu-item > a{text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:.2em}
.wp-block-navigation__responsive-container-close,.wp-block-navigation__responsive-container-open{color:var(--cwl-ink)}
/* Dropdowns (such as Photography's three services): the page colour, a thin rule, the menu's own small links */
.wp-block-navigation:not(.has-background) .wp-block-navigation__submenu-container{background-color:var(--cwl-bg);color:var(--cwl-ink);border:1px solid var(--cwl-line);border-radius:6px;padding:.4rem 0}
.wp-block-navigation .has-child .wp-block-navigation__submenu-container{min-width:14rem}
/* WordPress lines a right-hand menu's dropdown up with its right edge; ours starts under its heading's first letter */
.wp-block-navigation.items-justified-right .wp-block-navigation__container .has-child .wp-block-navigation__submenu-container{left:-1.1rem;right:auto}
.wp-block-navigation .wp-block-navigation__submenu-container .wp-block-navigation-item__content{padding:.45rem 1.1rem}
.wp-block-navigation .wp-block-navigation-submenu__toggle{color:var(--cwl-muted)}
/* In the phone menu they sit under their heading, indented and a size smaller */
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container{padding:.5rem 0 .25rem 1.1rem!important;gap:.45rem!important}
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item__content{font-size:clamp(1.15rem,5vw,1.4rem);color:var(--cwl-muted);padding:0}
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container .current-menu-item > a{color:var(--cwl-ink)}
.cwl-theme-toggle{font:500 .85rem var(--wp--preset--font-family--body);color:var(--cwl-ink);background:transparent;border:1px solid var(--cwl-line);border-radius:99px;padding:.25rem .85rem;cursor:pointer;margin-left:1.25rem}
.cwl-theme-toggle:hover{border-color:var(--cwl-ink)}
.cwl-footer{border-top:1px solid var(--cwl-line);color:var(--cwl-muted);font-size:.9rem}
.cwl-footer .cwl-logo{height:3rem}
.cwl-footer-meta p{margin:0}
/* Social icons (WordPress's Social Icons block, built-in SVGs, nothing loads from the networks): theme colours, a little space below */
.cwl-footer .cwl-social{margin:-.4rem -.4rem 0 0;gap:0}
.cwl-footer .cwl-social .wp-block-social-link-anchor{padding:.4rem}
.cwl-footer .cwl-social .wp-social-link{color:var(--cwl-muted);transition:color .15s}
.cwl-footer .cwl-social .wp-social-link:hover{color:var(--cwl-fjord);transform:none}
.cwl-footer .cwl-social .wp-social-link svg{width:1.4rem;height:1.4rem}
.cwl-footer .cwl-social a:focus-visible{outline:2px solid var(--cwl-fjord);outline-offset:3px;border-radius:4px}
@media (prefers-reduced-motion:reduce){.cwl-footer .cwl-social .wp-social-link{transition:none}}
@media (max-width:359px){.cwl-footer-meta{align-items:flex-start!important}.cwl-footer .cwl-social{justify-content:flex-start!important;margin:-.4rem 0 0 -.4rem}}

/* ---------- Layout helpers ---------- */
.cwl-section{border-top:1px solid var(--cwl-line);padding-top:clamp(3rem,7vw,5.5rem);padding-bottom:clamp(3rem,7vw,5.5rem)}
.cwl-section-heading{border-top:1px solid var(--cwl-line);margin-top:clamp(2.5rem,5vw,4rem);padding-top:clamp(3rem,7vw,5.5rem);margin-bottom:0}
.cwl-side p{color:var(--cwl-muted);max-width:30ch}
/* :where keeps this general rule weak, so the intro and quote widths below can win */
.cwl-prose > :where(*:not(.alignwide):not(.alignfull)){max-width:60ch;margin-left:0;margin-right:auto}
/* Full width inside a post: the post's content column is narrower than the screen, so a Full width block breaks out of it to both edges. */
.cwl-prose > .alignfull{max-width:none!important;margin-left:calc(50% - 50vw)!important;margin-right:calc(50% - 50vw)!important}
body:has(.cwl-prose > .alignfull){overflow-x:clip}
/* Full-width statement pattern: one large line in the heading font, as wide as the band's content area. */
.cwl-statement{font-weight:300;line-height:1.15;letter-spacing:-.03em;margin:0}
/* Page intro paragraphs; the !important beats the constrained layout's centring */
.cwl-lede{max-width:50ch}
.is-layout-constrained > .cwl-lede{margin-left:0!important}
.cwl-link{font-weight:500;text-decoration:none;border-bottom:1px solid currentColor}

/* ---------- Home hero ---------- */
.cwl-hero h1{max-width:15ch}
.cwl-hero p{max-width:46ch;margin-top:2rem}

/* ---------- Home hero shapes ---------- */
.cwl-shapes{display:flex;gap:.6rem;align-items:flex-end;margin-top:3rem}
.cwl-shapes i{display:block;width:clamp(2.25rem,6vw,4.25rem);aspect-ratio:1}
.cwl-shapes i:nth-child(1){background:var(--cwl-sage);border-radius:50% 50% 0 0}
.cwl-shapes i:nth-child(2){background:var(--cwl-sun);border-radius:50%}
.cwl-shapes i:nth-child(3){background:var(--cwl-fjord);border-radius:0 100% 0 0}
.cwl-shapes i:nth-child(4){background:var(--cwl-blush)}
.cwl-shapes i:nth-child(5){background:var(--cwl-sky);border-radius:100% 0 0 0}

/* ---------- Brand list ---------- */
/* Brand names: one wrapping line with a thin sun-coloured rule between names. Each name has a rule on its left; the list is pulled left by one rule and its padding, and clip-path hides that strip, so a rule never shows at the start of a line or after the last name. */
.cwl-brands{list-style:none;display:flex;flex-wrap:wrap;gap:.45em 0;margin:0 0 0 calc(-.8em - 1px);padding:0;clip-path:inset(0 0 0 calc(.8em + 1px));font-family:var(--wp--preset--font-family--heading);font-weight:300;font-size:clamp(1.15rem,2.2vw,1.45rem);letter-spacing:-.01em}
.cwl-brands strong,.cwl-brands b{font-weight:inherit}
.editor-styles-wrapper .cwl-brands strong,.editor-styles-wrapper .cwl-brands b{font-weight:700;background:color-mix(in srgb,var(--cwl-sun) 35%,transparent)}
.cwl-brands li{margin:0;padding:0 .8em;border-left:1px solid var(--cwl-sun);line-height:1.3;white-space:nowrap}

/* ---------- Testimonials ---------- */
.cwl-tests{columns:2;column-gap:3rem}
.cwl-tests .cwl-test{break-inside:avoid;margin:0 0 2rem;padding:1rem 0 0;border:0;border-top:1px solid var(--cwl-line)}
.cwl-tests .cwl-test p{margin:0 0 .6rem}
.cwl-tests .cwl-test cite{color:var(--cwl-muted);font-size:.9rem;font-style:normal}
@media (max-width:820px){.cwl-tests{columns:1}}

/* ---------- Filters (the [cwl_filters] shortcode) ---------- */
.cwl-archive-intro{max-width:48ch;margin:1.75rem 0 0;color:var(--cwl-muted);font-size:1.15rem}
.cwl-filters{display:flex;flex-wrap:wrap;gap:.5rem;margin:clamp(2rem,4vw,3rem) 0 1.75rem}
.cwl-filters a{font-size:.9rem;font-weight:500;color:var(--cwl-ink);text-decoration:none;border:1px solid var(--cwl-line);border-radius:99px;padding:.4rem 1rem}
.cwl-filters a:hover{border-color:var(--cwl-ink)}
.cwl-filters a[aria-current="true"]{background:var(--cwl-ink);color:var(--cwl-bg);border-color:var(--cwl-ink)}
/* Search box on the search results page (templates/search.html) */
.cwl-search{max-width:32rem;margin:1.75rem 0 clamp(2rem,5vw,3rem)}
.cwl-search .wp-block-search__inside-wrapper{gap:.5rem}
.cwl-search .wp-block-search__input{background:var(--cwl-surface);color:var(--cwl-ink);border:1px solid var(--cwl-line);border-radius:0;padding:.6rem .8rem;font:inherit}
.cwl-search .wp-block-search__button{margin:0;background:var(--cwl-ink);color:var(--cwl-bg);border:0;border-radius:99px;padding:.6rem 1.2rem;font:500 .95rem var(--wp--preset--font-family--body);cursor:pointer}
.cwl-search .wp-block-search__button:hover{background:var(--cwl-fjord)}

/* ---------- Post cards ---------- */
.cwl-card .wp-block-post-featured-image{background:var(--cwl-surface);margin-bottom:.7rem}
.cwl-card .wp-block-post-title{margin:0}
/* Listing pages use h2 card titles so headings don't skip a level; keep them the same size as the h3 cards elsewhere */
.cwl-card h2.wp-block-post-title,.cwl-card h3.wp-block-post-title{font-size:1.1rem;font-weight:400;letter-spacing:0;line-height:1.3}
.cwl-card .wp-block-post-title a{text-decoration:none}
.cwl-card .wp-block-post-title a:hover{text-decoration:underline;text-underline-offset:3px}
.cwl-card .wp-block-post-terms{color:var(--cwl-muted);font-size:.9rem}
.cwl-card .wp-block-post-terms a{text-decoration:none}
.cwl-projects{margin-top:clamp(1.5rem,3vw,2rem)}
.cwl-card .wp-block-post-date{margin-block-start:.2rem}
.cwl-card .wp-block-post-excerpt{color:var(--cwl-muted);font-size:.95rem;margin-top:.3rem}
.cwl-card .wp-block-post-excerpt__excerpt{margin:0}

/* ---------- FAQ accordions (core Details block) ---------- */
.wp-block-details{border-top:1px solid var(--cwl-line);padding:0;margin-block:0}
.wp-block-details:last-of-type{border-bottom:1px solid var(--cwl-line)}
.wp-block-details summary{list-style:none;position:relative;padding:1.1rem 2rem 1.1rem 0;font-family:var(--wp--preset--font-family--heading);font-size:1.1rem;cursor:pointer}
.wp-block-details summary::-webkit-details-marker{display:none}
.wp-block-details summary::after{content:"+";position:absolute;right:.25rem;top:1rem;font-size:1.4rem;line-height:1;color:var(--cwl-muted);transition:transform .25s}
.wp-block-details[open] summary::after{transform:rotate(45deg)}
.wp-block-details p{margin:0 0 1.25rem;color:var(--cwl-muted);max-width:60ch}

/* ---------- Playground facts panel ---------- */
.cwl-story{margin-top:3rem}
.cwl-story p{max-width:60ch}
.cwl-facts{font-size:.95rem}
.cwl-facts p,.cwl-facts .wp-block-post-terms{margin:0}
.cwl-facts-label,.cwl-facts-list strong{display:block;color:var(--cwl-muted);font-weight:400}
.cwl-facts a{text-decoration:none;border-bottom:1px solid currentColor}
.cwl-facts-list{list-style:none;margin:0;padding:0}
.cwl-facts-list li{margin-top:1rem}

/* ---------- Shoot diary ---------- */
.cwl-prose > .cwl-intro{max-width:34ch;margin-top:2.5rem;margin-bottom:0;font-family:var(--wp--preset--font-family--heading);font-weight:300;font-size:clamp(1.25rem,2.4vw,1.6rem);line-height:1.45;letter-spacing:-.01em}
.cwl-prose > .cwl-pullquote{max-width:24ch;margin-block:3rem;padding:0;border:0;font-family:var(--wp--preset--font-family--heading);font-weight:300;font-size:clamp(1.5rem,3.4vw,2.4rem);line-height:1.25;letter-spacing:-.025em}
.cwl-pullquote p{margin:0}
.cwl-pullquote cite{display:block;margin-top:1rem;font-family:var(--wp--preset--font-family--body);font-size:.95rem;font-style:normal;font-weight:400;letter-spacing:0;color:var(--cwl-muted)}
/* Previous and next links on posts: a small sun-yellow triangle beside the title. The word stays for screen readers. */
.wp-block-post-navigation-link{position:relative}
.wp-block-post-navigation-link .post-navigation-link__label{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.wp-block-post-navigation-link a::before,.wp-block-post-navigation-link a::after{content:"";display:inline-block;vertical-align:.04em;border:solid transparent}
.post-navigation-link-previous a::before{border-width:.4em .7em .4em 0;border-right-color:var(--cwl-sun);margin-right:.6em}
.post-navigation-link-next a::after{border-width:.4em 0 .4em .7em;border-left-color:var(--cwl-sun);margin-left:.6em}
.cwl-cta{align-items:baseline;gap:1rem;margin-top:4rem;padding-top:2.5rem;border-top:1px solid var(--cwl-line)}
.cwl-cta p{margin:0}
.cwl-cta-text{font-family:var(--wp--preset--font-family--heading);font-weight:300;font-size:1.6rem;letter-spacing:-.02em}
/* Call to action band (patterns/call-to-action.php, meant to be a synced pattern): fjord band, sun rule, pale pill button */
.cwl-cta-band{margin-top:clamp(4rem,9vw,7rem)!important;margin-bottom:0!important;padding-top:clamp(3.5rem,8vw,6rem);padding-bottom:clamp(3.5rem,8vw,6rem)}
main:has(> .wp-block-post-content > .cwl-cta-band:last-child),main:has(> .entry-content > .cwl-cta-band:last-child){padding-bottom:0!important}
.cwl-cta-band.alignfull{max-width:none!important;margin-left:calc(50% - 50vw)!important;margin-right:calc(50% - 50vw)!important}
body:has(.cwl-cta-band.alignfull){overflow-x:clip}
.cwl-section + .cwl-cta-band{margin-top:clamp(1rem,2vw,1.5rem)!important} /* the section above already ends with generous padding */
.cwl-cta-band-inner{gap:2rem 3rem}
.cwl-cta-band-words{max-width:34ch}
.cwl-cta-band-heading{margin:0;font-size:clamp(2.2rem,5.5vw,3.75rem);font-weight:300;line-height:1.05;letter-spacing:-.035em;color:inherit}
.cwl-cta-band-heading::before{content:"";display:block;width:3.5rem;height:3px;margin-bottom:1.5rem;background:var(--cwl-sun)}
.cwl-cta-band-text{margin:1.25rem 0 0;font-size:1.125rem;line-height:1.55}
.cwl-cta-band .wp-element-button{background:var(--cwl-bg);color:var(--cwl-fjord);padding:.95rem 2rem;font-size:1.05rem}
.cwl-cta-band .wp-element-button:hover,.cwl-cta-band .wp-element-button:focus-visible{background:var(--cwl-sun);color:var(--cwl-on-sun)}
.cwl-cta-band :focus-visible{outline-color:var(--cwl-bg)}

/* ---------- Photography pages ---------- */
.cwl-crumb{gap:.35em;color:var(--cwl-muted);font-size:.95rem;margin-bottom:2rem}
.cwl-crumb p{margin:0}
.cwl-crumb a{text-decoration:none;border-bottom:1px solid var(--cwl-line)}
.cwl-crumb a:hover{border-color:currentColor}
.cwl-crumb .wp-block-post-title{font:inherit;letter-spacing:inherit;margin:0}
/* Full canvas page template (templates/full-canvas.html): no header or footer, the content edge to edge with no spacing of its own, and a small "Back to the post" link fixed in the top left corner. */
.cwl-canvas > .wp-block-post-content,.wp-site-blocks > .cwl-canvas{margin-block-start:0}
.cwl-canvas-back{--cwl-bar:0px;position:fixed;z-index:100;top:calc(env(safe-area-inset-top, 0px) + var(--cwl-bar) + 1rem);left:calc(env(safe-area-inset-left, 0px) + 1rem);margin:0}
/* Logged in, it sits below the WordPress toolbar (32px tall, 46px on smaller screens) */
.admin-bar .cwl-canvas-back{--cwl-bar:32px}
@media (max-width:782px){.admin-bar .cwl-canvas-back{--cwl-bar:46px}}
.cwl-canvas-back p{margin:0}
.cwl-canvas-back a{display:inline-block;font-size:.85rem;font-weight:500;color:var(--cwl-ink);text-decoration:none;background:var(--cwl-bg);border:1px solid var(--cwl-line);border-radius:99px;padding:.35rem .9rem}
.cwl-canvas-back a:hover{border-color:currentColor}
.cwl-gallery{margin-top:clamp(2.5rem,6vw,4rem)}
.cwl-gallery figcaption{color:var(--cwl-muted);font-size:.9rem}
/* Headshots 8×10 gallery style: every photo exactly 4:5, centre-cropped if it isn't already, and a short last row keeps the same size. */
.wp-block-gallery.is-style-cwl-headshots figure.wp-block-image:not(#individual-image){flex-grow:0}
.wp-block-gallery.is-style-cwl-headshots figure.wp-block-image:not(#individual-image) img{aspect-ratio:4/5;height:auto;flex:none;object-fit:cover}
/* Project details gallery style: every picture shown whole (never cropped) on a light 4:3 panel (in dark mode too), so logos, buttons and screenshots of any shape sit in a tidy grid. Captions sit below the panel. */
.wp-block-gallery.has-nested-images.is-style-cwl-details figure.wp-block-image.wp-block-image:not(#individual-image){flex-grow:0;justify-content:flex-start}
.wp-block-gallery.has-nested-images.is-style-cwl-details figure.wp-block-image.wp-block-image:not(#individual-image) img{aspect-ratio:4/3;width:100%;height:auto;flex:none;object-fit:contain;box-sizing:border-box;padding:8%;background:var(--cwl-panel)}
.wp-block-gallery.has-nested-images.is-style-cwl-details figure.wp-block-image.wp-block-image:not(#individual-image) figcaption{position:static;background:none;color:var(--cwl-muted);font-size:.9rem;text-align:left;padding:.5rem 0 0;max-height:none;overflow:visible;text-shadow:none}
.wp-block-gallery.has-nested-images.is-style-cwl-details figure.wp-block-image.wp-block-image:not(#individual-image)::before{display:none}
/* Even rows gallery style: every photo whole (never cropped), each as wide as its shape needs at the row's height (--r, its width ÷ height, set by cwl_rows_gallery), so rows of mixed landscapes, portraits and squares line up and fill the width. The Columns setting doesn't apply. No photo grows past 1.4 times its row height (max-width), so a short row (the last one, or one the next photo didn't fit) ends short of the right edge instead of growing oversized. The editor has no --r, so it shows the photos as 3:2 tiles. */
.wp-block-gallery.has-nested-images.is-style-cwl-rows{--cwl-row-h:300px}
@media (max-width:600px){.wp-block-gallery.has-nested-images.is-style-cwl-rows{--cwl-row-h:150px}}
/* Wrap (Image block style): text flows around the picture, 45% of the 60ch reading column unless a width is set; Align right floats it right, anything else left. Phones: on its own line, full width. */
figure.wp-block-image.is-style-cwl-wrap{float:left;clear:left;display:block;width:calc(min(60ch,100%) * .45);max-width:none;margin:0 1.75rem 1rem 0!important}
figure.wp-block-image.is-style-cwl-wrap.alignright{float:right;clear:right;margin:0 0 1rem 1.75rem!important}
.cwl-prose > figure.wp-block-image.is-style-cwl-wrap.alignright{margin-right:max(0px,calc(100% - 60ch))!important}
.cwl-prose > figure.wp-block-image.is-style-cwl-wrap:not(:first-child){margin-top:var(--wp--style--block-gap,1.5rem)!important}
figure.wp-block-image.is-style-cwl-wrap img{width:100%;max-width:100%;height:auto!important}
/* A width typed in the block's Width box is used, up to 60% of the reading column; the caption doesn't widen the picture's column (contain). */
figure.wp-block-image.is-style-cwl-wrap:has(img[style*="width"]){width:fit-content;max-width:calc(min(60ch,100%) * .6)}
figure.wp-block-image.is-style-cwl-wrap:has(img[style*="width"]) figcaption{contain:inline-size}
figure.wp-block-image.is-style-cwl-wrap figcaption{display:block;margin:.5em 0 0;color:var(--cwl-muted);font-size:.9rem}
.cwl-prose > :is(h2,h3,h4,hr,.alignwide,.alignfull,.wp-block-gallery,.wp-block-columns,.wp-block-media-text,.wp-block-group,.wp-block-image:not(.is-style-cwl-wrap),.wp-block-embed,.wp-block-details){clear:both}
.cwl-prose > :is(ul,ol){display:flow-root}
.cwl-prose::after{content:"";display:block;clear:both}
@media (max-width:600px){figure.wp-block-image.is-style-cwl-wrap img{width:100%!important}figure.wp-block-image.is-style-cwl-wrap,figure.wp-block-image.is-style-cwl-wrap.alignright,.cwl-prose > figure.wp-block-image.is-style-cwl-wrap.alignright,figure.wp-block-image.is-style-cwl-wrap:has(img[style*="width"]){float:none;width:auto;max-width:none;margin-inline:0!important;margin-bottom:0!important}}
/* Scroll window: a long screenshot in a browser-style frame about one screen tall, scrolled inside (cwl_scroll_window) */
figure.wp-block-image.is-style-cwl-scroll{display:block;border:1px solid var(--cwl-line);border-radius:10px;overflow:hidden;background:var(--cwl-surface)}
.is-style-cwl-scroll .cwl-scroll-bar{display:flex;align-items:center;justify-content:space-between;gap:1rem;height:2.25rem;padding:0 .9rem;border-bottom:1px solid var(--cwl-line);color:var(--cwl-muted);font-size:.8rem}
.is-style-cwl-scroll .cwl-scroll-dots{width:2.6rem;height:.6rem;background:radial-gradient(circle,var(--cwl-muted) 0 .26rem,transparent .3rem) 0 0/.9rem .6rem repeat-x;opacity:.45}
.is-style-cwl-scroll .cwl-scroll-window{max-height:min(78svh,46rem);overflow-y:auto;background:var(--cwl-bg)}
.is-style-cwl-scroll .cwl-scroll-window:focus-visible{outline:2px solid var(--cwl-fjord);outline-offset:-2px}
.is-style-cwl-scroll .cwl-scroll-window img{display:block;width:100%;max-width:none;height:auto!important}
.is-style-cwl-scroll figcaption{margin:0;padding:.6rem .9rem;border-top:1px solid var(--cwl-line);color:var(--cwl-muted);font-size:.9rem}
@media (max-width:600px){.is-style-cwl-scroll .cwl-scroll-window{max-height:65svh}.is-style-cwl-scroll .cwl-scroll-hint{display:none}}
.editor-styles-wrapper .is-style-cwl-scroll img{max-height:min(78vh,46rem);object-fit:cover;object-position:top}
.wp-block-gallery.has-nested-images.is-style-cwl-rows figure.wp-block-image.wp-block-image:not(#individual-image){flex:var(--r,1.5) var(--r,1.5) calc(var(--r,1.5) * var(--cwl-row-h));width:auto;min-width:0;max-width:calc(var(--r,1.5) * var(--cwl-row-h) * 1.4);margin:0}
.wp-block-gallery.has-nested-images.is-style-cwl-rows figure.wp-block-image.wp-block-image:not(#individual-image) img{aspect-ratio:var(--r,1.5);width:100%;height:auto;flex:none;object-fit:cover}
.cwl-terms{list-style:none;margin:0;padding:0}
.cwl-terms li{display:grid;grid-template-columns:11rem 1fr;gap:1rem;padding:1rem 0;border-top:1px solid var(--cwl-line);color:var(--cwl-muted)}
ol.cwl-terms li{grid-template-columns:7.5rem 1fr}
.cwl-terms li:first-child{border-top:0;padding-top:0}
.cwl-terms strong{font-family:var(--wp--preset--font-family--heading);font-weight:500;font-size:1.05rem;color:var(--cwl-ink)}
/* In the editor each item's text sits in one editable box, which the grid squeezes into the narrow column, so stack it instead */
.cwl-terms li:has(> .block-editor-rich-text__editable){display:block}
.cwl-terms .block-editor-rich-text__editable strong{display:block;margin-bottom:.2rem}
.cwl-price{font-family:var(--wp--preset--font-family--heading);font-weight:300;font-size:1.6rem;letter-spacing:-.02em;margin:0 0 1.25rem}
.cwl-inc{columns:2;column-gap:2.5rem;margin:0;padding-left:1.1rem;max-width:56ch}
.cwl-inc li{margin-bottom:.5rem;break-inside:avoid}
.cwl-cal{display:grid;place-content:center;min-height:420px;padding:2rem;text-align:center;border:1px dashed var(--cwl-muted);background:var(--cwl-surface)}
.cwl-cal p{margin:.25rem auto 0;color:var(--cwl-muted);max-width:40ch;font-size:.95rem}
.cwl-book{padding:clamp(1.5rem,4vw,2.5rem);background:var(--cwl-surface);border-top:3px solid var(--cwl-blush)}
.cwl-book h3{font-size:var(--wp--preset--font-size--large);font-weight:300;letter-spacing:-.02em;margin:0}
.cwl-book p{margin:.75rem 0 0;max-width:46ch}
.cwl-book .cwl-book-meta{margin-top:.35rem;color:var(--cwl-muted)}
.cwl-book .wp-block-buttons{margin-top:1.5rem}
.cwl-book .cwl-book-note{margin-top:.75rem;color:var(--cwl-muted);font-size:.9rem}
.cwl-book-cal{margin-top:1.5rem}
.cwl-book-cal:focus{outline:none}
.cwl-book .cwl-book-status{margin-top:1.5rem;color:var(--cwl-muted)}
/* YouTube videos, click to load (cwl_youtube_click_to_load, cwl-video.js): the site's own still and a play button until pressed. */
.cwl-video .wp-block-embed__wrapper{position:relative}
.cwl-video:not(.wp-has-aspect-ratio) .wp-block-embed__wrapper{aspect-ratio:16/9}
.cwl-video-play{position:absolute;inset:0;display:block;overflow:hidden;background:var(--cwl-surface);text-decoration:none}
.cwl-video-play img{display:block;width:100%;height:100%;object-fit:cover}
.cwl-video-icon{position:absolute;left:50%;top:50%;width:clamp(3.5rem,9vw,5rem);aspect-ratio:1;border-radius:50%;transform:translate(-50%,-50%);background:color-mix(in srgb,var(--cwl-ink) 75%,transparent)}
.cwl-video-icon::after{content:"";position:absolute;left:39%;top:31%;width:30%;height:38%;background:var(--cwl-bg);clip-path:polygon(0 0,100% 50%,0 100%)}
.cwl-video-note{position:absolute;left:.75rem;bottom:.75rem;padding:.2rem .65rem;border-radius:999px;background:color-mix(in srgb,var(--cwl-ink) 75%,transparent);color:var(--cwl-bg);font-size:.8rem}
.cwl-video-play:hover .cwl-video-icon,.cwl-video-play:focus-visible .cwl-video-icon{background:var(--cwl-ink)}
@media (prefers-reduced-motion:no-preference){
  .cwl-video-icon{transition:transform .2s,background-color .2s}
  .cwl-video-play:hover .cwl-video-icon,.cwl-video-play:focus-visible .cwl-video-icon{transform:translate(-50%,-50%) scale(1.08)}
}
.cwl-note{color:var(--cwl-muted);font-size:.95rem;max-width:56ch;margin:0 0 1.5rem}
.cwl-cal strong{font-family:var(--wp--preset--font-family--heading);font-weight:400;font-size:1.2rem;color:var(--cwl-ink)}
.cwl-others{display:flex;flex-wrap:wrap;gap:.5rem 2rem;font-family:var(--wp--preset--font-family--heading);font-weight:300;font-size:1.5rem;letter-spacing:-.02em}
.cwl-others a{text-decoration:none;border-bottom:1px solid var(--cwl-line)}
.cwl-others a:hover{border-color:var(--cwl-ink)}
@media (max-width:820px){.cwl-inc{columns:1}}
@media (max-width:480px){.cwl-terms li,ol.cwl-terms li{grid-template-columns:1fr;gap:.2rem}}

/* ---------- Pagination ---------- */
.wp-block-query-pagination{border-top:1px solid var(--cwl-line);padding-top:1.5rem;color:var(--cwl-muted);font-size:.95rem}
.wp-block-query-pagination a{color:var(--cwl-ink)}

/* ---------- Scroll scenes (cwl-motion.js) ---------- */
.js-motion .load-fade-up,.js-motion .load-pop-in{opacity:0}

@media (prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}.load-fade-up,.load-pop-in{opacity:1!important}}

/* SVG featured images, shown as a background so Safari crops rather than stretches them (cwl_svg_featured_image) */
.cwl-svg-image{display:block;width:100%;background-position:center;background-size:cover;background-repeat:no-repeat}

/* ---------- Placeholder tiles (posts without a featured image) ---------- */
.cwl-photo-tile{display:block;width:100%;aspect-ratio:1;background:var(--c);position:relative;overflow:hidden}
.cwl-photo-tile::before{content:"";position:absolute;width:44%;aspect-ratio:1;left:28%;top:24%;background:var(--cwl-bg);opacity:.5}
.cwl-photo-tile--wide::before{width:auto;height:60%;left:50%;top:50%;transform:translate(-50%,-50%)}
.cwl-ph-0::before{border-radius:50%}
.cwl-ph-1::before{border-radius:50% 0}
.cwl-ph-2::before{border-radius:0 100% 0 0}
.cwl-placeholder{margin:0 0 .7rem}
/* Photography links (patterns/photography-links.php): cards of the three Photography pages, 3:2 like the other cards; the title is a plain line in the heading font */
.cwl-card .cwl-photo-label{font-family:var(--wp--preset--font-family--heading);font-size:1.1rem;line-height:1.3}
@media (max-width:520px){.cwl-photo-links{grid-template-columns:1fr!important;row-gap:1.75rem}.cwl-photo-links .wp-block-post-featured-image img,.cwl-photo-links .cwl-photo-tile{aspect-ratio:3/2!important}}

/* ---------- Scroll scenes ([cwl_scene], scenes/*.json from the Scene Console, assets/cwl-scene.js) ----------
   A still 3:2 picture by default (no script, or reduced motion). With the script, the scene is tall and
   its picture stays on screen while you scroll through it. The artwork brings its own colours. */
.cwl-scene{position:relative;background:var(--cwl-surface)}
/* Edge to edge, even inside the page's content column. clip (not hidden) keeps the sticky picture working. */
.cwl-scene.alignfull{max-width:none!important;margin-left:calc(50% - 50vw)!important;margin-right:calc(50% - 50vw)!important}
body:has(.cwl-scene){overflow-x:clip}
.cwl-scene-pin{position:relative;width:100%;aspect-ratio:var(--cwl-scene-ratio,3/2);max-height:100svh;overflow:hidden;background:var(--cwl-surface)}
.cwl-scene-live:not(.cwl-scene-still) .cwl-scene{height:var(--cwl-scene-length,420vh)}
.cwl-scene-live:not(.cwl-scene-still) .cwl-scene-pin{position:sticky;top:0;height:100vh;height:100svh;aspect-ratio:auto;max-height:none}
/* Logged in, the pinned scene sits below WordPress's toolbar (fixed only above 600px), so the top of the stage isn't hidden. */
@media (min-width:601px){.cwl-scene-live:not(.cwl-scene-still) .admin-bar .cwl-scene-pin{top:var(--wp-admin--admin-bar--height,32px);height:calc(100svh - var(--wp-admin--admin-bar--height,32px))}}
.cwl-scene-stage{position:absolute;left:50%;top:50%;width:2400px;height:1600px;transform-origin:0 0;overflow:hidden;isolation:isolate}
.cwl-scene picture{display:contents}
/* The rest picture: shown instead of the layers with reduced motion or without the script (the <noscript> copy; the other
   one is a blank placeholder unless motion is reduced, so visitors who see the motion never download it). */
.cwl-scene-rest{display:none}
.cwl-scene-still .cwl-scene-rest,html:not(.cwl-scene-live) .cwl-scene-rest{display:block;position:absolute;inset:0;width:100%;height:100%;max-width:none;object-fit:contain}
.cwl-scene-still .cwl-scene-has-rest :is(.cwl-scene-stage,.cwl-scene-backdrop),html:not(.cwl-scene-live) .cwl-scene-has-rest :is(.cwl-scene-stage,.cwl-scene-backdrop){display:none}
html:not(.cwl-scene-live) .cwl-scene-rest:not(.cwl-scene-rest-nojs){display:none}
@media (prefers-reduced-motion:reduce){.cwl-scene-rest{display:block;position:absolute;inset:0;width:100%;height:100%;max-width:none;object-fit:contain}.cwl-scene-has-rest :is(.cwl-scene-stage,.cwl-scene-backdrop){display:none}}
.cwl-scene-stage img{position:absolute;display:block;max-width:none;height:auto;user-select:none;-webkit-user-drag:none}
/* Memory (iPhone Safari reloads a page that uses too much): with the script, a scene's pictures are drawn only while it's
   within a screen of the viewport (.is-near, set by cwl-scene.js), and its layers get their own graphics layer only then. */
.cwl-scene-live .cwl-scene:not(.is-near) :is(.cwl-scene-stage,.cwl-scene-backdrop){display:none}
.cwl-scene.is-near .cwl-scene-stage img[data-layer]{will-change:transform}
@media (orientation:portrait) and (max-width:600px){
/* The phone background is only the middle strip of the stage (the part upright phones show), so it's placed there. */
.cwl-scene-stage img.cwl-scene-bg-cropped{left:var(--cwl-crop-x)!important;width:var(--cwl-crop-w);height:100%}}
/* Soft shadows under the moving cut-outs, like layers in a toy theatre. The theme now writes each layer's shadow inline
   (cwl_scene_shadow: preset or custom, following the scene's light); these rules are the fallback. Sizes are stage pixels, so they scale with
   the scene; a warm brown sits better with old paper than grey. Nearer layers cast stronger shadows. */
.cwl-scene{--cwl-scene-shadow:rgb(40 26 12 / .6);--cwl-scene-shadow-far:rgb(40 26 12 / .38)}
.cwl-scene-stage img[data-layer]{filter:drop-shadow(0 30px 34px var(--cwl-scene-shadow))}
.cwl-scene-stage img[data-shadow="strong"]{filter:drop-shadow(0 36px 40px var(--cwl-scene-shadow))}
.cwl-scene-stage img[data-shadow="far"]{filter:drop-shadow(0 16px 24px var(--cwl-scene-shadow-far))}
.cwl-scene-stage img[data-shadow="none"]{filter:none}
.cwl-scene-hint{position:absolute;left:50%;bottom:calc(1.25rem + env(safe-area-inset-bottom,0px));transform:translateX(-50%);margin:0;padding:.45rem .9rem;border-radius:2rem;font-size:.8rem;font-weight:500;letter-spacing:.12em;text-transform:uppercase;color:var(--cwl-bg);background:color-mix(in srgb,var(--cwl-ink) 60%,transparent);transition:opacity .4s}
.cwl-scene-hint.is-gone,.cwl-scene-still .cwl-scene-hint,html:not(.cwl-scene-live) .cwl-scene-hint{opacity:0}
/* The space above and below the stage (phones, squarish windows): the scene's title above, and below it the Scroll pill,
   which gives way to a thin line filling as you scroll through. Only while the scene plays, and only with room (.has-bands). */
.cwl-scene-title,.cwl-scene-progress{display:none}
.cwl-scene-live:not(.cwl-scene-still) .cwl-scene.has-bands .cwl-scene-title{display:flex;align-items:center;justify-content:center;position:absolute;inset:0 0 auto;height:var(--cwl-band);margin:0;padding-inline:max(16px,env(safe-area-inset-left,0px));font-family:var(--wp--preset--font-family--heading);font-size:clamp(1.25rem,1rem + 1.5vw,2rem);font-weight:300;line-height:1.1;letter-spacing:-.02em;text-align:center;text-wrap:balance;color:var(--cwl-ink)}
.cwl-scene-live:not(.cwl-scene-still) .cwl-scene.has-bands .cwl-scene-progress{display:block;position:absolute;left:50%;bottom:calc(var(--cwl-band) / 2);width:min(40%,12rem);height:2px;transform:translateX(-50%);background:var(--cwl-line);opacity:0;transition:opacity .4s}
.cwl-scene-live:not(.cwl-scene-still) .cwl-scene.has-bands.is-started .cwl-scene-progress{opacity:1}
.cwl-scene-progress span{display:block;height:100%;background:var(--cwl-ink);transform-origin:0 50%;transform:scaleX(var(--cwl-progress,0))}
.cwl-scene.has-bands .cwl-scene-hint{bottom:calc(var(--cwl-band) / 2);transform:translate(-50%,50%)}
@media (prefers-reduced-motion:reduce){.cwl-scene-progress{transition:none}}

/* ---------- Parallax dioramas: [cwl_diorama name="umbrella-pines"] shows dioramas/umbrella-pines.php ----------
   Every layer is the whole painting and they share one box, so they stay aligned at any width; the frame shows the whole
   painting (phones zoom in on the middle). As in real depth, the front layer moves with the page and further layers lag
   behind (data-lag, set by the script). --cwl-strength scales the lag. The artwork brings its own colours (--cwl-diorama-bg, --cwl-diorama-glow). */
.cwl-diorama{--cwl-frame-ratio:.721;--cwl-layer-ratio:.721;--cwl-zoom:1;--cwl-strength:1;position:relative;width:100%;aspect-ratio:1/var(--cwl-frame-ratio);margin-block:2.5rem;padding:0;overflow:hidden;container-type:inline-size;background:var(--cwl-diorama-bg,var(--cwl-surface))}
.cwl-prose > .cwl-diorama{max-width:none}
.cwl-diorama.alignfull{margin-left:calc(50% - 50vw)!important;margin-right:calc(50% - 50vw)!important;width:100vw}
body:has(.cwl-diorama.alignfull){overflow-x:clip}
/* With caption="…": a figure carries the alignment and the caption; the frame inside it keeps no margins of its own.
   A full-width caption lines up with the text column rather than the screen edge. */
.cwl-diorama-figure{margin-block:2.5rem;padding:0}
.cwl-prose > .cwl-diorama-figure{max-width:none}
.cwl-diorama-figure > .cwl-diorama{margin:0}
.cwl-diorama-figure.alignfull{margin-left:calc(50% - 50vw)!important;margin-right:calc(50% - 50vw)!important;width:100vw;max-width:none!important}
body:has(.cwl-diorama-figure.alignfull){overflow-x:clip}
.cwl-diorama-figure figcaption{margin:.6rem 0 0;max-width:60ch;color:var(--cwl-muted);font-size:.9rem;line-height:1.5}
.cwl-diorama-figure.alignfull figcaption{padding-left:max(clamp(1.25rem,4vw,2.5rem),calc(50vw - 580px))}
.cwl-diorama-layer{position:absolute;width:calc(var(--cwl-zoom) * 100%);left:calc((1 - var(--cwl-zoom)) / 2 * 100%);top:calc((var(--cwl-frame-ratio) - var(--cwl-layer-ratio) * var(--cwl-zoom)) * 100cqw);margin:0;transform-origin:50% 100%;pointer-events:none;user-select:none;transition:opacity 1.2s ease}
.cwl-diorama-live .cwl-diorama-layer{will-change:transform}
.cwl-diorama-layer img{display:block;width:100%;height:auto;max-width:none;margin:0;border:0;border-radius:0;box-shadow:none}
.cwl-diorama::after{content:"";position:absolute;inset:0;z-index:2;pointer-events:none;background:var(--cwl-diorama-glow,none)}
.cwl-diorama-layer:nth-child(1){z-index:1}
.cwl-diorama-layer:nth-child(2){z-index:2}
.cwl-diorama-layer:nth-child(3){z-index:3}
/* Only hidden while the script waits for every layer, so they appear together; without the script they show at once. */
.cwl-diorama-loading .cwl-diorama-layer{opacity:0}

/* ---------- Before and after: a Group with the class cwl-compare and two Image blocks (assets/cwl-compare.js) ----------
   The first picture lies on top, clipped to the right of the divider (--cwl-pos); the second lies underneath. The pair is
   never taller than 85% of the screen (--cwl-ratio, the pictures' shape, set by the script). Captions become labels. */
.cwl-compare-live{position:relative;display:grid;gap:0!important;width:min(100%,calc(85svh * var(--cwl-ratio,1)));touch-action:pan-y;cursor:ew-resize;user-select:none;-webkit-user-select:none}
.cwl-compare-live > figure{grid-area:1/1;position:relative;margin:0!important;max-width:none!important}
.cwl-compare-live > figure img{display:block;width:100%;height:auto;-webkit-user-drag:none;pointer-events:none}
.cwl-compare-top{z-index:1;clip-path:inset(0 0 0 var(--cwl-pos,50%))}
.cwl-compare-live figcaption{position:absolute;bottom:.75rem;margin:0!important;padding:.25rem .7rem;border-radius:99px;background:color-mix(in srgb,var(--cwl-ink) 72%,transparent);color:var(--cwl-bg);font-size:.8rem;line-height:1.4;text-align:left;max-width:calc(50% - 2.5rem)}
.cwl-compare-top figcaption{right:.75rem}
.cwl-compare-base figcaption{left:.75rem}
.cwl-compare-handle{position:absolute;z-index:2;top:0;bottom:0;left:var(--cwl-pos,50%);width:2px;margin-left:-1px;background:var(--cwl-panel);box-shadow:0 0 6px rgba(0,0,0,.35);pointer-events:none}
.cwl-compare-knob{position:absolute;top:50%;left:50%;display:grid;place-items:center;width:2.75rem;height:2.75rem;margin:-1.375rem 0 0 -1.375rem;border-radius:50%;background:var(--cwl-panel);color:var(--cwl-on-sun);box-shadow:0 2px 8px rgba(0,0,0,.3);transition:transform .15s ease}
.cwl-compare-live.is-dragging .cwl-compare-knob{transform:scale(1.08)}
.cwl-compare-range{position:absolute;z-index:3;inset:0;width:100%;height:100%;margin:0;opacity:0;pointer-events:none}
.cwl-compare-range:focus-visible + .cwl-compare-handle .cwl-compare-knob{outline:2px solid var(--cwl-fjord);outline-offset:3px}
@media (prefers-reduced-motion:reduce){.cwl-compare-knob{transition:none}}
@media (max-width:700px){.cwl-diorama{--cwl-zoom:1.5;--cwl-frame-ratio:.88;--cwl-strength:.8}}

/* ---------- Timeline effects: rings, rolling years and paper (from the Kalsø page; test page "Timeline test") ----------
   Rings: a Group with the class cwl-rings (Advanced › Additional CSS class) gets three circles (added by cwl_rings()),
   coloured from the Group's background colour, with the middle one in the page colour (and, while the script runs, the next section's colour). They're sized from the
   screen (vmax), so a section about a screen tall suits them. cwl-rings.js grows them with the scroll. */
.cwl-rings{--cwl-ring:var(--cwl-sage);position:relative;isolation:isolate;overflow:hidden}
.cwl-rings.has-fjord-background-color{--cwl-ring:var(--cwl-fjord)}
.cwl-rings.has-sun-background-color{--cwl-ring:var(--cwl-sun)}
.cwl-rings.has-blush-background-color{--cwl-ring:var(--cwl-blush)}
.cwl-rings.has-sky-background-color{--cwl-ring:var(--cwl-sky)}
.cwl-rings > :not(.cwl-rings-ring){position:relative;z-index:1}
:is(.cwl-rings,.cwl-paper) + :is(.cwl-rings,.cwl-paper){margin-block-start:0}
/* A ring section straight after another lets its circles grow up over the one above (as on Kalsø), so the join never shows. */
.cwl-rings + .cwl-rings{overflow-x:clip;overflow-y:visible}
.cwl-rings > p{max-width:36ch;text-wrap:balance}
:is(.cwl-rings,.cwl-paper,:has(> .cwl-rings)).alignfull{max-width:none!important;margin-left:calc(50% - 50vw)!important;margin-right:calc(50% - 50vw)!important}
body:has(:is(.cwl-rings,.cwl-paper,:has(> .cwl-rings)).alignfull){overflow-x:clip}
.cwl-rings-ring{position:absolute!important;left:50%;top:50%;z-index:0;width:calc(var(--k) * 100vmax);max-width:none!important;aspect-ratio:1;margin:0!important;border-radius:50%;transform:translate(-50%,-50%) scale(var(--s,1));pointer-events:none;will-change:transform}
.cwl-ring-1{--k:1.1;background:color-mix(in srgb,var(--cwl-ring) 62%,var(--cwl-bg))}
.cwl-ring-2{--k:.8;background:color-mix(in srgb,var(--cwl-ring) 30%,var(--cwl-bg))}
.cwl-ring-3{--k:.5;background:var(--cwl-bg)}
/* While the script runs, the middle circle takes the next section's colour, so as it grows to fill this section the join
   disappears; the script also changes the text colour if it would be hard to read on it (cwl-rings-adapt). */
.cwl-rings-live > .cwl-ring-3{background:var(--cwl-ring-next,var(--cwl-bg))}
.cwl-rings-live{clip-path:inset(-100vmax 0 0)} /* circles may spill up over the section above, never down past the pause */
.cwl-rings-live > .wp-block-image{opacity:0;transition:opacity .9s ease}
.cwl-rings-live.cwl-rings-settled > .wp-block-image{opacity:1}
.cwl-rings-adapt > :not(.cwl-rings-ring){color:var(--cwl-rings-ink)}
.cwl-rings:has(+ .has-sage-background-color){--cwl-ring-next:var(--cwl-sage)}
.cwl-rings:has(+ .has-fjord-background-color){--cwl-ring-next:var(--cwl-fjord)}
.cwl-rings:has(+ .has-sun-background-color){--cwl-ring-next:var(--cwl-sun)}
.cwl-rings:has(+ .has-blush-background-color){--cwl-ring-next:var(--cwl-blush)}
.cwl-rings:has(+ .has-sky-background-color){--cwl-ring-next:var(--cwl-sky)}
.cwl-rings:has(+ .has-surface-background-color){--cwl-ring-next:var(--cwl-surface)}
/* Drifting pictures: Image blocks with the class cwl-drift (cwl-drift.js). In a ring section, an image aligned left
   sits at the upper left and one aligned right at the lower right, either side of the text, and a second of each takes the
   lower left and upper right; on phones they stack, left above the text and right below. */
.cwl-rings > .wp-block-image.cwl-drift{position:absolute;z-index:1;width:clamp(12rem,26vw,24rem);margin:0!important;will-change:transform}
.cwl-rings > .cwl-drift.alignleft{left:4vw;top:12%}
.cwl-rings > .cwl-drift.alignright{right:4vw;bottom:12%}
/* A second picture with the same alignment takes the other corner on its side: lower left, upper right (up to four). */
.cwl-rings > .cwl-drift.alignleft:nth-child(2 of .cwl-drift.alignleft){top:auto;bottom:12%}
.cwl-rings > .cwl-drift.alignright:nth-child(2 of .cwl-drift.alignright){bottom:auto;top:12%}
.cwl-drift img{display:block;width:100%;height:auto}
@media (max-width:700px){
  .cwl-rings > .wp-block-image.cwl-drift{position:relative;inset:auto;width:72%;margin-block:1.5rem!important}
  .cwl-rings > .cwl-drift.alignleft{align-self:flex-start}
  .cwl-rings > .cwl-drift.alignright{align-self:flex-end;order:1} /* after the text */
}
/* Sprite animations: [cwl_sprite name="..."] (cwl-sprite.js). The strip is all the frames side by side; the frame shows one,
   and the strip steps left a frame at a time. Without the script it rests on the first frame. */
.cwl-sprite{position:relative;width:100%;max-width:var(--w);margin-inline:0}
.cwl-sprite-frame{overflow:hidden;aspect-ratio:var(--ratio)}
.cwl-sprite-strip{display:block;width:calc(var(--frames) * 100%);max-width:none!important;height:auto}
.cwl-sprite-live .cwl-sprite-strip{animation:cwl-sprite var(--duration) steps(var(--frames)) infinite}
.cwl-sprite-paused .cwl-sprite-strip{animation-play-state:paused}
@keyframes cwl-sprite{to{transform:translateX(-100%)}}
.cwl-sprite-toggle{position:absolute;right:.5rem;bottom:.5rem;padding:.3rem .8rem;border:1px solid var(--cwl-line);border-radius:999px;background:var(--cwl-bg);color:var(--cwl-ink);font:inherit;font-size:.85rem;cursor:pointer}
.cwl-sprite-toggle:hover{border-color:var(--cwl-ink)}
/* Lottie animations: [cwl_lottie name="..."] (cwl-lottie.js). Full: edge to edge and a screen tall, but never taller than the
   drawing's own shape (like the Webflow panel); content: the width of the text area. Without the script it takes no space. */
.cwl-lottie{margin-block:0;margin-inline:0;width:100%;aspect-ratio:var(--cwl-lottie-ratio,16/9)}
.cwl-lottie.alignfull{width:100vw;max-width:none!important;aspect-ratio:auto;height:min(100vh,var(--cwl-lottie-h,56.25vw));margin-left:calc(50% - 50vw)!important;margin-right:calc(50% - 50vw)!important}
body:has(.cwl-lottie.alignfull){overflow-x:clip}
html:not(.cwl-lottie-live) .cwl-lottie{display:none}
.cwl-lottie-player{width:100%;height:100%}
/* Rolling years: [cwl_years years="..."]. Each column is one digit tall and shows a reel of that digit for every year;
   --i is the row showing. Row height, font size and step share one unit (em), so the digits never drift off centre. */
.cwl-years{--cwl-years-row:1.06em;margin:0;font-family:var(--wp--preset--font-family--heading);font-size:clamp(4.5rem,17vw,12rem);font-weight:300;line-height:var(--cwl-years-row);letter-spacing:-.02em;font-variant-numeric:tabular-nums}
.cwl-years-digits{display:flex}
.cwl-years-col{display:block;height:var(--cwl-years-row);clip-path:inset(0 -.3em)}
.cwl-years-reel{display:block;transform:translateY(calc(var(--i,0) * -1 * var(--cwl-years-row)))}
.cwl-years-reel > span{display:block;height:var(--cwl-years-row);text-align:center}
/* Paper: the class cwl-paper lays a paper grain over a Group, text and pictures included, as printed. For a run of ring
   sections, put them inside one Group with cwl-paper, so the grain also covers circles that spill into the section above. The grain is
   drawn by the browser (SVG noise, no image file) and blended with soft-light, so it suits light and dark alike; light mode needs it stronger (--cwl-paper). */
.cwl-paper{position:relative;isolation:isolate}
.cwl-paper:not(.has-background){background-color:var(--cwl-bg)} /* soft-light needs a colour underneath to blend with */
.cwl-paper::after{content:"";position:absolute;inset:0;z-index:3;pointer-events:none;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='280' height='280'%3E%3Cfilter id='f'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 0 0 0 0 1'/%3E%3CfeComponentTransfer%3E%3CfeFuncR type='linear' slope='3' intercept='-1'/%3E%3CfeFuncG type='linear' slope='3' intercept='-1'/%3E%3CfeFuncB type='linear' slope='3' intercept='-1'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23f)'/%3E%3C/svg%3E") 0 0/280px;mix-blend-mode:soft-light;opacity:var(--cwl-paper)}

/* ---------- Forms (Fluent Forms) ---------- */
/* Fields are a pale panel with a darker underline (3:1 or more, so the box is visible). Doubled class names beat the plugin's own rules. */
.fluentform{--fluentform-primary:var(--cwl-fjord);--fluentform-secondary:var(--cwl-muted);--fluentform-danger:var(--cwl-error);--fluentform-border-color:var(--cwl-muted);--fluentform-border-radius:0;max-width:40rem}
.fluentform .ff-el-group{margin-bottom:1.75rem}
.fluentform .ff-el-input--label label{font-weight:500;color:var(--cwl-ink);margin-bottom:.4rem}
.fluentform .ff-el-input--label.ff-el-is-required.asterisk-right label:after{color:var(--cwl-muted)}
.fluentform .ff-el-help-message,.fluentform .ff-el-help-message.ff_ahm{color:var(--cwl-muted);font-size:.95rem;font-style:normal;margin:-.15rem 0 .5rem}
.fluentform.ff-default .ff-el-form-control{display:block;width:100%;font:400 1rem/1.5 var(--wp--preset--font-family--body);color:var(--cwl-ink);background:var(--cwl-surface);border:0;border-bottom:1px solid var(--cwl-muted);border-radius:0;padding:.7rem .85rem}
.fluentform.ff-default textarea.ff-el-form-control{min-height:7.5rem;resize:vertical}
.fluentform.ff-default .ff-el-form-control:hover{border-bottom-color:var(--cwl-ink)}
.fluentform.ff-default .ff-el-form-control:focus{background:var(--cwl-surface);color:var(--cwl-ink);border-bottom-color:var(--cwl-fjord);outline:2px solid var(--cwl-fjord);outline-offset:2px}
.fluentform .ff-el-tc label.ff_tc_label{display:flex;gap:.75rem;align-items:flex-start;cursor:pointer}
.fluentform .ff-el-tc label.ff_tc_label>span,.fluentform .ff-el-tc label.ff_tc_label>div{display:block;padding:0!important;width:auto}
.fluentform .ff-el-form-check-label .ff-el-form-check-input{top:.2rem;width:1.15rem;height:1.15rem;margin:0;accent-color:var(--cwl-fjord)}
.fluentform .ff_t_c{color:var(--cwl-ink);max-width:52ch}
.fluentform .cwl-form-privacy p{margin:0;color:var(--cwl-muted);font-size:.95rem}
.fluentform .ff-el-form-check{margin-bottom:.45rem}
.fluentform .ff-el-form-check-label{display:inline-flex;gap:.65rem;align-items:center;cursor:pointer;color:var(--cwl-ink)}
.fluentform .ff-el-form-check-label .ff-el-form-check-radio{position:static;flex:none}
.cwl-contact-aside{border-top:1px solid var(--cwl-line);padding-top:1.25rem}
.cwl-contact-aside h2{margin:0 0 .35rem}
.cwl-contact-aside h2:not(:first-child){margin-top:2rem}
.cwl-contact-aside p{margin:0}
.fluentform .ff-el-is-error .text-danger{color:var(--cwl-error);font-size:.95rem;margin-top:.4rem}
.fluentform.ff-default .ff-el-is-error .ff-el-form-control{border-bottom:2px solid var(--cwl-error)}
.fluentform.ff-default .ff_btn_style{font:500 1rem/1.4 var(--wp--preset--font-family--body);color:var(--cwl-bg);background:var(--cwl-ink);border:1px solid var(--cwl-ink);border-radius:99px;padding:.7rem 1.6rem;opacity:1;transition:background-color .2s,border-color .2s}
.fluentform.ff-default .ff_btn_style:hover{background:var(--cwl-fjord);border-color:var(--cwl-fjord);opacity:1}
.fluentform.ff-default .ff_btn_style:focus-visible{outline:2px solid var(--cwl-fjord);outline-offset:3px;opacity:1}
.ff-message-success{border:0;border-top:1px solid var(--cwl-line);box-shadow:none;margin-top:0;padding:1.5rem 0 0;color:var(--cwl-ink);font-size:1.15rem;max-width:40rem}
.ff-message-success p{margin:0}
