/* Magnifying Glass widget (tmg): a wide illustration with a round glass that follows the pointer and shows a second
   picture through it (the labelled version of the same drawing). Built from the section on treetcorp.com.
   The layout follows the widget's own width (container queries), not the window, so it also works inside a column.
   Elementor writes the --tmg-* variables from the widget's controls.
   Width: --treet-max and --treet-gut are the content width and side space shared by all Treet widgets.
   Every rule that styles an element starts with .tmg.tmg, so it outranks a theme's and Elementor Site Settings' rules
   for headings, paragraphs, links, images and buttons. */
.tmg{--tmg-navy:#0B2A45;--tmg-blue:#0A74B5;--tmg-ink:#0F1E2E;--tmg-text:#33465A;--tmg-max:var(--treet-max,1280px);--tmg-gut:var(--treet-gut,clamp(20px,4vw,48px));--tmg-w:2700px;--tmg-h:973px;--tmg-lens:300px;--tmg-fade:200ms;
	position:relative;display:block;width:100%;box-sizing:border-box;container:tmg / inline-size;background-color:var(--tmg-bg,transparent);font-family:var(--treet-font,"Gotham","Gotham Book","Gotham A","Helvetica Neue",Helvetica,Arial,sans-serif);font-size:16px;font-weight:400;font-style:normal;line-height:1.6;letter-spacing:normal;word-spacing:normal;text-transform:none;color:var(--tmg-ink);text-align:left;-webkit-font-smoothing:antialiased}
.tmg *,.tmg *::before,.tmg *::after{box-sizing:border-box}
.tmg.tmg :is(h1,h2,h3,h4,h5,h6,a,button,label){font-family:var(--treet-font,"Gotham","Gotham Book","Gotham A","Helvetica Neue",Helvetica,Arial,sans-serif)}
.tmg.tmg :is(h1,h2,h3,h4,h5,h6,p){margin:0;padding:0;font-style:normal;text-transform:none;text-decoration:none;word-spacing:normal}
.tmg.tmg img{display:block;max-width:100%;height:auto;margin:0;padding:0;border:0;border-radius:0;box-shadow:none;opacity:1;filter:none}
.tmg.tmg svg{flex:none;display:block;width:auto;max-width:none;height:auto;fill:none}
.tmg.tmg :is(b,strong){font-weight:700;color:inherit}
.tmg a:focus-visible,.tmg button:focus-visible{outline:2px solid var(--tmg-blue);outline-offset:3px}
/* nothing above or below the picture: the section is the picture, as in the design. The "Space above and under
   the picture" control adds room when a page wants it. */
.tmg.tmg .tmg__in{padding:0}
.tmg.tmg .tmg__wrap{width:100%;max-width:var(--tmg-max);margin:0 auto;padding:0 var(--tmg-gut)}
/* full browser width inside a narrower container: magnifier.js measures --tmg-vw and --tmg-ml */
.tmg--wide{width:var(--tmg-vw,100%);max-width:none;margin-left:var(--tmg-ml,0)}
.tmg.tmg.tmg--bleed .tmg__wrap{max-width:none;padding:0}
.tmg.tmg .tmg-sr{position:absolute;width:1px;height:1px;margin:-1px;padding:0;border:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}

/* ---------- the picture ---------- */
.tmg.tmg .tmg__stage{position:relative;height:var(--tmg-h);overflow:hidden;border-radius:var(--tmg-radius,0);background-color:var(--tmg-stage,#EDF1F5);touch-action:pan-y}
/* "Fit the whole picture": the picture is scaled down to the width of the section and keeps its shape */
.tmg.tmg.tmg--fit .tmg__stage{height:auto;aspect-ratio:var(--tmg-ar,2700 / 973)}
.tmg.tmg.tmg--nocursor .tmg__stage{cursor:none}
.tmg.tmg .tmg__art{position:absolute;left:0;top:0;width:100%;height:100%;background-repeat:no-repeat;background-size:var(--tmg-w) var(--tmg-h);background-position:var(--tmg-px,0px) center}
.tmg.tmg.tmg--fit .tmg__art{background-size:contain;background-position:center}
/* the second picture: shown through the glass, or all at once by the button */
.tmg.tmg .tmg__art--rev{opacity:0;transition:opacity var(--tmg-fade) ease}
.tmg.tmg.is-open .tmg__art--rev{opacity:1}
.tmg.tmg .tmg__lens{position:absolute;left:0;top:0;width:var(--tmg-lens);height:var(--tmg-lens);border:var(--tmg-bd-w,3px) solid var(--tmg-bd,#555555);border-radius:50%;background-repeat:no-repeat;background-color:var(--tmg-stage,#EDF1F5);opacity:0;pointer-events:none;will-change:transform;transition:opacity var(--tmg-fade) ease}
.tmg.tmg.tmg--square .tmg__lens{border-radius:var(--tmg-lens-r,18px)}
.tmg.tmg.tmg--ring .tmg__lens{box-shadow:inset 0 0 20px -4px var(--tmg-ring,rgba(85,85,85,.75))}
.tmg.tmg.is-on .tmg__lens{opacity:1}
.tmg.tmg.is-open .tmg__lens{opacity:0}
/* the whole picture on a small screen, or without the script: the labelled version, which can be scrolled sideways */
.tmg.tmg .tmg__flat{display:none;overflow-x:auto;-webkit-overflow-scrolling:touch}
.tmg.tmg .tmg__flat img{width:auto;max-width:none;height:var(--tmg-flat-h,80vh)}
/* "as wide as the screen": the whole labelled picture, scaled to the width of the section, no sideways scrolling */
.tmg.tmg.tmg--fullw .tmg__flat{overflow:visible}
.tmg.tmg.tmg--fullw .tmg__flat img{width:100%;max-width:100%;height:auto}
/* the hint and the button: along the bottom of the picture, or in a row under it */
.tmg.tmg .tmg__box{position:relative}
.tmg.tmg .tmg__bar{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px 24px;margin-top:16px;padding:0 var(--tmg-gut)}
.tmg.tmg.tmg--over .tmg__bar{position:absolute;left:0;right:0;bottom:0;z-index:3;margin:0;padding:clamp(14px,2cqi,22px) var(--tmg-gut);pointer-events:none}
/* only the hint and the button take the pointer, so the glass keeps following it across the bar */
.tmg.tmg.tmg--over .tmg__bar>*{pointer-events:auto}
.tmg.tmg .tmg__hint{margin:0;font-size:15px;line-height:1.6;font-weight:400;color:var(--tmg-hint,var(--tmg-text))}
.tmg.tmg.tmg--over .tmg__hint{padding:10px 16px;border-radius:999px;background:var(--tmg-hint-bg,rgba(255,255,255,.92))}
.tmg.tmg .tmg__acts{display:flex;flex-wrap:wrap;align-items:center;gap:12px}
.tmg.tmg.tmg--over .tmg__btn{cursor:pointer}
/* The button is a real <button>, and a theme styles every button on the page. "all:unset" drops whatever the theme set,
   in every state, and the lines after it are the whole look. */
.tmg.tmg .tmg__btn{all:unset;box-sizing:border-box;display:inline-flex;align-items:center;gap:8px;width:auto;height:auto;min-width:0;max-width:100%;min-height:var(--tmg-btn-h,44px);margin:0;padding:0 18px;border:1px solid var(--tmg-btn-bd,#C9D4DE);border-radius:999px;outline:0;background:var(--tmg-btn,#FFFFFF);box-shadow:none;opacity:1;overflow:visible;transform:none;color:var(--tmg-btn-c,var(--tmg-navy));font-family:inherit;font-size:14px;font-weight:600;font-style:normal;line-height:normal;letter-spacing:normal;text-transform:none;text-decoration:none;text-shadow:none;text-align:left;white-space:normal;vertical-align:baseline;cursor:pointer;-webkit-appearance:none;appearance:none;transition:border-color .25s,background-color .25s,color .25s}
.tmg.tmg .tmg__btn::before,.tmg.tmg .tmg__btn::after{content:none;display:none}
.tmg.tmg .tmg__btn:hover{border-color:var(--tmg-btn-bdh,var(--tmg-blue));background:var(--tmg-btn-h,#F2F9FD);color:var(--tmg-btn-ch,var(--tmg-btn-c,var(--tmg-navy)))}
.tmg.tmg .tmg__btn[aria-pressed="true"]{border-color:var(--tmg-btn-bdh,var(--tmg-blue));background:var(--tmg-btn-on,#E4F1FA)}
.tmg.tmg .tmg__btn:focus-visible{outline:2px solid var(--tmg-blue);outline-offset:3px}
.tmg.tmg .tmg__btn[hidden]{display:none}
.tmg.tmg .tmg__btn svg{flex:0 0 auto;width:16px;height:16px;stroke:currentColor}

/* entrance (optional): magnifier.js adds is-armed, then is-in */
.tmg.is-armed .tmg-rv{opacity:0;transform:translateX(-24px)}
.tmg.is-armed.is-in .tmg-rv{opacity:1;transform:none;transition:opacity .9s ease,transform 1.1s cubic-bezier(.2,.9,.3,1)}

/* a screen too narrow for the glass: the labelled picture instead, which can be scrolled sideways */
@container tmg (max-width:1023px){
	.tmg.tmg:not(.tmg--keep) .tmg__stage{display:none}
	.tmg.tmg:not(.tmg--keep) .tmg__flat{display:block}
	.tmg.tmg:not(.tmg--keep) .tmg__btn{display:none}
	.tmg.tmg.tmg--over .tmg__bar{position:static;margin-top:16px;padding:0 var(--tmg-gut)}
	.tmg.tmg.tmg--over .tmg__hint{padding:0;border-radius:0;background:none}
}
@media (prefers-reduced-motion:reduce){
	.tmg *,.tmg *::before,.tmg *::after{animation:none!important;transition:none!important}
	.tmg.is-armed .tmg-rv{opacity:1!important;transform:none!important}
}
@media print{
	.tmg.tmg .tmg__stage,.tmg.tmg .tmg__btn{display:none}
	.tmg.tmg .tmg__flat{display:block;overflow:visible}
	.tmg.tmg .tmg__flat img{width:100%;height:auto}
}

/* ---------- browsers without container queries (before 2023, for example iOS 15) ----------
   The sizes follow the window instead of the section and the layouts switch with media queries.
   This block mirrors the cqi values and the @container blocks above: change both together. */
@supports not (container-type:inline-size){
	.tmg.tmg.tmg--over .tmg__bar{padding:clamp(14px,2vw,22px) var(--tmg-gut)}
	@media (max-width:1023px){
		.tmg.tmg:not(.tmg--keep) .tmg__stage{display:none}
		.tmg.tmg:not(.tmg--keep) .tmg__flat{display:block}
		.tmg.tmg:not(.tmg--keep) .tmg__btn{display:none}
		.tmg.tmg.tmg--over .tmg__bar{position:static;margin-top:16px;padding:0 var(--tmg-gut)}
		.tmg.tmg.tmg--over .tmg__hint{padding:0;border-radius:0;background:none}
	}
}
