/* JOR Garden V8 | Interior mobile consistency; WPConvert IDs and templates retained.
   Deliberately scoped to contact, garden vision intake and 1023px-and-below layouts. */
@media (max-width: 1023px) {
  #jg-mobile-menu .jg-v7-nav, #jg-mobile-menu .jg-v7-nav * {
    pointer-events:auto !important;
  }
  #jg-mobile-menu { isolation:isolate; }
  .jg-v7-nav {position:relative;z-index:3;}
  .jg-v7-menu-group, .jg-v7-main-link, .jg-v7-menu-cta, .jg-v7-submenu a {position:relative;z-index:4;touch-action:manipulation;}
  .jg-v7-menu-cta, .jg-v7-main-link, .jg-v7-submenu a {cursor:pointer;}
  #jg-mobile-menu .jg-v7-submenu[hidden] {display:none!important;}
  /* Common content widths / avoid cramped grid cards on tablet. */
  body:not(.home):not(.front-page) .site-main {min-width:0;}
  body:not(.home):not(.front-page) .site-main img {max-width:100%;}
  body:not(.home):not(.front-page) .jg-wrap {box-sizing:border-box;}
}
@media (max-width:767px) {
  /* Preserve small labels and captions, but make substantive content readable. */
  body:not(.home):not(.front-page) .site-main :is(.jg-intro p,.jg-waarom p,.tv-what p,.tv-expect p,.ct-form-aside p) {line-height:1.65;}
  body:not(.home):not(.front-page) .site-main :is(h1,h2,h3) {overflow-wrap:break-word;}
  body:not(.home):not(.front-page) .site-main .jg-wrap,
  body:not(.home):not(.front-page) .site-main .jg-wrap-narrow {min-width:0;max-width:100%;}
  body:not(.home):not(.front-page) .site-main .jg-shero[data-jg-hero] .jg-shero-media {
    height:clamp(410px,65svh,600px)!important;min-height:410px!important;
  }
  body:not(.home):not(.front-page) .site-main .jg-shero[data-jg-hero] .jg-shero-inner {box-sizing:border-box;}
}
/* CONTACT — The original captured page had only a 220px photo next to a text block.
   Turn that existing editable intro into a real image hero with text *on* the image.
   This preserves H1, image and all WPConvert editor IDs. */
body[data-garden-page='/contact'] .jg-hdr-spacer {display:none!important;height:0!important;}
body[data-garden-page='/contact'] .ct-intro[data-jg-hero] {
  position:relative;background:#26251e!important;border:0!important;overflow:hidden;isolation:isolate;
}
body[data-garden-page='/contact'] .ct-intro[data-jg-hero] .ct-intro-grid.jg-wrap {
  width:100%!important;max-width:1500px!important;min-height:clamp(470px,69svh,710px)!important;
  padding:clamp(120px,18svh,220px) clamp(28px,7vw,90px) clamp(56px,10svh,115px)!important;
  margin-inline:auto;box-sizing:border-box;display:flex!important;align-items:flex-end!important;
  position:relative;gap:0!important;
}
body[data-garden-page='/contact'] .ct-intro-grid > div:first-child {
  position:relative;z-index:2;width:100%;max-width:780px;
}
body[data-garden-page='/contact'] .ct-intro-grid > .ct-intro-img {
  position:absolute!important;z-index:0;inset:0;width:100%!important;height:100%!important;
  max-height:none!important;margin:0!important;aspect-ratio:auto!important;order:initial!important;
  overflow:hidden;background:#26251e;
}
body[data-garden-page='/contact'] .ct-intro-img img {
  display:block;width:100%;height:100%;object-fit:cover;object-position:50% 37%;
}
body[data-garden-page='/contact'] .ct-intro-grid::after {
  content:"";position:absolute;z-index:1;inset:0;pointer-events:none;
  background:linear-gradient(90deg,rgba(15,17,16,.81) 0%,rgba(15,17,16,.49) 50%,rgba(15,17,16,.16) 100%);
}
body[data-garden-page='/contact'] .ct-intro[data-jg-hero] :is(.ct-eyebrow,.ct-h1,.ct-intro-p) {color:#fff!important;position:relative;z-index:2;}
body[data-garden-page='/contact'] .ct-intro .ct-eyebrow {color:#e3ccad!important;font-size:clamp(13px,1vw,16px)!important;}
body[data-garden-page='/contact'] .ct-intro .ct-h1 {font-size:clamp(42px,5vw,76px)!important;line-height:1.08!important;max-width:18ch!important;letter-spacing:-.035em!important;}
body[data-garden-page='/contact'] .ct-intro .ct-intro-p {font-size:clamp(17px,1.6vw,23px)!important;line-height:1.55!important;max-width:48ch!important;}
/* As the header is now above a picture, the existing global clear-on-hero logic applies.
   Force only the background transparent at scroll position zero, not when the menu opens. */
body[data-garden-page='/contact'] .jg-hdr:not(.jg-has-scrolled):not(.jg-menu-is-open)::after {opacity:0!important;}
body[data-garden-page='/contact'] .jg-hdr:not(.jg-has-scrolled):not(.jg-menu-is-open)::before {opacity:1!important;}
body[data-garden-page='/contact'] .jg-hdr:is(.jg-has-scrolled,.jg-menu-is-open)::after {opacity:1!important;}
@media (max-width:767px) {
  body[data-garden-page='/contact'] .ct-intro[data-jg-hero] .ct-intro-grid.jg-wrap {
    min-height:clamp(460px,68svh,620px)!important;
    padding:132px clamp(22px,6vw,28px) 56px!important;
  }
  body[data-garden-page='/contact'] .ct-intro-img img {object-position:57% 38%;}
  body[data-garden-page='/contact'] .ct-intro-grid::after {
    background:linear-gradient(0deg,rgba(12,13,11,.83) 0%,rgba(12,13,11,.31) 68%,rgba(12,13,11,.36) 100%);
  }
  body[data-garden-page='/contact'] .ct-intro .ct-h1 {font-size:clamp(36px,10.5vw,48px)!important;line-height:1.10!important;}
  body[data-garden-page='/contact'] .ct-intro .ct-intro-p {font-size:clamp(16px,4.3vw,19px)!important;line-height:1.55!important;}
  body[data-garden-page='/contact'] .ct-options-inner {padding-top:35px!important;padding-bottom:36px!important;}
  body[data-garden-page='/contact'] .ct-form-sec {padding-top:60px!important;padding-bottom:68px!important;}
  body[data-garden-page='/contact'] .ct-form-grid {gap:26px!important;}
  body[data-garden-page='/contact'] .ct-form-wrap {width:100%;min-width:0;}
  body[data-garden-page='/contact'] .ct-form-wrap :is(input,select,textarea) {max-width:100%;box-sizing:border-box;}
}
/* TUINVISIE — maintain the actual captured form fields; only fix layout and controls.
   Form submit is deliberately still unwired until Fluent Forms/SMTP is configured. */
@media (max-width:1023px) {
 body[data-garden-page='/tuinvisiegesprek'] .tv-form-card {padding:clamp(20px,4vw,36px)!important;width:100%;box-sizing:border-box;}
 body[data-garden-page='/tuinvisiegesprek'] .tv-form-sec :is(.jg-form,.jg-fs,.jg-fs-body,.jg-fields,.jg-field,.jg-choice-grid) {min-width:0;max-width:100%;box-sizing:border-box;}
 body[data-garden-page='/tuinvisiegesprek'] .jg-form :is(input:not([type=radio]):not([type=checkbox]),select,textarea) {max-width:100%;box-sizing:border-box;}
}
@media (max-width:767px) {
 body[data-garden-page='/tuinvisiegesprek'] .tv-form-sec {padding:55px 0 65px!important;}
 body[data-garden-page='/tuinvisiegesprek'] .tv-form-head {margin-bottom:24px!important;}
 body[data-garden-page='/tuinvisiegesprek'] .tv-form-head h2 {font-size:clamp(29px,8vw,38px)!important;line-height:1.16!important;}
 body[data-garden-page='/tuinvisiegesprek'] .tv-form-head p.sub {font-size:16px!important;line-height:1.6!important;}
 body[data-garden-page='/tuinvisiegesprek'] .tv-form-card {padding:24px 20px!important;}
 body[data-garden-page='/tuinvisiegesprek'] .jg-fs + .jg-fs {margin-top:28px!important;padding-top:28px!important;}
 body[data-garden-page='/tuinvisiegesprek'] .jg-fs-legend {display:flex!important;align-items:baseline;gap:12px;max-width:100%;}
 body[data-garden-page='/tuinvisiegesprek'] .jg-fs-title {font-size:clamp(22px,5.7vw,27px)!important;line-height:1.25!important;}
 body[data-garden-page='/tuinvisiegesprek'] .jg-fs-body {margin-top:20px!important;}
 body[data-garden-page='/tuinvisiegesprek'] .jg-grid-2,
 body[data-garden-page='/tuinvisiegesprek'] .jg-choice-grid {display:grid!important;grid-template-columns:minmax(0,1fr)!important;}
 body[data-garden-page='/tuinvisiegesprek'] .jg-fields {gap:20px!important;}
 body[data-garden-page='/tuinvisiegesprek'] .jg-col-2 {grid-column:1/-1!important;}
 body[data-garden-page='/tuinvisiegesprek'] .jg-label {font-size:15px!important;line-height:1.35!important;}
 body[data-garden-page='/tuinvisiegesprek'] :is(.jg-input,.jg-select,.jg-textarea) {
   display:block;max-width:100%;width:100%;min-height:50px;padding:13px 14px;font-size:16px!important;
 }
 body[data-garden-page='/tuinvisiegesprek'] .jg-choice {
   min-width:0;box-sizing:border-box;padding:14px 10px;min-height:52px;
 }
 body[data-garden-page='/tuinvisiegesprek'] .jg-choice label {overflow-wrap:break-word;line-height:1.5;}
 body[data-garden-page='/tuinvisiegesprek'] .jg-submit {width:100%;min-height:52px;}
 body[data-garden-page='/tuinvisiegesprek'] input[type=file] {max-width:100%;font-size:14px;}
}

/* Five garden-style detail pages: editorial text must not shrink beside the photographs.
   Detail pages share .jg-chapter/.jg-mat/.jg-gallery; keep their individual palette and art. */
@media (max-width:1023px) {
  body[data-garden-page^='/tuinstijlen/'] .jg-chapter-grid {grid-template-columns:1fr!important;gap:18px!important;}
  body[data-garden-page^='/tuinstijlen/'] .jg-chapter-body {max-width:700px!important;min-width:0;}
  body[data-garden-page^='/tuinstijlen/'] .jg-mat :is(.jg-mat-grid,.jg-mat-inner) {min-width:0;}
}
@media (max-width:767px) {
  body[data-garden-page^='/tuinstijlen/'] .jg-chapter {padding-block:clamp(48px,11vw,70px)!important;}
  body[data-garden-page^='/tuinstijlen/'] .jg-chapter-body :is(h2,h3) {
    font-size:clamp(29px,7.8vw,36px)!important;line-height:1.15!important;
    letter-spacing:-.025em!important;margin-bottom:16px!important;max-width:22ch;
  }
  body[data-garden-page^='/tuinstijlen/'] .jg-chapter-body p {
    font-size:clamp(16px,4.3vw,18px)!important;line-height:1.65!important;max-width:65ch;
  }
  body[data-garden-page^='/tuinstijlen/'] .jg-mat {padding-block:48px!important;}
  body[data-garden-page^='/tuinstijlen/'] .jg-gallery {padding-top:48px!important;}
  body[data-garden-page^='/tuinstijlen/'] .jg-caption {font-size:13px!important;line-height:1.55!important;}
  body[data-garden-page^='/tuinstijlen/'] .jg-facts {row-gap:18px!important;}
  body[data-garden-page^='/tuinstijlen/'] .jg-phero[data-jg-hero='project'] {min-height:clamp(400px,64svh,580px)!important;}
}
