.cover-photo-credit {
  position: absolute;
  z-index: 2;
  font-size: 0.95em;
  padding: 0.3em 0.7em;
  border-radius: 3px;
  opacity: 0.85;
  pointer-events: none;
  max-width: 60%;
  white-space: pre-line;
}

.credit-bottom-left {
  left: 1em;
  bottom: 1em;
}

.credit-bottom-right {
  right: 1em;
  bottom: 1em;
}

.credit-light {
  background: rgba(255, 255, 255, 0.7);
  color: #222;
}

.credit-dark {
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
}

/* Ensure the parent is positioned */
.wp-block-cover {
  position: relative;
}

.wp-block-cover__inner-container {
  z-index: 1;
}
