/* The theme still controls pinning, image progress, gradient and caption. */
.manifesto-fullbleed .clipped-image {
  transform: none !important;
  clip-path: inset(0) !important;
  overflow: hidden;
}

.manifesto-fullbleed .clipped-image > img {
  position: absolute;
  width: 125% !important;
  height: 125% !important;
  max-width: none !important;
  top: -12.5%;
  left: -12.5%;
  object-fit: cover;
  transform: scale(var(--manifesto-image-scale, .8));
  transform-origin: center center;
}

.manifesto-fullbleed .clipped-image-gradient {
  opacity: 0 !important;
}

/* Only explicitly labelled blocks override Manifesto's viewport-sized layout. */
.manifesto-custom-height .clipped-image {
  height: var(--manifesto-clip-height) !important;
}
.manifesto-custom-height .clipped-image-content {
  padding-top: 0 !important;
}
.manifesto-custom-height {
  height: var(--manifesto-clip-height) !important;
}

/* A short image must also shorten GSAP's pin and its reserved layout space. */
.manifesto-custom-height .clipped-image-pin,
.manifesto-custom-height .manifesto-clip-pin-spacer {
  height: var(--manifesto-clip-height) !important;
  min-height: 0 !important;
  max-height: none !important;
}
.manifesto-custom-height .manifesto-clip-pin-spacer {
  padding-bottom: 0 !important;
}

/* Custom-height captions are revealed inside the pin, never as a white panel. */
.manifesto-custom-height {
  background-color: var(--manifesto-section-background, #000);
}
.manifesto-custom-height .clipped-image-pin {
  overflow: hidden !important;
}
.manifesto-custom-height .clipped-image-pin > .clipped-image-content {
  position: absolute !important;
  top: auto !important;
  bottom: 0 !important;
  left: 0;
  width: 100%;
  box-sizing: border-box;
  transform: translateY(var(--manifesto-caption-shift, 100%)) !important;
}

/* Custom blocks have no pin travel or additional document footprint. */
.manifesto-custom-height .clipped-image-pin {
  position: relative !important;
  top: 0 !important;
  left: 0 !important;
  transform: none !important;
}
