/*
Theme Name: FreelancerGroup Pencil Classic
Version: 0.18.0
Requires at least: 6.2
Requires PHP: 7.4
Text Domain: freelancergroup
*/
:root{--blue:#101c56;--azure:#07588d;--green:#78aa31;--orange:#ef8b22;--space:clamp(72px,10vw,160px)}*{box-sizing:border-box}body{margin:0;background:#fff;color:var(--blue);font:18px/1.65 system-ui,sans-serif}h1,h2,h3{font-family:Georgia,serif;line-height:1.15}h1{font-size:clamp(36px,5vw,68px)}h2{font-size:clamp(30px,3vw,48px)}h3{font-size:29px}a{color:inherit}img{max-width:100%;height:auto}.wrap{max-width:1280px;margin:auto;padding:0 6%}.header{display:flex;align-items:center;justify-content:space-between;gap:24px;padding-top:24px;padding-bottom:24px;flex-wrap:wrap}.brand{display:flex;align-items:center;gap:12px;text-decoration:none;font-weight:bold}.brand img{width:65px}.brand small{display:block;font:italic 14px Georgia}nav ul{display:flex;gap:20px;list-style:none;padding:0;flex-wrap:wrap}.hero,.macro{display:flex;align-items:center;gap:7%;padding-block:48px}.hero>* ,.macro>*{flex:1;min-width:0}.macro{margin-block:var(--space)}.macro:nth-child(even){flex-direction:row-reverse}.brush{background:linear-gradient(100deg,var(--green),var(--azure) 22%,var(--azure) 78%,var(--orange));color:white;text-align:center;padding:55px 6%;clip-path:polygon(0 4%,8% 7%,18% 1%,32% 5%,48% 0,65% 4%,80% 1%,96% 5%,100% 0,100% 96%,88% 93%,72% 99%,55% 95%,38% 100%,20% 96%,0 100%)}.brush h2{margin:0}.section{padding-block:var(--space)}.center{text-align:center}.groups,.work{display:grid;grid-template-columns:repeat(4,1fr);gap:55px 36px;margin-top:65px}.work img{width:140px}.work h3,.groups h3{font-size:23px}.button,.wp-block-button__link{display:inline-block;background:var(--azure);color:white;padding:12px 23px;border-radius:6px;text-decoration:none}.brush .button{background:white;color:var(--blue)}.footer{background:var(--blue);color:white;padding:65px 0}.footer a{color:white}.content{max-width:900px;margin:auto;padding:80px 24px}.skip{position:absolute;left:-9999px}.skip:focus{left:10px;top:10px;background:white;z-index:10}@media(max-width:850px){.groups,.work{grid-template-columns:repeat(2,1fr)}}@media(max-width:600px){.hero,.macro,.macro:nth-child(even){flex-direction:column;align-items:stretch}.groups,.work{grid-template-columns:1fr}.macro{gap:20px}.hero{padding-block:20px}}
.section{padding-top:clamp(110px,13vw,200px);padding-bottom:clamp(90px,10vw,160px)}.section>h2:first-child{margin-top:0}.macro:nth-of-type(even){flex-direction:row-reverse}.macro:nth-of-type(odd){flex-direction:row}.brush{width:100%;margin-inline:0}.work{row-gap:85px}.content figure{margin-inline:0}.content h2{margin-top:2em}@media(max-width:600px){.macro:nth-of-type(n){flex-direction:column}.section{padding-block:85px}}

.entry-shell{max-width:1180px;margin:auto;padding:clamp(48px,8vw,110px) 6%}.entry-header{margin-bottom:48px}.entry-body{max-width:900px;margin:auto;color:#202b42}.entry-body h2,.entry-body h3{color:var(--blue);margin-top:1.8em}.entry-body p,.entry-body li{overflow-wrap:anywhere}.entry-body .wp-block-image{margin:2rem auto}.entry-body .wp-block-image img{max-height:620px;object-fit:contain}.entry-body a{color:var(--azure);text-underline-offset:3px}.entry-body table{max-width:100%;display:block;overflow:auto}.entry-body .wp-block-separator{border:0;border-top:1px solid #dce1e8;margin:3rem 0}.entry-footer{margin-top:70px;border-top:1px solid #dce1e8;padding-top:30px}.hero>.wp-block-image,.macro>.wp-block-image{margin:0}.hero>.wp-block-image img,.macro>.wp-block-image img{width:100%}.wp-block-group.groups,.wp-block-group.work{display:grid}.header nav a:focus-visible,a:focus-visible{outline:2px solid currentColor;outline-offset:4px}.fg-notice{padding:1rem;border:1px solid #dce1e8}.entry-body .alignwide{max-width:100%}

.fg-growth h2:not(:first-child){margin-top:80px}.fg-growth a,.work a{text-underline-offset:4px}.macro.wp-block-group:nth-of-type(even){flex-direction:row-reverse}.macro.wp-block-group:nth-of-type(odd){flex-direction:row}@media(max-width:600px){.macro.wp-block-group:nth-of-type(n){flex-direction:column}.hero>.wp-block-image,.hero>img{order:-1}}

.brush{background:#07588d url(assets/brush.webp) center/100% 100% no-repeat;clip-path:none;padding:clamp(55px,7vw,100px) 8%;}.macro{padding-block:0;margin-block:clamp(90px,11vw,160px)}.macro img{object-fit:contain;mix-blend-mode:multiply}.groups img{width:140px;height:85px;object-fit:contain;display:block;margin:0 auto 18px}.groups figure,.work figure{margin:0}.groups h3{text-align:center}.groups ul{padding-left:20px}.work img{height:90px;object-fit:contain}.macro>div>p:first-child{font-size:15px;font-weight:700;text-transform:uppercase;letter-spacing:.06em}.macro h3{font-size:clamp(28px,3vw,42px);margin:12px 0}.macro a{display:inline-block;border:1px solid var(--blue);border-radius:5px;padding:8px 18px;text-decoration:none}.brand img{width:58px}.brand small{font-style:italic}.section>h2{margin-bottom:60px}@media(max-width:600px){.macro{margin-block:80px}.macro>figure,.macro>img{order:-1}.brush{background-size:cover}.groups img{margin-inline:0}.groups h3{text-align:left}}

/* Preview corrections */
.wrap{width:min(100% - 64px,1240px);max-width:none;padding-inline:0}.header{width:min(100% - 48px,1400px);flex-wrap:nowrap;gap:32px}.brand{flex-shrink:0;font-size:23px}.brand img{width:96px}.brand small{font-size:16px}.custom-logo{max-width:290px}.header nav{min-width:0}.header nav ul{margin:0;list-style:none;padding:0}.header nav>ul{display:flex;align-items:center;gap:20px;flex-wrap:wrap}.header nav li{position:relative}.header nav a{text-decoration:none;display:block;padding:9px 0;font-size:15px}.header nav .sub-menu,.header nav .children{display:none;position:absolute;top:100%;left:0;min-width:245px;background:white;box-shadow:0 6px 24px #101c5622;padding:12px 18px;z-index:100}.header nav li:hover>ul,.header nav li:focus-within>ul{display:block}.header nav ul ul ul{left:100%;top:0}.header nav li.menu-item-has-children>a:after{content:' \25BE'}.hero{gap:5%;padding-block:65px 85px}.hero h1{font-size:clamp(38px,4vw,60px);margin:0 0 24px}.hero>div{flex:0 0 43%}.hero>img,.hero>figure{flex:1;min-width:0;width:52%;object-fit:contain}.hero p,.macro p{font-size:19px}.macro{gap:8%;margin-block:clamp(95px,10vw,145px)}.macro>img,.macro>figure{width:46%;flex:0 0 46%}.macro h3{font-size:clamp(30px,3vw,42px)}.brush{background: white url(assets/brush.webp) center/100% 100% no-repeat;padding:70px 12%;}.section{padding-block:clamp(95px,10vw,155px)}.groups,.work{gap:55px 30px}.groups img{width:190px;height:110px}.groups h3,.work h3{font-size:24px;min-height:2.3em;margin:15px 0}.groups ul{list-style:none;padding:0}.groups li a{display:block;padding:7px 0;text-decoration:none;border-bottom:1px solid #e5e8ed}.groups li a:hover,.work a:hover{text-decoration:underline}.work img{width:190px;height:125px}.work a{text-decoration:none}.work p{font-size:16px;margin:0;color:#35415b}.fg-growth-grid,.fg-articles,.fg-footer-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:36px}.fg-growth-grid article,.fg-articles article{border-top:1px solid #dce1e8;padding:24px 0}.fg-growth-grid h2{margin:0 0 16px}.fg-articles{grid-template-columns:repeat(3,minmax(0,1fr))}.fg-articles h3{font-size:24px}.fg-articles img{width:100%;aspect-ratio:16/9;object-fit:cover}.fg-footer-grid{grid-template-columns:2fr 1fr 1fr}.footer h2,.footer h3{margin-top:0}.footer ul{list-style:none;padding:0}.footer a{text-decoration:none}.footer a:hover{text-decoration:underline}.fg-nav-toggle{display:none}@media(max-width:1050px){.header{flex-wrap:wrap}.header nav{width:100%}.fg-articles{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:760px){.wrap{width:calc(100% - 40px)}.header{gap:12px}.fg-nav-toggle{display:block;margin-left:auto;padding:10px;background:white;border:1px solid var(--blue);color:var(--blue)}.header nav[hidden]{display:none}.header nav>ul{display:block}.header nav .sub-menu,.header nav .children,.header nav ul ul ul{position:static;display:block;box-shadow:none;padding:0 0 0 18px}.hero,.macro,.macro:nth-of-type(n){flex-direction:column;align-items:stretch;gap:24px}.hero>img,.hero>figure,.macro>img,.macro>figure{width:100%;flex:auto;order:-1}.hero>div{flex:auto}.groups,.work{grid-template-columns:repeat(2,minmax(0,1fr))}.fg-footer-grid,.fg-growth-grid,.fg-articles{grid-template-columns:1fr}.brush{padding:55px 10%}}@media(max-width:460px){.groups,.work{grid-template-columns:1fr}.brand{font-size:18px}.brand img{width:65px}.brand small{font-size:13px}}

.brush{background-size:100% 100%;padding:clamp(85px,8vw,130px) 15%;}.brush h2,.brush p{text-shadow:0 1px 3px #00365d}.hero>img{mix-blend-mode:multiply}.footer li{margin:8px 0}@media(max-width:760px){.brush{background-size:auto 100%;padding:90px 8%}}
/* Internal editorial layout only */
.entry-shell{width:min(100% - 48px,1180px);max-width:none;padding:70px 0;margin-inline:auto}.entry-header{max-width:900px;margin:0 auto 38px}.entry-header h1{font-size:clamp(36px,4.5vw,58px);margin:0 0 24px}.entry-body{width:100%;max-width:900px;margin-inline:auto;font-size:18px;line-height:1.8}.entry-body h1{font-size:clamp(36px,4.5vw,58px)}.entry-body h2{font-size:clamp(26px,3vw,36px);margin:1.8em 0 .65em}.entry-body h3{font-size:25px}.entry-body p{margin:0 0 1.25em}.entry-body figure{margin:32px auto;max-width:100%}.entry-body img{height:auto;max-width:100%;object-fit:contain}.entry-body .wp-block-image img{display:block;margin:auto}.entry-body .wp-block-image figcaption{text-align:center;font-size:14px}.entry-body .art-content-layout,.entry-body .art-content-layout-row,.entry-body .art-layout-cell{display:block;width:100%;max-width:100%}.entry-body pre{overflow:auto;white-space:pre-wrap}.fg-entry-contact{max-width:900px;margin:65px auto 0;border-top:1px solid #dce1e8;padding-top:32px}.fg-entry-contact h2{font-size:30px}.entry-body #ez-toc-container,.entry-body #toc_container{max-width:100%;width:fit-content;margin:24px 0;padding:20px;border:1px solid #dce1e8;background:#fff}.entry-body .wp-block-gallery img{object-fit:contain!important}@media(max-width:600px){.entry-shell{width:calc(100% - 36px);padding:36px 0}.entry-body{font-size:17px}.entry-header{margin-bottom:24px}}

.fg-internal-hero{margin:0 auto 3rem;text-align:center}.fg-internal-hero img{width:min(100%,680px);height:auto}.entry-body{font-size:18px;line-height:1.8}.entry-body figure img{height:auto;max-width:100%}.entry-body h1{font-size:clamp(36px,5vw,58px)}
/* Portfolio: retain full artwork, avoid thumbnail dimensions and clipping. */
.entry-body figure[data-fg-portfolio]{width:100%;max-width:100%;float:none;margin:48px auto;clear:both;display:block;text-align:center}
.entry-body figure[data-fg-portfolio] img{display:block;width:auto;max-width:100%;height:auto!important;max-height:none!important;margin:auto;object-fit:contain;cursor:zoom-in}
.entry-body figure[data-fg-portfolio] figcaption{font-size:15px;margin-top:12px;color:#35415b}
.entry-body:has(figure[data-fg-portfolio]){max-width:1100px}
.fg-lightbox{border:0;background:#111827;color:white;width:96vw;height:94vh;max-width:none;max-height:none;padding:16px;overflow:auto;text-align:center}.fg-lightbox::backdrop{background:#000c}.fg-lightbox img{display:block;max-width:100%;height:auto;margin:20px auto}.fg-lightbox button{background:white;color:#101c56;border:0;padding:10px 18px;margin:4px;cursor:pointer}.fg-lightbox-controls{position:sticky;top:0;background:#111827;padding:8px;z-index:1}.fg-zoom{display:inline-block;margin-top:10px;background:white;border:1px solid #101c56;color:#101c56;padding:7px 14px;cursor:pointer}

.entry-body figure[data-fg-portfolio],.entry-body figure[data-fg-portfolio].wp-block-image{width:100%!important;max-width:100%!important;display:block!important;float:none!important;margin:48px auto!important;text-align:center!important}.entry-body figure[data-fg-portfolio] img{width:100%!important;max-width:100%!important;height:auto!important;max-height:none!important;display:block;margin:auto}.entry-body figure[data-fg-portfolio] figcaption{display:block;width:100%!important;max-width:100%!important;text-align:center;margin:14px auto}.entry-body figure[data-fg-portfolio] a{display:block;width:100%}.entry-body:has(figure[data-fg-portfolio]){max-width:1200px}.fg-art-sections{width:100%}.fg-zoom{border:0!important;padding:0!important;display:block!important;width:100%;background:transparent!important}.fg-zoom img{cursor:zoom-in}
/* v0.13: portfolio at half previous desktop width, without forced enlargement. */
.entry-body figure[data-fg-portfolio],.entry-body figure[data-fg-portfolio].wp-block-image{width:50%!important;max-width:600px!important;margin:36px auto!important;float:none!important}
.entry-body figure[data-fg-portfolio] img{width:auto!important;max-width:100%!important;height:auto!important;object-fit:contain!important}
.entry-body figure[data-fg-portfolio] a{width:auto!important}
.entry-body figure[data-fg-portfolio] figcaption{width:100%!important;text-align:center!important}
@media(max-width:700px){.entry-body figure[data-fg-portfolio],.entry-body figure[data-fg-portfolio].wp-block-image{width:100%!important}}
/* v0.14: compact graphite illustrations, no forced enlargement of small assets. */
.hero>img,.hero>figure{flex:0 1 36.4%;width:36.4%;margin-inline:auto;align-self:center}
.macro>img,.macro>figure{flex:0 1 32.2%;width:32.2%;margin-inline:auto;align-self:center}
.macro>img,.macro>figure img{max-width:384px;object-fit:contain}
.groups img{width:133px;height:auto;max-height:77px;object-fit:contain;margin-inline:auto}
.work img{width:133px;height:auto;max-height:87.5px;object-fit:contain}
.entry-body .fg-internal-hero img{width:auto;max-width:min(100%,476px);height:auto;object-fit:contain}
@media(max-width:760px){.hero>img,.hero>figure,.macro>img,.macro>figure{width:70%;flex:auto;align-self:center}.hero>figure img,.macro>figure img{width:100%}}
.entry-shell>.fg-internal-hero{margin:0 auto 40px;text-align:center}.entry-shell>.fg-internal-hero img{display:block;width:auto;max-width:min(100%,333px);height:auto;margin:auto;object-fit:contain}
.fg16-gallery{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:36px 24px;align-items:start}.fg16-gallery figure{margin:0;min-width:0}.fg16-gallery figure[hidden]{display:none}.fg16-gallery img{display:block;width:100%;height:auto;max-height:340px;object-fit:contain;cursor:zoom-in}.fg16-gallery figcaption{font-size:15px;margin-top:12px;color:var(--blue)}.fg16-filters{display:flex;flex-wrap:wrap;justify-content:center;gap:10px;margin:0 0 55px}.fg16-filters button{font:inherit;font-size:15px;background:white;color:var(--blue);border:1px solid #ccd3de;border-radius:4px;padding:8px 14px;cursor:pointer}.fg16-filters button[aria-pressed=true]{background:var(--blue);color:white}.fg16-related{margin-top:70px}.fg16-archive .entry-header{margin-bottom:55px}@media(max-width:850px){.fg16-gallery{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:520px){.fg16-gallery{grid-template-columns:1fr}}

/* Keep legacy content inside its own layout. */
.entry-body{display:flow-root}.fg-request{padding:0 0 32px}.fg-request h2{margin-top:0}.fg-request .fg-notice{overflow-wrap:anywhere}
