/* All layout rules are scoped to Gallery Studio or its explicitly selected page. */
.vle-service-gallery .vle-gallery-grid{grid-template-columns:repeat(var(--vle-cols,3),minmax(0,1fr));gap:var(--vle-gap,18px)}
.vle-gallery-card>.vle-photo-open{display:block;color:inherit;text-decoration:none;line-height:0}
.vle-gallery-card>.vle-photo-open>img{display:block;width:100%;height:var(--vle-image-height,350px);max-height:70vh;object-fit:var(--vle-image-fit,cover);object-position:var(--vle-image-position,center center)}
.vle-fixed-thumbs .vle-gallery-card>.vle-photo-open>img,.vle-fixed-thumbs .vle-compare{height:var(--vle-thumb-h,260px)!important}
.vle-photo-open:focus-visible{outline:3px solid #d89b2b;outline-offset:4px}
.vle-compare-views{display:flex;gap:14px;justify-content:center;padding:8px;margin:0}.vle-compare-views a{color:var(--vle-text);font-size:14px}
.vle-native-page .vle-native-grid{display:grid!important;grid-template-columns:repeat(var(--vle-cols,3),minmax(0,1fr));gap:var(--vle-gap,18px)!important;max-width:1200px;margin:24px auto!important;align-items:start}
.vle-native-page .vle-native-grid .wp-block-gallery{display:contents!important}
.vle-native-page .vle-native-grid figure.wp-block-image{display:block!important;float:none!important;margin:0!important;padding:0!important;width:100%!important;max-width:100%!important;min-width:0}
.vle-native-page .vle-native-grid .wp-block-image>a{display:block;width:100%;line-height:0}
.vle-native-page .vle-native-grid .wp-block-image img{display:block!important;width:100%!important;height:var(--vle-thumb-h,260px)!important;max-height:70vh!important;object-fit:contain!important;object-position:center!important;background:#151515;border-radius:10px}
.vle-native-page .vle-native-grid figcaption{position:static!important;max-height:none!important;padding:8px!important;background:transparent!important;color:inherit!important;font-size:14px!important;line-height:1.5!important;overflow-wrap:anywhere}
.vle-native-page .vle-native-grid>.blocks-gallery-caption{grid-column:1/-1}
#vle-photo-viewer{--vg-bg:#101114;--vg-fg:#fff;--vg-muted:#b8bcc4;--vg-button:#252830;position:fixed!important;inset:0!important;box-sizing:border-box!important;width:100vw!important;max-width:100vw!important;height:100dvh!important;max-height:100dvh!important;margin:0!important;border:0!important;padding:clamp(10px,2vw,24px)!important;background:var(--vg-bg)!important;color:var(--vg-fg)!important;z-index:2147483600;font:16px/1.4 system-ui,sans-serif;overflow:hidden!important;flex-direction:column;gap:10px;display:none}
#vle-photo-viewer[open]{display:flex}#vle-photo-viewer::backdrop{background:#000d}#vle-photo-viewer.vle-viewer-light{--vg-bg:#f7f7f9;--vg-fg:#16181c;--vg-muted:#505763;--vg-button:#e1e4e9}
#vle-photo-viewer *{box-sizing:border-box}#vle-photo-viewer .vle-viewer-header{display:flex!important;align-items:center;justify-content:space-between;gap:12px;background:none!important;position:static!important;padding:0!important;min-height:44px;flex:none}
#vle-photo-viewer .vle-viewer-title{font-size:clamp(15px,2vw,20px)!important;font-weight:650;color:var(--vg-fg)!important;margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#vle-photo-viewer button{appearance:none!important;background:var(--vg-button)!important;border:1px solid transparent!important;border-radius:8px!important;color:var(--vg-fg)!important;font:600 14px/1.2 system-ui,sans-serif!important;min-height:44px;padding:10px 16px!important;cursor:pointer;box-shadow:none!important;text-transform:none!important;letter-spacing:normal!important}
#vle-photo-viewer button:focus-visible{outline:3px solid #d89b2b;outline-offset:2px}#vle-photo-viewer button:disabled{opacity:.35;cursor:default}#vle-photo-viewer .vle-viewer-tools{display:flex;gap:8px;flex:none}
#vle-photo-viewer .vle-viewer-stage{flex:1;min-height:0;position:relative;overflow:hidden}#vle-photo-viewer .swiper{width:100%;height:100%;background:none}
#vle-photo-viewer .swiper-slide{display:flex;align-items:center;justify-content:center;height:100%;overflow:hidden}#vle-photo-viewer .swiper-slide[hidden]{display:none!important}
#vle-photo-viewer .swiper-zoom-container{width:100%;height:100%;display:flex;align-items:center;justify-content:center}#vle-photo-viewer .swiper-zoom-container>img{display:block;width:auto!important;height:auto!important;max-width:100%!important;max-height:100%!important;object-fit:contain!important;border:0!important;border-radius:0!important;margin:0!important}
#vle-photo-viewer .vle-viewer-prev,#vle-photo-viewer .vle-viewer-next{position:absolute;top:50%;transform:translateY(-50%);z-index:5;font-size:32px!important;width:48px;height:56px;padding:0!important}
#vle-photo-viewer .vle-viewer-prev{left:4px}#vle-photo-viewer .vle-viewer-next{right:4px}
#vle-photo-viewer .vle-viewer-caption{margin:0!important;padding:0!important;font:400 14px/1.4 system-ui,sans-serif!important;text-align:center;color:var(--vg-fg)!important;max-height:3em;overflow:auto;white-space:pre-wrap;flex:none}
#vle-photo-viewer .vle-viewer-count{font:400 12px/1.3 system-ui,sans-serif!important;color:var(--vg-muted)!important;text-align:center;margin:0!important;flex:none}
#vle-photo-viewer .vle-viewer-thumbs{display:flex;gap:8px;justify-content:flex-start;overflow-x:auto;flex:none;padding:4px;max-height:90px}
#vle-photo-viewer .vle-viewer-thumb{width:76px;min-width:76px;height:60px;padding:0!important;border:2px solid transparent!important;overflow:hidden}
#vle-photo-viewer .vle-viewer-thumb[aria-current=true]{border-color:#d89b2b!important}#vle-photo-viewer .vle-viewer-thumb img{width:100%!important;height:100%!important;object-fit:cover!important;margin:0!important}
#vle-photo-viewer .vle-viewer-error{position:absolute;bottom:15%;background:var(--vg-bg);color:var(--vg-fg);padding:12px}
#vle-photo-viewer.vle-zoom-fallback .swiper-slide:not([hidden]){overflow:auto}#vle-photo-viewer.vle-zoom-fallback .swiper-slide:not([hidden]) img{max-width:none!important;max-height:none!important;transform:scale(1.7);transform-origin:center}
@media(max-width:900px) and (min-width:601px){.vle-service-gallery .vle-gallery-grid,.vle-native-page .vle-native-grid{grid-template-columns:repeat(min(2,var(--vle-cols,3)),minmax(0,1fr))}}
@media(max-width:600px){.vle-service-gallery .vle-gallery-grid,.vle-native-page .vle-native-grid{grid-template-columns:repeat(var(--vle-mobile-cols,1),minmax(0,1fr))}#vle-photo-viewer .vle-viewer-title{max-width:40vw}#vle-photo-viewer .vle-viewer-tools button{padding:8px!important;font-size:12px!important}#vle-photo-viewer .vle-viewer-thumb{height:48px;min-width:60px;width:60px}}
@media(prefers-reduced-motion:reduce){#vle-photo-viewer *{transition:none!important;animation:none!important}}

/* Selected-page reading layout; no changes to other pages or saved content. */
.vle-native-page{box-sizing:border-box;width:100%;max-width:1120px;margin:0 auto;padding:12px clamp(12px,3vw,32px) 40px;font-size:17px;line-height:1.7;overflow-wrap:anywhere}
.vle-native-page>p,.vle-native-page>ul,.vle-native-page>ol{max-width:820px;margin:0 0 20px;font-size:inherit;line-height:inherit}
.vle-native-page>p:has(>strong:only-child){margin-top:30px;margin-bottom:12px;font-size:clamp(20px,2.2vw,26px);line-height:1.35}
.vle-native-page>ul,.vle-native-page>ol{padding-left:26px}.vle-native-page li{margin:5px 0}
.vle-native-page :is(h1,h2,h3,h4,h5,h6):empty{display:none!important}
.vle-native-page .vle-native-grid{width:100%;clear:both;align-items:stretch}
.vle-native-page .vle-native-grid figure.wp-block-image{align-self:start;border-radius:10px;overflow:hidden}
.vle-native-page .vle-native-grid .wp-block-image img{object-fit:cover!important;max-height:none!important}
.vle-native-page .vle-native-grid .wp-block-gallery{margin:0!important;padding:0!important;gap:0!important}
@media(max-width:600px){.vle-native-page{font-size:16px;padding:8px 12px 28px}.vle-native-page .vle-native-grid{margin:20px auto!important}}

/* Share the Design selector with existing WordPress photos on the selected page. */
.vle-native-page[data-vle-design="dark-gold"]{--vn-bg:#151515;--vn-card:#202020;--vn-text:#fff;--vn-gold:#d89b2b;background:var(--vn-bg);color:var(--vn-text);padding:clamp(20px,4vw,48px);border-radius:12px}
.vle-native-page[data-vle-design="light-gold"]{--vn-bg:#fff;--vn-card:#fafafa;--vn-text:#171717;--vn-gold:#d89b2b;background:var(--vn-bg);color:var(--vn-text);padding:clamp(20px,4vw,48px);border:1px solid #e8dfce;border-radius:12px}
.vle-native-page:is([data-vle-design="dark-gold"],[data-vle-design="light-gold"]) :is(p,li,ul,ol,figcaption){color:var(--vn-text)}
.vle-native-page:is([data-vle-design="dark-gold"],[data-vle-design="light-gold"]) :is(h1,h2,h3,h4,h5,h6),.vle-native-page:is([data-vle-design="dark-gold"],[data-vle-design="light-gold"])>p:has(>strong:only-child){color:var(--vn-gold)}
.vle-native-page:is([data-vle-design="dark-gold"],[data-vle-design="light-gold"]) a{color:var(--vn-gold)}
.vle-native-page:is([data-vle-design="dark-gold"],[data-vle-design="light-gold"]) .vle-native-grid figure.wp-block-image{background:var(--vn-card);border:1px solid rgba(216,155,43,.3);box-shadow:0 8px 25px rgba(0,0,0,.15)}
.vle-native-page:is([data-vle-design="dark-gold"],[data-vle-design="light-gold"]) .vle-native-grid figure.wp-block-image img{border-radius:0}
@media(max-width:600px){.vle-native-page:is([data-vle-design="dark-gold"],[data-vle-design="light-gold"]){padding:20px 14px}}
/* Exterior frame only on the explicitly selected native-photo page. */
body.vle-page-frame{background:var(--vf-background)!important;color:var(--vf-text)}
body.vle-page-frame #page{background:transparent!important}
body.vle-page-frame #primary{box-sizing:border-box;background:var(--vf-background)!important;padding:32px var(--vf-margin) 48px!important;width:100%;max-width:none}
body.vle-page-frame #primary>article{max-width:var(--vf-width);width:100%;margin:0 auto;background:transparent}
body.vle-page-frame #primary .entry-header{box-sizing:border-box;max-width:var(--vf-width);margin:0 auto 24px;padding:0 12px;text-align:var(--vf-title-align)}
body.vle-page-frame #primary .entry-title{margin:0;color:var(--vf-text)!important;font-size:clamp(28px,3.4vw,44px);line-height:1.2;text-align:var(--vf-title-align)}
body.vle-page-frame #primary .entry-content{margin:0;background:transparent}
body.vle-page-frame .vle-native-page[data-vle-design]{--vn-bg:var(--vf-panel);--vn-text:var(--vf-text);--vn-gold:var(--vf-accent);background:var(--vf-panel);color:var(--vf-text);max-width:var(--vf-width);border:var(--vf-border) solid var(--vf-accent);border-radius:var(--vf-radius);box-shadow:0 16px 50px #0003}
@media(max-width:600px){body.vle-page-frame #primary{padding:24px var(--vf-mobile-margin) 32px!important}body.vle-page-frame #primary .entry-header{padding:0;margin-bottom:18px}}
/* Template sections outside the_content, styled only for a saved page profile. */
body.vle-page-profile .service-page,body.vle-page-profile #page>.texting{background:var(--vf-panel,#151515)!important;color:var(--vf-text,#fff)!important}
body.vle-page-profile .service-page{padding:32px 0 48px}
body.vle-page-profile .service-page :is(p,li,h3,h4,h5){color:var(--vf-text,#fff)!important}
body.vle-page-profile .service-page :is(h1,h2),body.vle-page-profile .service-page .kix a{color:var(--vf-accent,#d89b2b)!important}
body.vle-page-profile .service-page .kix>img{width:100%;height:260px;object-fit:cover;border-radius:10px;border:1px solid var(--vf-accent,#d89b2b)}
body.vle-page-profile .service-page .vle-native-page{max-width:100%;margin-bottom:24px;box-shadow:none}

/* Additional appearance controls: enabled only by a saved page profile flag. */
body.vle-extended-controls :is(#primary,.service-page,.midcont){font-size:var(--ve-body-size);line-height:var(--ve-line-height)}
body.vle-extended-controls :is(#primary,.service-page,.midcont) :is(p,li,label,address,.address span,.address strong){color:var(--vf-text,#fff)!important;font-size:var(--ve-body-size)!important;line-height:var(--ve-line-height)!important}
body.vle-extended-controls :is(#primary,.service-page,.midcont) :is(h1,h2,h3,h4,h5,h6){color:var(--ve-heading-color)!important}
body.vle-extended-controls :is(#primary,.service-page,.midcont) :is(h2,h3){font-size:clamp(20px,3vw,var(--ve-heading-size))!important;line-height:1.3!important}
body.vle-extended-controls :is(#primary,.service-page,.midcont) a:not(.button){color:var(--ve-link-color)!important;overflow-wrap:anywhere}
body.vle-extended-controls :is(#primary,.service-page,.midcont) a:not(.button):hover{color:var(--ve-link-hover)!important}
body.vle-extended-controls :is(#primary,.service-page,.midcont) :is(hr,.address){border-color:var(--ve-divider-color)!important}
body.vle-extended-controls :is(#primary,.service-page,.midcont) :is(input:not([type=checkbox]):not([type=radio]):not([type=submit]):not([type=button]):not([type=hidden]):not([type=file]):not([type=range]):not([type=color]),textarea,select){box-sizing:border-box;max-width:100%;background:var(--ve-field-bg)!important;color:var(--ve-field-text)!important;border:1px solid var(--ve-field-border)!important;border-radius:var(--ve-field-radius)!important;padding:var(--ve-field-padding)!important;font-size:var(--ve-field-size)!important;line-height:1.5!important;height:auto}
body.vle-extended-controls :is(#primary,.service-page,.midcont) :is(input,textarea)::placeholder{color:var(--ve-field-placeholder)!important;opacity:1}
body.vle-extended-controls :is(#primary,.service-page,.midcont) :is(input,textarea,select):focus-visible{outline:2px solid var(--ve-field-focus)!important;outline-offset:2px}
body.vle-extended-controls :is(#primary,.service-page,.midcont) textarea{min-height:var(--ve-textarea-height)!important}
body.vle-extended-controls :is(#primary,.service-page,.midcont) :is(button,input[type=submit],input[type=button],a.button){background:var(--ve-button-bg)!important;color:var(--ve-button-text)!important;border:1px solid var(--ve-button-bg)!important;border-radius:var(--ve-button-radius)!important;font-size:var(--ve-button-size)!important;padding:var(--ve-button-padding) calc(var(--ve-button-padding) * 1.5)!important;line-height:1.3!important}
body.vle-extended-controls :is(#primary,.service-page,.midcont) :is(button,input[type=submit],input[type=button],a.button):hover{background:var(--ve-button-hover)!important}
body.vle-extended-controls .midcont{background:var(--vf-panel,#151515)!important;color:var(--vf-text,#fff)}

/* Quick Handyman contact labels are i elements, separate from address values. */
body.vle-extended-controls .midcont ul.address>li>i{color:var(--ve-contact-label-color,#fff)!important}

/* The selected page text color overrides theme colors throughout the page content. */
body.vle-page-profile #primary *,
body.vle-page-profile .service-page *,
body.vle-page-profile .midcont *{color:var(--vf-text,#fff)!important}

/* The Quick Handyman homepage template keeps its welcome section outside #primary. */
body.vle-page-profile .welcome{
  box-sizing:border-box;
  padding:32px var(--vf-margin,24px)!important;
  background:var(--vf-background,#242624)!important;
  color:var(--vf-text,#fff)!important;
}
body.vle-page-profile .welcome>.container{
  box-sizing:border-box;
  width:100%!important;
  max-width:var(--vf-width,1120px)!important;
  padding:clamp(24px,3vw,40px)!important;
  background:var(--vf-panel,#151515)!important;
  border:var(--vf-border,1px) solid var(--vf-accent,#d89b2b)!important;
  border-radius:var(--vf-radius,12px)!important;
}
body.vle-page-profile .welcome :is(h4,p,li,span,strong,em,a,small){color:var(--vf-text,#fff)!important}
body.vle-page-profile .welcome :is(h2,h3){color:var(--vf-accent,#d89b2b)!important}
body.vle-page-profile .welcome .pi{border-color:var(--vf-accent,#d89b2b)!important}
@media(max-width:600px){
  body.vle-page-profile .welcome{padding:24px var(--vf-mobile-margin,12px)!important}
  body.vle-page-profile .welcome>.container{padding:20px 14px!important}
}
