*:not(.wp-block-cover) > figure {
	position: relative;
}
figcaption .bildnachweis {
	position: relative;
	padding: 5px;
	line-height: 1;
  background: #e5e5e5ee;
	font-size: 12px;
  color: #1d1d1b;
	z-index: 100;
	border-radius: 3px;
	text-align: left;
	margin-right: 5px;
  position: absolute;
  top: 5px;
  left: 5px;
}

.bildnachweis-btn {
  appearance: none;
  -webkit-appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 20px !important;
  min-width: 20px !important;
  max-width: 20px !important;
  padding: 0 !important;
  border: 0 !important;
  box-shadow: none !important;
  border-radius: 3px;
  background: #e5e5e5ee;
  color: #1d1d1b;
  font: inherit;
  line-height: 1.2;
  font-size: .7rem;
  cursor: pointer;
  text-decoration: none;
  position: absolute;
  height: fit-content;
  top: 5px;
  left: 5px;
  height: 20px;
  z-index: 100;
}

.bildnachweis-btn:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
  box-shadow: 0 0 0 4px #1d1d1b !important;
}

.bildnachweis-btn:after {
  content: '';
  display: block;
  width: 44px;
  height: 44px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%,-50%);
}


.bildnachweis-panel {
	font-size: 12px;
	position: absolute;
	margin-right: 5px;
	padding: 3px 10px;
	border-radius: 3px;
	background: #e5e5e5ee;
	color: #1d1d1b;
	line-height: 1.2;
	text-align: left;
	top: 5px;
	left: 32px;
  z-index: 100;
}

.bildnachweis-panel {
  display: inline-block;
  vertical-align: middle;
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s ease, visibility .2s step-end;
  pointer-events: none;
}

.bildnachweis-panel.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity .2s ease, visibility 0s;
}

.wp-block-gallery.has-nested-images figure.wp-block-image figcaption.bildnachweis-caption {
	height: 100%;
	align-items: flex-end;
	max-height: unset;
	background: linear-gradient(0deg, rgba(0, 0, 0, .7), rgba(0, 0, 0, .3) 30%, transparent);
}

figcaption.bildnachweis-caption {
	/* position: absolute; */
    top: 5px;
    left: 5px;
	z-index: 100;
	display: flex !important;
	flex-direction: row;
	gap: 5px;
	width: calc(100% - 50px);
} 

.bildnachweis-btn:hover {
  background: #4a4a4a !important;
  color: #ffffff !important;
  opacity: 1 !important;
}

.bildnachweis-btn:active {
  background: #333333 !important;
  color: #ffffff !important;
  opacity: 1 !important;
}

/* 
.bildnachweis-btn:hover {
  background: #c8c8c8;
}

.bildnachweis-btn:active {
  background: #c8c8c8;
}

.bildnachweis-btn:focus-visible {
  outline: 2px solid #000;
  outline-offset: 2px;
}



*/
/* KI-Hinweis und Bildnachweis werden im Frontend unabhängig voneinander ausgegeben. */
.fbo-image-hinweise {
  position: absolute;
  top: 5px;
  left: 5px;
  z-index: 100;
  display: inline-flex;
  align-items: flex-start;
  gap: 5px;
  max-width: calc(100% - 10px);
}

.fbo-image-hinweise .ki-hinweis,
.fbo-image-hinweise .bildnachweis {
  position: static;
  display: inline-flex;
  align-items: center;
  box-sizing: border-box;
  height: 20px;
  margin: 0;
  padding: 0 5px;
  border-radius: 3px;
  background: #e5e5e5ee;
  color: #1d1d1b;
  font-size: 12px;
  line-height: 1;
  text-align: left;
  white-space: nowrap;
}

/* Im Icon-Modus steht der ©-Button rechts vom immer sichtbaren KI-Hinweis. */
.fbo-image-hinweise .bildnachweis-btn {
  position: relative;
  top: auto;
  left: auto;
  flex: 0 0 20px;
}

/* Das aufklappbare Copyright-Panel öffnet rechts neben der Hinweisleiste. */
.fbo-image-hinweise .bildnachweis-panel {
  top: 0;
  left: 100%;
  margin-left: 5px;
  margin-right: 0;
  white-space: nowrap;
}
