/* Remove the 8px theme padding around every iFrame element */
.cms-block-type-iframe .grp.media.embed { padding: 0 !important; }

/* ==========================================================================
   Rive hero - always covers its block (like object-fit: cover), any breakpoint.
   3917235665 = the iFrame element's block ID on simpleeventnew.
   ========================================================================== */

/* The block is the clipping frame. On desktop it takes the column height
   (Splash gives side-by-side columns a fixed height). */
.cms-block-type-iframe.element-custom-block-3917235665 {
  position: relative !important;
  overflow: hidden !important;
  height: 100% !important;
  padding: 0 !important;
}

/* Stacked breakpoints: the column has no fixed height, so give the block one.
   Change these two values to taste (e.g. 100vh for a full-screen hero). */
#splash-container.is-responsive-tablet .cms-block-type-iframe.element-custom-block-3917235665 {
  height: 480px !important;
  max-height: none !important;
}
#splash-container.is-responsive-phone .cms-block-type-iframe.element-custom-block-3917235665 {
  height: 100vw !important;   /* square on phones */
  max-height: none !important;
}

/* Splash's inner wrappers: pin them to the block edges so nothing depends on
   percentage heights or floats resolving. */
.cms-block-type-iframe.element-custom-block-3917235665 > .element,
.cms-block-type-iframe.element-custom-block-3917235665 .sf.iframe,
.cms-block-type-iframe.element-custom-block-3917235665 .grp.media.embed {
  position: absolute !important;
  top: 0 !important; left: 0 !important; right: 0 !important; bottom: 0 !important;
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  float: none !important;
}

/* Centered crop */
.cms-block-type-iframe.element-custom-block-3917235665 .grp.media.embed {
  display: flex !important;
  align-items: flex-start !important;   
  justify-content: center !important;
  overflow: hidden !important;
}

/* The animation: at least as wide and as tall as the frame, ratio locked */
.cms-block-type-iframe iframe[src*="rive.app"] {
  position: static !important;
  width: auto !important;
  height: auto !important;
  min-width: 100% !important;
  min-height: 100% !important;
  max-width: none !important;
  aspect-ratio: 0.878 !important;   /* 720 / 820 */
  flex: none !important;
  margin: 0 !important;
}