/* Popup of real jobs (product fact + wide cards) */
.cg-pf-modal{width:min(1100px,94vw);max-height:90vh;padding:0;border:0;border-radius:16px;background:#fff;overflow:hidden;box-shadow:0 30px 80px rgba(0,0,0,.35)}
.cg-pf-modal[open]{display:flex;flex-direction:column}
.cg-pf-modal::backdrop{background:rgba(10,10,10,.75)}
.cg-pf-modal__head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 18px;border-bottom:1px solid var(--erp-line,#eee);font-size:1.05rem}
.cg-pf-modal__x{all:unset;cursor:pointer;width:36px;height:36px;display:grid;place-items:center;border-radius:50%}
.cg-pf-modal__x:hover{background:#f3f3f3}
.cg-pf-modal__x .cg-icon{width:20px;height:20px}
.cg-pf-modal__grid{flex:1;min-height:0;align-content:start;display:grid;grid-template-columns:repeat(auto-fill,minmax(170px,1fr));gap:10px;padding:16px 18px;overflow:auto}
.cg-pf-modal__item{all:unset;display:block;position:relative;box-sizing:border-box;cursor:zoom-in;height:0;padding-bottom:100%;border-radius:10px;overflow:hidden;background:#fff;border:1px solid var(--erp-line,#eee)}
.cg-pf-modal__item img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block;transition:transform .3s}
.cg-pf-modal__item:hover img{transform:scale(1.05)}
.cg-pf-modal__item:focus-visible{outline:3px solid var(--erp-primary,#e2231a);outline-offset:-3px}
.cg-pf-modal__view{position:relative;flex:1;min-height:0;display:flex;align-items:center;justify-content:center;background:#111;padding:16px 56px 56px}
.cg-pf-modal__view[hidden]{display:none}
.cg-pf-modal__view img{max-width:100%;max-height:calc(90vh - 150px);object-fit:contain;border-radius:8px}
.cg-pf-modal__nav{all:unset;cursor:pointer;position:absolute;top:50%;transform:translateY(-50%);width:42px;height:42px;border-radius:50%;background:#fff;display:grid;place-items:center}
.cg-pf-modal__nav.is-prev{left:8px}.cg-pf-modal__nav.is-next{right:8px}
.cg-pf-modal__nav .cg-icon{width:22px;height:22px}
.cg-pf-modal__back{all:unset;cursor:pointer;position:absolute;bottom:12px;left:50%;transform:translateX(-50%);display:flex;align-items:center;gap:6px;color:#fff;font-weight:600;font-size:.9rem}
.cg-pf-modal__back .cg-icon{width:16px;height:16px}
.cg-pf-modal__view:not([hidden])~.cg-pf-modal__foot{display:none}
.cg-pf-modal__foot{padding:12px 18px;border-top:1px solid var(--erp-line,#eee);display:flex;justify-content:center}
.cg-pf-modal:has(.cg-pf-modal__view:not([hidden])) .cg-pf-modal__grid{display:none}
@media (max-width:640px){.cg-pf-modal{width:100vw;max-width:100vw;max-height:100dvh;height:100dvh;border-radius:0}.cg-pf-modal__grid{grid-template-columns:repeat(2,1fr);gap:8px;padding:12px}.cg-pf-modal__view{padding:12px 12px 56px}.cg-pf-modal__nav{top:auto;bottom:6px;transform:none;width:38px;height:38px}}

/* Wide cards: three real jobs over the product image */
.cg-work { position: absolute; left: 8px; right: 8px; bottom: 8px; z-index: 2; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.cg-work__t { position: relative; display: block; aspect-ratio: 1; padding: 0; overflow: hidden; border: 2px solid #fff; border-radius: 8px; background: #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, .18); cursor: zoom-in; }
.cg-work__t img { display: block; width: 100%; height: 100%; object-fit: cover; }
.cg-work__t:hover img { transform: scale(1.05); }
.cg-work__t img { transition: transform .25s; }
.cg-work__t:focus-visible { outline: 3px solid var(--erp-primary, #e2231a); outline-offset: 1px; }
.cg-work__t span { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; background: rgba(0, 0, 0, .58); color: #fff; font-size: .72rem; line-height: 1.2; }
.cg-work__t span b { font-size: 1.05rem; }
@media (max-width: 640px) {
	.cg-work { left: 4px; right: 4px; bottom: 4px; gap: 3px; }
	.cg-work__t { border-width: 1px; border-radius: 6px; }
	.cg-work__t span { font-size: 0; }
	.cg-work__t span b { font-size: .8rem; }
}
@media (prefers-reduced-motion: reduce) { .cg-work__t img { transition: none; } .cg-work__t:hover img { transform: none; } }

/* Product pages: wall of real jobs before the footer (design from mygrafistas.com). Below ERP Commerce's bar (z-index 40). */
.cg-wall { --s: clamp(170px, 15vw, 250px); --g: 22px; position: relative; z-index: 3; display: grid; place-items: center; height: 100svh; min-height: 620px; margin-top: 48px; overflow: hidden; background: #f4f5f7; border-radius: 28px 28px 0 0; }
.cg-wall__plane { position: absolute; top: 50%; left: 50%; display: grid; grid-template-columns: repeat(10, var(--s)); gap: var(--g); align-items: start; transform: translate(-50%, -50%) rotateX(55deg) rotateZ(-40deg); }
.cg-wall__col { display: flex; flex-direction: column; gap: var(--g); padding-bottom: var(--g); }
.cg-wall__col:nth-child(even) { margin-top: -120px; }
.cg-wall figure { margin: 0; aspect-ratio: 1; overflow: hidden; border-radius: 16px; background: #e4e6ea; box-shadow: 18px 22px 0 -4px rgba(21, 21, 21, .1), 0 20px 40px -18px rgba(21, 21, 21, .4); }
.cg-wall img { display: block; width: 100%; height: 100%; object-fit: cover; }
.cg-wall::after { content: ""; position: absolute; inset: 0; background: radial-gradient(closest-side, rgba(244, 245, 247, .94) 30%, rgba(244, 245, 247, .3) 100%); pointer-events: none; }
.cg-wall__copy { position: relative; z-index: 2; max-width: 560px; padding: 0 20px; text-align: center; }
.cg-wall__copy h2 { margin: 0 0 10px; color: var(--erp-ink); font: 900 clamp(1.8rem, 1.3rem + 2vw, 3rem)/1.05 var(--erp-font-heading); }
.cg-wall__copy p { margin: 0 0 22px; color: var(--erp-text); font-size: 1.1rem; line-height: 1.6; }
.cg-wall__copy .cg-btn svg { width: 18px; height: 18px; }
@media (prefers-reduced-motion: no-preference) {
	.cg-wall__col { animation: cg-wall-drift 40s linear infinite; }
	.cg-wall__col:nth-child(even) { animation-direction: reverse; }
	@keyframes cg-wall-drift { from { transform: translateY(12.5%); } to { transform: translateY(-12.5%); } } /* one of the 4 repeats */
}
@media (max-width: 900px) { .cg-wall { border-radius: 0; } }
@media (max-width: 720px) { .cg-wall { --s: 140px; --g: 14px; } }
