/* BESTPOL: shared image treatment for case studies and supporting galleries. */
.media-polish .detail-layout {grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr);gap:clamp(28px,4vw,64px);align-items:center}
.media-polish .detail-copy {min-width:0}
.media-polish .detail-hero-image,.media-polish .detail-gallery-item,.media-polish .seo-content-figure,.media-polish .article-feature-image {min-width:0;margin:0;padding:clamp(12px,1.4vw,20px);background:#fff;border:1px solid #dfe4ea;border-radius:18px;box-shadow:0 12px 36px rgba(18,41,65,.055)}
.media-polish .detail-hero-image {width:100%;max-width:560px;justify-self:end}
.media-polish .detail-hero-image>a,.media-polish .detail-gallery-item>a {display:block;border-radius:12px;overflow:hidden;background:#f4f5f6;min-width:0}
.media-polish .detail-hero-image img {width:100%;height:auto;aspect-ratio:4/3;max-height:440px;object-fit:contain;transform:none}
.media-polish .detail-hero-image figcaption,.media-polish .detail-gallery-item figcaption,.media-polish .seo-content-figure figcaption {padding:14px 2px 0;margin:12px 0 0;border-top:1px solid #e3e8ed;color:var(--text);font-size:14px;line-height:1.6}
.media-polish .detail-gallery {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;align-items:stretch}
.media-polish .detail-gallery-item {display:flex;flex-direction:column}
.media-polish .detail-gallery-item>a {flex:1;display:grid;place-items:center;min-height:0}
.media-polish .detail-gallery-item img {width:100%;height:auto;aspect-ratio:4/3;max-height:420px;object-fit:contain;transform:none}
.media-polish .detail-gallery-item figcaption {flex:none}
.media-polish .detail-gallery:has(>figure:only-child) {grid-template-columns:minmax(0,1fr);max-width:900px;margin-inline:auto}
.media-polish .detail-gallery:has(>figure:nth-child(3):last-child) {grid-template-columns:minmax(0,1.3fr) minmax(0,1fr)}
.media-polish .detail-gallery:has(>figure:nth-child(3):last-child)>figure:first-child {grid-row:1/3}
.media-polish .detail-gallery:has(>figure:nth-child(3):last-child)>figure:not(:first-child) img {max-height:215px;aspect-ratio:16/9}
.media-polish .detail-gallery:has(>figure:nth-child(3):last-child)>figure:first-child img {max-height:530px;aspect-ratio:4/5}
.media-polish .case-showcase-figure {display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr);align-items:center;padding:18px;gap:clamp(24px,4vw,48px);border-radius:18px}
.media-polish .case-showcase-image-link {padding:0;border-radius:12px;overflow:hidden}
.media-polish .case-showcase-figure img {width:100%;height:auto;aspect-ratio:1;max-height:540px;object-fit:contain;transform:none}
.media-polish .case-showcase-caption {display:block;padding:12px 18px 12px 0;border:0}
.media-polish .case-showcase-caption h1 {font-size:clamp(28px,3vw,43px)}
.media-polish .case-showcase-caption p {font-size:16px}
.media-polish .case-showcase-arrow {margin:22px 0 0;width:48px;height:48px}
.media-polish .seo-content-figure img,.media-polish .article-feature-image img {width:100%;height:auto;aspect-ratio:4/3;max-height:460px;object-fit:contain;border-radius:12px}
.media-polish.case-page .related-photo {padding:12px;border:1px solid #dfe4ea;border-radius:16px;overflow:hidden;background:#fff}
.media-polish.case-page .related-photo img {height:auto;aspect-ratio:4/3;object-fit:contain;border-radius:10px}
.media-polish .gallery-grid {gap:28px}
.media-polish .gallery-item {min-width:0;padding:16px;background:#fff;border:1px solid #dfe4ea;border-radius:18px;box-shadow:0 12px 34px rgba(18,41,65,.05)}
.media-polish .gallery-image {display:block;overflow:hidden;border-radius:12px;margin-bottom:20px;background:#f4f5f6}
.media-polish .gallery-image img {width:100%;height:auto;aspect-ratio:4/3;object-fit:contain}
.media-polish .gallery-item h2 {font-size:23px}
.r4-evidence {background:var(--wash);padding-block:clamp(40px,5vw,68px)}
.r4-evidence .r4-evidence-grid {display:grid;grid-template-columns:1fr 1fr;gap:40px}
.r4-evidence h2 {font-size:clamp(25px,2.6vw,32px)}
.r4-evidence p {max-width:64ch}
.r4-related {display:flex;flex-wrap:wrap;gap:10px 22px;margin-top:22px}
.r4-related a {font-size:15px;min-height:44px;display:inline-flex;align-items:center}
.r4-note {border-left:3px solid var(--blue);padding:16px 22px;background:#f2f5fb;margin:24px 0;font-size:16px;line-height:1.7}
.r4-video {padding:16px;border:1px solid #dfe4ea;border-radius:18px;background:#fff;margin:26px 0 0;max-width:1000px}
.r4-video video {display:block;width:100%;aspect-ratio:16/9;border-radius:12px;background:#172b46}
.r4-video figcaption {padding:16px 4px 4px;font-size:14px;line-height:1.6}
.r4-article-updated {font-size:13px;color:var(--muted);margin-bottom:22px}
.r4-article-links {border-top:1px solid var(--line);padding-top:24px;margin-top:32px}
.r4-table {max-width:100%;overflow-x:auto;margin:24px 0;border:1px solid var(--line);border-radius:10px}
.r4-table table {border-collapse:collapse;width:100%;font-size:15px;min-width:520px}
.r4-table th,.r4-table td {text-align:left;vertical-align:top;padding:13px 16px;border-bottom:1px solid var(--line)}
.r4-table th {background:var(--soft);color:var(--ink)}
.r4-table tr:last-child td {border-bottom:0}
@media(max-width:900px) {
 .media-polish .detail-layout {grid-template-columns:1fr;gap:28px}
 .media-polish .detail-hero-image {justify-self:start;max-width:640px}
 .media-polish .detail-gallery {gap:18px}
 .media-polish .case-showcase-figure {grid-template-columns:1fr;max-width:760px;margin-inline:auto;gap:18px}
 .media-polish .case-showcase-caption {padding:8px}
 .media-polish .case-showcase-figure img {max-height:440px}
 .r4-evidence .r4-evidence-grid {grid-template-columns:1fr;gap:24px}
}
@media(max-width:600px) {
 .media-polish .detail-gallery,.media-polish .detail-gallery:has(>figure:nth-child(2):last-child) {grid-template-columns:1fr}
 .media-polish .detail-gallery:has(>figure:nth-child(3):last-child) {grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
 .media-polish .detail-gallery:has(>figure:nth-child(3):last-child)>figure:first-child {grid-column:1/-1;grid-row:auto}
 .media-polish .detail-gallery:has(>figure:nth-child(3):last-child)>figure:first-child img {aspect-ratio:4/3;max-height:360px}
 .media-polish .detail-gallery:has(>figure:nth-child(3):last-child)>figure:not(:first-child) img {aspect-ratio:4/5;max-height:240px}
 .media-polish .detail-gallery-item figcaption {font-size:13px;line-height:1.5;padding-top:10px;margin-top:10px}
 .media-polish .detail-hero-image,.media-polish .detail-gallery-item {border-radius:14px;padding:12px}
 .media-polish .case-showcase-figure {padding:12px}
 .media-polish .case-showcase-caption {padding:8px 3px}
 .r4-note {padding:14px 16px}
 .r4-video {padding:10px}
}
@media(max-width:380px) {
 .media-polish .detail-gallery:has(>figure:nth-child(3):last-child) {grid-template-columns:1fr}
 .media-polish .detail-gallery:has(>figure:nth-child(3):last-child)>figure:not(:first-child) img {aspect-ratio:4/3;max-height:320px}
}
@media print {.media-polish .detail-hero-image,.media-polish .detail-gallery-item {box-shadow:none;break-inside:avoid}.r4-video video {display:none}}

.r4-video+* {margin-top:24px}
#timelapse {padding-top:clamp(32px,4vw,56px);scroll-margin-top:110px}
