/* Sleep collection additions to the shared bedding collection framework. */
.sleep-page .bm-section-heading h1 {
  margin: 16px 0 0;
  font-family: var(--bm-serif, Georgia, serif);
  font-size: clamp(28px, 2.65vw, 40px);
  font-weight: 400;
  line-height: 1.3;
}
.sleep-collection { min-width: 0; margin: 0; }
.sleep-collection .bm-collection-card { display: block; width: 100%; }
.sleep-collection figcaption {
  padding-top: 12px;
  color: var(--bm-muted);
  font-size: 11px;
  line-height: 1.8;
  text-align: center;
}
.sleep-story-image { margin: 0; }
.sleep-story-image figcaption {
  position: absolute;
  z-index: 1;
  right: 20px;
  bottom: 18px;
  left: 20px;
  width: fit-content;
  max-width: calc(100% - 40px);
  margin-left: auto;
  padding: 8px 11px;
  background: rgba(247, 240, 228, .92);
  color: var(--bm-ink);
  font-size: 11px;
  line-height: 1.7;
}
.sleep-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
@media (max-width: 760px) {
  .sleep-collection figcaption { padding-top: 10px; text-align: left; }
  .sleep-story-image figcaption { right: 14px; bottom: 14px; left: 14px; max-width: calc(100% - 28px); font-size: 10px; }
}
