/* patterns/work.css */
main.wfg-main.e-con :where(.p-work) .gallery,main.wfg-main.e-con:where(.p-work) .gallery{display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 320px; gap: 16px;}
main.wfg-main.e-con :where(.p-work) .gallery figure,main.wfg-main.e-con:where(.p-work) .gallery figure{margin: 0; position: relative; border-radius: 16px; overflow: hidden; cursor: zoom-in; background: #ddd;}
main.wfg-main.e-con :where(.p-work) .gallery img,main.wfg-main.e-con:where(.p-work) .gallery img{width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--wp--custom--ease);}
main.wfg-main.e-con :where(.p-work) .gallery figure:hover img,main.wfg-main.e-con:where(.p-work) .gallery figure:hover img{transform: scale(1.06);}
main.wfg-main.e-con :where(.p-work) .gallery figcaption,main.wfg-main.e-con:where(.p-work) .gallery figcaption{position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 16px 14px; background: linear-gradient(transparent, rgba(0,0,0,.78)); color: #fff; font-weight: 700; font-size: .9rem; line-height: 1.35;}
main.wfg-main.e-con :where(.p-work) .gallery figcaption small,main.wfg-main.e-con:where(.p-work) .gallery figcaption small{display: flex; align-items: center; gap: 6px; font-weight: 600; opacity: .8; font-size: .8rem;}
main.wfg-main.e-con :where(.p-work) .gallery figcaption svg,main.wfg-main.e-con:where(.p-work) .gallery figcaption svg{width: 13px; height: 13px;}
main.wfg-main.e-con .lightbox{position: fixed; inset: 0; z-index: 100; background: rgba(8,9,10,.94); display: none; place-items: center; padding: 30px;}
main.wfg-main.e-con .lightbox.is-open{display: grid;}
main.wfg-main.e-con .lightbox img{max-height: 82vh; width: auto; border-radius: 12px;}
main.wfg-main.e-con .lightbox p{color: #fff; text-align: center; font-weight: 700; margin-top: 14px;}
main.wfg-main.e-con .lightbox button{position: absolute; width: 50px; height: 50px; border-radius: 50%; border: 0; background: rgba(255,255,255,.12); color: #fff; display: grid; place-items: center;}
main.wfg-main.e-con .lightbox button svg{width: 22px; height: 22px;}
main.wfg-main.e-con .lightbox .lb-close{top: 20px; right: 20px;}
main.wfg-main.e-con .lightbox .lb-prev{left: 20px; top: 50%;}
main.wfg-main.e-con .lightbox .lb-next{right: 20px; top: 50%;}
@media (max-width: 1180px){
main.wfg-main.e-con :where(.p-work) .gallery,main.wfg-main.e-con:where(.p-work) .gallery{grid-template-columns: repeat(3, 1fr);}
}
@media (max-width: 640px){
main.wfg-main.e-con :where(.p-work) .gallery,main.wfg-main.e-con:where(.p-work) .gallery{grid-template-columns: 1fr 1fr; grid-auto-rows: 180px;}
}
main.wfg-main.e-con .p-work .gallery figure{border-radius: var(--wp--custom--radius--card); box-shadow: var(--wp--custom--shadow); outline: 2px solid transparent; outline-offset: 0; transition: transform .3s var(--wp--custom--ease), box-shadow .3s, outline-color .3s;}
main.wfg-main.e-con .p-work .gallery img{filter: brightness(1.1) saturate(1.04);}
main.wfg-main.e-con .p-work .gallery figcaption{padding: 14px 16px; background: #fff; color: var(--wp--preset--color--ink); border-radius: 16px 16px 0 0; box-shadow: 0 -1px 0 rgba(255,255,255,.6);}
main.wfg-main.e-con .p-work .gallery figcaption small{margin-top: 2px; opacity: 1; color: var(--wp--preset--color--text);}
main.wfg-main.e-con .p-work .gallery figcaption svg{color: var(--wp--preset--color--brand);}
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))){
main.wfg-main.e-con .p-work .gallery figcaption{background: rgba(255,255,255,.92); -webkit-backdrop-filter: blur(10px) saturate(110%); backdrop-filter: blur(10px) saturate(110%);}
}
main.wfg-main.e-con .p-work .gallery figure:hover{transform: translateY(-4px); outline-color: var(--wp--preset--color--brand); box-shadow: var(--wp--custom--shadow-lg);}
@media (prefers-reduced-motion: reduce){
main.wfg-main.e-con .p-work .gallery figure:hover{transform: none;}
}
.mo main.wfg-main.e-con .p-work .gallery figure[data-mo]{--mo-rise: 14px;}
.mo main.wfg-main.e-con .p-work .gallery figure[data-mo]:not(.mo-done){transition: opacity .6s var(--mo-ease), transform .6s var(--mo-ease); transition-delay: var(--wd, 0ms);}
.mo main.wfg-main.e-con .p-work .gallery figure[data-mo].mo-done{transition-duration: .3s;}
main.wfg-main.e-con .p-work{position: relative; isolation: isolate; overflow: clip;}
main.wfg-main.e-con .p-work::before{content: ""; position: absolute; z-index: -1; pointer-events: none; right: -90px; top: 40px; width: 260px; height: 260px; border-radius: 50%; background-image: radial-gradient(rgba(207,111,76,.26) 1.6px, transparent 1.9px); background-size: 14px 14px;}
main.wfg-main.e-con .p-work::after{content: ""; position: absolute; z-index: -1; pointer-events: none; left: -160px; bottom: -80px; width: 420px; height: 420px; border-radius: 50%; background: var(--wp--preset--color--brand-50);}
main.wfg-main.e-con .p-work .eyebrow{transition: color .3s;}
main.wfg-main.e-con .p-work .eyebrow::before{transform-origin: 100% 50%; transition: transform .4s var(--wp--custom--ease);}
main.wfg-main.e-con .p-work .section-head h2{transition: color .3s;}
@media (hover: hover){
main.wfg-main.e-con .p-work .eyebrow:hover{color: #9E4A2C;}
main.wfg-main.e-con .p-work .section-head h2:hover{color: #9E4A2C;}
}
@media (hover: hover) and (prefers-reduced-motion: no-preference){
main.wfg-main.e-con .p-work .eyebrow:hover::before{transform: scaleX(1.6);}
}
main.wfg-main.e-con .p-work .work__nav{transition: background-color .3s, border-color .3s, color .3s, box-shadow .35s var(--wp--custom--ease), transform .3s var(--wp--custom--ease);}
main.wfg-main.e-con .p-work .work__nav svg{transition: transform .3s var(--wp--custom--ease);}
@media (hover: hover){
main.wfg-main.e-con .p-work .work__nav:hover:not(:disabled){box-shadow: var(--wp--custom--shadow-lg);}
}
@media (hover: hover) and (prefers-reduced-motion: no-preference){
main.wfg-main.e-con .p-work .work__nav--prev:hover:not(:disabled) svg{transform: translateX(-2px);}
main.wfg-main.e-con .p-work .work__nav--next:hover:not(:disabled) svg{transform: translateX(2px);}
}
main.wfg-main.e-con .p-work .work__nav:focus-visible{background: var(--wp--preset--color--brand); border-color: var(--wp--preset--color--brand); color: #fff;}
