/* Root container inherits theme background, text, spacing */
.ez-horoscope-block {
  padding: 1rem;
  border-radius: var(--wp--preset--radius--small, 8px);
  background-color: var(--wp--preset--color--background);
  color: var(--wp--preset--color--foreground);
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.1);
}

/* --------------------------------------------------------- */
/* HERO — Background Mode                                     */
/* --------------------------------------------------------- */
.ez-hero {
  position: relative;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  overflow: hidden;
  z-index: 0;
  isolation: isolate;
  display: flex;
  flex-direction: column;
}

.ez-hero-content {
  position: relative;
  z-index: 20;
}

/* overlay container */
.ez-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 10;
  pointer-events: none;
  transition: opacity 0.25s ease-in-out;
}

/* light overlay option */
.ez-hero-overlay.light {
  background-color: rgba(255, 255, 255, 0.7) !important;
}

/* dark overlay option */
.ez-hero-overlay.dark {
  background-color: rgba(0, 0, 0, 0.4);
}

/* --------------------------------------------------------- */
/* HERO — Inline Image Mode                                   */
/* --------------------------------------------------------- */
.ez-daily-inline-image {
  position: relative;
  display: inline-block;
  max-width: 100%;
  overflow: visible !important;
}

.ez-daily-inline-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

/* overlay on inline image */
.ez-daily-inline-image .ez-hero-overlay {
  position: absolute;
  inset: 0;
  border-radius: 8px;
  pointer-events: none;
}

/* text wrapping and layout fixes */
.ez-horoscope-block .ez-hero-text,
.ez-horoscope-block .ez-daily-inline-image {
  display: block !important;
}

.ez-hero-text::after {
  content: "";
  display: block;
  clear: both;
}

/* Disable flex layout if we inserted an inline image */
.ez-horoscope-block .ez-hero.has-inline-image {
  display: block !important;
}

.ez-hero-text p {
  overflow: visible;
}
