/*
Theme Name: Wander Niagara
Theme URI: https://wanderniagara.com/
Author: St. Catharines Lincoln Destination Partnership
Description: The Wander Niagara holiday microsite design, rebuilt as a WordPress theme in the main site's yellow palette. Rounded photo cards, dark feature panels, a sticky header and ready-made block patterns for every section (heroes, feature cards, trip ideas, events, getting here, FAQ, newsletter, funders).
Version: 1.1.0
Requires at least: 6.3
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: wander
Tags: custom-menu, custom-logo, editor-style, block-patterns, wide-blocks, featured-images, threaded-comments
*/

/* ==========================================================================
   Shared styles: loaded on the site and inside the block editor.
   Front-end-only behaviour (sticky header, menu, stretched links, slideshow)
   lives in assets/css/front.css.
   ========================================================================== */

/* ---------- Fonts: Inter and Montserrat, bundled with the theme ---------- */

@font-face { font-family: "Inter"; font-style: italic; font-weight: 400; font-display: swap; src: url("assets/fonts/inter-italic-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter"; font-style: italic; font-weight: 400; font-display: swap; src: url("assets/fonts/inter-italic-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("assets/fonts/inter-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("assets/fonts/inter-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("assets/fonts/montserrat-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("assets/fonts/montserrat-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ---------- Palette: the main site's yellow theme ----------
   Change a colour here and it changes everywhere. */

:root {
  --yellow: #ffd300;      /* header, buttons, highlights */
  --ink: #222;            /* body text and dark panels */
  --black: #000;          /* footer, photo cards */
  --grey: #eee;           /* light panels */
  --white: #fff;
  --sage: #cee0bd;        /* the main site's secondary green */
  --orange: #d16726;
  --teal: #15708c;

  --panel: var(--ink);    /* dark feature panels, drive card */
  --line: rgb(34 34 34 / .16);
  --focus: var(--black);

  --font-display: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-ui: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --col: 1240px;
  --content: 760px;
  --gutter: clamp(16px, 3.5vw, 48px);
  --radius: 14px;
  --radius-lg: 16px;
  --section-gap: clamp(40px, 4vw + 20px, 60px);
  --header-h: 90px;
  --text-col: clamp(240px, 20vw + 60px, 340px);
  --tile-h: clamp(300px, 22vw + 70px, 400px);
  --tile-gap: 16px;
  --display-size: clamp(32px, 3.2vw + 20px, 48px);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

@media (max-width: 899px) {
  :root { --header-h: 72px; }
}

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font: 400 16px/1.45 var(--font-display);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; }
h1, h2, h3, h4, h5, h6, p, figure, blockquote { margin: 0; }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-display); font-weight: 700; line-height: 1.25; }
a { color: inherit; }
strong, b { font-weight: 700; }

::selection { background: var(--yellow); color: var(--black); }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

/* dark surfaces: yellow focus rings and highlights read better there */
.feature--dark,
.listing-section--dark,
.drive-card,
.site-footer,
.wp-block-cover { --focus: var(--yellow); }

.vh,
.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.wrap {
  width: min(100% - 2 * var(--gutter), var(--col));
  margin-inline: auto;
}

/* the yellow "highlighter": bold words in a display headline get it, as in
   "Where urban energy meets rural charm." */
.mark,
mark,
.intro__title strong,
.is-style-display strong,
.is-style-section-title strong,
.feature h2 strong {
  background: linear-gradient(transparent 62%, var(--yellow) 62%, var(--yellow) 92%, transparent 92%);
  color: inherit;
  font-weight: inherit;
  padding-inline: .04em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* ---------- Buttons ---------- */

.btn,
.wp-block-button__link,
.wp-element-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 122px;
  min-height: 40px;
  padding: 0 18px;
  border: 0;
  border-radius: var(--radius);
  background: var(--yellow);
  color: var(--black);
  font: 600 16px/1.1 var(--font-ui);
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .2s, color .2s;
}

.btn:hover,
.wp-block-button__link:hover,
.wp-element-button:hover {
  background: var(--black);
  color: var(--white);
}

/* on dark panels and photos a yellow button turns white on hover, as on the main site */
.feature--dark .wp-block-button__link:hover,
.listing-section--dark .wp-block-button__link:hover,
.drive-card .wp-block-button__link:hover,
.wp-block-cover .wp-block-button__link:hover,
.site-footer .btn:hover {
  background: var(--white);
  color: var(--black);
}

/* Button block style: Dark */
.is-style-dark .wp-block-button__link,
.btn--dark {
  background: var(--black);
  color: var(--white);
}

.is-style-dark .wp-block-button__link:hover,
.btn--dark:hover {
  background: var(--white);
  color: var(--black);
  box-shadow: inset 0 0 0 2px var(--black);
}

/* Button block style: Outline */
.is-style-outline-ink .wp-block-button__link {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 2px var(--ink);
}

.is-style-outline-ink .wp-block-button__link:hover {
  background: var(--ink);
  color: var(--white);
}

.wp-block-buttons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.wp-block-buttons.is-content-justification-center { justify-content: center; }
.wp-block-buttons.is-content-justification-right { justify-content: flex-end; }
.wp-block-button { margin: 0; }

/* ---------- Content area: widths and spacing for block content ----------
   Text blocks sit in a 760px reading column; "Wide" blocks span the 1240px
   column and "Full" blocks run edge to edge. Each wide or full section is
   spaced from the next by one rhythm. */

.entry-content > * {
  width: min(100% - 2 * var(--gutter), var(--content));
  max-width: none;
  margin-inline: auto;
}

.entry-content > .alignwide { width: min(100% - 2 * var(--gutter), var(--col)); }
.entry-content > .alignfull { width: 100%; }

.entry-content > * + * { margin-top: 1.1em; }

.entry-content > .alignwide,
.entry-content > .alignfull,
.entry-content > .alignwide + *,
.entry-content > .alignfull + * { margin-top: var(--section-gap); }

.entry-content > :first-child { margin-top: 0; }

/* the hero runs straight into the on-this-page links */
.entry-content > .hero + .page-nav { margin-top: 0; }
.entry-content > .page-nav + * { margin-top: 44px; }

/* running text */
.entry-content > p,
.entry-content > ul,
.entry-content > ol,
.prose > p,
.prose > ul li,
.prose > ol li { line-height: 1.65; }

.entry-content > h2,
.prose > h2 {
  margin-top: 1.8em;
  font: 700 clamp(22px, .8vw + 16px, 26px)/1.3 var(--font-display);
  letter-spacing: .02em;
}

.entry-content > h3,
.prose > h3 {
  margin-top: 1.6em;
  font: 700 20px/1.3 var(--font-display);
}

.entry-content > h2 + *,
.entry-content > h3 + * { margin-top: .6em; }

.entry-content > ul,
.entry-content > ol,
.prose > ul,
.prose > ol { padding-left: 1.25em; }

.entry-content > ul li + li,
.entry-content > ol li + li { margin-top: 6px; }

.entry-content li::marker { color: var(--ink); }

.entry-content > p a,
.entry-content > ul a,
.entry-content > ol a,
.prose > p a,
.prose > ul a,
.prose > ol a,
.faq__list a,
.tip a,
.is-style-tip a,
.intro__text p a,
.feature__text p a,
.promo__text p a,
.newsletter__text a,
.region-copy a,
.drive-card a,
.events__intro a,
.gallery__head a,
.listing-section__desc a,
.more-reading a {
  text-decoration-line: underline;
  text-decoration-color: var(--yellow);
  text-decoration-thickness: .22em;
  text-underline-offset: .02em;
  text-decoration-skip-ink: none;
  transition: background-color .2s;
}

.entry-content > p a:hover,
.entry-content > ul a:hover,
.entry-content > ol a:hover,
.prose > p a:hover,
.prose > ul a:hover,
.prose > ol a:hover,
.faq__list a:hover,
.tip a:hover,
.is-style-tip a:hover,
.intro__text p a:hover,
.promo__text p a:hover,
.newsletter__text a:hover,
.region-copy a:hover,
.events__intro a:hover,
.gallery__head a:hover,
.listing-section__desc a:hover,
.more-reading a:hover { background: var(--yellow); }

.drive-card a:hover,
.feature--dark .feature__text p a:hover { background: none; color: var(--yellow); }

.wp-block-quote {
  padding: 4px 0 4px 20px;
  border-left: 4px solid var(--yellow);
  font: italic 400 19px/1.5 var(--font-ui);
}

.wp-block-quote cite { display: block; margin-top: 8px; font: 500 14px/1.3 var(--font-display); font-style: normal; }

.wp-block-image img { border-radius: var(--radius); }
.wp-block-image figcaption { margin-top: 8px; font: 500 14px/20px var(--font-ui); }
.wp-block-image.is-style-square img { border-radius: 0; }

.wp-block-separator {
  height: 0;
  border: 0;
  border-top: 2px solid var(--yellow);
}

.wp-block-table table { width: 100%; border-collapse: collapse; }
.wp-block-table th,
.wp-block-table td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; }
.wp-block-table thead th { background: var(--ink); color: var(--white); }

.wp-block-embed iframe { max-width: 100%; border-radius: var(--radius); }

.alignleft { float: left; margin: 4px 24px 12px 0; }
.alignright { float: right; margin: 4px 0 12px 24px; }

/* ---------- Heading block styles ---------- */

/* Section title: the centred heading over Trip Ideas, Events, Getting Here, FAQ */
.section-title,
.is-style-section-title {
  color: var(--ink);
  font: 700 var(--display-size)/1.2 var(--font-display);
  letter-spacing: .04em;
  text-align: center;
}

/* Display: the large, tight headline ("Where urban energy meets rural charm.") */
.is-style-display {
  font: 700 var(--display-size)/1.21 var(--font-display);
  letter-spacing: -.04em;
}

/* Boxed: the main site's signature yellow label */
.is-style-boxed {
  display: inline-block;
  padding: .3em .45em;
  background: var(--yellow);
  color: var(--black) !important;
  font-family: var(--font-ui);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .5px;
}

.entry-content > .is-style-boxed {
  display: block;
  width: fit-content;
  max-width: min(100% - 2 * var(--gutter), var(--content));
  margin-left: max(var(--gutter), (100% - var(--content)) / 2);
  margin-right: auto;
}

.entry-content > .is-style-boxed.has-text-align-center { margin-inline: auto; }
.entry-content > .is-style-boxed.alignwide { margin-left: max(var(--gutter), (100% - var(--col)) / 2); }

/* Paragraph styles */
.is-style-lead,
.story__lead {
  font-size: 19px;
  line-height: 30px;
}

.is-style-kicker {
  font: italic 400 clamp(17px, .5vw + 14px, 19px)/1.3 var(--font-ui);
}

/* ---------- Hero (Cover block with the "hero" class) ---------- */

.wp-block-cover.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  min-height: clamp(440px, 34vw + 166px, 620px);
  padding: 0;
  overflow: hidden;
  background: var(--black);
  color: var(--white);
  isolation: isolate;
}

/* the theme's own heroes (pages and posts with a featured image) reuse the Cover block's
   markup; these rules stand in for the block's stylesheet where it isn't loaded */
.hero > .wp-block-cover__image-background {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  max-width: none;
  object-fit: cover;
}

.hero > .wp-block-cover__background {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero > .wp-block-cover__inner-container {
  position: relative;
  z-index: 1;
}

/* the PDF's shade: clear at the top, darkening behind the copy at the bottom */
.wp-block-cover.hero > .wp-block-cover__background {
  opacity: 1 !important;
  background-color: transparent !important;
  background-image: linear-gradient(180deg, rgb(0 0 0 / .11) 30%, rgb(0 0 0 / .62) 70.6%) !important;
}

.wp-block-cover.hero--page > .wp-block-cover__background {
  background-image:
    linear-gradient(90deg, rgb(0 0 0 / .5), rgb(0 0 0 / 0) 65%),
    linear-gradient(180deg, rgb(0 0 0 / 0) 25%, rgb(0 0 0 / .72) 75%) !important;
}

@media (max-width: 599px) {
  .wp-block-cover.hero > .wp-block-cover__background {
    background-image: linear-gradient(180deg, rgb(0 0 0 / .11) 34%, rgb(0 0 0 / .7) 66%) !important;
  }

  .wp-block-cover.hero--page > .wp-block-cover__background {
    background-image: linear-gradient(180deg, rgb(0 0 0 / .15) 10%, rgb(0 0 0 / .8) 55%) !important;
  }
}

.wp-block-cover.hero > .wp-block-cover__image-background { object-position: 50% 30%; }

.wp-block-cover.hero > .wp-block-cover__inner-container {
  width: min(100% - 2 * var(--gutter), var(--col)) !important;
  margin: 0 auto !important;
  padding: 48px 0 32px clamp(0px, 12vw - 46px, 73px);
  color: var(--white);
}

.wp-block-cover.hero--home {
  min-height: clamp(560px, 100vh - var(--header-h), 1080px);
  min-height: clamp(560px, 100svh - var(--header-h), 1080px);
}

.wp-block-cover.hero--home > .wp-block-cover__inner-container { padding-bottom: clamp(32px, 7vh, 72px); }

@media (max-width: 599px) {
  .wp-block-cover.hero--home {
    min-height: clamp(480px, 100vh - var(--header-h), 175vw);
    min-height: clamp(480px, 100svh - var(--header-h), 175vw);
  }
}

.wp-block-cover.hero--page > .wp-block-cover__inner-container { text-shadow: 0 1px 14px rgb(0 0 0 / .45); }

.hero h1,
.hero .hero__title {
  max-width: 24ch;
  margin: 0;
  color: var(--white);
  font: 900 var(--display-size)/1.125 var(--font-ui);
  letter-spacing: 0;
}

.hero--home h1 { max-width: none; text-transform: uppercase; }

.hero--story h1 {
  font-size: clamp(30px, 2.2vw + 18px, 46px);
  text-wrap: balance;
}

/* "Welcome to" above the home headline */
.hero__lead {
  margin: 0 0 4px;
  font: italic 400 clamp(19px, 1vw + 15px, 24px)/1.2 var(--font-ui);
}

/* the place name above a page headline, in yellow */
.hero__place {
  margin: 0 0 5px;
  color: var(--yellow);
  font: italic 400 clamp(17px, .6vw + 14px, 20px)/1.2 var(--font-ui);
}

.hero__sub {
  margin: 6px 0 0;
  font: 400 16px/22px var(--font-ui);
}

.hero .wp-block-buttons { margin-top: 20px; }
.hero__meta { margin-top: 12px; font-size: 14px; }
.hero__meta a { text-underline-offset: 3px; }

/* ---------- On-this-page links ---------- */

.page-nav {
  border-bottom: 1px solid var(--line);
}

.page-nav ul,
.page-nav.wp-block-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 30px;
  width: min(100% - 2 * var(--gutter), var(--col));
  margin: 0 auto;
  padding: 14px 0;
  list-style: none;
}

.page-nav li { margin: 0; }

.page-nav a {
  display: block;
  padding-block: 6px;
  font: 500 15px/1.3 var(--font-display);
  text-decoration-line: underline;
  text-decoration-color: rgb(255 211 0 / .7);
  text-decoration-thickness: 3px;
  text-underline-offset: 6px;
  transition: text-decoration-color .2s;
}

.page-nav a:hover { text-decoration-color: var(--ink); }

/* ---------- Intro: headline and copy beside a photo ---------- */

.intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(336px, 30vw, 420px);
  align-items: center;
  column-gap: 24px;
}

.intro > * { margin: 0; }

.intro__text {
  padding-left: 32px;
  text-align: center;
}

.intro__text > * + * { margin-top: 22px; }

.intro__title {
  font: 700 var(--display-size)/1.21 var(--font-display);
  letter-spacing: -.04em;
}

.intro__text p {
  max-width: 526px;
  margin-inline: auto;
}

.intro__title + p { margin-top: 28px; }

.intro__media img {
  display: block;
  width: 100%;
  aspect-ratio: 336 / 317;
  object-fit: cover;
  border-radius: var(--radius);
}

.intro--page { grid-template-columns: minmax(0, 1fr) clamp(432px, 38vw, 540px); }
.intro--page .intro__text { padding-left: 0; }

.intro--page .intro__title {
  max-width: 397px;
  margin-inline: auto;
  font-size: clamp(24px, 1vw + 20px, 28px);
  line-height: 38px;
  letter-spacing: 0;
}

.intro--page .intro__text p { max-width: 397px; }
.intro--page .intro__title + p { margin-top: 18px; }

.intro--page .intro__media img {
  aspect-ratio: 432 / 237;
  object-position: 100% 70%;
}

/* home: Plan your trip gets its own row under the copy and photo */
.intro--home {
  grid-template-areas:
    "text img"
    "plan plan";
  row-gap: clamp(36px, 2vw + 20px, 48px);
}

.intro--home .intro__text { grid-area: text; }
.intro--home .intro__media { grid-area: img; }
.intro--home .interests { grid-area: plan; }

@media (max-width: 899px) {
  .intro,
  .intro--page {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 32px;
  }

  .intro--home { grid-template-areas: "text" "plan" "img"; }
  .intro__text { padding-left: 0; }
}

@media (min-width: 600px) and (max-width: 899px) {
  .intro__media img { aspect-ratio: 16 / 9; }
}

/* Insider tip: a paragraph style */
.tip,
.is-style-tip {
  padding-top: 16px;
  border-top: 3px solid var(--yellow);
  font-size: 15px;
  line-height: 23px;
}

.tip strong:first-child,
.is-style-tip strong:first-child {
  display: block;
  margin-bottom: 3px;
  font: italic 400 17px/1.3 var(--font-ui);
}

/* ---------- Plan your trip: tall photo cards ---------- */

.interests {
  container-type: inline-size;
  text-align: center;
}

.interests__label {
  font: italic 400 clamp(17px, .5vw + 14px, 19px)/1.3 var(--font-ui);
}

.interests__list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
  margin-top: 14px;
}

.interests__list > * { margin: 0 !important; }

.wp-block-cover.plan-card {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  min-height: 0;
  aspect-ratio: 2 / 3;
  padding: 12px 12px 1.1em;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--black);
  color: var(--white);
  isolation: isolate;
}

.wp-block-cover.plan-card > .wp-block-cover__background {
  opacity: 1 !important;
  background-color: transparent !important;
  background-image: linear-gradient(0deg, rgb(0 0 0 / .8), rgb(0 0 0 / .72) 4.5em, rgb(0 0 0 / .06) 10em) !important;
}

.wp-block-cover.plan-card > .wp-block-cover__image-background { transition: transform .7s var(--ease-out); }
.wp-block-cover.plan-card:hover > .wp-block-cover__image-background { transform: scale(1.05); }

.wp-block-cover.plan-card > .wp-block-cover__inner-container { width: 100%; }

.plan-card p {
  font: 700 clamp(16px, 1.65cqi, 20px)/1.2 var(--font-display);
  text-align: center;
  text-wrap: balance;
  text-shadow: 0 1px 8px rgb(0 0 0 / .45);
}

.plan-card a { color: var(--white); text-decoration: none; }

@container (max-width: 699px) {
  .interests__list {
    display: flex;
    gap: 10px;
    margin: 6px calc(-1 * var(--gutter)) -8px;
    padding: 8px var(--gutter);
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter);
    scrollbar-width: none;
  }

  .interests__list::-webkit-scrollbar { display: none; }

  .interests__list > * {
    flex: 0 0 min(44%, 200px);
    scroll-snap-align: start;
  }
}

/* ---------- Feature panels: a text column beside photo tiles ---------- */

.feature {
  display: grid;
  grid-template-columns: var(--text-col) minmax(0, 1fr);
  column-gap: 24px;
  padding: 24px;
  border-radius: var(--radius);
}

.feature > * { margin: 0; }

.feature--dark {
  background: var(--panel);
  color: var(--white);
}

.feature--yellow {
  background: var(--yellow);
  color: var(--black);
}

.feature--light { padding-block: 0; }

.feature__text {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 8px;
  text-align: center;
}

.feature__text > * { margin: 0; }

.feature__title,
.feature h2 {
  font: 700 calc(var(--display-size) * .8)/1.21 var(--font-display);
  letter-spacing: -.04em;
  text-wrap: balance;
}

.feature__text p { max-width: 291px; }

.feature__media {
  position: relative;
  min-height: var(--tile-h);
  overflow: hidden;
  border-radius: var(--radius);
}

.feature__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100% !important;
  object-fit: cover;
  border-radius: 0;
}

/* Where to Stay: the title centred over two large photos */
.feature--stay {
  --tile-h: clamp(320px, 26vw + 80px, 480px);
  grid-template-columns: minmax(0, 1fr);
  row-gap: 20px;
}

.feature--stay > h2 {
  padding-top: 4px;
  text-align: center;
}

@media (max-width: 899px) {
  .feature {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 24px;
  }

  .feature--dark,
  .feature--yellow { padding: 28px 24px 24px; }

  .feature__text {
    justify-content: flex-start;
    padding: 0;
  }

  .feature__text p { max-width: 34em; }
}

/* ---------- Tiles: photo cards with a button ---------- */

.tiles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--tile-gap);
}

.tiles > * { margin: 0 !important; }

.tiles--2,
.feature--light .tiles,
.feature--stay .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.wp-block-cover.tile {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  height: 100%;
  min-height: var(--tile-h);
  padding: 0 12px 16px;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--black);
}

.feature--stay .wp-block-cover.tile { border-radius: var(--radius-lg); }

.wp-block-cover.tile > .wp-block-cover__background { opacity: 0 !important; }

.wp-block-cover.tile > .wp-block-cover__image-background { transition: transform .7s var(--ease-out); }

.wp-block-cover.tile:hover > .wp-block-cover__image-background,
.wp-block-cover.tile:focus-within > .wp-block-cover__image-background { transform: scale(1.04); }

.wp-block-cover.tile > .wp-block-cover__inner-container {
  display: flex;
  justify-content: center;
  width: auto;
}

.wp-block-cover.tile:hover .wp-block-button__link {
  background: var(--white);
  color: var(--black);
}

@media (max-width: 599px) {
  /* tiles become a swipeable row of large photos that peeks the next one */
  .tiles {
    display: flex;
    gap: 12px;
    margin-inline: -24px;
    padding: 0 24px 6px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 24px;
    scrollbar-width: thin;
    scrollbar-color: var(--yellow) transparent;
  }

  .feature--light .tiles {
    margin-inline: calc(-24px - var(--gutter));
    padding-inline: calc(24px + var(--gutter));
    scroll-padding-inline: calc(24px + var(--gutter));
  }

  .tiles > * {
    flex: 0 0 82%;
    scroll-snap-align: start;
  }

  .wp-block-cover.tile {
    height: auto;
    min-height: 0;
    aspect-ratio: 4 / 5;
  }

  .feature__media {
    min-height: 0;
    aspect-ratio: 4 / 3;
  }
}

/* ---------- Trip Ideas: dark photo cards that link to a story ---------- */

.trips > * { margin: 0; }

.trips__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 28px !important;
}

.trips__list > *,
.trips__list .wp-block-post-template > li { margin: 0 !important; }

.trips__list .wp-block-post-template {
  display: contents;
  margin: 0;
  padding: 0;
  list-style: none;
}

.wp-block-cover.trip {
  position: relative;
  display: flex;
  align-items: stretch;
  justify-content: center;
  height: 100%;
  min-height: clamp(360px, 16vw + 230px, 480px);
  padding: 18px 32px 16px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--black);
  color: var(--white);
  text-align: center;
  isolation: isolate;
}

.wp-block-cover.trip > .wp-block-cover__background {
  opacity: .6 !important;
  background-color: var(--black) !important;
  background-image: none !important;
}

.wp-block-cover.trip > .wp-block-cover__image-background { transition: transform .7s var(--ease-out); }
.wp-block-cover.trip:hover > .wp-block-cover__image-background { transform: scale(1.04); }
.wp-block-cover.trip:hover > .wp-block-cover__background { opacity: .52 !important; }

.wp-block-cover.trip > .wp-block-cover__inner-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.trip__time {
  font: 500 13px/1 var(--font-ui);
  letter-spacing: .03em;
}

.trip h3,
.trip .wp-block-post-title {
  max-width: 17em;
  margin: auto 0 !important;
  padding-block: 24px;
  font: 500 24px/1.2 var(--font-ui);
}

.trip h3 a { color: inherit; text-decoration: none; }

.trip__desc {
  max-width: 28em;
  margin-top: -12px !important;
  margin-bottom: 24px !important;
  font-size: 15px;
  line-height: 23px;
}

/* "Read the guide": the card's visible affordance; the whole card is the link */
.trip__cta,
.trip .wp-block-read-more {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 18px;
  border-radius: var(--radius);
  background: var(--yellow);
  color: var(--black);
  font: 600 16px/1.1 var(--font-ui);
  text-decoration: none;
  transition: background-color .2s, color .2s;
}

.wp-block-cover.trip:hover .trip__cta,
.wp-block-cover.trip:hover .wp-block-read-more {
  background: var(--white);
  color: var(--black);
}

.more-reading {
  margin-top: 22px !important;
  text-align: center;
}

.more-reading a { font: 500 15px/1.3 var(--font-display); }

@media (max-width: 759px) {
  .trips__list {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    margin-top: 20px !important;
  }

  .wp-block-cover.trip {
    min-height: 340px;
    padding-inline: 24px;
  }

  .trip h3,
  .trip .wp-block-post-title { font-size: 22px; }
}

/* ---------- Events ---------- */

.events__card {
  padding: 32px 40px 48px;
  border-radius: var(--radius);
  background: var(--grey);
}

.events__card > * { margin: 0; }

.events__intro {
  max-width: 46em;
  margin: 12px auto 0 !important;
  text-align: center;
}

.dont-miss__title,
.events__calendar-title {
  margin-top: 28px !important;
  font: 700 22px/1.3 var(--font-display);
  letter-spacing: .02em;
}

.events__calendar-title { margin-top: 34px !important; }

.dont-miss__list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 14px !important;
}

.dont-miss__list > * { margin: 0 !important; }

.miss-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding: 18px 20px 20px;
  border-radius: var(--radius);
  background: var(--white);
  transition: box-shadow .2s;
}

.miss-card > * { margin: 0; }
.miss-card:hover { box-shadow: 0 6px 18px -8px rgb(0 0 0 / .35); }
.miss-card[hidden] { display: none; }

/* the date, on a yellow tag like the main site's listing labels */
.miss-card__when {
  padding: 4px 10px;
  border-radius: 6px;
  background: var(--yellow);
  color: var(--black);
  font: 700 13px/1.3 var(--font-display);
}

.miss-card h4,
.miss-card__name { font: 700 20px/1.25 var(--font-display); }
.miss-card h4 a { color: inherit; text-decoration: none; }
.miss-card__what { font-size: 15px; line-height: 22px; }

.miss-card__more {
  margin-top: auto !important;
  padding-top: 8px;
  font: 700 14px/1.2 var(--font-display);
  text-decoration: underline;
  text-decoration-color: var(--yellow);
  text-decoration-thickness: 3px;
  text-underline-offset: 4px;
}

.wa-widget {
  margin-top: 14px !important;
  color: var(--ink);
}

.listing-section .wa-widget { margin-top: 30px !important; }

main whereabouts-operators-widget,
main whereabouts-events-widget {
  display: block;
  min-height: 360px;
}

/* the Submit Your Event box, in the theme's colours */
whereabouts-event-submit-widget::part(create__container) { border-color: var(--yellow); background: var(--yellow); }
whereabouts-event-submit-widget::part(txt__title) { color: var(--black); }
whereabouts-event-submit-widget::part(txt__description) { --wa-colors-text-accent-blue-dark: var(--black); }
whereabouts-event-submit-widget::part(btn__create) { background: var(--black); color: var(--white); }
whereabouts-event-submit-widget::part(btn__create):hover { background: var(--ink); }

@media (max-width: 759px) {
  .events__card { padding: 28px 20px 32px; }
  .dont-miss__list { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Listing sections (category pages) ---------- */

.listing-section {
  padding: 36px 40px 40px;
  border-radius: var(--radius);
}

.listing-section > * { margin: 0; }

.listing-section--dark {
  background: var(--panel);
  color: var(--white);
}

.listing-section:not(.listing-section--dark) { padding-block: 0; }

.listing-section h2 {
  font: 700 clamp(28px, 1.6vw + 18px, 36px)/1.2 var(--font-display);
  letter-spacing: .02em;
}

.listing-section__desc {
  max-width: 46em;
  margin-top: 12px !important;
}

.listing-section--dark .wa-widget {
  padding: 24px;
  border-radius: var(--radius);
  background: var(--white);
}

@media (max-width: 759px) {
  .listing-section { padding: 28px 20px 24px; }

  .listing-section--dark .wa-widget {
    margin-inline: -12px;
    padding: 16px 12px;
  }
}

/* ---------- Promo card: photo beside copy ---------- */

.promo {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--grey);
}

.promo > * { margin: 0; }
.promo--flip .promo__media { order: 1; }

.promo__media {
  position: relative;
  min-height: clamp(320px, 22vw + 100px, 440px);
}

.promo__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100% !important;
  object-fit: cover;
  border-radius: 0 !important;
}

.promo__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 14px;
  padding: clamp(32px, 4vw, 56px);
}

.promo__text > * { margin: 0; }
.promo__text p { max-width: 34em; line-height: 24px; }

.promo__lead,
.promo__text .is-style-kicker { font: italic 400 clamp(18px, .6vw + 14px, 21px)/1.3 var(--font-ui); }

.promo__text h2 {
  font: 700 clamp(28px, 1.6vw + 18px, 36px)/1.2 var(--font-display);
  letter-spacing: .02em;
}

.promo__text .wp-block-buttons { margin-top: 8px; }

.promo--compact { grid-template-columns: minmax(0, 3fr) minmax(0, 7fr); }
.promo--compact .promo__media { min-height: 0; }
.promo--compact .promo__text { gap: 8px; padding: 28px clamp(28px, 3vw, 40px); }
.promo--compact .promo__text h2 { font-size: clamp(22px, .8vw + 16px, 26px); }
.promo--compact .promo__text p { max-width: 54em; }

.promo--yellow { background: var(--yellow); }

@media (max-width: 759px) {
  .promo,
  .promo--compact { grid-template-columns: minmax(0, 1fr); }

  .promo--flip .promo__media { order: 0; }

  .promo__media,
  .promo--compact .promo__media {
    min-height: 0;
    aspect-ratio: 4 / 3;
  }

  .promo__text { padding: 28px 24px 32px; }
}

/* ---------- Getting Here ---------- */

.getting-here > * { margin: 0; }

.getting-here__map {
  margin-top: 28px !important;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--grey);
}

.getting-here__map img { display: block; width: 100%; border-radius: 0; }

.getting-here__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: start;
  gap: 40px;
  margin-top: 40px !important;
}

.getting-here__grid > * { margin: 0; }

.drive-card {
  padding: 32px;
  border-radius: var(--radius);
  background: var(--panel);
  color: var(--white);
}

.drive-card > * { margin: 0; }

.drive-times {
  margin-top: 24px !important;
  padding: 0;
  list-style: none;
}

.drive-times li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin: 0;
  padding: 14px 0;
  border-top: 1px solid rgb(255 255 255 / .14);
}

.drive-times strong { flex: none; }

.drive-times em {
  font-size: 14px;
  font-style: normal;
  text-align: right;
}

.drive-card .wp-block-buttons { margin-top: 20px; }

.region-copy > * { margin: 0; }

.region-copy h3 {
  font: 700 24px/30px var(--font-display);
  letter-spacing: .04em;
}

.region-copy p { margin-top: 12px; line-height: 26px; }
.region-copy p + h3 { margin-top: 32px; }

.travel-card {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  margin-top: 40px !important;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--grey);
}

.travel-card + .travel-card { margin-top: 24px !important; }
.travel-card > * { margin: 0; }

.travel-card__media {
  position: relative;
  min-height: 300px;
}

.travel-card__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100% !important;
  object-fit: cover;
  border-radius: 0 !important;
}

.travel-card__body { padding: 36px 40px 40px; }
.travel-card__body > * { margin: 0; }

.travel-card__body > h3 {
  font: 700 24px/30px var(--font-display);
  letter-spacing: .04em;
}

.travel-card__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px 32px;
  margin-top: 24px !important;
}

.travel-card__list > * {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
  padding-top: 20px;
  border-top: 3px solid var(--yellow);
}

.travel-card__list > * > * { margin: 0; }
.travel-card__list > :only-child { grid-column: 1 / -1; }
.travel-card__list h4 { font: 700 18px/1.3 var(--font-display); }
.travel-card__list p { line-height: 24px; }
.travel-card__list .wp-block-buttons { margin-top: auto; }

@media (max-width: 899px) {
  .travel-card { grid-template-columns: minmax(0, 1fr); }

  .travel-card__media {
    min-height: 0;
    aspect-ratio: 16 / 9;
  }
}

@media (max-width: 759px) {
  .getting-here__grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .drive-card { padding: 28px 24px; }
}

@media (max-width: 599px) {
  .travel-card__body { padding: 28px 24px 32px; }
  .travel-card__list { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- FAQ (Details blocks) ---------- */

.faq > * { margin: 0; }

.faq__list {
  max-width: 816px;
  margin: 28px auto 0 !important;
  border-bottom: 1px solid var(--line);
}

.faq__list > * { margin: 0 !important; }

.faq__list .wp-block-details,
.faq__list details { border-top: 1px solid var(--line); }

.faq__list summary {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 4px;
  font: 700 18px/1.35 var(--font-display);
  list-style: none;
  cursor: pointer;
}

.faq__list summary::-webkit-details-marker { display: none; }

/* a plus in a grey circle that turns into a minus */
.faq__list summary::after {
  content: "";
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background:
    linear-gradient(currentColor, currentColor) center / 14px 2.5px no-repeat,
    linear-gradient(currentColor, currentColor) center / 2.5px 14px no-repeat,
    var(--grey);
  transition: background-color .2s;
}

.faq__list details[open] > summary::after {
  background:
    linear-gradient(currentColor, currentColor) center / 14px 2.5px no-repeat,
    var(--grey);
}

.faq__list summary:hover::after { background-color: var(--yellow); }

.faq__list details > :not(summary) {
  max-width: 70ch;
  margin: 0;
  padding: 0 4px 16px;
  line-height: 26px;
}

.faq__list details > :not(summary):last-child { padding-bottom: 24px; }

.faq__list details ul { padding-left: calc(1.25em + 4px); }
.faq__list details li + li { margin-top: 8px; }

@media (max-width: 599px) {
  .faq__list summary { gap: 16px; font-size: 17px; }
}

/* ---------- Newsletter: the main site's yellow band ---------- */

.newsletter {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 420px);
  align-items: center;
  gap: 28px 48px;
  padding: 48px;
  border-radius: var(--radius);
  background: var(--yellow);
  color: var(--black);
}

.newsletter > * { margin: 0; }
.newsletter__text > * { margin: 0; }

.newsletter h2 {
  font: 700 clamp(26px, 1.4vw + 18px, 32px)/1.25 var(--font-display);
  letter-spacing: .04em;
}

.newsletter__text p { max-width: 34em; margin-top: 12px; }

.newsletter__form {
  display: flex;
  flex-wrap: wrap;
  column-gap: 10px;
}

.newsletter__form input[type="email"] {
  flex: 1;
  min-width: 0;
  min-height: 48px;
  padding: 0 18px;
  border: 2px solid var(--black);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  font: 400 16px/1 var(--font-display);
}

.newsletter__form input::placeholder { color: #666; }

.newsletter__form button {
  min-height: 48px;
  background: var(--black);
  color: var(--white);
}

.newsletter__form button:hover { background: var(--white); color: var(--black); }

@media (max-width: 759px) {
  .newsletter {
    grid-template-columns: minmax(0, 1fr);
    padding: 32px 24px;
  }

  .newsletter__form {
    flex-direction: column;
    flex-wrap: nowrap;
  }

  .newsletter__form button { margin-top: 10px; }
}

/* ---------- Funders ---------- */

.funders {
  padding: 36px 40px 40px;
  border-radius: var(--radius);
  background: var(--grey);
  text-align: center;
}

.funders > * { margin: 0; }

.funders h2 {
  font: 700 24px/30px var(--font-display);
  letter-spacing: .04em;
}

.funders__grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  align-items: center;
  gap: 24px 32px;
  margin-top: 28px !important;
}

.funders__grid > * { margin: 0 !important; }

.funders__grid img {
  display: block;
  width: 100%;
  max-width: 168px;
  margin-inline: auto;
  border-radius: 0;
}

.funders__grid a { display: block; transition: opacity .2s; }
.funders__grid a:hover { opacity: .75; }

@media (max-width: 759px) {
  .funders { padding: 28px 20px 32px; }
  .funders__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px 24px; }
}

@media (max-width: 459px) {
  .funders__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- Gallery heading (CrowdRiff and similar embeds) ---------- */

.gallery__head { text-align: center; }
.gallery__head > * { margin: 0; }
.gallery__head h2 { font-size: calc(var(--display-size) * .8); }
.gallery__head p { margin-top: 8px; }
.gallery__head a { font-weight: 700; }

/* ---------- Articles ---------- */

.story h2 .story__num,
.story__num {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-right: 10px;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--black);
  font: 700 16px/1 var(--font-display);
  letter-spacing: 0;
  vertical-align: 3px;
}

.toc {
  padding: 18px 24px 20px;
  border-radius: var(--radius);
  background: var(--grey);
}

.toc > * { margin: 0; }
.toc__title { font: italic 400 17px/1.3 var(--font-ui); }

.toc ol {
  columns: 2;
  column-gap: 32px;
  margin: 10px 0 0 !important;
  padding-left: 1.3em;
  font-size: 15px;
  line-height: 23px;
}

.toc li { break-inside: avoid; margin-bottom: 5px; }
.toc li::marker { color: var(--ink); font-weight: 700; }

@media (max-width: 599px) {
  .toc ol { columns: 1; }
}

.author-box {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 20px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.author-box img { border-radius: 50%; }
.author-box__label { font-size: 13px; letter-spacing: .04em; text-transform: uppercase; opacity: .75; }
.author-box__name { margin-top: 2px; font: 700 22px/1.25 var(--font-display); }
.author-box__bio { margin-top: 6px; line-height: 1.6; }

/* ==========================================================================
   Content from the previous theme
   The pages built with the old theme's sections (Full Width, Call to Action,
   Side Image, Content Grid…) drawn in this theme's design. Grey, black,
   yellow and green sections become rounded panels; white ones sit on the page.
   ========================================================================== */

.lg-section { position: relative; }

.lg-card {
  padding: clamp(28px, 4vw, 48px);
  border-radius: var(--radius);
}

.lg-card.lg-space-reduced { padding-block: clamp(22px, 3vw, 32px); }

.lg-bg-grey { background: var(--grey); }
.lg-bg-green { background: var(--sage); }

.lg-bg-yellow {
  background: var(--yellow);
  color: var(--black);
}

/* dark sections take a category page's Brand Colour, as they did before */
.lg-bg-black {
  background: var(--brand, var(--panel));
  color: var(--white);
  --focus: var(--yellow);
  --line: rgb(255 255 255 / .22);
}

/* "No Top Spacing": the section continues the one above it */
.entry-content > .lg-section.lg-space-notop,
.story > .entry-content > .lg-section.lg-space-notop { margin-top: 20px; }

.entry-content > .lg-bg-grey + .lg-bg-grey.lg-space-notop,
.entry-content > .lg-bg-black + .lg-bg-black.lg-space-notop,
.entry-content > .lg-bg-yellow + .lg-bg-yellow.lg-space-notop,
.entry-content > .lg-bg-green + .lg-bg-green.lg-space-notop {
  margin-top: 0;
  padding-top: 4px;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}

.lg-bg-grey:has(+ .lg-bg-grey.lg-space-notop),
.lg-bg-black:has(+ .lg-bg-black.lg-space-notop),
.lg-bg-yellow:has(+ .lg-bg-yellow.lg-space-notop),
.lg-bg-green:has(+ .lg-bg-green.lg-space-notop) {
  padding-bottom: 20px;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

/* ---------- Rich text in the old sections ---------- */

.lg-prose > * { margin: 0; }
.lg-prose > * + * { margin-top: 1em; }
.lg-prose p,
.lg-prose li { line-height: 1.65; }

/* long lines are hard to read: running text in a wide section keeps to a column,
   except where it was centred in the editor */
.lg-section--full > .lg-prose > :is(p, ul, ol, h1, h2, h3, h4, h5, h6, blockquote, table) { max-width: 860px; }
.lg-section--full > .lg-prose > [style*="center"] { margin-inline: auto; }
.lg-section--full > .lg-prose > p:has(> img:only-child),
.lg-section--full > .lg-prose > p:has(> a:only-child > img) { max-width: none; }

.lg-prose h1 {
  font: 700 var(--display-size)/1.15 var(--font-display);
  letter-spacing: -.03em;
}

.lg-prose h2 {
  font: 700 clamp(26px, 1.6vw + 16px, 38px)/1.2 var(--font-display);
  letter-spacing: -.01em;
}

.lg-prose h3 { font: 700 clamp(21px, .8vw + 15px, 27px)/1.25 var(--font-display); }
.lg-prose h4 { font: 700 19px/1.3 var(--font-display); }
.lg-prose h5 { font: 700 16px/1.3 var(--font-display); }
.lg-prose :is(h1, h2, h3, h4) + * { margin-top: .6em; }
.lg-prose * + :is(h1, h2, h3, h4) { margin-top: 1.4em; }

.lg-prose h3 em {
  font: italic 400 .8em/1.3 var(--font-ui);
}

.lg-prose ul,
.lg-prose ol { padding-left: 1.3em; }
.lg-prose li + li { margin-top: 6px; }
.lg-prose li::marker { color: currentColor; }

.lg-prose img { max-width: 100%; height: auto; border-radius: var(--radius); }
.lg-prose img.aligncenter,
.lg-prose .aligncenter { display: block; margin-inline: auto; }
.lg-prose iframe { max-width: 100%; border: 0; border-radius: var(--radius); }
.lg-prose blockquote { padding-left: 20px; border-left: 4px solid var(--yellow); font: italic 400 19px/1.5 var(--font-ui); }

.lg-prose a:not(.button):not(.btn) {
  text-decoration-line: underline;
  text-decoration-color: var(--yellow);
  text-decoration-thickness: .22em;
  text-underline-offset: .02em;
  text-decoration-skip-ink: none;
  transition: background-color .2s, color .2s;
}

.lg-prose a:not(.button):not(.btn):hover { background: var(--yellow); color: var(--black); }
.lg-bg-yellow .lg-prose a:not(.button):not(.btn) { text-decoration-color: var(--black); }
.lg-bg-yellow .lg-prose a:not(.button):not(.btn):hover { background: var(--black); color: var(--yellow); }

/* the old editor's "Button" format */
.lg-prose a.button,
.entry-content a.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 18px;
  border-radius: var(--radius);
  background: var(--yellow);
  color: var(--black);
  font: 600 16px/1.1 var(--font-ui);
  text-decoration: none;
  transition: background-color .2s, color .2s;
}

.lg-prose a.button:hover,
.entry-content a.button:hover { background: var(--black); color: var(--white); }
.lg-bg-yellow a.button { background: var(--black); color: var(--white); }
.lg-bg-yellow a.button:hover,
.lg-bg-black a.button:hover { background: var(--white); color: var(--black); }

/* the old editor's "Boxed Title" format: the main site's yellow label */
.boxed {
  display: inline-block;
  padding: .22em .45em;
  border-radius: 4px;
  background: var(--boxed-bg, var(--yellow));
  color: var(--boxed-fg, var(--black));
  font-family: var(--font-ui) !important;
  font-weight: 900 !important;
  letter-spacing: .5px !important;
  text-transform: uppercase;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

h1.boxed,
h2.boxed { font-size: clamp(26px, 2.2vw + 14px, 42px) !important; line-height: 1.15 !important; }
h3.boxed { font-size: clamp(20px, 1vw + 14px, 26px) !important; line-height: 1.2 !important; }
h4.boxed { font-size: 17px !important; line-height: 1.3 !important; }

.lg-prose .boxed[style*="center"] { display: table; margin-inline: auto; }

/* on a category page the boxed titles take its Brand Colour, as before */
.entry-content[style*="--brand"] .boxed { --boxed-bg: var(--brand); --boxed-fg: var(--white); }
.lg-bg-yellow .boxed { --boxed-bg: var(--black); --boxed-fg: var(--yellow); }
.lg-bg-black .boxed,
.entry-content[style*="--brand"] .lg-bg-black .boxed { --boxed-bg: var(--yellow); --boxed-fg: var(--black); }

.lg-prose table { width: 100%; border-collapse: collapse; }
.lg-prose td,
.lg-prose th { padding: 8px 10px; border-bottom: 1px solid var(--line); text-align: left; }
.lg-prose table.No-Style-Table td,
.lg-prose table.No-Style-Table th { padding: 0; border: 0; }

/* ---------- Two Column and Content Grid ---------- */

.lg-two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px clamp(28px, 4vw, 64px);
}

.lg-grid {
  display: grid;
  grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr));
  gap: 32px clamp(20px, 2.5vw, 32px);
  align-items: start;
}

@media (max-width: 899px) {
  .lg-two { grid-template-columns: minmax(0, 1fr); }
  .lg-grid { grid-template-columns: repeat(min(var(--cols, 3), 2), minmax(0, 1fr)); }
}

/* wide grids are usually logos, so they keep two to a row on phones */
@media (max-width: 599px) {
  .lg-grid { grid-template-columns: repeat(var(--cols-sm, 1), minmax(0, 1fr)); }
}

/* ---------- Call to Action Section: square photo cards with a coloured label ---------- */

.lg-cta-grid {
  display: grid;
  grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr));
  gap: var(--tile-gap);
}

.lg-cta {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  aspect-ratio: 1;
  padding: 16px 12px;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--black);
  text-decoration: none;
  isolation: isolate;
}

.lg-cta__img {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  transition: transform .7s var(--ease-out);
}

.lg-cta:hover .lg-cta__img { transform: scale(1.04); }

.lg-cta__label {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  min-height: 40px;
  padding: 8px 16px;
  border-radius: var(--radius);
  background: var(--cta, var(--yellow));
  color: var(--white);
  font: 600 16px/1.2 var(--font-ui);
  text-align: center;
  transition: background-color .2s, color .2s;
}

.lg-cta:not([style]) .lg-cta__label { color: var(--black); }
.lg-cta:hover .lg-cta__label { background: var(--yellow); color: var(--black); }

@media (max-width: 899px) {
  .lg-cta-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- Side Image Section: a photo beside the text ---------- */

.lg-side {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: center;
  gap: 28px clamp(28px, 4vw, 64px);
}

.lg-side--right { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.lg-side--right .lg-side__media { order: 2; }

.lg-side__media { margin: 0; }

.lg-side__media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius);
}

@media (max-width: 899px) {
  .lg-side,
  .lg-side--right { grid-template-columns: minmax(0, 1fr); }
  .lg-side--right .lg-side__media { order: 0; }
  .lg-side__media img { aspect-ratio: 4 / 3; }
}

/* ---------- Fact Section: "Did you know…" ---------- */

.lg-fact {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 20px clamp(20px, 3vw, 40px);
}

.lg-fact__icon {
  display: grid;
  place-items: center;
  width: clamp(64px, 5vw + 32px, 96px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--black);
  font-size: clamp(28px, 2vw + 14px, 42px);
}

.lg-bg-yellow .lg-fact__icon { background: var(--black); color: var(--yellow); }
.lg-bg-black .lg-fact__icon { background: var(--white); color: var(--brand, var(--black)); }

@media (max-width: 599px) {
  .lg-fact { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Accordion Sliders Section ---------- */

.lg-accordion { margin-top: 0 !important; }
.lg-accordion details > .lg-prose { max-width: 70ch; padding: 0 4px 24px; }
.lg-bg-black .lg-accordion summary::after,
.lg-bg-yellow .lg-accordion summary::after { background-color: rgb(255 255 255 / .2); }
.lg-bg-yellow .lg-accordion { --line: rgb(0 0 0 / .2); }

/* ---------- Carousels: photos and partner cards ---------- */

.lg-section__title {
  margin-bottom: 24px;
  font: 700 clamp(26px, 1.6vw + 16px, 36px)/1.2 var(--font-display);
  letter-spacing: .02em;
  text-align: center;
}

.lg-carousel { position: relative; }

.lg-carousel__track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: var(--yellow) transparent;
  padding-bottom: 8px;
}

.lg-carousel__track > * {
  flex: 0 0 calc((100% - 3 * 16px) / 4);
  scroll-snap-align: start;
}

.lg-carousel--cards .lg-carousel__track > * { flex-basis: calc((100% - 2 * 16px) / 3); }

.lg-photo { display: block; border-radius: var(--radius); overflow: hidden; }

.lg-photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 650 / 400;
  object-fit: cover;
  border-radius: 0;
  transition: transform .7s var(--ease-out);
}

.lg-photo:hover img { transform: scale(1.04); }

@media (max-width: 899px) {
  .lg-carousel__track > * { flex-basis: calc((100% - 16px) / 2); }
  .lg-carousel--cards .lg-carousel__track > * { flex-basis: 70%; }
}

@media (max-width: 599px) {
  .lg-carousel__track > *,
  .lg-carousel--cards .lg-carousel__track > * { flex-basis: 82%; }
}

/* ---------- Partner cards ---------- */

.lg-listings {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

@media (max-width: 899px) {
  .lg-listings { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 599px) {
  .lg-listings { grid-template-columns: minmax(0, 1fr); }
}

.lg-listing {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line);
  transition: box-shadow .2s;
}

.lg-listing:hover { box-shadow: inset 0 0 0 1px var(--line), 0 10px 24px -12px rgb(0 0 0 / .35); }

.lg-listing__media {
  position: relative;
  aspect-ratio: 650 / 400;
  overflow: hidden;
  background: var(--grey);
}

.lg-listing__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  transition: transform .7s var(--ease-out);
}

.lg-listing:hover .lg-listing__img { transform: scale(1.04); }

.lg-listing__tag {
  position: absolute;
  top: 10px;
  left: 10px;
  max-width: calc(100% - 20px);
  margin: 0;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--cat, var(--black));
  color: var(--white);
  font: 600 12px/1.25 var(--font-ui);
}

.lg-listing__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 6px;
  padding: 16px 20px 20px;
}

.lg-listing__body > * { margin: 0; }
.lg-listing__title { margin-bottom: 4px !important; font: 700 19px/1.25 var(--font-display); }
.lg-listing__title a { color: inherit; text-decoration: none; }

.lg-listing__meta {
  font-size: 14px;
  line-height: 20px;
  color: #444;
}

.lg-listing__meta i { width: 1.1em; color: var(--cat, var(--ink)); }

.lg-listing__more {
  margin-top: auto !important;
  padding-top: 10px;
  font: 700 14px/1.2 var(--font-display);
  text-decoration: underline;
  text-decoration-color: var(--yellow);
  text-decoration-thickness: 3px;
  text-underline-offset: 4px;
}

/* ---------- Directory search (Search & Filter) ---------- */

.lg-search__bar {
  display: grid;
  grid-template-columns: repeat(var(--fields, 4), minmax(0, 1fr));
  align-items: end;
  gap: 12px;
  padding: 16px;
  border-radius: var(--radius);
  background: var(--white);
}

.lg-section--search:not(.lg-card) .lg-search__bar { background: var(--grey); }

.lg-search__bar :is(input, select, button) { font-family: var(--font-ui); }
.lg-search__results { margin-top: 24px; }
.lg-noresult { padding: 24px; border-radius: var(--radius); background: var(--white); text-align: center; }

@media (max-width: 899px) {
  .lg-search__bar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 599px) {
  .lg-search__bar { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Tastemakers and event sponsors ---------- */

.lg-tastemakers {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.is-style-section-title + .lg-tastemakers { margin-top: 28px; }

@media (max-width: 899px) {
  .lg-tastemakers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 599px) {
  .lg-tastemakers { grid-template-columns: minmax(0, 1fr); }
}

.lg-taste {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line);
}

.lg-taste__media .lg-carousel__track { gap: 0; padding: 0; }
.lg-taste__media .lg-carousel__track > * { flex-basis: 100%; }
.lg-taste__media .lg-photo { border-radius: 0; }
.lg-taste__img { display: block; width: 100%; aspect-ratio: 650 / 400; object-fit: cover; border-radius: 0; }

.lg-taste__head {
  padding: 12px 18px;
  background: var(--yellow);
  color: var(--black);
  text-align: center;
}

.lg-taste__head h3 { font: 700 19px/1.25 var(--font-display); }

.lg-taste__cats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

.lg-taste__cats svg { width: 30px; height: 30px; }

.lg-taste__body { padding: 18px 20px 22px; font-size: 15px; }
.lg-taste__logo { display: block; width: auto; max-width: 100%; max-height: 90px; margin: 0 auto 4px; border-radius: 0 !important; }
.lg-small { font-size: 14px; line-height: 1.45; }

.lg-follow a {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin-left: 6px;
  border-radius: 50%;
  background: var(--grey);
  color: var(--ink);
  text-decoration: none !important;
}

.lg-follow a:hover { background: var(--yellow) !important; }

.lg-contact { border-top: 1px solid var(--line); }
.lg-contact summary { padding: 12px 0 4px; font: 700 15px/1.3 var(--font-display); cursor: pointer; }
.lg-contact > * + * { margin-top: 10px; }

/* ---------- Bandwango digital guide ---------- */

.lg-bandwango h2 { font: 700 clamp(24px, 1.4vw + 16px, 34px)/1.25 var(--font-display); text-align: center; }
.lg-bandwango__modules { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 24px; margin-top: 24px; }

@media (max-width: 899px) {
  .lg-bandwango__modules { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Partner pages ---------- */

.partner {
  width: min(100% - 2 * var(--gutter), var(--col));
  margin: var(--section-gap) auto 0;
}

.partner__grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  align-items: start;
  gap: 32px clamp(28px, 4vw, 64px);
}

.partner__about { font-size: 17px; }
.partner__tag { position: static; display: inline-block; }

.partner__card {
  padding: clamp(24px, 3vw, 32px);
  border-radius: var(--radius);
  background: var(--grey);
}

.partner__card > * { margin: 0; }
.partner__card > * + * { margin-top: 12px; }

.partner__card h2 {
  padding-top: 18px;
  border-top: 3px solid var(--cat, var(--yellow));
  font: 700 18px/1.3 var(--font-display);
}

.partner__card h2:first-child,
.partner__logo + h2 { padding-top: 0; border-top: 0; }
.partner__card > * + h2 { margin-top: 24px; }
.partner__card ul { padding-left: 1.2em; }
.partner__logo img { display: block; width: auto; max-width: 100%; max-height: 120px; padding: 12px; border-radius: 10px; background: var(--white); }

.partner__contact { padding: 0 !important; list-style: none; }
.partner__contact li { display: flex; gap: 10px; line-height: 1.5; }
.partner__contact li + li { margin-top: 8px; }
.partner__contact i { width: 1.1em; margin-top: 4px; color: var(--cat, var(--ink)); }
.partner__contact a { text-decoration-color: var(--yellow); text-decoration-thickness: 3px; }

.partner__social { display: flex; gap: 10px; }

.partner__social a {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--black);
  color: var(--white);
  transition: background-color .2s, color .2s;
}

.partner__social a:hover { background: var(--yellow); color: var(--black); }

.partner__map {
  height: clamp(280px, 30vw, 420px);
  margin-top: var(--section-gap);
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--grey);
}

.partner__map-fallback { padding: 24px; }
.partner__gallery { margin-top: var(--section-gap); }
.partner__video { width: min(100%, 860px); margin: var(--section-gap) auto 0; }
.partner__video h2 { margin-bottom: 16px; font: 700 clamp(24px, 1.2vw + 16px, 32px)/1.2 var(--font-display); text-align: center; }
.partner__embed iframe { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border: 0; border-radius: var(--radius); }

@media (max-width: 899px) {
  .partner__grid { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Reduced motion, forced colours ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *, *::before, *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }
}

@media (forced-colors: active) {
  .btn,
  .wp-block-button__link { border: 1px solid ButtonText; }
}
