/* Pilates artwork only. Full original images remain available through zoom. */
.case-editorial[data-case-slug="springbom-pilates"] .case-browser-demo {
  background:#ffb1b4 url('../images/springbom-pilates/letter-hero-orange-pink.png') center / cover no-repeat;
}
.project-hover-plane .pilates-video-cover {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  padding: 11%;
  background: #f8a6cf url("../images/previews/springbom-pilates-preview-background.webp") center bottom / cover no-repeat;
}
.pilates-video-cover video {
  display: block;
  width: 100%;
  height: auto;
  max-height: 100%;
  object-fit: contain;
  border: 0;
  border-radius: 8px;
  box-shadow: var(--preview-screen-shadow);
  pointer-events: none;
}
.project-hover-plane .pilates-logo-cover {
  display: grid;
  place-items: center;
  background: #f7931d;
}
.project-hover-plane .pilates-logo-cover .image-project-b {
  width: 68%;
  height: 68%;
  object-fit: contain;
  transform: none;
}
.cms-case-section[data-section-key="pilates-identity"] { max-width: 560px; }
/* Retain the old image sizing while cached CMS responses expire. */
.cms-case-section[data-section-key="pilates-hiring"] { max-width: 380px; }
.cms-case-section[data-section-key="pilates-studio-interior"] { max-width: 280px; }
.cms-case-section[data-section-key="pilates-chupogi-print"] { max-width: 420px; }
.cms-case-section[data-section-key="pilates-pricing-artwork"] { max-width: 720px; }
.cms-gallery-section[data-section-key="pilates-flyers"],
.cms-gallery-section[data-section-key="pilates-social"] { max-width: 980px; }
.cms-case-section[data-section-key^="pilates-"] {
  --pilates-media-radius: 10px;
}
/* The media owns its corners. The figure includes the caption and must not
   clip the shadow or round only the top of a video. */
figure.cms-case-section[data-section-key^="pilates-"],
.cms-gallery-section[data-section-key^="pilates-"] .cms-gallery > figure {
  overflow: visible;
  border-radius: 0;
}
.cms-case-section[data-section-key^="pilates-"] figcaption {
  background: transparent;
  text-align: left;
  margin-top: 16px;
  padding: 0;
}
/* One complete desktop homepage. Height follows the image, not a scroll frame. */
.cms-case-section.pilates-full-homepage { max-width: 880px; }
.pilates-full-homepage > .cms-image-zoom {
  display: block;
  width: 100%;
  height: auto;
  max-height: none;
  overflow: hidden;
  padding: 0;
}
.pilates-full-homepage > .cms-image-zoom img {
  display: block;
  width: 100%;
  height: auto;
  max-height: none;
  margin: 0;
  border: 0;
  border-radius: 0;
}
.cms-image-section[data-section-key^="pilates-"] .cms-image-zoom,
.cms-gallery-section[data-section-key^="pilates-"] .cms-image-zoom,
.cms-video-section[data-section-key^="pilates-"] .cms-video-frame {
  border: 0;
  border-radius: var(--pilates-media-radius);
  overflow: hidden;
  box-shadow: var(--case-screen-shadow);
}
.cms-image-section[data-section-key^="pilates-"] .cms-image-zoom,
.cms-gallery-section[data-section-key^="pilates-"] .cms-image-zoom {
  background: #fff;
}
.cms-image-section[data-section-key^="pilates-"] .cms-image-zoom img,
.cms-gallery-section[data-section-key^="pilates-"] .cms-image-zoom img {
  border-radius: 0;
}
.cms-video-section[data-section-key^="pilates-"] .cms-video-frame video {
  display: block;
  border-radius: inherit;
  object-fit: contain;
}
/* Match the earlier logo preview: intact artwork at 68% inside its orange tile. */
.cms-image-section[data-section-key="pilates-identity"] .cms-image-zoom {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  background: #f7931d;
}
.cms-image-section[data-section-key="pilates-identity"] .cms-image-zoom img {
  width: 68%;
  height: auto;
  object-fit: contain;
}
/* Keep the logo and Chupogi together, with the complete square artwork visible. */
.cms-gallery-section[data-section-key="pilates-identity"] { max-width: 1080px; }
.cms-gallery-section[data-section-key="pilates-identity"] .cms-gallery {
  align-items: start;
}
.cms-gallery-section[data-section-key="pilates-identity"] .cms-image-zoom {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
}
.cms-gallery-section[data-section-key="pilates-identity"] .cms-image-zoom img {
  width: 100%;
  height: auto;
  object-fit: contain;
}
.cms-gallery-section[data-section-key="pilates-identity"] figure:first-child .cms-image-zoom {
  background: #f7931d;
}
.cms-gallery-section[data-section-key="pilates-identity"] figure:first-child .cms-image-zoom img {
  width: 68%;
}
.cms-gallery-section[data-section-key="pilates-responsive-homepage"] { max-width: 1080px; }
[data-section-key="pilates-responsive-homepage"] .cms-gallery {
  grid-template-columns: minmax(0, 3fr) minmax(0, 1fr);
  align-items: start;
  gap: 28px;
}
[data-section-key="pilates-responsive-homepage"] .cms-page-surface {
  height: 660px;
  overflow: auto;
  scrollbar-width: thin;
  overscroll-behavior: auto;
  box-shadow: 0 6px 22px rgb(0 0 0 / 10%);
}
[data-section-key="pilates-responsive-homepage"] .cms-page-surface:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}
[data-section-key="pilates-responsive-homepage"] .cms-image-zoom,
[data-section-key="pilates-responsive-homepage"] .cms-image-zoom img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0;
}
@media screen and (max-width: 767px) {
  [data-section-key="pilates-responsive-homepage"] .cms-gallery { grid-template-columns: 1fr; gap: 32px; }
  [data-section-key="pilates-responsive-homepage"] .cms-page-surface { height: 420px; }
  [data-section-key="pilates-responsive-homepage"] figure:last-child { width: min(100%, 320px); justify-self: start; }
  [data-section-key="pilates-responsive-homepage"] figure:last-child .cms-page-surface { height: 560px; }
}

/* Four original 406 × 720 website clips: complete pixels, no device frames. */
.pilates-website-video-grid {
  display: grid;
  width: 100%;
  max-width: 1080px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
  align-items: start;
}
.pilates-website-video-grid > figure {
  min-width: 0;
  max-width: none;
  margin: 0;
}
.pilates-website-video-grid .cms-video-frame {
  aspect-ratio: 406 / 720;
  max-width: none;
  background: transparent;
  border: 0;
  border-radius: var(--pilates-media-radius);
  box-shadow: var(--case-screen-shadow);
}
.pilates-website-video-grid video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border: 0;
  border-radius: inherit;
  box-shadow: none;
}
.pilates-website-video-grid figcaption {
  margin: 12px 0 0;
  text-align: left;
}
@media screen and (max-width: 767px) {
  /* Match the Store's mobile film width and vertical spacing. */
  .pilates-website-video-grid {
    grid-template-columns: 1fr;
    max-width: 300px;
    gap: 32px;
  }
}
