/* Case study v2 (/case-study/{slug}/). Values from the design's build spec;
   colours and spacing from design-system.css tokens. */

.cs2 {
    --cs2-divider: #d5e0f3;
    --cs2-border: #e6e6e6;
    --cs2-sticky-top: 24px;
    color: var(--cx-text);
    font-family: 'Raleway', sans-serif;
}

/* Resets kept at one-class weight (:where), so the rules below win. */
.cs2 :where(h1, h2, h3, p, ul, dl, dd, figure, blockquote) { margin: 0; }
.cs2 :where(ul) { padding: 0; list-style: none; }
.cs2 :where(a) { text-decoration: none; }
.cs2 :where(img) { max-width: 100%; height: auto; display: block; }

.cs2-section, .cs2-hero { padding: var(--cx-section-space) 0; }

.cs2-h2, .cs2-block h2 {
    font-size: var(--cx-h2);
    font-weight: 700;
    line-height: 1.25;
    color: var(--cx-text);
    text-transform: none;
}
.cs2-block h2 { font-size: 28px; }

/* Buttons */
.cs2-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: var(--cx-button-height);
    padding: 0 28px;
    border-radius: var(--cx-radius-control);
    background: var(--cx-primary);
    color: var(--cx-on-primary);
    font-size: 16px;
    font-weight: 600;
    white-space: nowrap;
    transition: background-color .2s ease;
}
.cs2-btn:hover, .cs2-btn:focus { background: #2a4d8f; color: var(--cx-on-primary); }
.cs2-btn-outline { padding: 0 24px; background: transparent; border: 2px solid var(--cx-primary); color: var(--cx-primary); }
.cs2-btn-outline:hover, .cs2-btn-outline:focus { background: var(--cx-tint); color: var(--cx-primary); }
.cs2-btn-light { background: var(--cx-surface); color: var(--cx-primary); }
.cs2-btn-light:hover, .cs2-btn-light:focus { background: var(--cx-tint); color: var(--cx-primary); }

.cs2-chip {
    display: inline-flex;
    align-items: center;
    height: 28px;
    padding: 0 12px;
    border-radius: 30px;
    background: var(--cx-tint);
    color: var(--cx-primary);
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
}

/* Hero */
.cs2-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 560px;
    gap: 64px;
    align-items: start;
}
.cs2-hero-grid.is-text-only { grid-template-columns: minmax(0, 1fr); }
.cs2-hero-text { display: flex; flex-direction: column; align-items: flex-start; }

.cs2-breadcrumb { display: flex; align-items: center; gap: 8px; min-width: 0; max-width: 100%; font-size: 14px; font-weight: 600; }
.cs2-breadcrumb a { color: var(--cx-primary); }
.cs2-breadcrumb a:hover { text-decoration: underline; }
.cs2-breadcrumb [aria-hidden] { color: #8c8c8c; }
.cs2-breadcrumb span:last-child { color: var(--cx-text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.cs2-hero .cs2-chip { margin-top: 20px; }
.cs2-hero h1 {
    margin-top: 12px;
    font-size: var(--cx-h1);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -.01em;
    color: var(--cx-text);
    text-transform: none;
    text-wrap: balance;
}
.cs2-tagline { margin-top: 8px; max-width: 640px; font-size: 22px; font-weight: 500; line-height: 1.4; color: var(--cx-text-muted); text-wrap: pretty; }
.cs2-lead { margin-top: 16px; max-width: 600px; font-size: 18px; font-weight: 500; line-height: 1.6; color: var(--cx-text); text-wrap: pretty; }

.cs2-actions { margin-top: 24px; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.cs2-action-row { display: flex; align-items: center; gap: 12px; }

.cs2-store {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    height: var(--cx-button-height);
    padding: 0 16px;
    border-radius: var(--cx-radius-control);
    background: #000;
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
}
.cs2-store:hover, .cs2-store:focus { background: #222; color: #fff; }
.cs2-store span { display: flex; flex-direction: column; gap: 2px; }
.cs2-store small { font-size: 10px; font-weight: 500; letter-spacing: .02em; }

.cs2-hero-media {
    aspect-ratio: 4 / 3;
    border-radius: var(--cx-radius-card);
    overflow: hidden;
    background: var(--cx-tint);
}
.cs2-hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center; }

/* A plugin writes an inline width/height/max-width on attachment images:
   the framed images fill their frame instead. */
.cs2 .cs2-hero-media img, .cs2 .cs2-more-media img, .cs2 .cs2-shot-frame img {
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
}

/* Body + details card */
.cs2-body {
    display: grid;
    grid-template-columns: minmax(0, 760px) minmax(0, 1fr);
    gap: 40px;
    align-items: start;
}
.cs2-body-text { display: flex; flex-direction: column; gap: 40px; min-width: 0; }
.cs2-prose { margin-top: 16px; font-size: 18px; font-weight: 500; line-height: 1.7; color: var(--cx-text); }
.cs2-prose p { margin: 0; text-wrap: pretty; }
.cs2 .cs2-prose > * + * { margin-top: 18px; }
.cs2-prose ul { list-style: disc; padding-left: 1.25em; }
.cs2-prose li + li { margin-top: 8px; }
.cs2-prose a { color: var(--cx-primary); text-decoration: underline; }

.cs2-features {
    margin-top: 16px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 32px;
}
.cs2-features li { display: flex; align-items: flex-start; gap: 12px; font-size: 16px; font-weight: 500; line-height: 1.5; }
.cs2-features li > span:last-child { flex: 1; min-width: 0; text-wrap: pretty; }
.cs2-tick {
    flex: none;
    width: 20px;
    height: 20px;
    margin-top: 2px;
    border-radius: 50%;
    background: var(--cx-primary);
    color: var(--cx-on-primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.cs2-card {
    position: sticky;
    top: var(--cs2-sticky-top);
    padding: 28px;
    border-radius: var(--cx-radius-card);
    background: var(--cx-tint);
}
.cs2-card-title { font-size: 20px; font-weight: 700; line-height: 1.3; }
.cs2-card-label { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--cx-primary); }
.cs2-card-group { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--cs2-divider); }
.cs2-card-title + .cs2-card-group { margin-top: 18px; padding-top: 0; border-top: 0; }

.cs2-facts { margin-top: 18px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 20px; }
.cs2-facts > div { display: grid; grid-template-columns: 20px minmax(0, 1fr); column-gap: 12px; align-items: start; align-content: start; /* rows stay at the top when the neighbour fact is taller (6 Nov 2026) */ }
.cs2-facts .cs2-icon { grid-row: span 2; margin-top: 1px; color: var(--cx-primary); }
.cs2-facts dt { font-size: 13px; font-weight: 600; color: var(--cx-text-muted); }
.cs2-facts dd { margin-top: 2px; font-size: 16px; font-weight: 600; line-height: 1.4; font-variant-numeric: lining-nums; overflow-wrap: anywhere; }

.cs2-services { margin-top: 12px; display: flex; flex-direction: column; gap: 10px; }
.cs2-service { display: flex; align-items: center; gap: 12px; color: var(--cx-text); font-size: 15px; font-weight: 600; }
a.cs2-service:hover, a.cs2-service:focus { color: var(--cx-primary); }
a.cs2-service:hover .cs2-service-label { text-decoration: underline; }
.cs2-service-icon {
    flex: none;
    width: 36px;
    height: 36px;
    border-radius: var(--cx-radius-control);
    background: var(--cx-surface);
    display: flex;
    align-items: center;
    justify-content: center;
}
.cs2-service-icon img { width: 20px; height: 20px; object-fit: contain; }
.cs2-arrow { margin-left: auto; color: var(--cx-primary); }

.cs2-tech { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 8px; }
.cs2-tech li {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 40px;
    padding: 0 12px 0 8px;
    border-radius: var(--cx-radius-control);
    background: var(--cx-surface);
    font-size: 14px;
    font-weight: 600;
}
.cs2-tech img { width: 22px; height: 22px; object-fit: contain; }

.cs2-links { margin-top: 12px; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.cs2-links a { display: flex; align-items: center; gap: 10px; min-height: 28px; color: var(--cx-primary); font-size: 15px; font-weight: 600; overflow-wrap: anywhere; }
.cs2-links a:hover, .cs2-links a:focus { color: var(--cx-primary); text-decoration: underline; }
.cs2-links .cs2-icon { flex: none; }

/* Results */
.cs2-results { margin-top: 24px; display: grid; grid-template-columns: repeat(var(--cs2-cols, 2), minmax(0, 1fr)); gap: 16px; }
.cs2-result { padding: 28px 32px; border-radius: var(--cx-radius-card); background: var(--cx-tint); }
.cs2-result-number { font-size: 48px; font-weight: 800; line-height: 1; color: var(--cx-primary); font-variant-numeric: lining-nums; }
.cs2-result-label { margin-top: 12px; font-size: 16px; font-weight: 500; line-height: 1.5; }

/* Screenshots */
.cs2-gallery-band { background: var(--cx-surface-alt); }
.cs2-gallery { margin-top: 24px; display: grid; gap: 24px; }
.cs2-shot-frame {
    position: relative;
    display: block;
    width: 100%;
    padding: 0;
    border: 1px solid var(--cs2-border);
    border-radius: var(--cx-radius-card);
    overflow: hidden;
    background: var(--cx-surface);
    cursor: zoom-in;
}
.cs2-shot-frame img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.cs2-zoom {
    position: absolute;
    right: 12px;
    top: 12px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--cx-surface);
    box-shadow: 0 2px 8px rgba(0, 0, 0, .15);
    color: var(--cx-primary);
    font-size: 16px;
    font-weight: 600;
    line-height: 36px;
    text-align: center;
}
.cs2-shot figcaption {
    margin-top: 12px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
    color: var(--cx-text-muted);
}

/* Web: one large image beside the next two, the rest three across below. */
.cs2-gallery.is-web { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cs2-gallery.is-web .cs2-shot-frame { aspect-ratio: 16 / 10; }
.cs2-gallery.is-web .cs2-shot figcaption { height: 42px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
@media (min-width: 992px) {
    .cs2-gallery.is-web { grid-template-columns: minmax(0, 1fr) 394px; }
    .cs2-gallery.is-web .cs2-shot:first-child { grid-row: span 2; display: flex; flex-direction: column; }
    .cs2-gallery.is-web .cs2-shot:first-child .cs2-shot-frame { flex: 1; aspect-ratio: auto; min-height: 0; }
    .cs2-gallery.is-web .cs2-shot:first-child .cs2-shot-frame img { position: absolute; inset: 0; }
    .cs2-gallery.is-web .cs2-shot:nth-child(n+4) { grid-column: auto; }
    .cs2-gallery.is-web:has(.cs2-shot:nth-child(4)) { grid-template-columns: repeat(6, minmax(0, 1fr)); }
    .cs2-gallery.is-web:has(.cs2-shot:nth-child(4)) .cs2-shot:first-child { grid-column: span 4; }
    .cs2-gallery.is-web:has(.cs2-shot:nth-child(4)) .cs2-shot:nth-child(2),
    .cs2-gallery.is-web:has(.cs2-shot:nth-child(4)) .cs2-shot:nth-child(3) { grid-column: span 2; }
    .cs2-gallery.is-web:has(.cs2-shot:nth-child(4)) .cs2-shot:nth-child(n+4) { grid-column: span 2; }
}

/* Phone: 4 across with a 72px inset (3 when there are 3). */
.cs2-gallery.is-phone { grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 0 72px; }
.cs2-gallery.is-phone:not(:has(.cs2-shot:nth-child(4))) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cs2-gallery.is-phone .cs2-shot-frame { aspect-ratio: 9 / 19.5; }

/* Quote */
.cs2-quote {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 48px;
    align-items: center;
    padding: 40px 48px;
    border-radius: var(--cx-radius-card);
    background: var(--cx-tint);
}
.cs2-quote:not(:has(figcaption)) { grid-template-columns: minmax(0, 1fr); }
.cs2-quote blockquote { padding: 0; border: 0; }
.cs2-quote-mark { display: block; height: 36px; font-size: 80px; font-weight: 700; line-height: .6; color: var(--cx-primary); }
.cs2-quote p { margin-top: 14px; max-width: 760px; font-size: var(--cx-lead); font-weight: 500; line-height: 1.65; }
.cs2-quote figcaption { display: flex; align-items: center; gap: 16px; }
.cs2-quote figcaption > span { display: flex; flex-direction: column; gap: 4px; }
.cs2-quote strong { font-size: 18px; font-weight: 700; }
.cs2-quote figcaption span span { font-size: 15px; font-weight: 500; line-height: 1.4; color: var(--cx-text-muted); }
.cs2-quote-photo { flex: none; width: 64px; height: 64px; border-radius: 50%; object-fit: cover; }

/* More projects */
.cs2-more-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.cs2-see-all { color: var(--cx-primary); font-size: 16px; font-weight: 600; white-space: nowrap; }
.cs2-see-all:hover { color: var(--cx-primary); text-decoration: underline; }
.cs2-see-all-mobile { display: none; }
.cs2-more { margin-top: 24px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.cs2-more-card {
    display: flex;
    flex-direction: column;
    border-radius: var(--cx-radius-card);
    background: var(--cx-surface);
    box-shadow: var(--cx-shadow);
    color: var(--cx-text);
    transition: transform .2s ease, box-shadow .2s ease;
}
.cs2-more-card:hover, .cs2-more-card:focus { transform: translateY(-4px); box-shadow: 0 10px 28px rgba(40, 77, 145, .16); color: var(--cx-text); }
.cs2-more-media { position: relative; display: block; aspect-ratio: 4 / 3; border-radius: var(--cx-radius-card) var(--cx-radius-card) 0 0; overflow: hidden; background: var(--cx-tint); }
.cs2-more-media img { width: 100%; height: 100%; object-fit: cover; }
.cs2-chip-on-image { position: absolute; left: 14px; top: 14px; background: var(--cx-surface); box-shadow: 0 2px 6px rgba(0, 0, 0, .08); }
.cs2-more-text { display: block; height: 116px; padding: 18px 24px 0; }
.cs2-more-text h3 { font-size: var(--cx-h3); font-weight: 700; line-height: 1.3; color: var(--cx-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-transform: none; }
.cs2-more-tagline { margin-top: 4px; font-size: 15px; font-weight: 500; line-height: 1.4; color: var(--cx-text-muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* Closing band */
.cs2-cta-section { padding-bottom: 80px; }
.cs2-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    padding: 48px 56px;
    border-radius: var(--cx-radius-card);
    background: var(--cx-primary);
    color: var(--cx-on-primary);
}
.cs2-cta > div:first-child { max-width: 760px; }
.cs2-cta h2 { font-size: var(--cx-h2); font-weight: 700; line-height: 1.25; color: var(--cx-on-primary); text-transform: none; }
.cs2-cta p { margin-top: 10px; font-size: 18px; font-weight: 500; line-height: 1.5; }
.cs2-cta-actions { flex: none; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.cs2-cta-link { color: var(--cx-on-primary); font-size: 15px; font-weight: 600; text-decoration: underline !important; text-underline-offset: 4px; }
.cs2-cta-link:hover, .cs2-cta-link:focus { color: var(--cx-on-primary); }

/* Lightbox */
.cs2-lightbox {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    padding: 24px;
    background: rgba(17, 24, 42, .94);
}
.cs2-lightbox[hidden], .cs2-lightbox [hidden] { display: none !important; }
.cs2-lightbox figure { display: flex; flex-direction: column; align-items: center; gap: 14px; min-width: 0; }
.cs2-lightbox img { max-width: min(1100px, 100%); max-height: calc(100vh - 160px); width: auto; border-radius: var(--cx-radius-card); background: var(--cx-surface); }
.cs2-lightbox figcaption { color: #fff; font-size: 16px; font-weight: 500; text-align: center; }
.cs2-lb-count { color: #fff; font-size: 14px; font-weight: 600; font-variant-numeric: lining-nums; }
.cs2-lightbox button {
    flex: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    background: var(--cx-primary);
    color: #fff;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
}
.cs2-lightbox .cs2-lb-close { position: absolute; right: 32px; top: 24px; background: var(--cx-surface); color: var(--cx-text); font-size: 24px; }

/* The header turns fixed on scroll: keep the card below it. */
@media (min-width: 992px) {
    .cs2 { --cs2-sticky-top: 116px; }
}

@media (max-width: 1199.98px) {
    .cs2-hero-grid { grid-template-columns: minmax(0, 1fr) 440px; gap: 40px; }
    .cs2-body { grid-template-columns: minmax(0, 1fr) 360px; }
    .cs2-gallery.is-phone { padding: 0; }
}

@media (max-width: 991.98px) {
    .cs2-hero-grid, .cs2-body { grid-template-columns: minmax(0, 1fr); }
    .cs2-hero-grid { gap: 20px; }
    .cs2-hero .cs2-chip { margin-top: 16px; }
    .cs2-hero h1 { margin-top: 10px; line-height: 1.25; }
    .cs2-tagline { margin-top: 6px; font-size: 18px; }
    .cs2-lead { margin-top: 12px; font-size: 16px; }
    .cs2-actions, .cs2-action-row { width: 100%; align-items: stretch; }
    .cs2-actions { margin-top: 20px; gap: 10px; }
    .cs2-action-row { flex-direction: column; gap: 10px; }
    .cs2-action-row .cs2-btn { width: 100%; }
    .cs2-action-row.cs2-stores { flex-direction: row; }
    .cs2-stores .cs2-store { flex: 1; justify-content: center; padding: 0 10px; gap: 8px; font-size: 15px; border-radius: 9px; }
    .cs2-stores .cs2-store small { font-size: 9px; }

    /* Mobile order: hero > details card > text. */
    .cs2-body { gap: 24px; }
    .cs2-card { position: static; order: -1; padding: 22px 20px; }
    .cs2-card-title { font-size: 18px; }
    .cs2-facts { margin-top: 14px; gap: 14px 12px; }
    .cs2-facts > div { grid-template-columns: 18px minmax(0, 1fr); column-gap: 8px; }
    .cs2-facts dd { font-size: 15px; }
    .cs2-card-group { margin-top: 18px; padding-top: 16px; }
    .cs2-services { flex-direction: row; flex-wrap: wrap; gap: 8px; }
    .cs2-service { height: 44px; padding: 0 12px 0 8px; border-radius: var(--cx-radius-control); background: var(--cx-surface); gap: 8px; font-size: 14px; }
    .cs2-service-icon { width: 28px; height: 28px; border-radius: 8px; background: var(--cx-tint); }
    .cs2-service-icon img { width: 16px; height: 16px; }
    .cs2-arrow { margin-left: 0; }
    .cs2-links { gap: 0; margin-top: 6px; }
    .cs2-links a { min-height: 44px; }

    .cs2-block h2 { font-size: 22px; line-height: 1.3; }
    .cs2-prose { font-size: 16px; }
    .cs2 .cs2-prose > * + * { margin-top: 14px; }
    .cs2-features { grid-template-columns: minmax(0, 1fr); gap: 12px; }

    .cs2-results { grid-template-columns: minmax(0, 1fr); gap: 12px; margin-top: 16px; }
    .cs2-result { padding: 18px; }
    .cs2-result-number { font-size: 32px; }
    .cs2-result-label { margin-top: 8px; font-size: 14px; line-height: 1.45; }

    .cs2-gallery { margin-top: 16px; gap: 16px 12px; }
    .cs2-gallery.is-web { grid-template-columns: minmax(0, 1fr); }
    .cs2-gallery.is-phone, .cs2-gallery.is-phone:not(:has(.cs2-shot:nth-child(4))) { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 0; }
    .cs2-gallery.is-web .cs2-shot figcaption { height: auto; display: block; }
    .cs2-zoom { width: 44px; height: 44px; line-height: 44px; right: 8px; top: 8px; }

    .cs2-quote { grid-template-columns: minmax(0, 1fr); gap: 16px; padding: 24px 20px; }
    .cs2-quote-mark { height: 28px; font-size: 60px; }
    .cs2-quote p { margin-top: 10px; font-size: 17px; line-height: 1.6; }
    .cs2-quote figcaption { padding-top: 16px; border-top: 1px solid #dbdbdb; gap: 12px; }
    .cs2-quote-photo { width: 48px; height: 48px; }
    .cs2-quote strong { font-size: 16px; }
    .cs2-quote figcaption span span { font-size: 14px; }

    .cs2-see-all { display: none; }
    .cs2-see-all-mobile { display: flex; width: 100%; margin-top: 16px; }
    .cs2-more { grid-template-columns: minmax(0, 1fr); gap: 16px; margin-top: 16px; }
    .cs2-chip-on-image { left: 12px; top: 12px; }
    .cs2-more-text { height: 104px; padding: 16px 18px 0; }

    .cs2-cta-section { padding-bottom: 48px; }
    .cs2-cta { flex-direction: column; align-items: stretch; gap: 20px; padding: 28px 22px; }
    .cs2-cta p { margin-top: 8px; font-size: 16px; }
    .cs2-cta-actions { gap: 6px; }
    .cs2-cta-actions .cs2-btn { width: 100%; }
    .cs2-cta-link { display: flex; align-items: center; justify-content: center; min-height: 44px; text-align: center; }

    .cs2-lightbox { flex-direction: column; gap: 14px; padding: 20px; }
    .cs2-lightbox .cs2-lb-close { right: 16px; top: 16px; }
    .cs2-lightbox .cs2-lb-prev, .cs2-lightbox .cs2-lb-next { position: absolute; bottom: 24px; }
    .cs2-lightbox .cs2-lb-prev { left: calc(50% - 88px); }
    .cs2-lightbox .cs2-lb-next { right: calc(50% - 88px); }
    .cs2-lightbox img { max-height: calc(100vh - 220px); }
}

/* Feature images (old hero + Portfolio image): one row, same height, never
   cropped; each takes width in proportion to its shape. Stacked on mobile. */
.cs2-lead-shots { display: flex; gap: 24px; margin-top: 24px; }
.cs2-lead-shot { flex: var(--cs2-ratio) 1 0; min-width: 0; margin: 0; }
.cs2-lead-shot .cs2-shot-frame { aspect-ratio: var(--cs2-ratio); }
.cs2 .cs2-lead-shot .cs2-shot-frame img { object-fit: contain; }
.cs2-lead-shots + .cs2-gallery { margin-top: 24px; }
/* A lone image: at most 480px tall, centred. */
.cs2-lead-shots { justify-content: center; }
.cs2-lead-shot:only-child { max-width: calc(480px * var(--cs2-ratio)); }
@media (max-width: 991.98px) {
    .cs2-lead-shots { flex-direction: column; gap: 16px; margin-top: 16px; }
    .cs2-lead-shot { flex: none; }
    .cs2-lead-shots + .cs2-gallery { margin-top: 16px; }
}
