/**
 * Osório HP mid banner (acf/menin-osorio-hp-mid-banner).
 */

.block-osorio-hp-mid-banner {
  position: relative;
  width: 100%;
  min-height: clamp(280px, 42vw, 520px);
  overflow: hidden;
  background-color: white;
}

.wp-block-acf-menin-osorio-hp-mid-banner.alignwide .block-osorio-hp-mid-banner,
.wp-block-acf-menin-osorio-hp-mid-banner.alignfull .block-osorio-hp-mid-banner {
  width: 100%;
}

.osorio-hp-mid-banner__bg {
  position: absolute;
  inset: 0;
  background-size: contain;
  background-position: left;
  background-repeat: no-repeat;
  z-index: 0;
}

.osorio-hp-mid-banner__moving {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.osorio-hp-mid-banner__moving-inner {
  position: absolute;
  left: 4%;
  top: 20%;
  transform: translate3d(0, -50%, 0);
  will-change: transform;
}

.osorio-hp-mid-banner__moving-img {
  display: block;
  width: auto;
  height: auto;
  max-width: 234px;
  object-fit: contain;
}

.osorio-hp-mid-banner__placeholder {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  text-align: center;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.75);
}

.osorio-hp-mid-banner__placeholder--bg {
  background: #2a2a2a;
}
