/* MAK ENERGY HELLAS — Single Project v1.4
   Clean project page without repeated generic headings or category bar. */

body.single-meh_project {
  overflow-x: clip;
  background: #f7f4ed;
}

/* Reset only the page content, not the global site header/footer. */
body.single-meh_project #content,
body.single-meh_project #content .site-content,
body.single-meh_project #content .content-area,
body.single-meh_project #content .ast-container,
body.single-meh_project #primary,
body.single-meh_project #main,
body.single-meh_project #content .ast-article-single,
body.single-meh_project #content .entry-content {
  box-sizing: border-box;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

body.single-meh_project #content,
body.single-meh_project #primary,
body.single-meh_project #main {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

body.single-meh_project #content .ast-article-single {
  background: transparent;
  box-shadow: none;
}

.meh-project-single,
.meh-project-article {
  margin: 0;
  padding: 0;
}

/* ---------------- HERO ---------------- */

.meh-project-hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  box-sizing: border-box;

  width: auto;
  min-height: clamp(420px, 31vw, 490px);
  margin: 20px 22px 0;

  overflow: hidden;
  background-color: #111817;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.meh-project-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;

  background:
    linear-gradient(
      0deg,
      rgba(7, 12, 11, .82) 0%,
      rgba(7, 12, 11, .46) 35%,
      rgba(7, 12, 11, .05) 75%
    ),
    linear-gradient(
      90deg,
      rgba(7, 12, 11, .46) 0%,
      rgba(7, 12, 11, .11) 62%,
      transparent 100%
    );
}

.meh-project-hero-inner {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-sizing: border-box;

  width: 100%;
  min-height: inherit;
  padding:
    clamp(26px, 2.7vw, 38px)
    clamp(32px, 4.7vw, 68px)
    clamp(32px, 3.6vw, 48px);
}

.meh-project-back {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 9px;

  padding-bottom: 7px;
  border-bottom: 1px solid rgba(209, 165, 86, .68);

  color: #f6efe4;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: .14em;
  text-decoration: none;
}

.meh-project-back:hover,
.meh-project-back:focus-visible {
  color: #d1a556;
}

.meh-project-hero-copy {
  width: 100%;
  max-width: 680px;
}

.meh-project-kicker,
.meh-project-cta p,
.meh-project-content-heading > p {
  margin: 0 0 13px;

  color: #d1a556;
  font-size: 10px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: .17em;
  text-transform: uppercase;
}

.meh-project-title {
  width: 100%;
  max-width: 680px;
  margin: 0 0 15px;

  color: #f7f2e9;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(34px, 3.15vw, 46px);
  font-weight: 400;
  line-height: 1.03;
  letter-spacing: -.026em;

  word-break: normal;
  overflow-wrap: normal;
  hyphens: none;
}

.meh-project-lead {
  width: 100%;
  max-width: 600px;
  margin: 0;

  color: rgba(247, 242, 233, .88);
  font-size: 14.5px;
  line-height: 1.64;
}

/* ---------------- OPTIONAL FACTS ---------------- */

.meh-project-facts {
  box-sizing: border-box;
  width: auto;
  margin: 0 22px;

  border-bottom: 1px solid rgba(38, 43, 39, .12);
  background: #f1ede4;
}

.meh-project-facts-inner {
  display: flex;
  justify-content: center;
  max-width: 980px;
  margin: 0 auto;
}

.meh-project-fact {
  flex: 1 1 0;
  min-width: 0;
  max-width: 270px;
  min-height: 66px;
  padding: 15px 22px;

  border-right: 1px solid rgba(38, 43, 39, .10);
  text-align: center;
}

.meh-project-fact:last-child {
  border-right: 0;
}

.meh-project-fact-label {
  display: block;
  margin-bottom: 5px;

  color: #b88a3d;
  font-size: 8.5px;
  line-height: 1.4;
  letter-spacing: .15em;
}

.meh-project-fact strong {
  color: #252a26;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.2;
}

/* ---------------- PROJECT TEXT ---------------- */

.meh-project-content-section {
  box-sizing: border-box;
  width: calc(100% - 88px);
  max-width: 920px;
  margin: 0 auto;
  padding: clamp(48px, 4.6vw, 62px) 0 clamp(54px, 5vw, 68px);
}

.meh-project-content-heading {
  margin: 0 0 20px;
  text-align: center;
}

.meh-project-content-heading > p {
  position: relative;
  display: inline-block;
  margin: 0;
  padding-top: 17px;
}

.meh-project-content-heading > p::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;

  width: 42px;
  height: 1px;

  background: #b88a3d;
  transform: translateX(-50%);
}

.meh-project-content {
  max-width: 780px;
  margin: 0 auto;

  color: #626862;
  font-size: 16px;
  line-height: 1.75;
  text-align: left;
}

.meh-project-content > *:first-child {
  margin-top: 0;
}

.meh-project-content > *:last-child {
  margin-bottom: 0;
}

.meh-project-content h2,
.meh-project-content h3,
.meh-project-content h4 {
  color: #252a26;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 400;
  line-height: 1.12;
}

.meh-project-content h2 {
  font-size: clamp(27px, 2.3vw, 35px);
}

.meh-project-content h3 {
  font-size: clamp(23px, 1.9vw, 29px);
}

.meh-project-content img {
  display: block;
  width: 100%;
  height: auto;
}

.meh-project-content .wp-block-gallery,
.meh-project-content .wp-block-image,
.meh-project-content figure {
  margin-top: clamp(25px, 3.5vw, 42px);
  margin-bottom: clamp(25px, 3.5vw, 42px);
}

/* ---------------- PROJECT NAVIGATION ---------------- */

.meh-project-navigation {
  box-sizing: border-box;
  width: auto;
  margin-right: 22px;
  margin-left: 22px;

  border-top: 1px solid rgba(38, 43, 39, .12);
  border-bottom: 1px solid rgba(38, 43, 39, .12);
  background: #f7f4ed;
}

.meh-project-navigation-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: stretch;

  max-width: 1160px;
  margin: 0 auto;
}

.meh-project-nav-item {
  min-height: 94px;
}

.meh-project-nav-item a {
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-sizing: border-box;

  width: 100%;
  height: 100%;
  padding: 18px 26px;

  color: #252a26;
  text-decoration: none;
}

.meh-project-nav-next a {
  align-items: flex-end;
  text-align: right;
}

.meh-project-nav-item span {
  margin-bottom: 6px;

  color: #b88a3d;
  font-size: 8.5px;
  line-height: 1.4;
  letter-spacing: .14em;
}

.meh-project-nav-item strong {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.18;
}

.meh-project-nav-all {
  align-self: center;
  padding: 10px 18px;

  border-right: 1px solid rgba(38, 43, 39, .12);
  border-left: 1px solid rgba(38, 43, 39, .12);

  color: #252a26;
  font-size: 8.5px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: .14em;
  text-decoration: none;
  white-space: nowrap;
}

/* ---------------- CTA ---------------- */

.meh-project-cta {
  box-sizing: border-box;
  width: auto;
  margin-right: 22px;
  margin-left: 22px;
  padding: clamp(50px, 4.8vw, 64px) 24px;

  text-align: center;
  background: #eee9df;
}

.meh-project-cta-inner {
  max-width: 700px;
  margin: 0 auto;
}

.meh-project-cta h2 {
  margin: 0 0 22px;

  color: #252a26;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(32px, 2.95vw, 41px);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -.024em;
}

.meh-project-cta a {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-height: 44px;
  padding: 0 24px;

  background: #292e2a;
  color: #fff;
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: .13em;
  text-decoration: none;
}

.meh-project-cta a:hover,
.meh-project-cta a:focus-visible {
  background: #b88a3d;
}

/* ---------------- TABLET ---------------- */

@media (max-width: 1024px) {
  .meh-project-hero,
  .meh-project-facts,
  .meh-project-navigation,
  .meh-project-cta {
    width: auto;
    margin-right: 16px;
    margin-left: 16px;
  }

  .meh-project-hero {
    min-height: 460px;
  }

  .meh-project-hero-inner {
    padding: 30px 38px 40px;
  }

  .meh-project-content-section {
    width: calc(100% - 64px);
    max-width: 820px;
    padding: 50px 0 58px;
  }
}

/* ---------------- MOBILE ---------------- */

@media (max-width: 700px) {
  .meh-project-hero,
  .meh-project-facts,
  .meh-project-navigation,
  .meh-project-cta {
    width: auto;
    margin-right: 12px;
    margin-left: 12px;
  }

  .meh-project-hero {
    min-height: 480px;
    margin-top: 14px;
    background-position: 62% center;
  }

  .meh-project-hero-inner {
    padding: 24px 21px 31px;
  }

  .meh-project-title {
    font-size: clamp(31px, 8.5vw, 39px);
  }

  .meh-project-lead {
    font-size: 14px;
  }

  .meh-project-facts-inner {
    display: grid;
    grid-template-columns: 1fr;
  }

  .meh-project-fact {
    max-width: none;
    min-height: auto;
    padding: 15px 20px;

    border-right: 0;
    border-bottom: 1px solid rgba(38, 43, 39, .10);
  }

  .meh-project-fact:last-child {
    border-bottom: 0;
  }

  .meh-project-content-section {
    width: calc(100% - 48px);
    padding: 44px 0 50px;
  }

  .meh-project-content {
    font-size: 15px;
  }

  .meh-project-navigation-inner {
    grid-template-columns: 1fr;
  }

  .meh-project-nav-item {
    min-height: 90px;
  }

  .meh-project-nav-next a {
    align-items: flex-start;
    text-align: left;
  }

  .meh-project-nav-all {
    justify-self: stretch;
    text-align: center;
    border: 0;
    border-top: 1px solid rgba(38, 43, 39, .12);
    border-bottom: 1px solid rgba(38, 43, 39, .12);
  }

  .meh-project-cta {
    padding: 46px 20px 52px;
  }

  .meh-project-cta h2 {
    font-size: clamp(30px, 8.1vw, 38px);
  }
}

/* Project gallery: contained within the same content edges as the project copy. */
html body.single-meh_project .meh-project-gallery {
  box-sizing: border-box;
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  padding: 0 var(--meh-project-edge, 28px) clamp(46px, 5vw, 72px);
}

html body.single-meh_project .meh-project-gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 24px);
}

html body.single-meh_project .meh-project-gallery-item {
  aspect-ratio: 4 / 3;
  margin: 0;
  overflow: hidden;
}

html body.single-meh_project .meh-project-gallery-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 700px) {
  html body.single-meh_project .meh-project-gallery-grid { grid-template-columns: 1fr; }
}


/* v1.5 — exact symmetric page edges */
body.single-meh_project .meh-project-single {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

body.single-meh_project .meh-project-hero,
body.single-meh_project .meh-project-facts,
body.single-meh_project .meh-project-navigation,
body.single-meh_project .meh-project-cta {
  left: auto;
  right: auto;
  max-width: none;
}


/* =========================================================
   v1.6 — ASTRA STRUCTURE FIX
   The project and reusable footer must stack vertically.
   ========================================================= */

body.single-meh_project #content > .ast-container,
body.single-meh_project #content .site-content > .ast-container {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

body.single-meh_project #primary.meh-project-single {
  display: block !important;
  float: none !important;
  clear: both !important;

  box-sizing: border-box !important;
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;

  margin: 0 !important;
  padding: 0 !important;
}

body.single-meh_project .meh-project-article {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
}

/* The reusable company footer is now inside #primary and must start below
   all project sections, never beside the hero. */
body.single-meh_project #primary > .wp-block-group,
body.single-meh_project #primary > footer,
body.single-meh_project #primary > [class*="footer"] {
  clear: both !important;
  width: 100% !important;
  max-width: none !important;
}


/* =========================================================
   v1.7 — CENTERED DESCRIPTION, BALANCED NAVIGATION, SMALLER CTA
   ========================================================= */

/* The introductory project text sits on two balanced centered lines. */
body.single-meh_project .meh-project-content-section {
  max-width: 980px !important;
  padding-top: clamp(42px, 4vw, 54px) !important;
  padding-bottom: clamp(44px, 4.3vw, 58px) !important;
}

body.single-meh_project .meh-project-content-heading {
  margin-bottom: 22px !important;
}

body.single-meh_project .meh-project-content {
  max-width: 820px !important;
  margin-right: auto !important;
  margin-left: auto !important;
}

body.single-meh_project .meh-project-content > p:first-child {
  max-width: 790px !important;
  margin-right: auto !important;
  margin-left: auto !important;

  text-align: center !important;
  text-wrap: balance;
}

/* Navigation is now a centred composition.
   If only a next or previous project exists, it remains centred. */
body.single-meh_project .meh-project-navigation-inner {
  display: block !important;
  max-width: 920px !important;
  padding: 22px 24px 26px !important;
  text-align: center !important;
}

body.single-meh_project .meh-project-nav-all {
  display: inline-block !important;
  align-self: auto !important;

  padding: 0 0 8px !important;

  border: 0 !important;
  border-bottom: 1px solid rgba(184, 138, 61, .65) !important;

  font-size: 9px !important;
  text-align: center !important;
}

body.single-meh_project .meh-project-navigation-links {
  display: flex !important;
  align-items: stretch !important;
  justify-content: center !important;
  gap: clamp(22px, 4vw, 54px) !important;

  margin-top: 19px !important;
}

body.single-meh_project .meh-project-nav-item {
  flex: 0 1 360px !important;
  min-height: 0 !important;
}

body.single-meh_project .meh-project-nav-item:empty {
  display: none !important;
}

body.single-meh_project .meh-project-nav-item a {
  align-items: center !important;
  justify-content: flex-start !important;

  min-height: 68px !important;
  padding: 10px 18px !important;

  text-align: center !important;
}

body.single-meh_project .meh-project-nav-next a,
body.single-meh_project .meh-project-nav-prev a {
  align-items: center !important;
  text-align: center !important;
}

body.single-meh_project .meh-project-nav-item span {
  margin-bottom: 7px !important;
}

body.single-meh_project .meh-project-nav-item strong {
  font-size: 17px !important;
}

/* The CTA remains prominent but no longer dominates the page. */
body.single-meh_project .meh-project-cta {
  padding-top: clamp(42px, 4vw, 52px) !important;
  padding-bottom: clamp(44px, 4.2vw, 56px) !important;
}

body.single-meh_project .meh-project-cta-inner {
  max-width: 620px !important;
}

body.single-meh_project .meh-project-cta h2 {
  max-width: 520px !important;
  margin-right: auto !important;
  margin-bottom: 21px !important;
  margin-left: auto !important;

  font-size: clamp(28px, 2.65vw, 36px) !important;
  line-height: 1.07 !important;
}

@media (max-width: 700px) {
  body.single-meh_project .meh-project-content > p:first-child {
    text-align: left !important;
    text-wrap: pretty;
  }

  body.single-meh_project .meh-project-navigation-inner {
    padding: 20px 18px 22px !important;
  }

  body.single-meh_project .meh-project-navigation-links {
    flex-direction: column !important;
    gap: 8px !important;
  }

  body.single-meh_project .meh-project-nav-item {
    flex-basis: auto !important;
  }

  body.single-meh_project .meh-project-nav-item a {
    min-height: 62px !important;
  }

  body.single-meh_project .meh-project-cta h2 {
    font-size: clamp(28px, 7.8vw, 35px) !important;
  }
}


/* =========================================================
   v1.8 — REAL CENTRED NAVIGATION
   Empty previous/next placeholders no longer exist in the HTML.
   ========================================================= */

body.single-meh_project .meh-project-navigation-inner {
  box-sizing: border-box !important;
  width: 100% !important;
  max-width: 860px !important;
  margin: 0 auto !important;
  padding: 18px 24px 21px !important;
  text-align: center !important;
}

body.single-meh_project .meh-project-nav-all {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;

  margin: 0 !important;
  padding: 0 0 7px !important;

  border: 0 !important;
  border-bottom: 1px solid rgba(184, 138, 61, .66) !important;

  color: #252a26 !important;
  font-size: 9px !important;
  line-height: 1.4 !important;
  letter-spacing: .14em !important;
  text-align: center !important;
}

body.single-meh_project .meh-project-navigation-links {
  display: grid !important;
  align-items: start !important;
  justify-content: center !important;

  width: 100% !important;
  margin: 15px auto 0 !important;
}

body.single-meh_project .meh-project-navigation-links.has-single {
  grid-template-columns: minmax(0, 410px) !important;
}

body.single-meh_project .meh-project-navigation-links.has-both {
  grid-template-columns: repeat(2, minmax(0, 360px)) !important;
  gap: clamp(26px, 4vw, 52px) !important;
}

body.single-meh_project a.meh-project-nav-item {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: flex-start !important;

  box-sizing: border-box !important;
  width: 100% !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 8px 14px 4px !important;

  color: #252a26 !important;
  text-align: center !important;
  text-decoration: none !important;
}

body.single-meh_project a.meh-project-nav-item span {
  margin: 0 0 6px !important;

  color: #b88a3d !important;
  font-size: 8.5px !important;
  line-height: 1.4 !important;
  letter-spacing: .14em !important;
}

body.single-meh_project a.meh-project-nav-item strong {
  display: block !important;

  font-family: "Cormorant Garamond", Georgia, serif !important;
  font-size: 17px !important;
  font-weight: 400 !important;
  line-height: 1.18 !important;
  text-align: center !important;
}

body.single-meh_project a.meh-project-nav-item:hover strong,
body.single-meh_project a.meh-project-nav-item:focus-visible strong {
  color: #9d722d !important;
}

/* CTA: visibly smaller and tighter than before. */
body.single-meh_project .meh-project-cta {
  padding-top: clamp(38px, 3.7vw, 47px) !important;
  padding-bottom: clamp(40px, 3.9vw, 50px) !important;
}

body.single-meh_project .meh-project-cta-inner {
  max-width: 560px !important;
}

body.single-meh_project .meh-project-cta h2 {
  max-width: 470px !important;
  margin-right: auto !important;
  margin-bottom: 19px !important;
  margin-left: auto !important;

  font-size: clamp(27px, 2.35vw, 33px) !important;
  line-height: 1.08 !important;
}

/* Keep the gap between navigation and CTA deliberate but compact. */
body.single-meh_project .meh-project-navigation {
  min-height: 0 !important;
}

@media (max-width: 700px) {
  body.single-meh_project .meh-project-navigation-inner {
    padding: 17px 16px 19px !important;
  }

  body.single-meh_project .meh-project-navigation-links.has-single,
  body.single-meh_project .meh-project-navigation-links.has-both {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }

  body.single-meh_project .meh-project-cta h2 {
    font-size: clamp(27px, 7.4vw, 33px) !important;
  }
}


/* =========================================================
   v1.9 — NORMAL CTA TITLE + EXACT FOOTER EDGES
   ========================================================= */

/* The final call-to-action title is intentionally smaller than page headings. */
body.single-meh_project .meh-project-cta {
  padding-top: clamp(34px, 3.3vw, 42px) !important;
  padding-bottom: clamp(36px, 3.5vw, 45px) !important;
}

body.single-meh_project .meh-project-cta-inner {
  max-width: 520px !important;
}

body.single-meh_project .meh-project-cta h2 {
  max-width: 430px !important;
  margin-right: auto !important;
  margin-bottom: 18px !important;
  margin-left: auto !important;

  font-size: clamp(24px, 2.05vw, 30px) !important;
  line-height: 1.11 !important;
  letter-spacing: -0.018em !important;
}

/* Wrap the reusable footer with the same 22px outside margins as the page. */
/* Neutralise alignfull/viewport breakout rules inside the reusable footer. */
body.single-meh_project .meh-project-site-footer > *,
body.single-meh_project .meh-project-site-footer > .wp-block-group,
body.single-meh_project .meh-project-site-footer .alignfull {
  box-sizing: border-box !important;

  width: 100% !important;
  max-width: 100% !important;

  margin-right: 0 !important;
  margin-left: 0 !important;
  padding-right: inherit;
  padding-left: inherit;
}

body.single-meh_project .meh-project-site-footer .alignwide {
  max-width: 100% !important;
  margin-right: auto !important;
  margin-left: auto !important;
}

/* CTA and footer now share exactly the same vertical edges. */
body.single-meh_project .meh-project-cta,
body.single-meh_project .meh-project-site-footer {
  border-right-width: 0 !important;
  border-left-width: 0 !important;
}

@media (max-width: 1024px) {
  body.single-meh_project .meh-project-site-footer {
    margin-right: 16px !important;
    margin-left: 16px !important;
  }

  body.single-meh_project .meh-project-cta h2 {
    font-size: clamp(24px, 3vw, 29px) !important;
  }
}

@media (max-width: 700px) {
  body.single-meh_project .meh-project-site-footer {
    margin-right: 12px !important;
    margin-left: 12px !important;
  }

  body.single-meh_project .meh-project-cta h2 {
    font-size: clamp(25px, 6.8vw, 30px) !important;
  }
}


/* =========================================================
   v2.0 — HARD TITLE SIZE + ONE SHARED PAGE GRID
   ========================================================= */

/* Exact title size; this class did not exist in older versions. */
html body.single-meh_project .meh-project-cta .meh-project-cta-title {
  width: auto !important;
  max-width: 380px !important;

  margin: 0 auto 18px !important;
  padding: 0 !important;

  font-family: "Cormorant Garamond", Georgia, serif !important;
  font-size: 25px !important;
  font-weight: 400 !important;
  line-height: 1.12 !important;
  letter-spacing: -0.015em !important;
}

/* The reusable footer contains old alignfull breakout CSS.
   Reset the actual breakout properties, not only its width. */
html body.single-meh_project .meh-project-site-footer {
  position: relative !important;
  left: auto !important;
  right: auto !important;

  padding: 0 !important;
  overflow: hidden !important;
}

html body.single-meh_project .meh-project-site-footer > *,
html body.single-meh_project .meh-project-site-footer > .wp-block-group,
html body.single-meh_project .meh-project-site-footer .alignfull,
html body.single-meh_project .meh-project-site-footer [class~="alignfull"] {
  position: static !important;
  inset: auto !important;
  left: auto !important;
  right: auto !important;

  box-sizing: border-box !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;

  margin-right: 0 !important;
  margin-left: 0 !important;

  transform: none !important;
}

/* Some block themes apply the viewport breakout one level deeper. */
html body.single-meh_project .meh-project-site-footer .wp-block-group {
  max-width: 100% !important;
}

html body.single-meh_project .meh-project-site-footer .wp-block-group.alignfull {
  width: 100% !important;
  margin-right: 0 !important;
  margin-left: 0 !important;
}

/* Do not let the black background extend beyond the footer wrapper. */
html body.single-meh_project .meh-project-site-footer::before,
html body.single-meh_project .meh-project-site-footer::after {
  max-width: 100% !important;
}

@media (max-width: 1024px) {
  body.single-meh_project {
    --meh-project-gutter: 16px;
  }

  html body.single-meh_project .meh-project-cta .meh-project-cta-title {
    font-size: 24px !important;
  }
}

@media (max-width: 700px) {
  body.single-meh_project {
    --meh-project-gutter: 12px;
  }

  html body.single-meh_project .meh-project-cta .meh-project-cta-title {
    font-size: 23px !important;
  }
}


/* =========================================================
   v2.1 — SELF-CONTAINED PROJECT FOOTER
   No reusable block, alignfull, viewport breakout or negative margins.
   ========================================================= */

html body.single-meh_project .meh-project-site-footer {
  display: block !important;
  clear: both !important;
  box-sizing: border-box !important;
  padding: 0 !important;

  background: #1d2321 !important;
  color: #aeb3ad !important;
}

html body.single-meh_project .meh-project-footer-inner {
  position: relative !important;
  display: grid !important;
  grid-template-columns: minmax(250px, 1.45fr) minmax(130px, .72fr) minmax(190px, .95fr) minmax(220px, 1fr) !important;
  column-gap: clamp(34px, 4vw, 72px) !important;
  row-gap: 34px !important;

  box-sizing: border-box !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;

  margin: 0 !important;
  padding:
    clamp(68px, 6vw, 92px)
    clamp(44px, 6vw, 94px)
    30px !important;

  background: #1d2321 !important;
}

html body.single-meh_project .meh-project-footer-inner,
html body.single-meh_project .meh-project-footer-inner * {
  box-sizing: border-box !important;
}

html body.single-meh_project .meh-project-footer-brand,
html body.single-meh_project .meh-project-footer-column,
html body.single-meh_project .meh-project-footer-contact {
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

html body.single-meh_project .meh-project-footer-logo {
  width: min(100%, 285px) !important;
  margin: 0 0 27px !important;
}

html body.single-meh_project .meh-project-footer-logo .custom-logo-link {
  display: inline-block !important;
  width: auto !important;
  max-width: 100% !important;
  margin: 0 !important;
}

html body.single-meh_project .meh-project-footer-logo img,
html body.single-meh_project .meh-project-footer-logo .custom-logo {
  display: block !important;
  width: auto !important;
  max-width: 100% !important;
  height: auto !important;
  max-height: 68px !important;
  object-fit: contain !important;
}

html body.single-meh_project .meh-project-footer-wordmark {
  display: inline-flex !important;
  flex-direction: column !important;
  color: #caa25f !important;
  font-family: "Cormorant Garamond", Georgia, serif !important;
  font-size: 29px !important;
  line-height: .92 !important;
  letter-spacing: .12em !important;
  text-decoration: none !important;
}

html body.single-meh_project .meh-project-footer-wordmark small {
  margin-top: 8px !important;
  font-family: Arial, sans-serif !important;
  font-size: 9px !important;
  letter-spacing: .48em !important;
  text-align: center !important;
}

html body.single-meh_project .meh-project-footer-brand > p,
html body.single-meh_project .meh-project-footer-contact > p {
  max-width: 370px !important;
  margin: 0 !important;
  color: #aeb3ad !important;
  font-size: 15px !important;
  line-height: 1.75 !important;
}

html body.single-meh_project .meh-project-footer-column h3,
html body.single-meh_project .meh-project-footer-contact h3 {
  margin: 0 0 24px !important;
  color: #c89a4d !important;
  font-family: Arial, sans-serif !important;
  font-size: 10px !important;
  font-weight: 600 !important;
  line-height: 1.4 !important;
  letter-spacing: .19em !important;
}

html body.single-meh_project .meh-project-footer-column nav {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  gap: 12px !important;
}

html body.single-meh_project .meh-project-footer-column a {
  color: #aeb3ad !important;
  font-size: 14px !important;
  line-height: 1.45 !important;
  text-decoration: none !important;
}

html body.single-meh_project .meh-project-footer-column a:hover,
html body.single-meh_project .meh-project-footer-column a:focus-visible {
  color: #d1a556 !important;
}

html body.single-meh_project .meh-project-footer-contact-link {
  display: inline-flex !important;
  align-items: center !important;
  gap: 13px !important;

  margin-top: 26px !important;
  padding: 0 0 9px !important;

  border-bottom: 1px solid rgba(200, 154, 77, .52) !important;

  color: #d1a556 !important;
  font-size: 10px !important;
  font-weight: 600 !important;
  line-height: 1.4 !important;
  letter-spacing: .14em !important;
  text-decoration: none !important;
}

html body.single-meh_project .meh-project-footer-bottom {
  grid-column: 1 / -1 !important;
  width: 100% !important;
  margin: 34px 0 0 !important;
  padding: 25px 0 0 !important;

  border-top: 1px solid rgba(255, 255, 255, .12) !important;
  text-align: center !important;
}

html body.single-meh_project .meh-project-footer-bottom p {
  margin: 0 !important;
  color: #a77e3f !important;
  font-size: 10px !important;
  line-height: 1.5 !important;
  letter-spacing: .14em !important;
}

/* Never display a second native theme footer on the custom project template. */
body.single-meh_project #colophon,
body.single-meh_project .site-below-footer-wrap,
body.single-meh_project .site-primary-footer-wrap {
  display: none !important;
}

@media (max-width: 1024px) {
  html body.single-meh_project .meh-project-site-footer,
  html body.single-meh_project .meh-project-cta {
    width: calc(100% - 32px) !important;
    max-width: calc(100% - 32px) !important;
  }

  html body.single-meh_project .meh-project-footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    padding: 60px 52px 28px !important;
  }

  html body.single-meh_project .meh-project-footer-bottom {
    margin-top: 20px !important;
  }
}

@media (max-width: 700px) {
  html body.single-meh_project .meh-project-site-footer,
  html body.single-meh_project .meh-project-cta {
    width: calc(100% - 24px) !important;
    max-width: calc(100% - 24px) !important;
  }

  html body.single-meh_project .meh-project-footer-inner {
    grid-template-columns: 1fr !important;
    row-gap: 38px !important;
    padding: 50px 28px 25px !important;
  }

  html body.single-meh_project .meh-project-footer-logo {
    max-width: 250px !important;
  }

  html body.single-meh_project .meh-project-footer-bottom {
    grid-column: 1 !important;
    margin-top: 8px !important;
    text-align: left !important;
  }
}

/* v2.2 — one canonical project-page edge system. */
html body.single-meh_project {
  --meh-project-edge: 22px;
}

html body.single-meh_project #primary.meh-project-single > .meh-project-article > .meh-project-hero,
html body.single-meh_project #primary.meh-project-single > .meh-project-article > .meh-project-facts,
html body.single-meh_project #primary.meh-project-single > .meh-project-article > .meh-project-navigation,
html body.single-meh_project #primary.meh-project-single > .meh-project-article > .meh-project-cta,
html body.single-meh_project #primary.meh-project-single > footer.meh-project-site-footer {
  box-sizing: border-box !important;
  width: calc(100% - (2 * var(--meh-project-edge))) !important;
  max-width: calc(100% - (2 * var(--meh-project-edge))) !important;
  min-width: 0 !important;
  margin-right: auto !important;
  margin-left: auto !important;
  left: auto !important;
  right: auto !important;
  transform: none !important;
}

html body.single-meh_project #primary.meh-project-single > footer.meh-project-site-footer {
  clear: both !important;
  display: block !important;
  overflow: hidden !important;
}

html body.single-meh_project #primary.meh-project-single .meh-project-cta .meh-project-cta-title {
  font-size: 25px !important;
  line-height: 1.12 !important;
  max-width: 380px !important;
  margin: 0 auto 18px !important;
}

@media (max-width: 1024px) {
  html body.single-meh_project { --meh-project-edge: 16px; }
  html body.single-meh_project #primary.meh-project-single .meh-project-cta .meh-project-cta-title {
    font-size: 24px !important;
  }
}

@media (max-width: 700px) {
  html body.single-meh_project { --meh-project-edge: 12px; }
  html body.single-meh_project #primary.meh-project-single .meh-project-cta .meh-project-cta-title {
    font-size: 23px !important;
  }
}
