.cc_afee81z2_image_with_text .image-with-text {
  width: 100%;
  padding-block: var(--section-y);
}

.cc_afee81z2_image_with_text .image-with-text__container {
  padding-inline: var(--gutter);
}

.cc_afee81z2_image_with_text .image-with-text__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-md);
}

.cc_afee81z2_image_with_text .image-with-text__media {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: var(--iwt-image-aspect-ratio, 4 / 3);
}

.cc_afee81z2_image_with_text .image-with-text__image, .cc_afee81z2_image_with_text .image-with-text__image-placeholder {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cc_afee81z2_image_with_text .image-with-text__image-placeholder {
  background: var(--color-surface-alt);
}

.cc_afee81z2_image_with_text .image-with-text__panel {
  display: flex;
  align-items: center;
  min-width: 0;
}

@media (min-width: 768px) {
  .cc_afee81z2_image_with_text .image-with-text__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-xl);
  }

  .cc_afee81z2_image_with_text .image-with-text--image-right .image-with-text__media {
    order: 2;
  }

  .cc_afee81z2_image_with_text .image-with-text--image-right .image-with-text__panel {
    order: 1;
  }
}

/* Full width: a photo on one half and a solid panel with centred type on the other. */
.cc_afee81z2_image_with_text .image-with-text--full-width {
  padding-block: 0;
}

.cc_afee81z2_image_with_text .image-with-text--full-width .image-with-text__grid {
  gap: 0;
}

.cc_afee81z2_image_with_text .image-with-text--full-width .image-with-text__media {
  aspect-ratio: 4 / 5;
}

.cc_afee81z2_image_with_text .image-with-text--full-width .image-with-text__panel {
  justify-content: center;
  padding: clamp(3rem, 8vw, 6rem) var(--gutter);
}

.cc_afee81z2_image_with_text .image-with-text--full-width .iwt-panel {
  align-items: center;
  text-align: center;
}

@media (min-width: 768px) {
  .cc_afee81z2_image_with_text .image-with-text--full-width .image-with-text__grid {
    min-height: min(90vh, 59rem);
  }

  .cc_afee81z2_image_with_text .image-with-text--full-width .image-with-text__media {
    aspect-ratio: auto;
    height: 100%;
  }

  .cc_afee81z2_image_with_text .image-with-text--full-width .image-with-text__image {
    position: absolute;
    inset: 0;
  }
}

.cc_afee81z2_image_with_text .iwt-panel {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  max-width: 35rem;
}

.cc_afee81z2_image_with_text .iwt-panel__eyebrow {
  margin-bottom: var(--space-sm);
  color: var(--iwt-eyebrow-color, var(--color-accent));
  font-family: var(--font-label);
  font-size: var(--text-button);
  font-weight: 400;
  letter-spacing: 0.14em;
  line-height: 1.4;
  text-transform: uppercase;
}

.cc_afee81z2_image_with_text .iwt-panel__title {
  margin: 0 0 var(--space-md);
  color: var(--iwt-text-color, var(--color-text-primary));
  font-family: var(--font-display);
  font-size: var(--text-h2);
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 1.1;
  text-wrap: balance;
}

.cc_afee81z2_image_with_text .iwt-panel__description {
  margin: 0 0 var(--space-md);
  color: var(--iwt-description-color, var(--color-text-secondary));
  font-family: var(--font-body);
  font-size: var(--text-small);
  font-weight: 400;
  line-height: 1.6;
  text-wrap: pretty;
}

.cc_afee81z2_image_with_text .iwt-panel__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: inherit;
  gap: var(--space-xs);
}

.cc_afee81z2_image_with_text .iwt-panel__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0 1.5rem;
  border: 1px solid var(--iwt-text-color, var(--color-text-primary));
  border-radius: 50px;
  background: transparent;
  color: var(--iwt-text-color, var(--color-text-primary));
  font-family: var(--font-label);
  font-size: var(--text-button);
  font-weight: 400;
  letter-spacing: 0.1em;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
}

.cc_afee81z2_image_with_text .iwt-panel__btn:hover {
  background: var(--iwt-text-color, var(--color-text-primary));
  color: var(--iwt-panel-bg, var(--color-bg));
}

.cc_afee81z2_image_with_text .iwt-panel__btn:focus-visible {
  outline: 2px solid var(--iwt-text-color, var(--color-text-primary));
  outline-offset: 2px;
}

@media (prefers-reduced-motion: no-preference) {
  .cc_afee81z2_image_with_text .iwt-panel__btn {
    transition: background-color 180ms ease, color 180ms ease;
  }
}
