/* Callforce case gallery: independent tracks with clear gutters. */
.cta_area:has(> .callforce-case-gallery) { background-color: #1e3443; overflow: hidden; }
.cta_area.foot_cta:has(> .callforce-case-gallery) { border-radius: 0; }
.callforce-case-gallery .cta_area--slide { animation: none; }
.callforce-case-gallery .case-gallery-track { display: block; animation: callforce-cases-up 64s linear infinite; will-change: transform; }
.callforce-case-gallery .cta_area--slide2 .case-gallery-track { animation-name: callforce-cases-down; }
.callforce-case-gallery .case-gallery-group { display: flex; flex-direction: column; gap: 16px; padding-bottom: 16px; }
.callforce-case-gallery .cta_area--slide-item { flex: 0 0 auto; aspect-ratio: var(--case-ratio); margin: 0; border-radius: 8px; overflow: hidden; clip-path: inset(1.8% 0.5% 2.4% round 8px); }
.callforce-case-gallery .cta_area--slide-item img { width: 100%; height: 100%; object-fit: contain; }
.cta_area.case-gallery-paused .case-gallery-track { animation-play-state: paused; }
.case-gallery-toggle { position: absolute; right: 24px; bottom: 24px; z-index: 5; display: grid; place-items: center; width: 44px; height: 44px; padding: 10px; border: 1px solid #ffffff88; border-radius: 50%; color: #fff; background: #1d3441dc; cursor: pointer; }
.case-gallery-toggle svg { width: 24px; height: 24px; fill: currentColor; }
.case-gallery-toggle .case-play { display: none; }
.case-gallery-toggle[aria-pressed="true"] .case-play { display: block; }
.case-gallery-toggle[aria-pressed="true"] .case-pause { display: none; }
.case-gallery-toggle:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }
@keyframes callforce-cases-up { from { transform: translateY(0); } to { transform: translateY(-33.333333%); } }
@keyframes callforce-cases-down { from { transform: translateY(-33.333333%); } to { transform: translateY(0); } }
/* Match the larger case-card scale in the supplied contact reference. */
@media (min-width: 768px) {
  .cta_area .callforce-case-gallery { width: 80%; right: -35%; top: -15%; gap: 12%; align-items: stretch; }
  .callforce-case-gallery .cta_area--slide { flex: 0 0 44%; width: 44%; min-width: 0; }
  .callforce-case-gallery .case-gallery-track { animation-duration: 70s; }
  .callforce-case-gallery .cta_area--slide2 .case-gallery-track { animation-duration: 56s; }
  .cta_area:has(> .callforce-case-gallery) { isolation: isolate; }
  .cta_area:has(> .callforce-case-gallery)::after {
    content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
    background: linear-gradient(90deg, #1e3443 0%, #1e3443 32%, rgba(30,52,67,.98) 39%, rgba(30,52,67,.8) 46%, rgba(30,52,67,.2) 56%, transparent 64%);
  }
  .cta_area:has(> .callforce-case-gallery) > .inner { z-index: 2; }
}
/* Keep desktop columns; mobile moves along one diagonal plane. */
.case-gallery-plane{display:contents}
@media(max-width:767px){
 /* Keep the upper Contact panel rounded instead of the theme's full-bleed mobile band. */
 .cta_area.sm.contact:has(> .callforce-case-gallery){width:calc(100vw - 24px);max-width:none;margin-inline:calc(50% - 50vw + 12px);border-radius:clamp(28px,10vw,48px)!important;padding-top:36px}
 .cta_area:has(> .callforce-case-gallery){padding-bottom:0}
 .cta_area .callforce-case-gallery{position:relative;top:auto;right:auto;width:100%;height:clamp(400px,110vw,700px);display:block;margin:24px 0 0;overflow:hidden;isolation:isolate;background:#1e3443;mask-image:linear-gradient(to bottom,transparent 0%,#000 17%,#000 100%)}
 .callforce-case-gallery .case-gallery-plane{position:absolute;top:-38%;left:-15%;display:flex;width:130%;height:180%;gap:16px;transform:rotate(20deg);transform-origin:50% 50%}
 .callforce-case-gallery .cta_area--slide{display:block;flex:0 0 calc((100% - 16px)/2);width:calc((100% - 16px)/2);height:100%;margin:0;rotate:none!important;overflow:visible}
 .callforce-case-gallery .case-gallery-track{display:block;width:100%;animation-name:callforce-cases-up;animation-duration:56s}
 .callforce-case-gallery .cta_area--slide2 .case-gallery-track{animation-name:callforce-cases-down;animation-duration:48s}
 .callforce-case-gallery .case-gallery-group{flex-direction:column;gap:16px;padding:0 0 16px}
 .callforce-case-gallery .cta_area--slide .cta_area--slide-item{width:100%;margin:0}
 .case-gallery-toggle{left:18px;right:auto;bottom:18px}
}
@keyframes callforce-cases-left { from { transform: translateX(0); } to { transform: translateX(-33.333333%); } }
@keyframes callforce-cases-right { from { transform: translateX(-33.333333%); } to { transform: translateX(0); } }
@media (prefers-reduced-motion: reduce) {
  .callforce-case-gallery .case-gallery-track { animation: none; transform: none; }
  .case-gallery-toggle { display: none; }
}
