/* Case-study media is authored as landscape imagery and 16:9 video. */
.case-study-hero-grid{grid-template-columns:minmax(0,.82fr) minmax(0,1.18fr);gap:64px}
.case-study-featured{min-height:0;aspect-ratio:16/9;border-radius:20px;background:#111c34}
.case-study-featured img{display:block;width:100%;height:100%;min-height:0;aspect-ratio:16/9;object-fit:cover;object-position:center}
.case-study-content iframe[src*="youtube.com"],.case-study-content iframe[src*="youtube-nocookie.com"],.case-study-content iframe[src*="youtu.be"]{display:block;width:100%!important;max-width:100%;height:auto!important;aspect-ratio:16/9;border:0;border-radius:16px;background:#071126}
.case-study-content .wp-block-embed-youtube .wp-block-embed__wrapper,.case-study-content .elementor-widget-video .elementor-wrapper,.case-study-content .elementor-video{width:100%;aspect-ratio:16/9;overflow:hidden;border-radius:16px;background:#071126}
.case-study-content .elementor-widget-video .elementor-wrapper iframe,.case-study-content .elementor-video iframe{width:100%!important;height:100%!important;aspect-ratio:16/9}
.case-study-content h2,.case-study-content h3,.case-study-content .elementor-heading-title{position:relative;z-index:2;color:#071126!important;text-shadow:none!important}
.case-study-content h2,.case-study-content .elementor-widget-heading h2{padding:12px 0 12px 20px;border-left:4px solid #5666ff;background:#fff}
.case-study-content .elementor-widget-heading{position:relative;z-index:2;background:#fff}
.case-study-content figure,.case-study-content .elementor-widget-video{clear:both;margin-top:32px;margin-bottom:42px}
@media(max-width:1000px){.case-study-hero-grid{grid-template-columns:1fr;gap:48px}.case-study-featured{width:100%;max-width:900px}}
@media(max-width:760px){.case-study-featured{min-height:0}.case-study-content iframe[src*="youtube"],.case-study-content .elementor-widget-video .elementor-wrapper{border-radius:10px}.case-study-content h2,.case-study-content .elementor-widget-heading h2{padding-left:14px}}


/* Canonical YouTube players for customer stories */
.case-study-body{min-width:0}.case-study-primary-video{margin:0 0 48px}.case-study-video-frame{position:relative;overflow:hidden;width:100%;aspect-ratio:16/9;border-radius:18px;background:#071126;box-shadow:0 24px 60px rgba(17,29,57,.14)}.case-study-video-frame iframe,.case-study-short-frame iframe{display:block;width:100%;height:100%;border:0}.case-study-content.has-standard-video .elementor-widget-video,.case-study-content.has-standard-video .elementor-background-video-container,.case-study-content.has-standard-video video{display:none!important}.case-study-content.has-standard-video [data-settings*="background_video_link"]{min-height:0!important}.case-study-secondary-video{display:grid;grid-template-columns:1fr 260px;gap:35px;align-items:center;margin-top:28px;padding:25px;border:1px solid #e0e5ee;border-radius:18px;background:#f6f8fc}.case-study-secondary-video h2{margin:10px 0 0;color:#111c36;font-size:30px}.case-study-short-frame{overflow:hidden;width:100%;aspect-ratio:9/16;border-radius:14px;background:#071126;box-shadow:0 15px 35px rgba(17,29,57,.13)}
@media(max-width:760px){.case-study-video-frame{border-radius:11px}.case-study-secondary-video{grid-template-columns:1fr;padding:18px}.case-study-short-frame{max-width:260px}}



/* Consistent customer-story summary treatment. */
.case-at-a-glance{margin-top:28px;padding:22px;border:1px solid #dfe5ef;border-radius:16px;background:#f7f9fc}
.case-at-a-glance>p{margin:0 0 14px!important;color:#071126!important;font-size:.76rem!important;font-weight:800!important;letter-spacing:.12em!important;text-transform:uppercase}
.case-at-a-glance ul{display:grid;gap:12px;margin:0;padding:0;list-style:none}
.case-at-a-glance li{position:relative;padding-left:24px;color:#26344c;font-size:.9rem;line-height:1.45}
.case-at-a-glance li:before{content:'\2713';position:absolute;left:0;top:0;color:#067a62;font-weight:800}
.case-study-content .elementor-widget-icon-box{display:none!important}
.case-study-content .elementor-section:has(>.elementor-container .elementor-widget-icon-box){display:none!important}
.case-study-content img{height:auto;border-radius:16px}
.case-study-content blockquote{margin:38px 0;padding:28px 32px;border-left:4px solid #5666ff;border-radius:0 16px 16px 0;background:#f4f1ff;color:#071126}


/* Standardized client profile and legacy-body normalization */
.case-client-profile{display:grid;grid-template-columns:minmax(180px,230px) minmax(0,1fr);gap:34px;align-items:center;margin:0 0 42px;padding:30px;border:1px solid #dfe5ef;border-radius:20px;background:linear-gradient(135deg,#f8faff 0%,#fff 70%);box-shadow:0 18px 50px rgba(17,29,57,.08)}
.case-client-profile .eyebrow{margin:0 0 10px}
.case-client-profile p:not(.eyebrow){max-width:680px;margin:0 0 16px;color:#40506a;line-height:1.65}
.case-client-mark{display:flex;min-height:138px;align-items:center;justify-content:center;padding:24px;border:1px solid #e2e7f0;border-radius:16px;background:#fff;text-decoration:none}
.case-client-mark img{display:block;width:auto;max-width:100%;height:auto;max-height:92px;object-fit:contain;border-radius:0!important}
.case-client-mark span{color:#071126;font-family:var(--font-sans,Arial,sans-serif);font-size:clamp(1.25rem,2.4vw,2rem);font-weight:900;letter-spacing:-.04em;line-height:1;text-align:center}
.case-study-content>.elementor{display:grid;gap:38px}
.case-study-content>.elementor>:first-child{display:none!important}
.case-study-content>.elementor>.e-con,.case-study-content>.elementor>.elementor-section{width:100%!important;max-width:100%!important;margin:0!important;padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important}
.case-study-content .e-con>.e-con-inner,.case-study-content .elementor-container{width:100%!important;max-width:100%!important}
.case-study-content .elementor-invisible{visibility:visible!important;opacity:1!important;transform:none!important}
.case-study-content .elementor-widget-text-editor{color:#40506a;font-size:1.06rem;line-height:1.75}
.case-study-content .elementor-widget-text-editor p{margin:0 0 1.25em}
.case-study-content .elementor-widget-image:has(img[alt*="logo" i]){display:none!important}
.case-study-content .elementor-widget-image img{width:100%;height:auto;object-fit:cover}
@media(max-width:760px){.case-client-profile{grid-template-columns:1fr;padding:22px}.case-client-mark{min-height:108px}.case-study-content>.elementor{gap:26px}}


/* At-a-glance replaces legacy metric-icon rows; related cards live on the index. */
.case-study-content>.elementor>.e-con:nth-child(2):has(img){display:none!important}
.case-study-content>.elementor>.e-con:last-child:has(img){display:none!important}
.case-study-content>.elementor>.e-con:has(img[alt*="logo" i]),
.case-study-content>.elementor>.e-con:has(img[src*="schleich-logo" i]),
.case-study-content>.elementor>.e-con:has(img[src*="AFTA-site-logo" i]),
.case-study-content>.elementor>.e-con:has(img[src*="Pupsy-dog-friendly-travel-logo" i]){display:none!important}


/* 16:9 story media, image-first legacy content and related stories */
.case-story-media{display:block;width:100%;height:auto!important;aspect-ratio:16/9!important;overflow:hidden;background:#071126}
.case-story-media img{display:block;width:100%!important;height:100%!important;aspect-ratio:16/9!important;object-fit:contain!important;object-position:center}
.case-editorial-card.is-flagship .case-story-media{aspect-ratio:16/9!important}
.case-study-content>.elementor>.e-con,
.case-study-content>.elementor>.elementor-section,
.case-study-content>.elementor>.e-con>.e-con-inner,
.case-study-content>.elementor>.elementor-section>.elementor-container{display:flex!important;flex-direction:column!important}
.case-study-content>.elementor>.e-con>.e-con-inner>.e-con,
.case-study-content>.elementor>.e-con>.e-con,
.case-study-content>.elementor>.elementor-section>.elementor-container>.elementor-column{width:100%!important;max-width:100%!important}
.case-study-content>.elementor>.e-con>.e-con-inner>.e-con:has(img),
.case-study-content>.elementor>.e-con>.e-con:has(img),
.case-study-content>.elementor>.elementor-section>.elementor-container>.elementor-column:has(img){order:-1}
.case-study-content>.elementor>.e-con>.e-con-inner>.e-con:has(img) img,
.case-study-content>.elementor>.e-con>.e-con:has(img) img{display:block;width:100%;max-height:520px;object-fit:cover}
.case-related-stories{padding:88px 0;background:#f4f7fb}
.case-related-heading{display:flex;align-items:end;justify-content:space-between;gap:28px;margin-bottom:34px}
.case-related-heading h2{margin:8px 0 0;color:#071126;font-size:clamp(2.2rem,4vw,3.8rem)}
.case-related-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}
.case-related-card{overflow:hidden;border:1px solid #dfe5ef;border-radius:18px;background:#fff;box-shadow:0 16px 45px rgba(17,29,57,.08)}
.case-related-media{display:flex;width:100%;aspect-ratio:16/9;align-items:center;justify-content:center;overflow:hidden;background:#071126;color:#fff;text-decoration:none}
.case-related-media img{display:block;width:100%;height:100%;object-fit:contain}
.case-related-card>div{padding:24px}
.case-related-card p{margin:0 0 10px;color:#60708a;font-size:.72rem;font-weight:800;letter-spacing:.12em;text-transform:uppercase}
.case-related-card h3{margin:0 0 20px;color:#071126;font-size:1.35rem;line-height:1.18}
.case-related-card h3 a{color:inherit;text-decoration:none}
@media(max-width:900px){.case-related-grid{grid-template-columns:1fr}.case-related-card{display:grid;grid-template-columns:minmax(220px,.8fr) 1.2fr}.case-related-media{height:100%;min-height:220px}}
@media(max-width:620px){.case-related-heading{align-items:flex-start;flex-direction:column}.case-related-card{display:block}.case-related-media{min-height:0}}

.case-editorial-card{align-items:start!important}
.case-story-media{align-self:start!important}

.case-story-media{position:relative!important;height:0!important;min-height:0!important;padding-top:56.25%!important;aspect-ratio:auto!important}
.case-story-media>img,.case-story-media>.case-story-placeholder{position:absolute!important;inset:0;width:100%!important;height:100%!important}

/* 0.7.12 case study consistency */
.case-story-media>img{aspect-ratio:auto!important;inset:0!important;width:100%!important;height:100%!important;object-fit:contain!important;object-position:center!important}
.case-media-chip{top:16px!important;bottom:auto!important}
.case-client-profiles{display:grid;gap:22px;margin:0 0 42px}
.case-client-profiles .case-client-profile{margin:0}
.case-client-profiles.has-multiple-clients{grid-template-columns:1fr}
.case-client-profiles.has-multiple-clients .case-client-mark{min-height:118px}
.case-client-profiles.has-multiple-clients .case-client-mark img{max-width:180px;max-height:68px}
.case-study-primary-video{scroll-margin-top:110px}
.case-study-case-study-how-drop-nineteens-made-a-diy-music-video-from-fans-memory-reels .case-study-primary-video{margin:0 0 34px}

.case-story-media>img{min-height:0!important;max-height:100%!important}
