/* Public disclosure for fully AI-generated editorial images. */

.ai-image-figure {
  margin: 0;
  position: relative;
}

/* Keep the caption outside the image crop container so it cannot be clipped. */
.coach-rhythm-photo.ai-image-figure,
.coach-faq-photo.ai-image-figure {
  aspect-ratio: auto;
  overflow: visible;
}

.coach-rhythm-photo.ai-image-figure .ai-image-figure__media,
.coach-faq-photo.ai-image-figure .ai-image-figure__media {
  width: 100%;
  overflow: hidden;
}

.coach-rhythm-photo.ai-image-figure .ai-image-figure__media {
  border-radius: var(--einstieg-radius-lg, 24px) 0 var(--einstieg-radius-lg, 24px) 0;
}

.coach-faq-photo.ai-image-figure .ai-image-figure__media {
  aspect-ratio: 4 / 5;
  border-radius: 0 var(--einstieg-radius-lg, 24px) 0 var(--einstieg-radius-lg, 24px);
}

@media (min-width: 861px) {
  .coach-rhythm-photo.ai-image-figure .ai-image-figure__media {
    aspect-ratio: 3 / 2;
  }
}

@media (max-width: 700px) {
  .coach-rhythm-photo.ai-image-figure .ai-image-figure__media {
    border-radius: var(--einstieg-radius-md, 18px) 0 var(--einstieg-radius-md, 18px) 0;
  }

  .coach-faq-photo.ai-image-figure .ai-image-figure__media {
    border-radius: 0 var(--einstieg-radius-md, 18px) 0 var(--einstieg-radius-md, 18px);
  }
}

.ai-image-disclosure {
  position: absolute;
  z-index: 2;
  right: 0.75rem;
  bottom: 0.75rem;
  display: inline-flex;
  align-items: center;
  max-width: calc(100% - 1.5rem);
  margin: 0;
  padding: 0.15rem 0.4rem 0.18rem;
  border: 1px solid rgba(54, 89, 69, 0.12);
  border-radius: 999px;
  background: rgba(226, 233, 223, .6);
  box-shadow: none;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.25;
  text-wrap: pretty;
  pointer-events: none;
}

.moment-hero .ai-image-figure {
  min-width: 0;
}

.moment-visual-card__figure {
  overflow: hidden;
  background: #dfe7df;
}

.situation-card > .ai-image-figure {
  overflow: hidden;
  background: #fff;
}

@media (max-width: 760px) {
  .ai-image-disclosure {
    right: 0.6rem;
    bottom: 0.6rem;
    max-width: calc(100% - 1.2rem);
    padding-inline: 0.4rem;
    font-size: 0.7rem;
  }
}

/* Keep labels fully inside the visible mask near the lower-right bulge of organic hero images. */
@media (max-width: 760px) {
  .homepage-hero__visual .ai-image-disclosure,
  .moment-hero .ai-image-disclosure {
    left: auto;
    right: 7%;
    bottom: 5%;
    transform: none;
  }
}

@media (min-width: 761px) {
  .homepage-hero__visual .ai-image-disclosure,
  .moment-hero .ai-image-disclosure {
    left: auto;
    right: 14%;
    bottom: 3%;
    transform: none;
  }
}

@media print {
  .ai-image-disclosure {
    color: #000;
    background: #fff;
  }
}
