/* Sunderland Home Grown redesign: base styles (colours, type, buttons, leaf photos).
   Generated by scripts/build-duda.mjs from the files in duda/. Edit those, not this file. */
/* ---------- 1. Brand tokens (sampled from the Home Grown roundel) ---------- */
:root {
  --shg-forest: #173A22;      /* main text, headings, dark sections */
  --shg-forest-700: #1F4D2E;
  --shg-leaf: #3DB82A;        /* fills only, never white text on it */
  --shg-leaf-pale: #E3F2DC;
  --shg-gold: #E9B82B;        /* main buttons, with forest text */
  --shg-gold-hover: #F0C64A;
  --shg-berry: #934F4E;
  --shg-ground: #F6F7F2;      /* page background */
  --shg-stone: #ECEEE6;       /* one step darker, for panels */
  --shg-ink: #14231A;
  --shg-soft: #3F4A42;
  --shg-leaf-corner: 1.5rem 0.25rem;
  --shg-font: 'Atkinson Hyperlegible Next', 'Atkinson Hyperlegible', system-ui, -apple-system, 'Segoe UI', sans-serif;
}


/* ---------- 2. Page, type and links ---------- */
html #dm .dmInner,
html #dm .dmBody {
  background-color: var(--shg-ground) !important;
  color: var(--shg-ink);
  font-family: var(--shg-font) !important;
  font-size: 18px;
  line-height: 1.6;
}
html #dm .dmBody :is(h1, h2, h3, h4, h5, h6),
html #dm .dmBody .dmNewParagraph :is(p, div, span, li, a, b, strong, h1, h2, h3, h4, h5, h6) {
  font-family: var(--shg-font) !important;
}
html #dm .dmBody :is(h1, h2, h3) {
  color: var(--shg-forest);
  letter-spacing: -0.02em;
  line-height: 1.1;
}
html #dm .dmBody a { text-underline-offset: 4px; }

/* Visible keyboard focus everywhere (WCAG 2.2) */
html #dm a:focus-visible,
html #dm button:focus-visible,
html #dm input:focus-visible,
html #dm select:focus-visible,
html #dm textarea:focus-visible {
  outline: 3px solid var(--shg-forest) !important;
  outline-offset: 3px !important;
}
html #dm .dmFooter :is(a, button):focus-visible { outline-color: var(--shg-gold) !important; }


/* ---------- 3. Buttons: one shape, the leaf ---------- */
html #dm .dmBody a.dmButtonLink {
  min-height: 48px;
  border-radius: var(--shg-leaf-corner) !important;
  background-color: var(--shg-gold) !important;
  color: var(--shg-forest) !important;
  border: 0 !important;
  font-family: var(--shg-font) !important;
  font-weight: 700 !important;
  transition: transform .18s ease, background-color .18s ease;
}
html #dm .dmBody a.dmButtonLink :is(span, .text) { color: var(--shg-forest) !important; }
html #dm .dmBody a.dmButtonLink:hover { background-color: var(--shg-gold-hover) !important; transform: translateY(-2px); }
/* Optional: add the class "shg-btn-forest" to a button in Developer Mode for the dark version */
html #dm .dmBody a.dmButtonLink.shg-btn-forest { background-color: var(--shg-forest) !important; }
html #dm .dmBody a.dmButtonLink.shg-btn-forest :is(span, .text) { color: #fff !important; }


/* ---------- 5. Leaf-shaped photos ----------
   In Developer Mode, add ONE of these classes to an image widget's outer <div>:
     shg-leaf       two opposite corners fully rounded (thumbnails, square photos)
     shg-leaf-soft  a gentler leaf (big photos)
     shg-leaf-r     the leaf the other way round
   On hover, the leaf opens out to show the whole photo. */
html #dm .shg-leaf.shg-leaf img,
html #dm .shg-leaf-soft.shg-leaf-soft img,
html #dm .shg-leaf-r.shg-leaf-r img {
  transition: border-radius .7s cubic-bezier(.22, 1, .36, 1) !important;
}
html #dm .shg-leaf.shg-leaf img      { border-radius: 0 100% 0 100% / 0 100% 0 100% !important; }
html #dm .shg-leaf-soft.shg-leaf-soft img { border-radius: 0 42% 0 42% / 0 30% 0 30% !important; }
html #dm .shg-leaf-r.shg-leaf-r img  { border-radius: 100% 0 100% 0 / 100% 0 100% 0 !important; }
@media (hover: hover) {
  html #dm :is(.shg-leaf.shg-leaf, .shg-leaf-soft.shg-leaf-soft, .shg-leaf-r.shg-leaf-r):hover img {
    border-radius: var(--shg-leaf-corner) !important;
  }
}
/* Phones and tablets: opened by the optional script in 6-body-end-html.html */
html #dm :is(.shg-leaf.shg-leaf, .shg-leaf-soft.shg-leaf-soft, .shg-leaf-r.shg-leaf-r).shg-open img {
  border-radius: var(--shg-leaf-corner) !important;
}


/* ---------- 7. Respect "reduce motion" settings ---------- */
@media (prefers-reduced-motion: reduce) {
  html #dm *, html #dm *::before, html #dm *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }
}

/* ===== Photo lightbox (site.js) ===== */

.shg-lb { position: fixed; inset: 0; z-index: 100010; display: none; font-family: var(--shg-font, system-ui, sans-serif); }
.shg-lb.is-on { display: block; }
.shg-lb__backdrop {
  position: absolute; inset: 0;
  background: rgba(12, 24, 16, 0.86);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  opacity: 0; transition: opacity .3s ease;
}
.shg-lb.is-open .shg-lb__backdrop { opacity: 1; }
.shg-lb__stage {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: max(64px, env(safe-area-inset-top)) 16px max(24px, env(safe-area-inset-bottom));
  pointer-events: none;
}
.shg-lb__figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 14px; max-width: 100%; pointer-events: auto; }
.shg-lb__img {
  display: block;
  max-width: min(92vw, 1400px); max-height: calc(100vh - 190px); max-height: calc(100dvh - 190px);
  width: auto; height: auto; object-fit: contain;
  border-radius: 2.5rem 0.5rem;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.6);
  opacity: 0; transform: scale(0.94);
  transition: opacity .35s ease, transform .45s cubic-bezier(.22, 1, .36, 1);
  touch-action: pan-y;
  user-select: none; -webkit-user-drag: none;
}
.shg-lb.is-open .shg-lb__img.is-loaded { opacity: 1; transform: none; }
.shg-lb__caption { margin: 0; max-width: 60ch; color: #fff; font-size: 17px; line-height: 1.45; text-align: center; }
.shg-lb__count { color: rgba(255, 255, 255, 0.75); font-size: 14px; font-weight: 700; letter-spacing: 0.04em; }
.shg-lb__btn {
  position: absolute; z-index: 1;
  display: grid; place-items: center;
  width: 52px; height: 52px; padding: 0;
  border: 0; border-radius: 1.25rem 0.375rem;
  background: rgba(255, 255, 255, 0.14); color: #fff;
  cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: background-color .2s ease, transform .15s ease;
}
.shg-lb__btn:hover { background: rgba(255, 255, 255, 0.26); }
.shg-lb__btn:active { transform: scale(0.92); }
.shg-lb__btn:focus-visible { outline: 3px solid var(--shg-gold, #E9B82B); outline-offset: 2px; }
.shg-lb__btn svg { width: 24px; height: 24px; }
.shg-lb__close { top: max(14px, env(safe-area-inset-top)); right: 14px; }
.shg-lb__prev { left: 16px; top: 50%; margin-top: -26px; }
.shg-lb__next { right: 16px; top: 50%; margin-top: -26px; }
.shg-lb[data-single] :is(.shg-lb__prev, .shg-lb__next, .shg-lb__count) { display: none; }
@media (max-width: 767px) {
  .shg-lb__img { max-width: 100%; max-height: calc(100vh - 230px); max-height: calc(100dvh - 230px); border-radius: 1.75rem 0.375rem; }
  .shg-lb__prev, .shg-lb__next { top: auto; bottom: max(18px, env(safe-area-inset-bottom)); margin-top: 0; }
  .shg-lb__stage { padding-bottom: calc(90px + env(safe-area-inset-bottom, 0px)); }
  .shg-lb__caption { font-size: 16px; }
}
/* Photos that open in the lightbox */
.shg-lb-thumb { cursor: zoom-in; }
.shg-lb-thumb:focus-visible { outline: 3px solid var(--shg-forest, #173A22); outline-offset: 4px; }
@media (prefers-reduced-motion: reduce) {
  .shg-lb__backdrop, .shg-lb__img, .shg-lb__btn { transition: none; }
  .shg-lb__img { transform: none; }
}

/* ===== Video background hero (site.js) ===== */

.shg-video-hero { position: relative !important; overflow: hidden !important; isolation: isolate; }
.shg-vh {
  position: absolute; inset: 0; z-index: 1;
  overflow: hidden; pointer-events: none;
  container-type: size;
}
.shg-vh iframe {
  position: absolute; top: 50%; left: 50%;
  /* Cover the hero at any shape: 16:9 video, scaled up a little to hide YouTube's edges */
  width: 100vw; height: 56.25vw; min-height: 100vh; min-width: 177.78vh;
  width: max(100cqw, 177.78cqh); height: max(100cqh, 56.25cqw); min-width: 0; min-height: 0;
  transform: translate(-50%, -50%) scale(1.18);
  border: 0;
  opacity: 0;
  transition: opacity 1.2s ease;
}
.shg-video-hero.is-playing .shg-vh iframe { opacity: 1; }
.shg-vh__toggle {
  position: absolute; z-index: 5;
  right: clamp(16px, 3vw, 40px); bottom: clamp(16px, 3vw, 40px);
  display: inline-flex; align-items: center; gap: 8px;
  min-width: 48px; height: 48px; padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.35); border-radius: 999px;
  background: rgba(12, 30, 18, 0.45); color: #fff;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  font: 700 15px/1 var(--shg-font, system-ui, sans-serif);
  cursor: pointer;
  transition: background-color .2s ease, transform .15s ease;
}
.shg-vh__toggle:hover { background: rgba(12, 30, 18, 0.7); }
.shg-vh__toggle:active { transform: scale(0.94); }
.shg-vh__toggle:focus-visible { outline: 3px solid var(--shg-gold, #E9B82B); outline-offset: 3px; }
.shg-vh__toggle svg { width: 18px; height: 18px; flex: none; }
@media (max-width: 767px) {
  .shg-vh__toggle { padding: 0; width: 48px; justify-content: center; }
  .shg-vh__toggle span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
@media (prefers-reduced-motion: reduce) { .shg-vh iframe { transition: none; } }

/* ===== Blog: landing page, post lists and single posts ===== */
/* =====================================================================
   SUNDERLAND HOME GROWN REDESIGN: BLOG (landing page, post lists and single posts)
   Built into base.css, which is already linked site-wide, because Duda's single post pages
   share one template and have no page HTML of their own to link a stylesheet from.

   - Landing page: the root has the class shg-blog (from duda/blog/after/blog.html).
   - Post lists (.mainBlog): Duda's blog list widget, wherever it appears.
   - Single posts: Duda adds no page class, so they're recognised by the post-content rows
     Duda puts in every post (.blog-post-row).
   Every rule reaches the content through Duda's own widget classes, so writing or editing
   posts in the editor keeps the design.
   ===================================================================== */

/* =====================================================================
   POST LISTS (landing page, "more posts" under a post, anywhere else)
   ===================================================================== */
html body #dm .mainBlog.mainBlog { font-family: var(--shg-font) !important; }
html body #dm .mainBlog.mainBlog > .inner {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 48px 24px;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}
html body #dm .mainBlog.mainBlog > .inner::before,
html body #dm .mainBlog.mainBlog > .inner::after { display: none !important; }
html body #dm .mainBlog.mainBlog .postArticle {
  float: none !important;
  width: auto !important;
  max-width: none !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}
html body #dm .mainBlog.mainBlog .postArticle > .inner {
  position: relative;
  display: flex !important;
  flex-direction: column;
  height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  visibility: visible !important;
  animation: none !important;
}
/* Photo */
html body #dm .mainBlog.mainBlog .blogImgLink {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  max-height: none !important;
  margin: 0 !important;
  overflow: hidden !important;
  border-radius: 16px !important;
  background: var(--shg-stone);
}
html body #dm .mainBlog.mainBlog .blogImg {
  width: 100% !important;
  height: auto !important;
  max-height: none !important;
  margin: 0 !important;
  aspect-ratio: 4 / 3;
  overflow: hidden !important;
}
html body #dm .mainBlog.mainBlog .blogImg img {
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: cover !important;
  transform: none;
  transition: transform .6s cubic-bezier(.22, 1, .36, 1) !important;
}
@media (hover: hover) {
  html body #dm .mainBlog.mainBlog .postArticle:hover .blogImg img { transform: scale(1.05); }
}
/* Text */
html body #dm .mainBlog.mainBlog .postTextContainer {
  display: flex !important;
  flex-direction: column;
  flex: 1;
  width: 100% !important;
  margin: 0 !important;
  padding: 20px 0 0 !important;
  background: transparent !important;
  text-align: left !important;
}
html body #dm .mainBlog.mainBlog .postText {
  display: flex !important;
  flex-direction: column;
  flex: 1;
  padding: 0 !important;
  margin: 0 !important;
  text-align: left !important;
}
html body #dm .mainBlog.mainBlog .postTitle { order: 2; margin: 0 !important; padding: 0 !important; }
html body #dm .mainBlog.mainBlog .postTitle :is(h1, h2, h3, h4, a) {
  margin: 0 !important;
  padding: 0 !important;
  color: var(--shg-forest) !important;
  font-family: var(--shg-font) !important;
  font-size: 22px !important;
  font-weight: 700 !important;
  line-height: 1.25 !important;
  letter-spacing: -0.01em !important;
  text-align: left !important;
  text-decoration: none !important;
}
/* The whole card is clickable: the title link stretches over it */
html body #dm .mainBlog.mainBlog .postTitle a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
html body #dm .mainBlog.mainBlog .postArticle:hover .postTitle a { text-decoration: underline !important; text-decoration-color: var(--shg-leaf) !important; text-decoration-thickness: 2px !important; text-underline-offset: 4px !important; }
html body #dm .mainBlog.mainBlog .postArticle:focus-within { outline: 3px solid var(--shg-forest); outline-offset: 6px; border-radius: 16px; }
html body #dm .mainBlog.mainBlog .postArticle a:focus-visible { outline: none !important; }
/* Date, with a small leaf */
html body #dm .mainBlog.mainBlog .authorBar {
  order: 1;
  display: flex !important;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px !important;
  padding: 0 !important;
  color: var(--shg-soft) !important;
  font-family: var(--shg-font) !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  text-align: left !important;
}
html body #dm .mainBlog.mainBlog .authorBar * { color: inherit !important; font: inherit !important; }
html body #dm .mainBlog.mainBlog .authorBar::before {
  content: "";
  flex: none;
  width: 10px;
  height: 10px;
  background: var(--shg-leaf);
  border-radius: 0 100% 0 100%;
}
html body #dm .mainBlog.mainBlog .postDescription {
  order: 3;
  margin: 10px 0 0 !important;
  padding: 0 !important;
  max-height: none !important;
  color: var(--shg-soft) !important;
  font-family: var(--shg-font) !important;
  font-size: 17px !important;
  line-height: 1.55 !important;
  text-align: left !important;
  display: -webkit-box !important;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden !important;
}
html body #dm .mainBlog.mainBlog .postDescription * { color: inherit !important; font: inherit !important; }
/* "Read more" */
html body #dm .mainBlog.mainBlog :is(.postActionText, .postActionTextContainer, .blogPostLink, a.postActionLink) {
  order: 4;
  margin-top: 14px !important;
  color: var(--shg-forest) !important;
  font-family: var(--shg-font) !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  text-align: left !important;
}
/* "More posts" button */
html body #dm .mainBlog.mainBlog .more-posts-text-container {
  display: flex !important;
  justify-content: center;
  width: 100% !important;
  margin: 56px 0 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  text-decoration: none !important;
}
html body #dm .mainBlog.mainBlog .more-posts-text-container .morePosts {
  display: inline-flex !important;
  align-items: center;
  min-height: 52px;
  padding: 0 32px !important;
  border-radius: var(--shg-leaf-corner) !important;
  background: var(--shg-gold) !important;
  color: var(--shg-forest) !important;
  font-family: var(--shg-font) !important;
  font-size: 17px !important;
  font-weight: 700 !important;
  cursor: pointer;
  transition: transform .18s ease, background-color .18s ease;
}
html body #dm .mainBlog.mainBlog .more-posts-text-container:hover .morePosts { background: var(--shg-gold-hover) !important; transform: translateY(-2px); }
html body #dm .mainBlog.mainBlog .more-posts-text-container:focus-visible { outline: 3px solid var(--shg-forest) !important; outline-offset: 4px; border-radius: 1rem; }

/* =====================================================================
   BLOG LANDING PAGE
   ===================================================================== */
html body #dm .shg-blog.shg-blog {
  --shg-blog-pad: 40px;
  background: var(--shg-ground) !important;
  font-family: var(--shg-font) !important;
  padding-bottom: 120px !important;
}
html body #dm .shg-blog.shg-blog > .dmRespRow {
  width: auto !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 max(var(--shg-blog-pad), calc((100% - 88rem) / 2 + var(--shg-blog-pad))) !important;
  background: transparent !important;
  background-image: none !important;
  text-align: left !important;
}
html body #dm .shg-blog.shg-blog > .dmRespRow::before { display: none !important; }
html body #dm .shg-blog.shg-blog .dmRespColsWrapper { display: grid !important; width: 100% !important; max-width: none !important; margin: 0 !important; }
html body #dm .shg-blog.shg-blog .dmRespCol { float: none !important; width: auto !important; max-width: none !important; min-height: 0 !important; padding: 0 !important; margin: 0 !important; }

/* Text widgets, and whatever the editor puts inside them */
html body #dm .shg-blog.shg-blog .dmNewParagraph {
  margin: 0 !important;
  padding: 0 !important;
  text-align: left !important;
  color: var(--shg-ink) !important;
  font-family: var(--shg-font) !important;
  font-size: 18px !important;
  font-weight: 400 !important;
  line-height: 1.6 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  background: transparent !important;
}
html body #dm .shg-blog.shg-blog .dmNewParagraph * {
  color: inherit !important;
  font-family: inherit !important;
  font-size: inherit !important;
  font-weight: inherit !important;
  line-height: inherit !important;
  letter-spacing: inherit !important;
  text-transform: none !important;
  text-align: inherit !important;
  background: transparent !important;
  margin: 0 !important;
  padding: 0 !important;
  display: inline;
}

/* Header: title and search */
html body #dm .shg-blog.shg-blog > .shg-blog__hero { padding-top: 88px !important; padding-bottom: 64px !important; }
html body #dm .shg-blog.shg-blog .shg-blog__hero .dmRespColsWrapper {
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 32px 64px;
  align-items: end;
}
html body #dm .shg-blog.shg-blog .dmNewParagraph.shg-blog__eyebrow {
  display: inline-flex !important;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px !important;
  color: var(--shg-forest) !important;
  font-size: 16px !important;
  font-weight: 700 !important;
}
html body #dm .shg-blog.shg-blog .dmNewParagraph.shg-blog__eyebrow::before {
  content: "";
  width: 12px;
  height: 12px;
  background: var(--shg-leaf);
  border-radius: 0 100% 0 100%;
}
html body #dm .shg-blog.shg-blog .dmNewParagraph.shg-blog__title {
  display: block !important;
  color: var(--shg-forest) !important;
  font-size: clamp(2.75rem, 6.4vw, 6rem) !important;
  font-weight: 700 !important;
  line-height: 0.98 !important;
  letter-spacing: -0.035em !important;
}
html body #dm .shg-blog.shg-blog .dmNewParagraph.shg-blog__lead {
  margin-top: 24px !important;
  max-width: 40ch !important;
  color: var(--shg-soft) !important;
  font-size: clamp(1.15rem, 1.6vw, 1.4rem) !important;
  line-height: 1.5 !important;
}
/* Duda's blog search box */
html body #dm .shg-blog.shg-blog .dmBlogSearch {
  width: 100% !important;
  max-width: none !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
}
html body #dm .shg-blog.shg-blog .dmBlogSearch .dmBlogSearchWrapper {
  position: relative !important;
  display: flex !important;
  align-items: center;
  width: 100% !important;
  height: 60px !important;
  border: 2px solid #8a948c !important;
  border-radius: var(--shg-leaf-corner) !important;
  background: #fff !important;
  box-shadow: none !important;
}
html body #dm .shg-blog.shg-blog .dmBlogSearch .dmBlogSearchWrapper:focus-within { border-color: var(--shg-forest) !important; outline: 3px solid var(--shg-gold); outline-offset: 1px; }
html body #dm .shg-blog.shg-blog .dmBlogSearch .dmBlogSearchInput.dmBlogSearchInput {
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  padding: 0 20px 0 54px !important;
  border: 0 !important;
  background: transparent !important;
  color: var(--shg-ink) !important;
  font-family: var(--shg-font) !important;
  font-size: 18px !important;
  outline: 0 !important;
  box-shadow: none !important;
}
html body #dm .shg-blog.shg-blog .dmBlogSearch .dmBlogSearchInput::placeholder { color: var(--shg-soft) !important; opacity: 1; }
html body #dm .shg-blog.shg-blog .dmBlogSearch .dmBlogSearchIcon {
  position: absolute !important;
  left: 20px !important;
  right: auto !important;
  top: 50% !important;
  transform: translateY(-50%);
  margin: 0 !important;
  color: var(--shg-forest) !important;
  font-size: 20px !important;
  pointer-events: none;
}
html body #dm .shg-blog.shg-blog .dmBlogSearch .dmBlogSearchClickOverlay { display: none !important; }

/* Post list: the newest post is featured across the full width */
html body #dm .shg-blog.shg-blog > .shg-blog__list { padding-top: 8px !important; }
html body #dm .shg-blog.shg-blog .mainBlog .postArticle:first-child { grid-column: 1 / -1; }
html body #dm .shg-blog.shg-blog .mainBlog .postArticle:first-child > .inner {
  display: grid !important;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 48px;
  align-items: center;
  padding-bottom: 48px !important;
  border-bottom: 2px solid var(--shg-stone) !important;
}
html body #dm .shg-blog.shg-blog .mainBlog .postArticle:first-child > .inner > .blogImgLink { grid-column: 1; grid-row: 1; border-radius: 2.5rem 0.5rem !important; }
html body #dm .shg-blog.shg-blog .mainBlog .postArticle:first-child > .inner > .postTextContainer { grid-column: 2; grid-row: 1; }
html body #dm .shg-blog.shg-blog .mainBlog .postArticle:first-child .blogImg { aspect-ratio: 16 / 10; }
html body #dm .shg-blog.shg-blog .mainBlog .postArticle:first-child .postTextContainer { padding: 0 !important; }
html body #dm .shg-blog.shg-blog .mainBlog .postArticle:first-child .postTitle :is(h1, h2, h3, h4, a) { font-size: clamp(1.75rem, 3vw, 2.75rem) !important; line-height: 1.1 !important; letter-spacing: -0.025em !important; }
html body #dm .shg-blog.shg-blog .mainBlog .postArticle:first-child .postDescription { margin-top: 16px !important; font-size: 19px !important; -webkit-line-clamp: 4; }

/* =====================================================================
   SINGLE BLOG POST (Duda's post template)
   ===================================================================== */
/* Header: the post's photo behind a deep green shade, title and date on top */
html body #dm .dmRespRowsWrapper:has(.blog-post-row) > .dmRespRow:first-child {
  position: relative !important;
  display: flex !important;
  align-items: flex-end;
  width: auto !important;
  max-width: none !important;
  min-height: clamp(360px, 52vh, 560px);
  margin: 0 !important;
  padding: 120px max(40px, calc((100% - 52rem) / 2)) 56px !important;
  background-size: cover !important;
  background-position: center !important;
  text-align: left !important;
}
html body #dm .dmRespRowsWrapper:has(.blog-post-row) > .dmRespRow:first-child::before {
  content: "" !important;
  display: block !important;
  position: absolute !important;
  inset: 0 !important;
  z-index: 0 !important;
  opacity: 1 !important;
  background: linear-gradient(180deg, rgba(10, 26, 15, 0.35) 0%, rgba(10, 26, 15, 0.55) 45%, rgba(10, 26, 15, 0.9) 100%) !important;
}
html body #dm .dmRespRowsWrapper:has(.blog-post-row) > .dmRespRow:first-child :is(.dmRespColsWrapper, .dmRespCol) {
  position: relative;
  z-index: 1;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  float: none !important;
}
html body #dm .dmRespRowsWrapper:has(.blog-post-row) > .dmRespRow:first-child .dmNewParagraph {
  margin: 0 !important;
  padding: 0 !important;
  text-align: left !important;
  font-family: var(--shg-font) !important;
}
html body #dm .dmRespRowsWrapper:has(.blog-post-row) > .dmRespRow:first-child .dmNewParagraph * {
  color: inherit !important;
  font: inherit !important;
  letter-spacing: inherit !important;
  text-align: inherit !important;
  background: transparent !important;
  margin: 0 !important;
  padding: 0 !important;
}
/* Title */
html body #dm .dmRespRowsWrapper:has(.blog-post-row) > .dmRespRow:first-child .dmNewParagraph:nth-child(1 of .dmNewParagraph) {
  color: #fff !important;
  font-size: clamp(2.25rem, 5.2vw, 4.5rem) !important;
  font-weight: 700 !important;
  line-height: 1.02 !important;
  letter-spacing: -0.03em !important;
  text-wrap: balance;
}
/* Date */
html body #dm .dmRespRowsWrapper:has(.blog-post-row) > .dmRespRow:first-child .dmNewParagraph:nth-child(2 of .dmNewParagraph) {
  display: inline-flex !important;
  width: auto !important;
  max-width: 100% !important;
  align-items: center;
  gap: 8px;
  margin-top: 20px !important;
  padding: 6px 14px !important;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16) !important;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: #fff !important;
  font-size: 15px !important;
  font-weight: 700 !important;
}
html body #dm .dmRespRowsWrapper:has(.blog-post-row) > .dmRespRow:first-child .dmNewParagraph:nth-child(2 of .dmNewParagraph)::before {
  content: "";
  width: 10px;
  height: 10px;
  background: var(--shg-leaf);
  border-radius: 0 100% 0 100%;
}

/* The article: one comfortable reading column */
html body #dm .dmRespRowsWrapper:has(.blog-post-row) { background: var(--shg-ground) !important; }
html body #dm .dmRespRowsWrapper:has(.blog-post-row) > .dmRespRow:has(.blog-post-row) {
  width: auto !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 72px 24px 24px !important;
  background: transparent !important;
}
html body #dm .dmRespRowsWrapper:has(.blog-post-row) > .dmRespRow:has(.blog-post-row) > .dmRespColsWrapper > .dmRespCol {
  float: none !important;
  width: 100% !important;
  max-width: 46rem !important;
  margin: 0 auto !important;
  padding: 0 !important;
}
html body #dm .dmRespRowsWrapper:has(.blog-post-row) .blog-post-row,
html body #dm .dmRespRowsWrapper:has(.blog-post-row) .blog-post-row ~ .dmRespRow {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
}
html body #dm .dmRespRowsWrapper:has(.blog-post-row) .blog-post-row > .dmRespColsWrapper {
  display: block !important;
  width: 100% !important;
  margin: 0 !important;
}
html body #dm .dmRespRowsWrapper:has(.blog-post-row) .blog-post-row .dmRespCol {
  float: none !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  min-height: 0 !important;
}
html body #dm .dmRespRowsWrapper:has(.blog-post-row) .blog-post-row + .blog-post-row { margin-top: 40px !important; }

/* Post text */
html body #dm .dmRespRowsWrapper:has(.blog-post-row) .blog-post-row .dmNewParagraph {
  margin: 0 0 24px !important;
  padding: 0 !important;
  color: var(--shg-ink) !important;
  font-family: var(--shg-font) !important;
  font-size: 19px !important;
  line-height: 1.75 !important;
  text-align: left !important;
}
html body #dm .dmRespRowsWrapper:has(.blog-post-row) .blog-post-row .dmNewParagraph :is(p, span, font, div, li) {
  color: inherit !important;
  font-family: inherit !important;
  font-size: inherit !important;
  line-height: inherit !important;
  text-align: inherit !important;
}
html body #dm .dmRespRowsWrapper:has(.blog-post-row) .blog-post-row .dmNewParagraph p { margin: 0 !important; }
html body #dm .dmRespRowsWrapper:has(.blog-post-row) .blog-post-row .dmNewParagraph :is(h2, h3, h4) {
  margin: 40px 0 12px !important;
  color: var(--shg-forest) !important;
  font-family: var(--shg-font) !important;
  font-size: clamp(1.5rem, 2.4vw, 2rem) !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
}
html body #dm .dmRespRowsWrapper:has(.blog-post-row) .blog-post-row .dmNewParagraph :is(b, strong) { font-weight: 700 !important; color: var(--shg-forest) !important; }
html body #dm .dmRespRowsWrapper:has(.blog-post-row) .blog-post-row .dmNewParagraph a {
  color: var(--shg-forest) !important;
  font-weight: 700 !important;
  text-decoration: underline !important;
  text-decoration-color: var(--shg-leaf) !important;
  text-decoration-thickness: 2px !important;
  text-underline-offset: 4px !important;
}
html body #dm .dmRespRowsWrapper:has(.blog-post-row) .blog-post-row .dmNewParagraph :is(ul, ol) { margin: 0 0 0 1.25em !important; padding: 0 !important; }
/* Closing note ("Want to learn more…"): the post's last row when it holds a single paragraph */
html body #dm .dmRespRowsWrapper:has(.blog-post-row) .blog-post-row:not(:has(~ .blog-post-row)) .dmRespCol:only-child > .dmNewParagraph:only-child {
  margin: 0 !important;
  padding: 28px 32px !important;
  border-radius: 2rem 0.5rem !important;
  background: var(--shg-leaf-pale) !important;
  color: var(--shg-forest) !important;
  text-align: center !important;
}

/* Post photos */
html body #dm .dmRespRowsWrapper:has(.blog-post-row) .blog-post-row .imageWidget {
  width: 100% !important;
  max-width: none !important;
  height: auto !important;
  margin: 8px 0 32px !important;
  padding: 0 !important;
  text-align: left !important;
}
html body #dm .dmRespRowsWrapper:has(.blog-post-row) .blog-post-row .imageWidget img {
  display: block;
  width: 100% !important;
  height: auto !important;
  max-height: 34rem;
  object-fit: cover;
  border-radius: 16px !important;
}
html body #dm .dmRespRowsWrapper:has(.blog-post-row) .blog-post-row .image-caption {
  display: block !important;
  margin-top: 10px !important;
  padding: 0 !important;
  color: var(--shg-soft) !important;
  font-family: var(--shg-font) !important;
  font-size: 14px !important;
  line-height: 1.4 !important;
  text-align: left !important;
  position: static !important;
  background: transparent !important;
}

/* "Older post" / "Newer post" */
html body #dm .dmRespRowsWrapper:has(.blog-post-row) .blog-post-row ~ .dmRespRow { margin-top: 40px !important; }
html body #dm .dmRespRowsWrapper:has(.blog-post-row) .blog-post-row ~ .dmRespRow .dmRespCol {
  display: flex !important;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  float: none !important;
  width: 100% !important;
  padding: 0 !important;
}
html body #dm .dmRespRowsWrapper:has(.blog-post-row) .blog-post-row ~ .dmRespRow .dmRespCol > a {
  display: inline-flex !important;
  flex: 0 0 auto;
  width: auto !important;
  align-items: center;
  min-height: 48px;
  padding: 0 22px !important;
  border-radius: var(--shg-leaf-corner);
  background: var(--shg-stone) !important;
  color: var(--shg-forest) !important;
  font-family: var(--shg-font) !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  transition: background-color .18s ease, transform .18s ease;
}
html body #dm .dmRespRowsWrapper:has(.blog-post-row) .blog-post-row ~ .dmRespRow .dmRespCol > a:hover { background: var(--shg-leaf-pale) !important; transform: translateY(-2px); }
html body #dm .dmRespRowsWrapper:has(.blog-post-row) .blog-post-row ~ .dmRespRow .dmRespCol > a:focus-visible { outline: 3px solid var(--shg-forest); outline-offset: 3px; }

/* "More from the blog" under the post */
html body #dm .dmRespRowsWrapper:has(.blog-post-row) > .dmRespRow:has(.mainBlog) {
  width: auto !important;
  max-width: none !important;
  margin: 96px 0 0 !important;
  padding: 88px max(40px, calc((100% - 88rem) / 2 + 40px)) 112px !important;
  background: var(--shg-stone) !important;
}
html body #dm .dmRespRowsWrapper:has(.blog-post-row) > .dmRespRow:has(.mainBlog)::before {
  content: "More from the blog" !important;
  display: block !important;
  position: static !important;
  margin: 0 0 40px !important;
  background: none !important;
  opacity: 1 !important;
  color: var(--shg-forest);
  font-family: var(--shg-font);
  font-size: clamp(2rem, 3.6vw, 3rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.025em;
}
html body #dm .dmRespRowsWrapper:has(.blog-post-row) > .dmRespRow:has(.mainBlog) :is(.dmRespColsWrapper, .dmRespCol) {
  float: none !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* =====================================================================
   TABLET (1024px and narrower)
   ===================================================================== */
@media screen and (max-width: 1024px) {
  html body #dm .mainBlog.mainBlog > .inner { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 40px 20px; }
  html body #dm .shg-blog.shg-blog { --shg-blog-pad: 32px; padding-bottom: 96px !important; }
  html body #dm .shg-blog.shg-blog .shg-blog__hero .dmRespColsWrapper { grid-template-columns: minmax(0, 1fr); }
  html body #dm .shg-blog.shg-blog > .shg-blog__hero { padding-top: 64px !important; padding-bottom: 48px !important; }
  html body #dm .shg-blog.shg-blog .mainBlog .postArticle:first-child > .inner { grid-template-columns: minmax(0, 1fr); gap: 24px; padding-bottom: 40px !important; }
  html body #dm .shg-blog.shg-blog .mainBlog .postArticle:first-child > .inner > .postTextContainer { grid-column: 1; grid-row: 2; }
  html body #dm .dmRespRowsWrapper:has(.blog-post-row) > .dmRespRow:has(.mainBlog) { padding: 72px 32px 88px !important; }
}

/* =====================================================================
   MOBILE (767px and narrower, and Duda's phone pages)
   ===================================================================== */
@media screen and (max-width: 767px) {
  html body #dm .mainBlog.mainBlog > .inner { grid-template-columns: minmax(0, 1fr) !important; gap: 40px; }
  html body #dm .mainBlog.mainBlog .postTitle :is(h1, h2, h3, h4, a) { font-size: 21px !important; }
  html body #dm .shg-blog.shg-blog { --shg-blog-pad: 16px; padding-bottom: 72px !important; }
  html body #dm .shg-blog.shg-blog > .shg-blog__hero { padding-top: 40px !important; padding-bottom: 32px !important; }
  html body #dm .shg-blog.shg-blog .shg-blog__hero .dmRespColsWrapper { gap: 24px; }
  html body #dm .shg-blog.shg-blog .dmNewParagraph.shg-blog__title { font-size: 44px !important; }
  html body #dm .shg-blog.shg-blog .dmNewParagraph.shg-blog__lead { font-size: 18px !important; margin-top: 16px !important; }
  html body #dm .shg-blog.shg-blog .dmBlogSearch .dmBlogSearchWrapper { height: 54px !important; }
  html body #dm .shg-blog.shg-blog .mainBlog .postArticle:first-child .blogImgLink { border-radius: 1.75rem 0.375rem !important; }
  html body #dm .shg-blog.shg-blog .mainBlog .postArticle:first-child .postTitle :is(h1, h2, h3, h4, a) { font-size: 28px !important; }
  html body #dm .shg-blog.shg-blog .mainBlog .postArticle:first-child .postDescription { font-size: 17px !important; -webkit-line-clamp: 3; }

  html body #dm .dmRespRowsWrapper:has(.blog-post-row) > .dmRespRow:first-child { min-height: 320px; padding: 96px 16px 32px !important; }
  html body #dm .dmRespRowsWrapper:has(.blog-post-row) > .dmRespRow:first-child .dmNewParagraph:nth-child(1 of .dmNewParagraph) { font-size: 36px !important; }
  html body #dm .dmRespRowsWrapper:has(.blog-post-row) > .dmRespRow:has(.blog-post-row) { padding: 40px 16px 8px !important; }
  html body #dm .dmRespRowsWrapper:has(.blog-post-row) .blog-post-row .dmNewParagraph { font-size: 18px !important; line-height: 1.7 !important; }
  html body #dm .dmRespRowsWrapper:has(.blog-post-row) .blog-post-row:not(:has(~ .blog-post-row)) .dmRespCol:only-child > .dmNewParagraph:only-child { padding: 20px !important; border-radius: 1.5rem 0.375rem !important; }
  html body #dm .dmRespRowsWrapper:has(.blog-post-row) > .dmRespRow:has(.mainBlog) { margin-top: 64px !important; padding: 56px 16px 72px !important; }
}
html body.dmMobileBody #dm .shg-blog.shg-blog { --shg-blog-pad: 16px; }
html body.dmMobileBody #dm .mainBlog.mainBlog > .inner { grid-template-columns: minmax(0, 1fr) !important; }

/* ===== Gallery page ===== */
/* =====================================================================
   SUNDERLAND HOME GROWN REDESIGN: GALLERY PAGE
   Built into base.css (already linked site-wide), so there's no extra link to add.

   - The page is recognised by its header row (shg-gallery__hero, from
     duda/gallery/after/gallery-header-row.html), so nothing in Duda's gallery widget changes.
   - The photo styles below apply to Duda's Photo Gallery widget on that page.
   - Clicking a photo opens the site's lightbox (site.js), with its caption.
   ===================================================================== */
html body #dm .dmRespRowsWrapper:has(> .shg-gallery__hero) {
  --shg-gal-pad: 40px;
  background: var(--shg-ground) !important;
  font-family: var(--shg-font) !important;
  padding-bottom: 120px !important;
}
html body #dm .dmRespRowsWrapper:has(> .shg-gallery__hero) > .dmRespRow {
  width: auto !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 max(var(--shg-gal-pad), calc((100% - 88rem) / 2 + var(--shg-gal-pad))) !important;
  background: transparent !important;
  background-image: none !important;
  text-align: left !important;
}
html body #dm .dmRespRowsWrapper:has(> .shg-gallery__hero) > .dmRespRow::before { display: none !important; }
html body #dm .dmRespRowsWrapper:has(> .shg-gallery__hero) > .dmRespRow .dmRespColsWrapper { display: block !important; width: 100% !important; max-width: none !important; margin: 0 !important; }
html body #dm .dmRespRowsWrapper:has(> .shg-gallery__hero) > .dmRespRow .dmRespCol { display: block !important; float: none !important; width: 100% !important; max-width: none !important; min-height: 0 !important; padding: 0 !important; margin: 0 !important; }

/* ---------- Header ---------- */
html body #dm .shg-gallery__hero.shg-gallery__hero { padding-top: 88px !important; padding-bottom: 56px !important; }
html body #dm .shg-gallery__hero .dmNewParagraph {
  margin: 0 !important;
  padding: 0 !important;
  text-align: left !important;
  color: var(--shg-ink) !important;
  font-family: var(--shg-font) !important;
  font-size: 18px !important;
  font-weight: 400 !important;
  line-height: 1.6 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  background: transparent !important;
}
html body #dm .shg-gallery__hero .dmNewParagraph * {
  color: inherit !important;
  font: inherit !important;
  letter-spacing: inherit !important;
  text-transform: none !important;
  text-align: inherit !important;
  background: transparent !important;
  margin: 0 !important;
  padding: 0 !important;
  display: inline;
}
html body #dm .shg-gallery__hero .dmNewParagraph.shg-gallery__eyebrow {
  display: inline-flex !important;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px !important;
  color: var(--shg-forest) !important;
  font-size: 16px !important;
  font-weight: 700 !important;
}
html body #dm .shg-gallery__hero .dmNewParagraph.shg-gallery__eyebrow::before {
  content: "";
  width: 12px;
  height: 12px;
  background: var(--shg-leaf);
  border-radius: 0 100% 0 100%;
}
html body #dm .shg-gallery__hero .dmNewParagraph.shg-gallery__title {
  display: block !important;
  color: var(--shg-forest) !important;
  font-size: clamp(2.75rem, 6.4vw, 6rem) !important;
  font-weight: 700 !important;
  line-height: 0.98 !important;
  letter-spacing: -0.035em !important;
}
html body #dm .shg-gallery__hero .dmNewParagraph.shg-gallery__lead {
  display: block !important;
  margin-top: 24px !important;
  max-width: 44ch !important;
  color: var(--shg-soft) !important;
  font-size: clamp(1.15rem, 1.6vw, 1.4rem) !important;
  line-height: 1.5 !important;
}

/* ---------- Duda's Photo Gallery widget ---------- */
html body #dm .dmRespRowsWrapper:has(> .shg-gallery__hero) .dmPhotoGallery {
  display: block !important;
  float: none !important;
  width: calc(100% + 16px) !important;
  max-width: none !important;
  margin: 0 -8px !important;
  padding: 0 !important;
}
/* Even 16px gaps between photos */
html body #dm .dmRespRowsWrapper:has(> .shg-gallery__hero) .dmPhotoGallery .photoGalleryThumbs {
  padding: 8px !important;
  margin: 0 !important;
}
html body #dm .dmRespRowsWrapper:has(> .shg-gallery__hero) .dmPhotoGallery .thumbnailInnerWrapper {
  position: relative !important;
  height: 100% !important;
  border-radius: 20px !important;
  overflow: hidden !important;
  background: var(--shg-stone) !important;
  box-shadow: 0 1px 2px rgba(23, 58, 34, 0.06), 0 12px 32px -18px rgba(23, 58, 34, 0.45);
  transition: box-shadow .35s ease, transform .35s ease;
}
html body #dm .dmRespRowsWrapper:has(> .shg-gallery__hero) .dmPhotoGallery .image-container {
  border-radius: 20px !important;
  overflow: hidden !important;
}
html body #dm .dmRespRowsWrapper:has(> .shg-gallery__hero) .dmPhotoGallery .image-container > a {
  border-radius: 0 !important;
  background-size: cover !important;
  background-position: center !important;
  transform: none !important;
  transition: transform .6s cubic-bezier(.2, .7, .2, 1) !important;
}
/* Hover: lift the card and zoom the photo a little (Duda's own zoom-out effect is replaced) */
@media (hover: hover) {
  html body #dm .dmRespRowsWrapper:has(> .shg-gallery__hero) .dmPhotoGallery .photoGalleryThumbs:hover .thumbnailInnerWrapper {
    transform: translateY(-3px);
    box-shadow: 0 2px 4px rgba(23, 58, 34, 0.08), 0 22px 44px -20px rgba(23, 58, 34, 0.55);
  }
  html body #dm .dmRespRowsWrapper:has(> .shg-gallery__hero) .dmPhotoGallery .photoGalleryThumbs:hover .image-container > a {
    transform: scale(1.05) !important;
  }
}
/* Keyboard focus: a clear ring round the whole photo */
html body #dm .dmRespRowsWrapper:has(> .shg-gallery__hero) .dmPhotoGallery .image-container > a:focus-visible { outline: none !important; }
html body #dm .dmRespRowsWrapper:has(> .shg-gallery__hero) .dmPhotoGallery .thumbnailInnerWrapper:has(a:focus-visible) {
  outline: 3px solid var(--shg-forest) !important;
  outline-offset: 3px;
  overflow: visible !important;
}

/* Captions (when a photo has a title or text in the editor): white text on a soft shade */
html body #dm .dmRespRowsWrapper:has(> .shg-gallery__hero) .dmPhotoGallery .caption-container {
  position: absolute !important;
  left: 0 !important; right: 0 !important; bottom: 0 !important; top: auto !important;
  width: auto !important;
  height: auto !important;
  margin: 0 !important;
  padding: 72px 22px 20px !important;
  border-radius: 0 0 20px 20px !important;
  background: linear-gradient(to top, rgba(12, 30, 18, 0.88), rgba(12, 30, 18, 0.55) 55%, rgba(12, 30, 18, 0)) !important;
  text-align: left !important;
  pointer-events: none;
}
html body #dm .dmRespRowsWrapper:has(> .shg-gallery__hero) .dmPhotoGallery .caption-inner {
  display: block !important;
  position: static !important;
  overflow: visible !important;
  padding: 0 !important;
  background: transparent !important;
  text-align: left !important;
}
html body #dm .dmRespRowsWrapper:has(> .shg-gallery__hero) .dmPhotoGallery .caption-title,
html body #dm .dmRespRowsWrapper:has(> .shg-gallery__hero) .dmPhotoGallery .caption-title * {
  margin: 0 !important;
  color: #fff !important;
  font-family: var(--shg-font) !important;
  font-size: 22px !important;
  font-weight: 700 !important;
  line-height: 1.25 !important;
  letter-spacing: -0.01em !important;
  text-align: left !important;
  text-shadow: none !important;
}
html body #dm .dmRespRowsWrapper:has(> .shg-gallery__hero) .dmPhotoGallery .caption-text,
html body #dm .dmRespRowsWrapper:has(> .shg-gallery__hero) .dmPhotoGallery .caption-text * {
  margin: 0 !important;
  color: rgba(255, 255, 255, 0.92) !important;
  font-family: var(--shg-font) !important;
  font-size: 15px !important;
  line-height: 1.45 !important;
  text-align: left !important;
  text-shadow: none !important;
}
html body #dm .dmRespRowsWrapper:has(> .shg-gallery__hero) .dmPhotoGallery .caption-title:not(:empty) + .caption-text { margin-top: 6px !important; }
html body #dm .dmRespRowsWrapper:has(> .shg-gallery__hero) .dmPhotoGallery .caption-container:not(:has(.caption-title:not(:empty), .caption-text:not(:empty))) { display: none !important; }

/* "View more" / "View less": a gold button */
html body #dm .dmRespRowsWrapper:has(> .shg-gallery__hero) .dmPhotoGallery .photoGalleryViewAll {
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: fit-content !important;
  min-height: 52px;
  margin: 40px auto 0 !important;
  padding: 0 28px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: var(--shg-gold) !important;
  color: var(--shg-forest) !important;
  font-family: var(--shg-font) !important;
  font-size: 17px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  text-decoration: none !important;
  cursor: pointer;
  transition: background-color .2s ease, transform .15s ease;
}
html body #dm .dmRespRowsWrapper:has(> .shg-gallery__hero) .dmPhotoGallery .photoGalleryViewAll::after {
  content: "";
  width: 9px;
  height: 9px;
  margin-top: -4px;
  border-right: 2.5px solid currentColor;
  border-bottom: 2.5px solid currentColor;
  transform: rotate(45deg);
}
html body #dm .dmRespRowsWrapper:has(> .shg-gallery__hero) .dmPhotoGallery .photoGalleryViewAll[data-viewless]:not([isall="true"])::after,
html body #dm .dmRespRowsWrapper:has(> .shg-gallery__hero) .dmPhotoGallery .photoGalleryViewAll.shg-less::after { transform: rotate(-135deg); margin-top: 4px; }
html body #dm .dmRespRowsWrapper:has(> .shg-gallery__hero) .dmPhotoGallery .photoGalleryViewAll:hover { background: #F2C94C !important; }
html body #dm .dmRespRowsWrapper:has(> .shg-gallery__hero) .dmPhotoGallery .photoGalleryViewAll:active { transform: scale(0.97); }
html body #dm .dmRespRowsWrapper:has(> .shg-gallery__hero) .dmPhotoGallery .photoGalleryViewAll:focus-visible { outline: 3px solid var(--shg-forest) !important; outline-offset: 3px; }

/* Photos that move in: keep them still for people who've asked for less motion */
@media (prefers-reduced-motion: reduce) {
  html body #dm .dmRespRowsWrapper:has(> .shg-gallery__hero) .dmPhotoGallery .photoGalleryThumbs { animation: none !important; opacity: 1 !important; }
  html body #dm .dmRespRowsWrapper:has(> .shg-gallery__hero) .dmPhotoGallery :is(.thumbnailInnerWrapper, .image-container > a) { transition: none !important; transform: none !important; }
}

/* ---------- Tablet ---------- */
@media screen and (max-width: 1024px) {
  html body #dm .dmRespRowsWrapper:has(> .shg-gallery__hero) { --shg-gal-pad: 32px; padding-bottom: 96px !important; }
  html body #dm .shg-gallery__hero.shg-gallery__hero { padding-top: 64px !important; padding-bottom: 40px !important; }
}

/* ---------- Phones ---------- */
@media screen and (max-width: 767px) {
  html body #dm .dmRespRowsWrapper:has(> .shg-gallery__hero) { --shg-gal-pad: 16px; padding-bottom: 72px !important; }
  html body #dm .shg-gallery__hero.shg-gallery__hero { padding-top: 40px !important; padding-bottom: 24px !important; }
  html body #dm .shg-gallery__hero .dmNewParagraph.shg-gallery__title { font-size: 48px !important; }
  html body #dm .shg-gallery__hero .dmNewParagraph.shg-gallery__lead { font-size: 18px !important; margin-top: 16px !important; }
  html body #dm .dmRespRowsWrapper:has(> .shg-gallery__hero) .dmPhotoGallery { width: calc(100% + 12px) !important; margin: 0 -6px !important; }
  html body #dm .dmRespRowsWrapper:has(> .shg-gallery__hero) .dmPhotoGallery .photoGalleryThumbs { padding: 6px !important; }
  html body #dm .dmRespRowsWrapper:has(> .shg-gallery__hero) .dmPhotoGallery :is(.thumbnailInnerWrapper, .image-container) { border-radius: 16px !important; }
  html body #dm .dmRespRowsWrapper:has(> .shg-gallery__hero) .dmPhotoGallery .caption-container { padding: 56px 18px 16px !important; border-radius: 0 0 16px 16px !important; }
  html body #dm .dmRespRowsWrapper:has(> .shg-gallery__hero) .dmPhotoGallery .caption-title { font-size: 19px !important; }
  html body #dm .dmRespRowsWrapper:has(> .shg-gallery__hero) .dmPhotoGallery .photoGalleryViewAll { width: 100% !important; margin-top: 28px !important; }
}

/* ===== Special thanks page ===== */
/* =====================================================================
   SUNDERLAND HOME GROWN REDESIGN: SPECIAL THANKS page (Acknowledgements, /thanks-to)
   Built into base.css (already linked site-wide), so there's no extra link to add.
   The page root has the class shg-thanks (from duda/thanks/after/thanks.html).

   Editor-safe: rules target the class on each widget (Duda keeps those) and style whatever
   is inside it, so editing words, links or logos in the editor keeps the design.
   ===================================================================== */

/* ---------- Page frame ---------- */
html #dm .shg-thanks.shg-thanks {
  --shg-thanks-pad: 40px;
  background-color: var(--shg-ground) !important;
  border: 0 !important;
  box-shadow: none !important;
  color: var(--shg-ink);
  font-family: var(--shg-font) !important;
  text-align: left !important;
}
html #dm .shg-thanks.shg-thanks > .dmRespRow {
  width: auto !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 max(var(--shg-thanks-pad), calc((100% - 88rem) / 2 + var(--shg-thanks-pad))) !important;
  text-align: left !important;
  background: transparent !important;
  background-image: none !important;
}
html #dm .shg-thanks.shg-thanks > .dmRespRow::before { display: none !important; }
html #dm .shg-thanks.shg-thanks .dmRespColsWrapper {
  display: grid !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
}
html #dm .shg-thanks.shg-thanks .dmRespCol {
  float: none !important;
  width: auto !important;
  max-width: none !important;
  min-height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* ---------- Every text widget, and whatever the editor puts inside it ---------- */
html #dm .shg-thanks.shg-thanks .dmNewParagraph {
  margin: 0 !important;
  padding: 0 !important;
  width: auto !important;
  max-width: none !important;
  text-align: left !important;
  color: var(--shg-ink) !important;
  font-family: var(--shg-font) !important;
  font-size: 18px !important;
  font-weight: 400 !important;
  line-height: 1.6 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  background: transparent !important;
}
html #dm .shg-thanks.shg-thanks .dmNewParagraph * {
  color: inherit !important;
  font-family: inherit !important;
  font-size: inherit !important;
  font-weight: inherit !important;
  line-height: inherit !important;
  letter-spacing: inherit !important;
  text-transform: none !important;
  text-align: inherit !important;
  background: transparent !important;
  margin: 0 !important;
  padding: 0 !important;
}
html #dm .shg-thanks.shg-thanks .dmNewParagraph :is(b, strong) { font-weight: 700 !important; }
html #dm .shg-thanks.shg-thanks .dmNewParagraph a {
  color: var(--shg-forest) !important;
  font-weight: 700 !important;
  text-decoration: underline !important;
  text-decoration-color: var(--shg-leaf) !important;
  text-decoration-thickness: 2px !important;
  text-underline-offset: 4px !important;
}
html #dm .shg-thanks.shg-thanks a:focus-visible {
  outline: 3px solid var(--shg-forest) !important;
  outline-offset: 3px !important;
  border-radius: 2px;
}

/* Shared type */
html #dm .shg-thanks.shg-thanks .dmNewParagraph.shg-thanks__eyebrow {
  display: inline-flex !important;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px !important;
  color: var(--shg-forest) !important;
  font-size: 16px !important;
  font-weight: 700 !important;
}
html #dm .shg-thanks.shg-thanks .dmNewParagraph.shg-thanks__eyebrow::before {
  content: "";
  width: 12px;
  height: 12px;
  background: var(--shg-leaf);
  border-radius: 0 100% 0 100%;
}
html #dm .shg-thanks.shg-thanks .dmNewParagraph.shg-thanks__title {
  display: block !important;
  color: var(--shg-forest) !important;
  font-size: clamp(2.75rem, 6.4vw, 6rem) !important;
  font-weight: 700 !important;
  line-height: 0.98 !important;
  letter-spacing: -0.035em !important;
}
html #dm .shg-thanks.shg-thanks .dmNewParagraph.shg-thanks__h2 {
  display: block !important;
  color: var(--shg-forest) !important;
  font-size: clamp(2rem, 3.6vw, 3.25rem) !important;
  font-weight: 700 !important;
  line-height: 1.05 !important;
  letter-spacing: -0.025em !important;
}
html #dm .shg-thanks.shg-thanks .dmNewParagraph.shg-thanks__lead {
  color: var(--shg-forest) !important;
  font-size: clamp(1.2rem, 1.7vw, 1.45rem) !important;
  font-weight: 700 !important;
  line-height: 1.4 !important;
}
html #dm .shg-thanks.shg-thanks .dmNewParagraph.shg-thanks__body { color: var(--shg-soft) !important; }
html #dm .shg-thanks.shg-thanks .dmNewParagraph.shg-thanks__lead + .dmNewParagraph { margin-top: 16px !important; }

/* Photos and logos */
html #dm .shg-thanks.shg-thanks .imageWidget {
  width: 100% !important;
  max-width: none !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0 !important;
}
html #dm .shg-thanks.shg-thanks .imageWidget :is(a, img) { display: block !important; width: 100% !important; }
html #dm .shg-thanks.shg-thanks .imageWidget img { height: auto !important; }

/* ---------- Header ---------- */
html #dm .shg-thanks.shg-thanks > .shg-thanks__hero { padding-top: 88px !important; }
html #dm .shg-thanks.shg-thanks .shg-thanks__hero .dmRespColsWrapper {
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 32px 64px;
  align-items: end;
}

/* ---------- Team photo ---------- */
html #dm .shg-thanks.shg-thanks > .shg-thanks__photo { margin-top: 56px !important; }
html #dm .shg-thanks.shg-thanks .shg-thanks__hero-img img {
  aspect-ratio: 2.13 / 1;
  object-fit: cover;
  object-position: center 60%;
  border-radius: 28px !important;
}

/* ---------- Section headings ---------- */
html #dm .shg-thanks.shg-thanks > .shg-thanks__head { margin-top: 112px !important; margin-bottom: 40px !important; }
html #dm .shg-thanks.shg-thanks > .shg-thanks__head--more { margin-top: 96px !important; }

/* ---------- Supporter cards ---------- */
html #dm .shg-thanks.shg-thanks .shg-thanks__cards .dmRespColsWrapper {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
html #dm .shg-thanks.shg-thanks .dmRespCol.shg-thanks__card {
  display: flex !important;
  flex-direction: column;
  padding: 32px !important;
  border-radius: 24px !important;
  background: #fff !important;
  box-shadow: 0 1px 2px rgba(23, 58, 34, 0.06), 0 16px 40px -28px rgba(23, 58, 34, 0.5);
}
/* Logo sits on a white panel, never cropped */
html #dm .shg-thanks.shg-thanks .shg-thanks__logo {
  display: flex !important;
  align-items: center;
  justify-content: center;
  height: 168px !important;
  padding: 8px 16px !important;
  border-radius: 16px !important;
  background: #fff !important;
  border: 1px solid var(--shg-stone) !important;
}
html #dm .shg-thanks.shg-thanks .shg-thanks__logo :is(a, img) { width: 100% !important; height: 100% !important; max-width: 100% !important; }
html #dm .shg-thanks.shg-thanks .shg-thanks__logo img { object-fit: contain; border-radius: 0 !important; }
html #dm .shg-thanks.shg-thanks .dmNewParagraph.shg-thanks__name {
  display: block !important;
  margin-top: 28px !important;
  color: var(--shg-forest) !important;
  font-size: 24px !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  letter-spacing: -0.01em !important;
}
html #dm .shg-thanks.shg-thanks .dmNewParagraph.shg-thanks__text {
  margin-top: 12px !important;
  color: var(--shg-soft) !important;
}

/* ---------- "With thanks also to" logo tiles ---------- */
html #dm .shg-thanks.shg-thanks .shg-thanks__more .dmRespColsWrapper {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
html #dm .shg-thanks.shg-thanks .dmRespCol.shg-thanks__tile {
  padding: 16px 16px 20px !important;
  border-radius: 24px !important;
  background: #fff !important;
  box-shadow: 0 1px 2px rgba(23, 58, 34, 0.06), 0 16px 40px -28px rgba(23, 58, 34, 0.5);
}
html #dm .shg-thanks.shg-thanks .shg-thanks__tile .shg-thanks__logo { border: 0 !important; }
html #dm .shg-thanks.shg-thanks .dmNewParagraph.shg-thanks__tile-name {
  margin-top: 8px !important;
  text-align: center !important;
  color: var(--shg-forest) !important;
  font-size: 17px !important;
  font-weight: 700 !important;
  line-height: 1.3 !important;
}

/* ---------- Closing panel ---------- */
html #dm .shg-thanks.shg-thanks { padding-bottom: 112px !important; }
html #dm .shg-thanks.shg-thanks > .shg-thanks__cta { margin-top: 112px !important; }
html #dm .shg-thanks.shg-thanks .shg-thanks__cta .dmRespColsWrapper {
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 32px 64px;
  align-items: center;
  padding: 64px !important;
  border-radius: 32px !important;
  background-color: var(--shg-forest) !important;
}
html #dm .shg-thanks.shg-thanks .shg-thanks__cta .dmNewParagraph { color: #fff !important; }
html #dm .shg-thanks.shg-thanks .shg-thanks__cta .dmNewParagraph.shg-thanks__body { margin-top: 16px !important; color: rgba(255, 255, 255, 0.86) !important; font-size: 20px !important; }
html #dm .shg-thanks.shg-thanks .shg-thanks__cta-actions { display: flex !important; justify-content: flex-end; }
html #dm .shg-thanks.shg-thanks .dmNewParagraph.shg-thanks__button a {
  display: inline-flex !important;
  align-items: center;
  min-height: 56px;
  padding: 0 32px !important;
  border-radius: var(--shg-leaf-corner) !important;
  background-color: var(--shg-gold) !important;
  color: var(--shg-forest) !important;
  font-size: 18px !important;
  text-decoration: none !important;
  transition: transform .18s ease, background-color .18s ease;
}
html #dm .shg-thanks.shg-thanks .dmNewParagraph.shg-thanks__button a:hover { background-color: var(--shg-gold-hover) !important; transform: translateY(-2px); }
html #dm .shg-thanks.shg-thanks .shg-thanks__cta a:focus-visible { outline-color: var(--shg-gold) !important; }

@media (prefers-reduced-motion: reduce) {
  html #dm .shg-thanks.shg-thanks .dmNewParagraph.shg-thanks__button a { transition: none; transform: none !important; }
}

/* ---------- Tablet ---------- */
@media screen and (max-width: 1024px) {
  html #dm .shg-thanks.shg-thanks { --shg-thanks-pad: 32px; }
  html #dm .shg-thanks.shg-thanks > .shg-thanks__hero { padding-top: 64px !important; }
  html #dm .shg-thanks.shg-thanks .shg-thanks__hero .dmRespColsWrapper { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  html #dm .shg-thanks.shg-thanks .dmNewParagraph.shg-thanks__lead { max-width: 36ch !important; }
  html #dm .shg-thanks.shg-thanks .dmNewParagraph.shg-thanks__body { max-width: 60ch !important; }
  html #dm .shg-thanks.shg-thanks > .shg-thanks__photo { margin-top: 40px !important; }
  html #dm .shg-thanks.shg-thanks .shg-thanks__hero-img img { aspect-ratio: 16 / 9; border-radius: 24px !important; }
  html #dm .shg-thanks.shg-thanks > .shg-thanks__head { margin-top: 88px !important; margin-bottom: 32px !important; }
  html #dm .shg-thanks.shg-thanks .dmRespCol.shg-thanks__card { padding: 24px !important; }
  html #dm .shg-thanks.shg-thanks .shg-thanks__logo { height: 144px !important; }
  html #dm .shg-thanks.shg-thanks { padding-bottom: 88px !important; }
  html #dm .shg-thanks.shg-thanks > .shg-thanks__cta { margin-top: 88px !important; }
  html #dm .shg-thanks.shg-thanks .shg-thanks__cta .dmRespColsWrapper { grid-template-columns: minmax(0, 1fr); gap: 28px; padding: 48px !important; }
  html #dm .shg-thanks.shg-thanks .shg-thanks__cta-actions { justify-content: flex-start; }
}

/* ---------- Phones ---------- */
@media screen and (max-width: 767px) {
  html #dm .shg-thanks.shg-thanks { --shg-thanks-pad: 16px; }
  html #dm .shg-thanks.shg-thanks > .shg-thanks__hero { padding-top: 40px !important; }
  html #dm .shg-thanks.shg-thanks .dmNewParagraph.shg-thanks__title { font-size: 48px !important; }
  html #dm .shg-thanks.shg-thanks .dmNewParagraph.shg-thanks__body { font-size: 17px !important; }
  html #dm .shg-thanks.shg-thanks > .shg-thanks__photo { margin-top: 32px !important; }
  html #dm .shg-thanks.shg-thanks .shg-thanks__hero-img img { aspect-ratio: 4 / 3; object-position: 30% 60%; border-radius: 20px !important; }
  html #dm .shg-thanks.shg-thanks > .shg-thanks__head { margin-top: 64px !important; margin-bottom: 24px !important; }
  html #dm .shg-thanks.shg-thanks > .shg-thanks__head--more { margin-top: 64px !important; }
  html #dm .shg-thanks.shg-thanks .dmNewParagraph.shg-thanks__h2 { font-size: 32px !important; }
  html #dm .shg-thanks.shg-thanks :is(.shg-thanks__cards, .shg-thanks__more) .dmRespColsWrapper { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  html #dm .shg-thanks.shg-thanks .dmRespCol.shg-thanks__card { padding: 20px !important; border-radius: 20px !important; }
  html #dm .shg-thanks.shg-thanks .shg-thanks__logo { height: 136px !important; }
  html #dm .shg-thanks.shg-thanks .dmNewParagraph.shg-thanks__name { margin-top: 20px !important; font-size: 21px !important; }
  html #dm .shg-thanks.shg-thanks .dmNewParagraph.shg-thanks__text { font-size: 17px !important; }
  html #dm .shg-thanks.shg-thanks .dmRespCol.shg-thanks__tile { border-radius: 20px !important; }
  html #dm .shg-thanks.shg-thanks { padding-bottom: 64px !important; }
  html #dm .shg-thanks.shg-thanks > .shg-thanks__cta { margin-top: 64px !important; }
  html #dm .shg-thanks.shg-thanks .shg-thanks__cta .dmRespColsWrapper { padding: 32px 24px !important; border-radius: 24px !important; }
  html #dm .shg-thanks.shg-thanks .shg-thanks__cta-actions .dmNewParagraph,
  html #dm .shg-thanks.shg-thanks .dmNewParagraph.shg-thanks__button a { width: 100% !important; justify-content: center; }
}
