/* Customer story template: interview first, matching work browsed independently. */
.qoohoo-soft.benchmark-v2 #customer-stories { padding-block:48px 64px; }
/* Decorative overflow must not create a vertical wheel-scroll target inside the page. */
#customer-stories:not([data-stories-view="all"]) .v2-stories-rail { overflow-y:hidden; overscroll-behavior-y:auto; }
#customer-stories .showcase-section-head { display:flex; align-items:flex-end; justify-content:space-between; gap:28px; margin-bottom:30px; }
.qoohoo-soft.benchmark-v2 #customer-stories:not([data-stories-view="all"]) .showcase-section-head { display:block; text-align:center; margin-bottom:24px; }
#customer-stories:not([data-stories-view="all"]) .showcase-section-head h2 { width:fit-content; max-width:100%; margin:0 auto; text-wrap:balance; }
.qoohoo-soft.benchmark-v2 #customer-stories .showcase-card { display:block; padding:0; border:0; background:transparent; box-shadow:none; scroll-snap-align:center; }
.qoohoo-soft.benchmark-v2 #customer-stories .showcase-card-surface { height:100%; background:#fff; display:grid; grid-template-columns:minmax(0,1.04fr) minmax(0,1.1fr) minmax(0,.82fr); gap:28px; padding:24px; border:0; border-radius:32px; align-items:stretch; box-shadow:none; transform:scale(var(--story-scale, .91)); opacity:var(--story-opacity, .42); will-change:transform,opacity; }
#customer-stories .showcase-film { position:relative; isolation:isolate; min-height:418px; overflow:hidden; border-radius:22px; background:#262333; }
#customer-stories .showcase-film video { display:block; position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
#customer-stories .showcase-film-play { position:absolute; inset:0; border:0; padding:24px; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:15px; color:#fff; background:linear-gradient(transparent 35%,#00000038); cursor:pointer; font:600 15px/1.5 var(--body); }
#customer-stories .showcase-film-play[hidden] { display:none; }
#customer-stories .showcase-play-icon { display:grid; place-items:center; width:68px; height:68px; padding-left:4px; border:1px solid #ffffff90; border-radius:50%; background:#ffffffee; color:#4E409B; font:24px/1 Arial,sans-serif; box-shadow:0 4px 22px #00000015; transition:transform .2s; }
#customer-stories .showcase-film-play:hover .showcase-play-icon { transform:scale(1.06); }
#customer-stories .showcase-film-play:focus-visible { outline:3px solid var(--brand-primary); outline-offset:-5px; }
#customer-stories .showcase-story { display:flex; flex-direction:column; justify-content:center; align-items:flex-start; padding-block:8px; min-width:0; }
#customer-stories .v2-story-brand { gap:12px; margin-bottom:22px; flex-wrap:wrap; }
#customer-stories .v2-story-brand img { width:148px; height:56px; max-width:100%; object-fit:contain; object-position:left center; }
#customer-stories .showcase-card:nth-child(2) .v2-story-brand img { width:64px; height:64px; }
#customer-stories .showcase-brand-name { font:700 32px/1.1 Georgia,serif; letter-spacing:-.04em; color:#3b302a; }
#customer-stories .v2-story-brand>span { font-size:12px; }
#customer-stories .showcase-story h3 { font-size:27px; line-height:1.28; font-weight:750; margin:0 0 22px; letter-spacing:-.02em; }
html[lang=th] #customer-stories .showcase-story h3 { line-height:1.42; }
#customer-stories .showcase-story dl { margin:0; display:grid; gap:15px; }
#customer-stories .showcase-story dt { margin:0 0 4px; font-weight:700; font-size:12px; color:#4E409B; }
#customer-stories .showcase-story dd { margin:0; font-size:14px; line-height:1.6; color:var(--muted); }
#customer-stories .showcase-story .arrow-link { margin-top:23px; font-size:13px; }
#customer-stories .showcase-gallery { min-width:0; align-self:center; border-left:1px solid #F0ECE8; padding-left:24px; }
#customer-stories .showcase-gallery-heading { display:flex; align-items:center; gap:8px; margin-bottom:12px; font-size:13px; font-weight:700; }
#customer-stories .showcase-gallery-total { display:grid; place-items:center; background:#EBF6C9; border-radius:50%; width:23px; height:23px; font-size:11px; }
#customer-stories .showcase-slide { margin:0; }
#customer-stories .showcase-slide[hidden] { display:none; }
#customer-stories .showcase-slide>img { display:block; width:100%; aspect-ratio:3/4; object-fit:cover; border-radius:14px; }
#customer-stories .showcase-slide figcaption { padding-top:12px; min-height:73px; }
#customer-stories .showcase-slide figcaption strong { display:block; font-size:14px; line-height:1.4; margin-bottom:4px; }
#customer-stories .showcase-slide figcaption>span { display:block; font-size:12px; line-height:1.5; color:var(--muted); }
#customer-stories .showcase-gallery-nav { display:flex; align-items:center; justify-content:space-between; margin-top:10px; }
#customer-stories .showcase-gallery-count { font-size:12px; color:var(--muted); font-variant-numeric:tabular-nums; }
#customer-stories .showcase-gallery-nav>div { display:flex; gap:8px; }
#customer-stories .showcase-gallery-nav button { width:38px; height:38px; border:1px solid #dcd8d3; border-radius:50%; background:#fff; color:var(--ink); cursor:pointer; font-size:20px; }
#customer-stories .showcase-gallery-nav button:hover { background:#EBF6C9; border-color:#bdcf76; }
/* Keep a complete case readable on laptop screens without shrinking its copy. */
@media(min-width:801px) {
 .qoohoo-soft.benchmark-v2 #customer-stories:not([data-stories-view="all"]) { padding-block:32px 28px; }
 .qoohoo-soft.benchmark-v2 #customer-stories:not([data-stories-view="all"]) .showcase-section-head { margin-bottom:20px; }
 #customer-stories:not([data-stories-view="all"]) .showcase-section-head h2 { font-size:clamp(40px,3.4vw,50px); }
 .qoohoo-soft.benchmark-v2 #customer-stories:not([data-stories-view="all"]) .v2-stories-rail { padding-block:6px; }
 #customer-stories:not([data-stories-view="all"]) .showcase-film { min-height:360px; }
 #customer-stories:not([data-stories-view="all"]) .showcase-slide>img { height:clamp(220px,calc(100svh - 450px),320px); aspect-ratio:auto; }
}
@media(min-width:801px) and (max-width:1200px) {
 .qoohoo-soft.benchmark-v2 #customer-stories .showcase-card-surface { gap:20px; padding:20px; }
 #customer-stories .showcase-gallery { padding-left:18px; }
 #customer-stories .showcase-story h3 { font-size:23px; }
 #customer-stories .showcase-film { min-height:400px; }
}
@media(max-width:800px) {
 .qoohoo-soft.benchmark-v2 #customer-stories { padding-block:36px 40px; }
 #customer-stories .showcase-section-head { align-items:flex-start; gap:22px; }
 #customer-stories .showcase-section-head h2 { font-size:32px; }
 .qoohoo-soft.benchmark-v2 #customer-stories .showcase-card-surface { grid-template-columns:1fr; gap:24px; padding:18px; border-radius:26px; align-content:start; }
 #customer-stories .showcase-film { min-height:340px; }
 #customer-stories .showcase-story { padding:0; }
 #customer-stories .v2-story-brand { flex-direction:row; align-items:center; margin-bottom:18px; }
 #customer-stories .showcase-story h3 { font-size:25px; margin-bottom:18px; }
 #customer-stories .showcase-story dl { gap:12px; }
 #customer-stories .showcase-story dd { font-size:14px; }
 #customer-stories .showcase-story .arrow-link { margin-top:18px; }
 #customer-stories .showcase-gallery { padding:20px 0 0; border-left:0; border-top:1px solid #F0ECE8; }
 #customer-stories .showcase-slide { display:grid; grid-template-columns:1fr 1fr; gap:14px; align-items:center; }
 #customer-stories .showcase-slide>img { aspect-ratio:4/5; }
 #customer-stories .showcase-slide figcaption { min-height:0; padding-top:0; }
 #customer-stories .showcase-gallery-nav button { width:64px; height:64px; }
}

#customer-stories .v2-stories-rail.is-dragging { scroll-snap-type:none; cursor:grabbing; user-select:none; }
#customer-stories .v2-stories-rail.is-dragging * { cursor:grabbing; user-select:none; }
#customer-stories .showcase-card:not(.is-focused) { cursor:pointer; }
#customer-stories .showcase-card:not(.is-focused)>* { pointer-events:none; }
#customer-stories .showcase-gallery-nav button:focus-visible { outline:3px solid #ff896d; outline-offset:3px; }
#customer-stories .v2-stories-rail:focus-visible { outline:2px solid #ffffff80; outline-offset:-2px; }

/* More cases is one destination after the five complete stories. */
#customer-stories .showcase-card:nth-child(5) .showcase-film video { object-position:28% center; }
.qoohoo-soft.benchmark-v2 #customer-stories .showcase-more-surface { grid-template-columns:1.15fr 1fr; align-items:center; padding:54px; gap:36px; overflow:hidden; }
#customer-stories .showcase-more h3 { font:800 clamp(30px,3.1vw,44px)/1.25 var(--display); letter-spacing:-.025em; margin:0 0 20px; }
html[lang=th] #customer-stories .showcase-more h3 { line-height:1.4; }
#customer-stories .showcase-more p { color:var(--muted); font-size:16px; line-height:1.6; max-width:32ch; margin:0 0 30px; }
#customer-stories .showcase-more .button { min-width:230px; justify-content:space-between; }
#customer-stories .showcase-more-art { position:relative; height:300px; }
#customer-stories .showcase-more-art img { position:absolute; width:48%; height:84%; object-fit:cover; border-radius:18px; box-shadow:0 12px 30px #34293a16; }
#customer-stories .showcase-more-art img:nth-child(1) { left:0; top:5%; transform:rotate(-12deg); }
#customer-stories .showcase-more-art img:nth-child(2) { left:26%; top:0; transform:rotate(5deg); }
#customer-stories .showcase-more-art img:nth-child(3) { right:-4%; bottom:0; transform:rotate(15deg); }
.qoohoo-soft.benchmark-v2 #customer-stories[data-stories-view="all"] { padding-top:60px; }
#customer-stories[data-stories-view="all"] .showcase-section-head { display:block; }
#customer-stories[data-stories-view="all"] h1 { color:white; max-width:20ch; }
#customer-stories[data-stories-view="all"] .showcase-section-head>p { color:#ffffffc4; max-width:54ch; margin-top:16px; }
.qoohoo-soft.benchmark-v2 #customer-stories[data-stories-view="all"] .v2-stories-rail { display:grid; width:100%; margin:0; padding:0; gap:36px; overflow:visible; cursor:auto; }
#customer-stories[data-stories-view="all"] .showcase-card { scroll-margin-top:100px; }
.qoohoo-soft.benchmark-v2 #customer-stories[data-stories-view="all"] .showcase-card-surface { transform:none; opacity:1; }
.showcase-case-index { display:flex; flex-wrap:wrap; gap:10px; margin:26px 0 32px; }
.showcase-case-index a { border:1px solid #ffffff55; border-radius:30px; padding:8px 16px; color:white; font-size:13px; text-decoration:none; }
.showcase-case-index a:hover { background:#ffffff15; }
@media(max-width:800px) {
 .qoohoo-soft.benchmark-v2 #customer-stories .showcase-more-surface { grid-template-columns:1fr; padding:30px 24px; align-content:center; gap:40px; }
 #customer-stories .showcase-more h3 { font-size:32px; }
 #customer-stories .showcase-more-art { height:250px; }
 #customer-stories .showcase-more p { font-size:14px; }
 .qoohoo-soft.benchmark-v2 #customer-stories[data-stories-view="all"] { padding-top:35px; }
}
